/* cabin-baggage.css - Kabinekuffert floating sidebar */

/* ======================================= */
/* Sidebar - fixed positioneret via JS     */
/* ======================================= */

.cabin-baggage-sidebar {
    position: fixed;
    width: 230px;
    background: #f8fafb;
    border: 1px solid #e0e5ea;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
    z-index: 100;
    font-family: 'Barlow', sans-serif;
}

.cabin-baggage-sidebar:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ======================================= */
/* Header                                  */
/* ======================================= */

.cbs-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e5ea;
}

.cbs-icon {
    color: #08605F;
    flex-shrink: 0;
}

.cbs-title {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #091924;
}

.cbs-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

/* ======================================= */
/* Info banner                             */
/* ======================================= */

.cbs-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #f0f9f9;
    border: 1px solid #d1e8e8;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.cbs-info-icon {
    color: #08605F;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ======================================= */
/* Flight rows                             */
/* ======================================= */

.cbs-flights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.cbs-flight-row {
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 10px 12px;
}

.cbs-flight-label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 2px;
}

.cbs-flight-airline {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #091924;
    margin-bottom: 4px;
}

.cbs-flight-price {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #08605F;
}

.cbs-flight-price.cbs-price-muted {
    color: #9ca3af;
    font-weight: 500;
    font-size: 11px;
}

.cbs-flight-status.cbs-included {
    display: flex;
    align-items: center;
}

.cbs-included-tag {
    background-color: #08605F;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cbs-pending {
    font-style: italic;
    color: #9ca3af;
    font-weight: 500;
}

.cbs-flight-row-pending {
    border-style: dashed;
    border-color: #d1d5db;
}

/* ======================================= */
/* Counter section                         */
/* ======================================= */

.cbs-counter-section {
    border-top: 1px solid #e0e5ea;
    padding-top: 14px;
}

.cbs-counter-label {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cbs-counter-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.cbs-count-btn {
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e5ea;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cbs-count-btn:hover {
    color: #091924;
    background-color: rgba(8, 96, 95, 0.05);
    border-color: #08605F;
}

.cbs-count-btn.selected {
    color: #ffffff;
    background-color: #08605F;
    border-color: #08605F;
}

.cbs-counter-note {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 6px;
}

.cbs-total-cost {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #08605F;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e5ea;
}

/* ======================================= */
/* Step 6 - Inline toggle i traveler cards */
/* ======================================= */

.cabin-baggage-assignment-summary {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #08605F;
    background: #f0f9f9;
    border: 1px solid #d1e8e8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.cabin-baggage-toggle {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

.cabin-baggage-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cabin-baggage-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #08605F;
    cursor: pointer;
}

.cabin-baggage-toggle-text {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: color 0.15s ease;
}

.cabin-baggage-toggle.active .cabin-baggage-toggle-text {
    color: #08605F;
    font-weight: 600;
}

.cabin-baggage-toggle.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cabin-baggage-toggle.disabled .cabin-baggage-toggle-text {
    color: #9ca3af;
}

/* ======================================= */
/* Responsive - mobil: skjul sidebar       */
/* ======================================= */

@media (max-width: 768px) {
    .cabin-baggage-sidebar {
        display: none !important;
    }

    .cabin-baggage-assignment-summary {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* ======================================= */
    /* Mobile cabin baggage - inline i flight app */
    /* ======================================= */

    .mobile-cabin-baggage-section {
        background: #ffffff;
        border-radius: 20px;
        margin: 8px 12px 120px 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 2px solid #d1e8e8;
        font-family: 'Barlow', sans-serif;
        animation: slideInUp 0.4s ease-out;
    }

    /* Header */
    .mcb-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e8ecef;
    }

    .mcb-icon {
        color: #08605F;
        flex-shrink: 0;
    }

    .mcb-header-text {
        display: flex;
        flex-direction: column;
    }

    .mcb-title {
        font-size: 16px;
        font-weight: 700;
        color: #091924;
    }

    .mcb-subtitle {
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
    }

    /* Info banner */
    .mcb-info-banner {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        background: #f0f9f9;
        border: 1px solid #d1e8e8;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 14px;
        font-size: 12px;
        font-weight: 500;
        color: #374151;
        line-height: 1.4;
    }

    .mcb-info-banner svg {
        color: #08605F;
        flex-shrink: 0;
        margin-top: 1px;
    }

    /* Flight rows */
    .mcb-flights {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .mcb-flight-row {
        background: #f8fafb;
        border: 1px solid #e8ecef;
        border-radius: 10px;
        padding: 10px 14px;
    }

    .mcb-flight-direction {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6b7280;
        margin-bottom: 4px;
    }

    .mcb-flight-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mcb-airline {
        font-size: 14px;
        font-weight: 600;
        color: #091924;
    }

    .mcb-price {
        font-size: 12px;
        font-weight: 600;
        color: #08605F;
    }

    .mcb-included-tag {
        background-color: #08605F;
        color: #ffffff;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    /* Counter section */
    .mcb-counter-section {
        border-top: 1px solid #e8ecef;
        padding-top: 16px;
    }

    .mcb-counter-label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 10px;
    }

    .mcb-counter-buttons {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .mcb-count-btn {
        min-width: 44px;
        height: 40px;
        padding: 0 12px;
        border: 2px solid #e0e5ea;
        border-radius: 10px;
        background: #ffffff;
        color: #6b7280;
        font-family: 'Barlow', sans-serif;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: rgba(8, 96, 95, 0.1);
    }

    .mcb-count-btn:active {
        transform: scale(0.95);
    }

    .mcb-count-btn.selected {
        color: #ffffff;
        background-color: #08605F;
        border-color: #08605F;
        box-shadow: 0 2px 8px rgba(8, 96, 95, 0.3);
    }

    .mcb-counter-note {
        font-size: 11px;
        font-weight: 500;
        color: #9ca3af;
        margin-top: 8px;
    }

    .mcb-total-cost {
        font-size: 15px;
        font-weight: 700;
        color: #08605F;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid #e8ecef;
    }

    /* All included message */
    .mcb-all-included {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f0f9f9;
        border: 1px solid #d1e8e8;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #08605F;
    }

    .mcb-all-included svg {
        flex-shrink: 0;
    }

    /* ======================================= */
    /* Step 6 - Mobile baggage toggles         */
    /* ======================================= */

    .cabin-baggage-toggle {
        margin-top: 12px;
        padding-top: 12px;
    }

    .cabin-baggage-toggle-label {
        gap: 10px;
    }

    .cabin-baggage-checkbox {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .cabin-baggage-toggle-text {
        font-size: 14px;
    }
}
