/**
 * SSR (Seat, Baggage, Meal) Options Display Enhancements
 * Provides clear, organized display of available add-ons with prices
 */

/* SSR Option Group Container */
.c2h-ssr-option-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef5 100%);
    border: 1px solid #d4dce6;
    border-radius: 6px;
    padding: 12px !important;
    margin: 8px 0 !important;
    transition: all 0.2s ease;
}

.c2h-ssr-option-group:hover {
    border-color: #b0c4de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* SSR Label */
.c2h-ssr-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.c2h-ssr-label svg {
    opacity: 0.7;
}

/* SSR Select Dropdowns */
.c2h-ssr-select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    background-color: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.c2h-ssr-select:focus {
    outline: none;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.c2h-ssr-select:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* SSR Options List (Preview) */
.c2h-ssr-options-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow-y: auto;
    max-height: 80px;
}

.c2h-ssr-options-list > div {
    padding: 8px;
}

.c2h-ssr-options-list > div > div {
    padding: 4px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}

.c2h-ssr-options-list > div > div:last-child {
    border-bottom: none;
}

/* Seat Selection Button */
.c2h-seat-trigger-btn {
    width: 100% !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    color: #333 !important;
    transition: all 0.2s ease;
}

.c2h-seat-trigger-btn:hover:not(:disabled) {
    border-color: #888;
    background-color: #f9f9f9 !important;
}

.c2h-seat-trigger-btn:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* SSR Hint Text */
.c2h-ssr-hint {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 4px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: italic;
}

/* SSR Charge Lines in Price Breakdown */
.c2h-ssr-charge-line {
    padding: 8px 0;
    border-top: 1px solid #e6e6e6;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c2h-ssr-charge-line span:first-child {
    color: #666;
    font-weight: 500;
}

.c2h-ssr-charge-line strong {
    color: #d97706;
    font-weight: 600;
}

/* Price Display Format */
.c2h-ssr-select option {
    padding: 8px;
    line-height: 1.5;
    background: #fff;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .c2h-ssr-option-group {
        padding: 10px !important;
        margin: 6px 0 !important;
    }

    .c2h-ssr-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .c2h-ssr-select {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .c2h-ssr-options-list {
        max-height: 60px;
        font-size: 11px;
    }

    .c2h-seat-trigger-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* Price Hint Below Seat Button */
.c2h-seat-price-hint {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

/* SSR Note Header */
.c2h-ssr-note {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 8px 12px !important;
    border-left: 4px solid #2196F3;
    border-radius: 2px;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    font-size: 12px;
    font-weight: 600;
    color: #1565c0;
}

/* Accessibility */
.c2h-ssr-select:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.c2h-seat-trigger-btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Screen Reader Only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
