/* BESTELLUNG PAGE MODERN STYLING */
/* Shared styles for bestellung.html.twig and bestellungh.html.twig */

:root {
    --primary: #f6a32d;
    --primary-light: #ffb84d;
    --primary-dark: #e08b1a;
    --secondary: #66cc33;
    --secondary-dark: #5cb71f;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #fafafa;
    --border: #e8e8e8;
    --white: #fff;
}

/* --- Tarif/Phone Info Section --- */
.tarif-info-section {
    padding: 2rem 0;
    background: #fff; 
}

/* GRID SYSTEM WRAPPER */
.tarif-grid-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden; /* For mobile rounded corners on header */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 Column Stack */
    /* Order via Source Order (Header -> Visual -> Features -> Specs -> Deal -> Legal) */
}

/* --- 1. HEADER AREA --- */
.grid-header {
    padding: 1.5rem;
    border-bottom: 1px solid transparent;
}

.device-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    color: var(--text);
}

.device-title small {
    display: block;
    font-weight: 400;
    font-size: 0.65em;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Hero Price (Mobile Only by default logic, hidden on Desktop via Media Query) */
.hero-price-tag {
    margin-top: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--text);
}

.hero-price-tag .per-month {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    vertical-align: middle;
}

/* --- 2. VISUAL AREA --- */
.grid-visual {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.device-image {
    max-width: 100%;
    height: auto;
    max-height: 280px; /* Controlled height */
    object-fit: contain;
    margin-bottom: 1rem;
}

.energy-label-wrapper {
    margin-top: auto; /* Push to bottom if flex container has height */
}

.energy-label-mini {
    height: 30px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.energy-label-mini:hover { opacity: 1; }

/* --- 3. FEATURES AREA --- */
.grid-features {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 800;
}

.tarif-action-text p {
    margin: 0;
    font-size: 14px;
}

.highlight-action {
    color: var(--text-light);
    font-weight: 400;
    font-size: 12px;
    margin-top: 0.5rem;
}

.description-text {
    color: var(--text-light);
}

/* --- 4. SPECS AREA --- */
.grid-specs {
    background: #f8f8f8; /* Grey background */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
}

.spec-item {
    flex: 1;
    padding: 1rem;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-item.border-left {
    border-left: 1px solid var(--border); /* Vertical divider */
}

.spec-label {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-val {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
}

/* --- 5. DEAL AREA --- */
.grid-deal {
    padding: 1.5rem;
    border-top: 4px solid var(--primary); /* Orange Top Border */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

/* Availability Badge */
.grid-deal .availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-dark);
    background: #f0fff4;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 13px;
}

.grid-deal .availability-badge img {
    height: 16px;
    width: auto;
}

.deal-prices {
    text-align: right;
}

.price-line {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.price-line.highlight {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

/* --- 6. LEGAL AREA --- */
.grid-legal {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: row; /* Display links in a row */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 0.75rem 1.5rem; /* Gap between rows and columns */
    justify-content: center; /* Center links */
    border-top: 1px solid var(--border);
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px; /* Smaller font size */
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap; /* Prevent links from breaking in half */
}

.legal-link:hover {
    color: var(--primary);
}

.legal-link svg {
    opacity: 0.6;
}

/* =========================================
   MOBILE SPECIAL STYLES (< 769px)
   ========================================= */
@media (max-width: 768px) {
    /* Block 1: Dezenter Header */
    .grid-header {
        background: var(--white); /* White background instead of orange gradient */
        border-bottom: 1px solid var(--border);
        text-align: left;
        padding: 0.75rem 1.5rem; /* Reduced vertical padding */
    }
    
    .device-title, 
    .device-title small,
    .hero-price-tag,
    .hero-price-tag .per-month {
        color: var(--text) !important; /* Default text color */
    }

    /* Block 2: 2-Column Row (Image Left + Features Right) */
    /* We use Grid Areas to mash Visual and Features together visually if needed, 
       OR we keep them stacked. 
       The Requirement: "Block 2: 2-Spalten-Reihe (Bild + Features nebeneinander)"
    */
    
    /* Redefining grid for mobile to merge visual & features into one 'row' 
       Actually, HTML structure is separate divs. We can use CSS Grid on wrapper to place them side-by-side.
    */
    .tarif-grid-wrapper {
        display: grid;
        grid-template-columns: 40% 60%; /* Image Col | Content Col - Adjusted for better balance */
        grid-template-areas:
            "header header"
            "visual features"
            "specs specs"
            "deal deal"
            "legal legal";
    }

    /* Assign Areas */
    .grid-header   { grid-area: header; }
    .grid-visual   { 
        grid-area: visual; 
        padding: 1rem 0.5rem 1rem 0.5rem; /* Reduced padding */
        justify-content: flex-start; /* Align top to match text */
        padding-top: 1.5rem; /* Push image down slightly to align with first feature */
    }
    .grid-features { 
        grid-area: features; 
        padding: 1rem 0.5rem 1rem 0; /* Reduced padding */
        border-bottom: 1px solid var(--border); /* Add subtle border below features */
        margin-bottom: 1rem; /* Space before next block */
    }
    .grid-specs    { 
        grid-area: specs; 
        background: none; /* Remove grey background */
        border: none; /* Remove all borders */
        padding: 1rem 0.5rem; /* Reduced vertical padding */
        gap: 0.5rem; /* Smaller gap between items */
        justify-content: center; /* Center items horizontally */
        align-items: center; /* Center items vertically */
    }
    .grid-deal     { grid-area: deal; }
    .grid-legal    { grid-area: legal; }

    /* Tweaks for side-by-side layout */
    .device-image {
        max-height: 180px; /* Slightly larger image */
    }
    
    .check-list li {
        font-size: 12px; /* Smaller text to fit side-by-side */
        margin-bottom: 0.25rem;
        padding-left: 1.25rem; /* Tighter indent */
    }
    
    /* Specs: Side by side on mobile */
    .grid-specs {
        background: none; /* Remove background */
        border: none; /* Remove border */
        border-top: 1px solid #f0f0f0; /* Subtle top border */
        padding: 0.75rem 1rem; /* Compact padding */
        display: flex;
        flex-direction: row; /* Side by side */
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center;
        gap: 0.5rem;
    }

    .spec-item {
        flex: 1;
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
    }

    .spec-item.border-left {
        border-left: 1px solid #eee;
        padding-left: 0.5rem;
    }

    .spec-label {
        font-size: 12px;
        color: var(--text-light);
        text-transform: none;
        letter-spacing: 0;
        min-width: auto;
    }

    .spec-val {
        font-size: 14px; /* Default value size */
        font-weight: 500; /* Lighter weight */
        white-space: nowrap;
    }

    .deal-avail {
        max-width: 45%;
        flex-shrink: 1;
    }

    .deal-prices {
        white-space: nowrap;
    }
}


/* =========================================
   DESKTOP LAYOUT (> 769px)
   ========================================= */
@media (min-width: 769px) {
    .tarif-grid-wrapper {
        padding: 2rem;
        grid-template-columns: 1fr 350px; /* Content | Image Column */
        grid-template-areas:
            "header   visual"
            "features visual"
            "deal     specs"
            "legal    specs";
        gap: 0 3rem; /* Column gap - no row gap, manage with element margins */
        align-items: start;
    }

    /* Assign Areas */
    .grid-header   { grid-area: header; padding: 0 0 1rem 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 0.75rem; } 
    
    /* Visual Area: Image + Label */
    .grid-visual   { 
        grid-area: visual; 
        border-left: 1px solid #f0f0f0; 
        padding-left: 2rem; 
        display: flex;
        flex-direction: column;
        align-items: center; /* Center image and label */
        justify-content: center; /* Vertically center content */
        padding-top: 0;
        margin-bottom: 0; 
    }

    /* Hide the Mobile Hero Price on Desktop */
    .hero-price-tag { display: none; }

    .grid-features { grid-area: features; padding: 0; margin-bottom: 0.75rem; } 
    
    /* Specs: Placed in the right column, below visual (via grid areas logic or explicit placement) */
    .grid-specs {
        grid-area: specs;
        border-left: 1px solid #f0f0f0; 
        padding-left: 2rem;
        padding-top: 0; 
        margin-top: 1.5rem; 
        background: none; 
        border: none; 
        border-left: 1px solid #f0f0f0;
        
        display: flex; 
        flex-direction: column; 
        gap: 0.5rem; 
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .spec-item {
        flex: initial; 
        padding: 0; 
        border: none; 
        flex-direction: row; 
        gap: 0.5rem;
        align-items: center;
    }

    /* Desktop Tweaks */
    .device-title { font-size: 32px; }
    
    .grid-deal {
        grid-area: deal;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.75rem; 
    }
    
    .price-line.highlight { font-size: 18px; }
    .check-list li { font-size: 16px; margin-bottom: 0.75rem; }
    .device-image { max-height: 350px; }

    /* Specific SIM Image Styling for Desktop */
    .sim-image {
        opacity: 1 !important; /* Remove transparency */
        max-height: 250px; /* Adjust size for presence */
        margin-top: 0; 
        margin-bottom: 0;
    }

    .grid-legal { grid-area: legal; padding: 1.5rem 0 0 0; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid var(--border);}
}

/* MOBILE TWEAKS (Overwrite/Add to previous mobile block) */
@media (max-width: 768px) {
    /* Ensure specs are compact */
    .grid-specs {
        flex-direction: row; /* Side by side */
        flex-wrap: wrap;
        padding: 0.5rem 1rem; /* Minimal padding */
        gap: 1rem; /* Space between Spec Items */
        background: #fafafa; /* Very light grey to distinguish */
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .spec-item {
        width: auto; /* Auto width */
        font-size: 12px; /* Small font */
    }
    
    .spec-label {
        min-width: auto; /* Reset fixed width */
        margin-right: 0.25rem;
    }
    
    /* Energy Label below Image */
    .grid-visual {
        flex-direction: column; /* Stack Image then Label */
    }
    .energy-label-wrapper {
        margin-top: 0.5rem;
    }

    /* Mobile SIM Image - No opacity */
    .sim-image {
        opacity: 1 !important;
    }
}
/* MOBILE TWEAKS (Overwrite/Add to previous mobile block) */
@media (max-width: 768px) {
    /* Ensure specs are compact */
    .grid-specs {
        flex-direction: row; /* Side by side */
        flex-wrap: wrap;
        padding: 0.5rem 1rem; /* Minimal padding */
        gap: 1rem; /* Space between Spec Items */
        background: #fafafa; /* Very light grey to distinguish */
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .spec-item {
        width: auto; /* Auto width */
        font-size: 12px; /* Small font */
    }
    
    .spec-label {
        min-width: auto; /* Reset fixed width */
        margin-right: 0.25rem;
    }
    
    /* Energy Label below Image */
    .grid-visual {
        flex-direction: column; /* Stack Image then Label */
    }
    .energy-label-wrapper {
        margin-top: 0.5rem;
    }
}
}


/* --- Bestellung Form Section --- */
.bestellung-section {
    padding: 2rem 0 4rem 0;
}

.bestellung-wrapper {
    max-width: 100%;
}

.bestellung-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.bestellung-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bestellung-header-subtitle {
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-section:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-section__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section__number {
    background: white;
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.form-section__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.form-section__body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem 1rem; /* Row gap, Col gap */
}

.form-section__subtitle {
    grid-column: span 8;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0.5rem;
}

/* Form Layout Helpers */
.form-group {
    grid-column: span 8;
}

.form-row {
    display: contents;
}

.form-col {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
}

.form-col-street {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
}

.form-col-house {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    display: block;
    color: var(--text);
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Sora', sans-serif;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(246, 163, 45, 0.1);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: 0.3rem;
}

/* Inline Fields (PLZ/Ort, Date) */
.form-row-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-row-inline input, .form-row-inline select {
    flex: 1;
}

/* Special spacing for date selects */
.form-row-inline select {
    min-width: 0; /* Allow shrinking */
}

/* PLZ/Ort specific widths */
#plz {
    flex: 0 0 80px;
    max-width: 80px;
}

#ort {
    flex: 1;
}

/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    grid-column: span 8;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-item input, .checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-item label, .checkbox-item label {
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

/* Custom Select Arrow */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* MNP Section */
.mnp-section {
    background: #fff9f0;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-top: 1rem;
    grid-column: span 8;
    border-radius: 0 6px 6px 0;
}

.mnp-details {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

/* --- Order Summary Card --- */
.order-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.summary-table th {
    text-align: left;
    padding: 0.75rem 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid #eee;
    background: #f9f9f9;
}

.summary-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.summary-table .col-item { width: 45%; }
.summary-table .col-qty { width: 10%; text-align: center; }
.summary-table .col-monthly { width: 22%; text-align: right; }
.summary-table .col-once { width: 23%; text-align: right; }

.qty-select {
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.after-24 {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.physical-sim-price {
    font-weight: 600;
}

/* Total Row */
.summary-table .total-row td {
    border-top: 2px solid var(--primary);
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
    background: #fffdf8;
}

.summary-table .total-row td.col-monthly, 
.summary-table .total-row td.col-once {
    color: var(--primary);
    font-size: 18px;
}

/* Submit Button - Uses .btn .btn--primary from design1_minimal.css */
.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 18px;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.ssl-info {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .tarif-info-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tarif-info-image {
        order: -1;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 1.5rem;
    }

    .device-image {
        max-height: 250px;
    }

    .tarif-links {
        flex-direction: column;
    }
    
    .tarif-link-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-section__body {
        display: block; /* Stack grid items */
    }

    .form-col, .form-col-street, .form-col-house {
        margin-bottom: 1rem;
    }

    /* Mobile Table Layout - Receipt Style (Reinforced) */
    .summary-table thead { display: none; }
    
    .summary-table {
        display: block;
        width: 100%;
    }

    /* Reset row styles completely */
    .bestellung-wrapper .summary-table tr {
        display: block;
        margin-bottom: 0;
        border: none !important; /* Force remove box border */
        border-bottom: 1px dashed #e0e0e0 !important; /* Add separator */
        padding: 1rem 0;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .bestellung-wrapper .summary-table tr:last-child {
        border-bottom: none !important;
    }

    /* Cells */
    .bestellung-wrapper .summary-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border: none !important;
        padding: 0.25rem 0;
        text-align: right;
        font-size: 14px;
        background: transparent;
        white-space: nowrap; /* Prevent prices and euro symbol from wrapping */
    }

    /* Labels (::before) */
    .bestellung-wrapper .summary-table td::before {
        content: attr(data-label);
        font-weight: 400;
        color: #888;
        text-align: left;
        margin-right: auto; /* Push value to right */
        padding-right: 1rem;
        font-size: 13px;
        white-space: normal; /* Allow label to wrap if needed */
    }

    /* Article Column - Full Width */
    .bestellung-wrapper .summary-table .col-item {
        display: block;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        width: 100%;
        white-space: normal; /* Allow article text to wrap */
    }
    
    /* Hide "Artikel" Label */
    .bestellung-wrapper .summary-table .col-item[data-label="Artikel"]::before { 
        display: none !important; 
    }
    
    .summary-table .col-item strong {
        font-size: 16px;
        color: var(--text);
    }

    /* Styling for the Quantity Select Dropdown */
    .qty-select {
        display: inline-block;
        width: 60px; /* Compact width */
        height: 30px; /* Smaller height */
        padding: 0 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #fff; /* White background */
        font-size: 13px;
        font-family: 'Sora', sans-serif;
        appearance: none !important; /* Remove default browser styling - Reinforced */
        -webkit-appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 0.8em;
        padding-right: 1.5rem; /* Space for the arrow */
        cursor: pointer;
    }

    /* Total Row - distinct look */
    .bestellung-wrapper .summary-table .total-row {
        background: #fffcf5 !important; /* Light orange tint */
        border: none !important; /* Remove overall border */
        border-top: 2px solid var(--primary) !important; /* Orange top border */
        border-radius: 0 !important; /* Remove border-radius for clean lines */
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
        padding: 0.75rem 0 !important;
        box-sizing: border-box;
    }

    .bestellung-wrapper .summary-table .total-row td {
        font-size: 15px;
        font-weight: 600;
        border-bottom: none !important; /* Remove inner separators to avoid conflicts */
        white-space: nowrap;
        padding: 0.25rem 0 !important;
    }
    .bestellung-wrapper .summary-table .total-row td:last-child {
        border-bottom: none !important;
    }

    .bestellung-wrapper .summary-table .total-row td.col-monthly,
    .bestellung-wrapper .summary-table .total-row td.col-once {
        font-size: 18px;
        color: var(--primary);
        font-weight: 800;
    }
}

/* Validation Error Styling */
.error-container {
    min-height: 0;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.error-container.show {
    display: block;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #e74c3c !important;
    background-color: #fff8f7;
}

/* Fancybox mit Padding - Symmetrisch wie tarifwahl */
.fancybox-slide {
	padding: 10vh 10vw !important;
}
