/* Channels & VOD Selector - Checkout Styles
 * Colors/fonts matched to the live checkout page's own palette:
 * page bg #F4F8FA, card bg #FFFFFF, border #D1D5DB, heading/body text
 * #1A1E23, muted label text #566376, accent/button navy #1B2841,
 * font-family Inter (Poppins for the big page title only).
 */

#cvs-checkout-section {
    /* The checkout form is a flex row (billing column + order-summary
     * column side by side); without this the picker becomes a 3rd flex
     * item sized to its own content and leaves empty space next to it. */
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    background: #fff;
    color: #1a1e23;
    padding: 28px 32px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 30px;
    font-family: Inter, sans-serif;
}

#cvs-checkout-section h3 {
    color: #1a1e23;
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
}

.cvs-subtitle {
    color: #566376;
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 20px 0;
}

/* Search Input */
.cvs-search-input {
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #1a1e23;
    font-family: Inter, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.cvs-search-input::placeholder {
    color: #8a93a3;
}

.cvs-search-input:focus {
    outline: none;
    border-color: #1b2841;
    box-shadow: 0 0 0 3px rgba(27, 40, 65, 0.12);
}

/* Two Column Layout */
.cvs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 4px;
}

.cvs-column {
    min-height: 300px;
}

.cvs-column h4 {
    color: #566376;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

/* Items List - "expanded" so most of the catalog is visible without
 * endless scrolling inside a tiny box. */
.cvs-items-list {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 10px;
}

.cvs-items-list::-webkit-scrollbar {
    width: 6px;
}

.cvs-items-list::-webkit-scrollbar-track {
    background: #f4f8fa;
    border-radius: 3px;
}

.cvs-items-list::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 3px;
}

.cvs-items-list::-webkit-scrollbar-thumb:hover {
    background: #a7a9ad;
}

/* Divider between the pinned package items and the full A-Z list */
.cvs-divider {
    color: #8a93a3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 4px 0 10px 0;
    padding-top: 10px;
    border-top: 1px dashed #d1d5db;
}

/* Item Label */
.cvs-item-label {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #f4f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cvs-item-label:hover {
    background: #fff;
    border-color: #1b2841;
}

.cvs-item-label:has(input:checked) {
    background: #eef1f6;
    border-color: #1b2841;
}

.cvs-item-label--package {
    background: #f4f8fa;
    border-color: #d1d5db;
}

.cvs-item-label--package span:first-of-type {
    font-weight: 600;
}

.cvs-item-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1b2841;
}

.cvs-item-label span:first-of-type {
    flex: 1;
    color: #1a1e23;
    font-size: 14px;
}

.cvs-item-label .cvs-price {
    color: #2a7a2a;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    #cvs-checkout-section {
        padding: 20px;
    }

    .cvs-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cvs-items-list {
        max-height: 320px;
    }
}

/* Empty State */
.cvs-items-list > p {
    color: #8a93a3;
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* Accessibility */
.cvs-item-label:focus-within {
    outline: 2px solid #1b2841;
    outline-offset: 2px;
}

/* Hidden field */
#cvs_selected_items {
    display: none;
}
