/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 09 2026 | 01:30:04 */
/* ========================================================================
FILNAMN: [CSS] – Kassa: Sammanfattning & Badge
BESKRIVNING: 
Hanterar designen för order-sammanfattningen ("Medlemskap"-boxen).
Inkluderar layout för produktnamn, priser, "Summa idag", återkommande summor
samt logik för "14 dagar gratis"-badgen. Innehåller även kritisk mobilanpassning.
========================================================================
*/

/* --- 1. STÄDNING (DÖLJ ONÖDIGA ELEMENT) --- */
#order_review_heading,
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .recurring-totals,
.woocommerce-checkout-review-order-table .cart-subtotal.recurring-total,
.product-quantity,
.subscription-details { 
    display: none !important;
}

/* --- 2. HUVUDBOXEN (RAMEN) --- */
.woocommerce-checkout-review-order-table {
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    margin-bottom: 25px !important;
    display: block !important;
    padding: 24px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- 3. RAD-LAYOUT (JUSTERAD) --- */
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table tr {
    display: block !important;
    width: 100% !important;
}

.woocommerce-checkout-review-order-table tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; 
    
    /* GRUNDREGEL: Vi tar bort botten-linjer från alla rader för att undvika dubbla streck.
       Vi lägger istället till TOP-linjer på specifika element (Frakt & Total). */
    border-bottom: none !important; 
    
    padding: 15px 0 !important; 
}

/* Ta bort extra luft ovanför den allra första raden */
.woocommerce-checkout-review-order-table tbody tr:first-child {
    padding-top: 0 !important;
    padding-bottom: 15px !important;
}

/* --- 4. VÄNSTER SIDA (Produkt & Badge) --- */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td.product-name {
    text-align: left !important;
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 17px !important; 
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    line-height: 1.2 !important; 
}

/* --- 5. HÖGER SIDA (Priset) --- */
.woocommerce-checkout-review-order-table td {
    text-align: right !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex: 0 0 40% !important;
    max-width: 40% !important;
}

/* Göm priset på den allra översta raden (redundant information) */
.woocommerce-checkout-review-order-table .cart_item .product-total {
    display: none !important;
}

/* --- 6. SUMMA IDAG (GRÖN HERO-TEXT) --- */
.woocommerce-checkout-review-order-table .order-total:not(.recurring-total) {
    /* HÄR är linjen ovanför "Summa idag". Den vill vi behålla! */
    border-top: 1px dashed #dcdcdc !important; 
    border-bottom: none !important;
    padding-top: 20px !important;
    margin-top: 5px !important;
    align-items: center !important; 
}

.woocommerce-checkout-review-order-table .order-total:not(.recurring-total) th {
    font-size: 16px !important;
    margin-top: 0 !important;
    flex: 0 0 60% !important; 
    max-width: 60% !important;
}

.woocommerce-checkout-review-order-table .order-total:not(.recurring-total) td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #2e7d32 !important; 
    flex: 0 0 40% !important; 
    max-width: 40% !important;
}

/* --- 7. ÅTERKOMMANDE SUMMA (GRÅ BOX) --- */
.woocommerce-checkout-review-order-table .order-total.recurring-total {
    background-color: #f9f9f9 !important;
    border-top: 1px solid #eee !important;
    border-radius: 0 0 5px 5px !important;
    
    margin-left: -24px !important;
    margin-right: -24px !important;
    margin-bottom: -24px !important;
    padding: 18px 24px !important;
    width: calc(100% + 48px) !important;
    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; 
}

/* Vänster: "Återkommande summa" */
.woocommerce-checkout-review-order-table .order-total.recurring-total th {
    font-size: 13px !important;
    color: #555 !important;
    font-weight: normal !important;
    margin: 0 !important;
    text-align: left !important;
    flex: 0 0 35% !important; 
}

/* Höger: Priset och allt annat */
.woocommerce-checkout-review-order-table .order-total.recurring-total td {
    text-align: right !important;
    flex: 0 0 65% !important; 
    display: block !important;
}

/* Prisraden (Dator) - Fetstilt */
.woocommerce-checkout-review-order-table .order-total.recurring-total td,
.woocommerce-checkout-review-order-table .order-total.recurring-total td span,
.woocommerce-checkout-review-order-table .order-total.recurring-total td strong {
    font-size: 13px !important; 
    color: #333 !important;
    font-weight: 700 !important; 
}

/* Beloppet (Siffrorna) - Extra feta */
.woocommerce-checkout-review-order-table .order-total.recurring-total .amount {
    font-weight: 800 !important; 
    color: #000 !important;
}

/* "(inkl. moms)" - Normal vikt */
.woocommerce-checkout-review-order-table .order-total.recurring-total small.includes_tax {
    font-weight: normal !important;
    color: #555 !important;
}

/* Datumet längst ner (DATOR) - Tunt och ljusgrått (#999) */
.woocommerce-checkout-review-order-table .order-total.recurring-total .first-payment-date {
    display: block !important;
    font-size: 11px !important; 
    color: #999 !important;          
    margin-top: 2px !important;
    font-style: normal !important;
    font-weight: normal !important; 
}

/* --- 8. BADGE (14 DAGAR GRATIS) --- */
.woocommerce-checkout-review-order-table td.product-name.show-trial-badge::after {
    content: "\2713  14 DAGAR GRATIS PROVPERIOD INGÅR"; 
    display: inline-block !important;       
    width: auto !important; 
    background-color: #e6f4ea;
    color: #1e7e34;
    font-size: 10px;            
    font-weight: 800;           
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;          
    border-radius: 20px;        
    margin-left: 12px;           
    margin-top: 0px !important; 
    border: 1px solid #c6e7c6;  
    line-height: 1;
    vertical-align: middle;     
    position: relative;         
    top: -1px;                  
}

/* --- 9. FIX FÖR BOK-KASSAN (AVDELARE & FRAKT) --- */
/* Här är magin. Vi lägger linjen PÅ Frakten (över), inte under produkten. */

/* A. Säkerställ att produkten INTE har någon bottenlinje */
.woocommerce-checkout-review-order-table tr.cart_item {
    border-bottom: none !important;
}

/* B. Fixa Frakten: Lägg till linje ÖVER (Top) istället för under */
.woocommerce-checkout-review-order-table tr.shipping {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 0 !important;

    /* MAGIN: Linjen ligger i taket på frakten. */
    /* Då syns den under boken. Men påverkar inte medlemskapet (som saknar frakt). */
    border-top: 1px dashed #dcdcdc !important; 
    border-bottom: none !important; 
}

/* Rubriken "Frakt" (Vänster) */
.woocommerce-checkout-review-order-table tr.shipping th {
    text-align: left !important;
    flex: 0 0 60% !important; 
    font-weight: normal !important;
    color: #111 !important;
    font-size: 16px !important;
}

/* Priset (Höger) */
.woocommerce-checkout-review-order-table tr.shipping td {
    text-align: right !important;
    flex: 0 0 40% !important;
    font-weight: 600 !important;
}

/* Städa bort punktlistor för fraktval */
.woocommerce-checkout-review-order-table tr.shipping ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* --- 10. MOBIL-ANPASSNING (RESPONSIV DESIGN) --- */
@media only screen and (max-width: 600px) {
    
    /* Flytta ner badgen under texten på mobil */
    .woocommerce-checkout-review-order-table td.product-name.show-trial-badge::after {
        display: table !important;      
        margin-left: 0 !important;      
        margin-top: 8px !important;     
        position: static !important;    
    }

    /* Justera textstorlek */
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td.product-name {
        font-size: 15px !important;     
        line-height: 1.3 !important;
    }
    
    /* Mindre padding i boxen */
    .woocommerce-checkout-review-order-table {
        padding: 15px 20px !important; 
    }

    /* Justera den grå boxen för mobilbredd */
    .woocommerce-checkout-review-order-table .order-total.recurring-total {
        margin-left: -20px !important;  
        margin-right: -20px !important;
        margin-bottom: -15px !important; 
        width: calc(100% + 40px) !important; 
        border-radius: 0 0 5px 5px !important;
        align-items: flex-start !important; 
    }
    
    /* Vänster sida (Rubriken) - Smalare på mobil */
    .woocommerce-checkout-review-order-table .order-total.recurring-total th {
        flex: 0 0 30% !important; 
        max-width: 30% !important;
        font-size: 12px !important;
        margin-top: 2px !important; 
    }
    
    /* Höger sida (Priset) - Bredare på mobil */
    .woocommerce-checkout-review-order-table .order-total.recurring-total td {
        flex: 0 0 70% !important; 
        max-width: 70% !important;
        text-align: right !important;
        white-space: normal !important; 
    }
    
    /* SUPERLIMMET: Tvinga texten till 11px och inline för att spara plats */
    .woocommerce-checkout-review-order-table .order-total.recurring-total td,
    .woocommerce-checkout-review-order-table .order-total.recurring-total td span,
    .woocommerce-checkout-review-order-table .order-total.recurring-total td strong,
    .woocommerce-checkout-review-order-table .order-total.recurring-total td small,
    .woocommerce-checkout-review-order-table .order-total.recurring-total td bdi {
        display: inline !important; 
        font-size: 11px !important; 
    }

    /* Göm eventuella radbrytningar */
    .woocommerce-checkout-review-order-table .order-total.recurring-total td br {
        display: none !important; 
    }
    
    /* Datumet underst (MOBIL) - Ljusgrått (#999) */
    .woocommerce-checkout-review-order-table .order-total.recurring-total .first-payment-date {
        display: block !important; 
        margin-top: 4px !important;
        font-size: 10px !important; 
        color: #999 !important;      
        font-weight: normal !important; 
    }
}