/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 09 2026 | 01:03:08 */
/* ========================================================================
FILNAMN: [CSS] – Recept: Design (Master)
BESKRIVNING: 
Huvudfilen för receptdesignen. Den styr utseendet på:
- Ingredienslistan (Tabell, rader, checkrutor)
- Instruktioner ("Gör så här"-steg med tidslinje)
- Typografi för recept
- Mobilanpassning av hela receptvyn

Notera: Denna fil samverkar med [JS] – Recept: Interaktion & Städning
för att göra rutorna klickbara.
========================================================================
*/

/* --- 1. TYPOGRAFI (INGREDIENSER & INGRESS) --- */
.recept-ingredienser table,
.ingress {
    font-family: "Proxima Nova Semibold", "Proxima Nova", "Helvetica Neue", sans-serif !important;
    color: #222 !important;
    line-height: 1.5 !important; 
    font-size: 14px !important;  
}

.ingress {
    font-weight: 400 !important;
    color: #555 !important;
    font-size: 16px !important; 
    margin-bottom: 30px !important;
}

/* --- 2. INGREDIENSLISTAN (TABELLEN) --- */
.recept-ingredienser {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 5px !important; 
}

.recept-ingredienser table, 
.recept-ingredienser tbody {
    display: block !important;
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 0 !important;
}

/* Rader */
.ingrediens-rad {
    display: flex !important; 
    align-items: flex-start !important; 
    width: 100% !important;
    padding: 10px 0 !important; 
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    background: transparent !important;
    transition: all 0.2s ease;
    cursor: default !important; 
}

.ingrediens-rad:hover {
    background-color: rgba(0,0,0,0.02) !important;
}

/* FIX FÖR 35PX MELLANRUMMET (FÖRSTA RADEN) */
.recept-ingredienser tbody tr.ingrediens-rad:first-child,
.recept-ingredienser tbody tr.section-heading-row:first-child {
    padding-top: 35px !important;
}

/* --- 3. CHECKBOXEN (INGREDIENSER) --- */
.check-col {
    display: block !important;
    width: 26px !important; 
    flex-shrink: 0 !important;
    padding: 0 !important;
    text-align: left !important; 
    
    /* DIN JUSTERING: 2.5px för perfekt linjering */
    margin-top: 2.5px !important; 
    
    cursor: pointer !important; 
}

.paleo-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px; 
    height: 18px;
    border: 1.5px solid #81BA80; 
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 0 !important; 
    transition: all 0.2s;
}

.paleo-checkbox i {
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

/* --- 4. MÄNGD & VARA --- */
.mangd-col {
    display: block !important;
    width: auto !important; 
    flex-shrink: 0 !important; 
    font-weight: 700 !important;
    font-size: 14px !important; 
    color: #111 !important;
    white-space: nowrap !important;
    text-align: left !important; 
    line-height: 1.5 !important; 
    margin-top: 0 !important;
    padding: 0 !important; 
    padding-left: 4px !important; 
    margin-right: 5px !important;
    cursor: text !important; 
}

.vara-col {
    display: block !important;
    flex: 1 !important; 
    font-weight: 400 !important;
    font-size: 14px !important; 
    color: #333 !important;
    line-height: 1.5 !important; 
    margin-top: 0 !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: text !important; 
}

.vara-col a {
    color: #81BA80 !important; 
    text-decoration: underline !important;
    text-underline-offset: 1px !important; 
    font-weight: 600 !important;
    cursor: pointer !important; 
    position: relative !important; 
    z-index: 10 !important; 
}

/* --- 5. LOGIK FÖR KLICK (INGREDIENSER) --- */
/* När JS lägger på klassen .checked */
.ingrediens-rad.checked .paleo-checkbox {
    background-color: #81BA80;
    border-color: #81BA80;
    box-shadow: none;
    transform: scale(1);
}
.ingrediens-rad.checked .paleo-checkbox i {
    opacity: 1;
    transform: scale(1);
}
.ingrediens-rad.checked .mangd-col,
.ingrediens-rad.checked .vara-col {
    text-decoration: line-through;
    color: #a0a0a0 !important; 
    opacity: 0.7;
}

/* --- 6. MELLANRUM & RUBRIKER (SEKTIONER) --- */
/* Tomma rader som skapas av importen */
tr.spacer-row {
    display: block !important;
    width: 100% !important;
    height: 15px !important; 
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
tr.spacer-row td, 
tr.spacer-row .check-col,
tr.spacer-row .mangd-col,
tr.spacer-row .vara-col {
    display: none !important; 
}

/* Rubrikrader (Mellanrubriker) */
tr.section-heading-row {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 20px 0 5px 0 !important; 
    margin: 0 !important;
}

tr.section-heading-row .paleo-checkbox,
tr.section-heading-row .check-col {
    display: none !important; 
}
tr.section-heading-row td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
}
tr.section-heading-row h4 {
    font-family: "Proxima Nova Semibold", sans-serif !important;
    font-size: 16px !important; 
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    font-style: italic !important;
}

/* --- 7. INSTRUKTIONER (GÖR SÅ HÄR) --- */

.recept-lista, 
.recept-instruktioner ol {
    list-style: none !important; 
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Steg-container */
.recept-lista li, 
.recept-instruktioner ol li {
    position: relative;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
    padding-left: 60px !important; 
    margin-bottom: 0 !important;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px dashed #d6d6d6 !important;
}

/* SPECIALREGEL: Ta bort topp-padding för FÖRSTA steget */
.recept-lista li:first-child, 
.recept-instruktioner ol li:first-child {
    padding-top: 0 !important;
}

.recept-lista li:last-child, 
.recept-instruktioner ol li:last-child {
    border-bottom: none !important;
}

/* Cirkeln (Checkboxen) */
.recept-lista li::before,
.recept-instruktioner ol li::before {
    content: "" !important;
    position: absolute;
    left: 10px; 
    
    /* Standardläge: 27px */
    top: 27px !important;   
    
    width: 28px; 
    height: 28px;
    border: 2px solid #81BA80; 
    border-radius: 50%;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 2; 
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* SPECIALREGEL: Cirkel för FÖRSTA steget */
.recept-lista li:first-child::before, 
.recept-instruktioner ol li:first-child::before {
    top: 2px !important; /* 27px - 25px = 2px */
}

/* Den vertikala linjen (Tidslinjen) */
.recept-lista li::after,
.recept-instruktioner ol li::after {
    content: "";
    position: absolute;
    left: 23px; 
    
    /* Standardläge: 57px */
    top: 57px !important;  
    
    bottom: -25px !important; 
    width: 2px; 
    background-color: #f0f0f0; 
    z-index: 1;
}

/* SPECIALREGEL: Linje för FÖRSTA steget */
.recept-lista li:first-child::after, 
.recept-instruktioner ol li:first-child::after {
    top: 32px !important; /* 57px - 25px = 32px */
}

.recept-lista li:last-child::after,
.recept-instruktioner ol li:last-child::after {
    display: none;
}

/* --- ACTIVE STATE (NÄR MAN KLICKAR PÅ ETT STEG) --- */
.recept-lista li.checked::before,
.recept-instruktioner ol li.checked::before {
    background-color: #81BA80; 
    /* Inline SVG för vit bock */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border-color: #81BA80;
}

.recept-lista li.checked,
.recept-instruktioner ol li.checked,
.recept-lista li.checked span {
    opacity: 0.5; 
}

/* ============================================================
   MOBIL/DATOR ANPASSNING
   ============================================================ */
@media only screen and (max-width: 767px) {
    /* Dölj brödsmulor och sidhuvud på receptsidor i mobil */
    .woocommerce-breadcrumb, .breadcrumbs, .page-header { display: none !important; }
    
    .main-content.single { margin-top: 0 !important; padding-top: 0 !important; width: 100% !important; margin-bottom: 40px !important; }
    .container, .page-wrapper { padding-left: 10px !important; padding-right: 10px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    
    /* FIX: Borttagen "margin: 0" för att undvika layout-buggar */
    .recept.single { width: 100% !important; padding: 0 !important; }
    
    /* Justera indrag på instruktioner för små skärmar */
    .recept-lista li, .recept-instruktioner ol li {
        padding-left: 50px !important; 
    }
    .recept-lista li::before, .recept-instruktioner ol li::before {
        left: 5px !important; 
    }
    .recept-lista li::after, .recept-instruktioner ol li::after {
        left: 18px !important; 
    }
}

@media only screen and (min-width: 769px) {
    /* Desktop-specifika justeringar för finlir */
    .mangd-col, .vara-col { font-size: 14px !important; }
    .paleo-checkbox { width: 16px !important; height: 16px !important; border-width: 1.5px !important; }
    .paleo-checkbox i { font-size: 9px !important; }
    .ingrediens-rad { padding: 6px 0 !important; }
    tr.section-heading-row h4 { font-size: 15px !important; }
}