/* ==========================================================
   Course Batch Booking — Frontend Styles
   ========================================================== */

/* ---- Container ---- */
.cbb-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==========================================================
   FILTER BAR
   ========================================================== */

.cbb-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.cbb-filter-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbb-month-btn {
    padding: 8px 18px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.cbb-month-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

.cbb-month-btn--active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.cbb-month-btn--active:hover {
    background: #1a5a8e;
    border-color: #1a5a8e;
    color: #fff;
}

.cbb-filter-right {
    display: flex;
    align-items: center;
}

.cbb-result-count {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* ==========================================================
   LOADING STATE
   ========================================================== */

.cbb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 15px;
    gap: 16px;
}

.cbb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: cbb-spin 0.7s linear infinite;
}

@keyframes cbb-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   NO RESULTS
   ========================================================== */

.cbb-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.cbb-no-results .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #dee2e6;
    margin-bottom: 12px;
}

.cbb-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ==========================================================
   MONTH GROUP
   ========================================================== */

.cbb-month-group {
    margin-bottom: 32px;
}

.cbb-month-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.cbb-month-icon {
    font-size: 22px;
    line-height: 1;
}

.cbb-month-count {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    background: #f0f0f1;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
}

/* ==========================================================
   CARDS GRID
   ========================================================== */

.cbb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================================
   BATCH CARD
   ========================================================== */

.cbb-batch-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.cbb-batch-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cbb-batch-card--full {
    opacity: 0.85;
}

/* ---- Status Ribbon ---- */
.cbb-card-status {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 6px;
    z-index: 1;
}

.cbb-card-status--open {
    background: #00a32a;
}

.cbb-card-status--upcoming {
    background: #2271b1;
}

.cbb-card-status--ongoing {
    background: #e67e22;
}

.cbb-card-status--completed {
    background: #6c757d;
}

.cbb-card-status--cancelled {
    background: #d63638;
}

.cbb-card-status--closed {
    background: #8b5cf6;
}

/* ---- Card Header ---- */
.cbb-card-header {
    padding: 20px 20px 12px;
}

.cbb-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 6px;
    line-height: 1.3;
    padding-right: 80px; /* space for status ribbon */
}

.cbb-card-desc {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* ---- Card Body: Details ---- */
.cbb-card-body {
    padding: 0 20px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cbb-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cbb-detail-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cbb-detail-text {
    display: flex;
    flex-direction: column;
}

.cbb-detail-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cbb-detail-value {
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
}

.cbb-fee {
    color: #00a32a;
    font-size: 16px;
    font-weight: 700;
}

/* ---- Seat Progress ---- */
.cbb-card-seats {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f1;
}

.cbb-seats-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: #495057;
}

.cbb-seats-label strong {
    color: #1d2327;
}

.cbb-seats-full-text {
    color: #d63638 !important;
}

.cbb-seats-pct {
    font-weight: 700;
    color: #6c757d;
    font-size: 12px;
}

.cbb-seats-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}

.cbb-seats-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 2px;
}

/* ---- Card Footer ---- */
.cbb-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f1;
    margin-top: auto;
}

/* ---- Buttons ---- */
.cbb-btn {
    display: block;
    width: 100%;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    box-sizing: border-box;
}

.cbb-btn--book {
    background: #2271b1;
    color: #fff;
}

.cbb-btn--book:hover {
    background: #1a5a8e;
    color: #fff;
    text-decoration: none;
}

.cbb-btn--request {
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #dee2e6;
}

.cbb-btn--request:hover {
    background: #e9ecef;
    color: #1d2327;
    text-decoration: none;
}

/* ==========================================================
   PAGINATION
   ========================================================== */

.cbb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cbb-pagination:empty {
    display: none;
}

.cbb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.cbb-page-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    text-decoration: none;
}

.cbb-page-btn--active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    cursor: default;
}

.cbb-page-btn--active:hover {
    background: #2271b1;
    color: #fff;
}

.cbb-page-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cbb-page-dots {
    padding: 0 4px;
    color: #6c757d;
    font-size: 14px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 1024px) {
    .cbb-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .cbb-cards-grid {
        grid-template-columns: 1fr;
    }

    .cbb-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cbb-filter-left {
        width: 100%;
    }

    .cbb-month-btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    .cbb-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cbb-card-title {
        font-size: 16px;
        padding-right: 0;
    }

    .cbb-card-status {
        position: static;
        display: inline-block;
        margin: 16px 16px 0;
    }

    .cbb-month-heading {
        font-size: 18px;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .cbb-frontend {
        padding: 12px 0;
    }

    .cbb-filter-bar {
        padding: 12px;
    }

    .cbb-month-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cbb-card-header {
        padding: 16px 16px 10px;
    }

    .cbb-card-body {
        padding: 0 16px 12px;
    }

    .cbb-card-seats {
        padding: 10px 16px;
    }

    .cbb-card-footer {
        padding: 12px 16px;
    }
}

/* ==========================================================
   BOOKING FORM PAGE
   ========================================================== */

/* ---- Booking Wrapper ---- */
.cbb-booking-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ---- Batch Info Summary ---- */
.cbb-booking-batch-info {
    background: linear-gradient(135deg, #1a5a8e 0%, #2271b1 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    margin-bottom: 28px;
}

.cbb-booking-batch-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    line-height: 1.3;
}

.cbb-booking-batch-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cbb-booking-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cbb-booking-meta-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cbb-booking-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.8;
    font-weight: 600;
}

.cbb-booking-meta-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.cbb-booking-fee {
    color: #90ee90;
    font-size: 18px;
    font-weight: 700;
}

.cbb-booking-seats-count {
    color: #ffd700;
}

/* ---- Form Styles ---- */
.cbb-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px;
}

.cbb-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
}

.cbb-form-section-title:not(:first-of-type) {
    margin-top: 28px;
}

.cbb-form-row {
    margin-bottom: 16px;
}

.cbb-form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cbb-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.cbb-required {
    color: #d63638;
    font-weight: 700;
}

.cbb-phone-wrap { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.cbb-phone-wrap .cbb-country-code {
    flex: 0 0 auto;
    width: 130px;
    padding: 10px 6px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    box-sizing: border-box;
}
.cbb-phone-wrap .cbb-country-code:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}
.cbb-phone-input-wrap { flex: 1; min-width: 0; }
.cbb-phone-input-wrap input[type="tel"] { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) {
    .cbb-phone-wrap .cbb-country-code { width: 110px; font-size: 12px; padding: 10px 4px; }
}

.cbb-form-field input[type="text"],
.cbb-form-field input[type="email"],
.cbb-form-field input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    background: #fff;
    color: #1d2327;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cbb-form-field input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.cbb-form-field input[readonly] {
    background: #f6f7f7;
    color: #646970;
    cursor: not-allowed;
}

/* Google Places Autocomplete dropdown */
.pac-container {
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 0 0 8px 8px;
    border: 1px solid #dcdcde;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #f0f0f1;
}

.pac-item:hover {
    background: #f0f6fc;
}

.pac-item-query {
    font-size: 14px;
    color: #1d2327;
}

.pac-icon {
    margin-right: 8px;
}

/* Field-level validation error */
.cbb-field-error {
    display: none;
    font-size: 12px;
    color: #d63638;
    margin-top: 4px;
    font-weight: 500;
}

.cbb-form-field--error input {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.12);
}

.cbb-form-field--error .cbb-field-error {
    display: block;
}

/* ---- Form Messages ---- */
.cbb-form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0;
}

.cbb-form-message--error {
    background: #fcf0f0;
    border: 1px solid #d63638;
    color: #8a1e1e;
}

.cbb-form-message--success {
    background: #f0faf0;
    border: 1px solid #00a32a;
    color: #0a5c0a;
}

/* ---- Form Actions ---- */
.cbb-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.cbb-form-actions .cbb-btn {
    width: auto;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbb-btn--submit {
    flex: 2 !important;
    padding: 14px 24px;
    font-size: 16px;
}

.cbb-btn--cancel {
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #dee2e6;
}

.cbb-btn--cancel:hover {
    background: #e9ecef;
    color: #1d2327;
    text-decoration: none;
}

.cbb-btn--submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Small spinner for button */
.cbb-spinner--small {
    width: 18px;
    height: 18px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

.cbb-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   BOOKING SUCCESS
   ========================================================== */

.cbb-booking-success {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 28px;
}

.cbb-success-icon {
    width: 72px;
    height: 72px;
    background: #00a32a;
    color: #fff;
    font-size: 36px;
    line-height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: 700;
}

.cbb-booking-success h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
}

.cbb-success-ref {
    font-size: 16px;
    color: #495057;
    margin: 0 0 24px;
}

.cbb-booking-ref-number {
    font-size: 20px;
    color: #2271b1;
    letter-spacing: 1px;
}

.cbb-success-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto 20px;
    text-align: left;
    max-width: 400px;
}

.cbb-success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.cbb-success-detail-row:last-child {
    border-bottom: none;
}

.cbb-success-detail-label {
    color: #6c757d;
    font-weight: 500;
}

.cbb-success-detail-value {
    color: #1d2327;
    font-weight: 600;
}

.cbb-success-note {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 24px;
    font-style: italic;
}

.cbb-success-actions .cbb-btn {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
}

/* ==========================================================
   BOOKING UNAVAILABLE
   ========================================================== */

.cbb-booking-unavailable {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    padding: 40px 20px;
}

.cbb-unavailable-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.cbb-booking-unavailable h2 {
    font-size: 22px;
    color: #1d2327;
    margin: 0 0 12px;
}

.cbb-booking-unavailable p {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 20px;
    line-height: 1.6;
}

.cbb-booking-unavailable .cbb-btn {
    display: inline-block;
    width: auto;
    padding: 10px 24px;
}

/* ==========================================================
   BOOKING FORM RESPONSIVE
   ========================================================== */

@media screen and (max-width: 768px) {
    .cbb-booking-batch-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cbb-form-row--two {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cbb-booking-form {
        padding: 20px;
    }

    .cbb-booking-batch-info {
        padding: 20px;
    }

    .cbb-form-actions {
        flex-direction: column;
    }

    .cbb-btn--submit {
        flex: 1 !important;
    }
}

@media screen and (max-width: 480px) {
    .cbb-booking-wrap {
        padding: 0 0 20px;
    }

    .cbb-booking-form {
        padding: 16px;
        border-radius: 8px;
    }

    .cbb-booking-batch-info {
        padding: 16px;
        border-radius: 8px;
    }

    .cbb-booking-batch-title {
        font-size: 18px;
    }

    .cbb-booking-success {
        padding: 32px 16px;
    }
}

/* ---- Seat Request Form ---- */
.cbb-seat-request-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.cbb-seat-request-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3cd;
    color: #996800;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #f0d68a;
}
.cbb-badge-icon {
    font-size: 16px;
}
.cbb-seat-request-notice {
    background: #e8f4fd;
    border: 1px solid #c5dff0;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 24px;
    line-height: 1.6;
}
.cbb-seat-request-notice strong {
    color: #2271b1;
}
.cbb-optional {
    font-weight: 400;
    color: #646970;
    font-size: 12px;
}

/* Seat Request Success */
.cbb-seat-request-success {
    text-align: center;
    padding: 48px 24px;
    max-width: 560px;
    margin: 0 auto;
}
.cbb-seat-request-success .cbb-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.cbb-seat-request-success h2 {
    font-size: 24px;
    color: #996800;
    margin: 0 0 12px;
}
.cbb-seat-request-success .cbb-success-ref {
    font-size: 16px;
    margin: 0 0 16px;
    color: #1d2327;
}
.cbb-seat-request-success p {
    color: #646970;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
}
.cbb-seat-request-success .cbb-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Seat Request Form — Textarea */
.cbb-booking-form textarea {
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cbb-booking-form textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

/* ==========================================================
   LOYALTY DISCOUNT BANNER
   ========================================================== */

.cbb-loyalty-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0faf0 0%, #e8f5e9 100%);
    border: 1px solid #c3e6c3;
    border-left: 4px solid #00a32a;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.cbb-loyalty-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.cbb-loyalty-info {
    flex: 1;
}
.cbb-loyalty-title {
    font-size: 15px;
    font-weight: 700;
    color: #00a32a;
    margin-bottom: 4px;
}
.cbb-loyalty-desc {
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}
.cbb-loyalty-amounts {
    text-align: right;
    flex-shrink: 0;
}
.cbb-loyalty-original {
    font-size: 12px;
    margin-bottom: 4px;
}
.cbb-loyalty-strikethrough {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}
.cbb-loyalty-save {
    color: #00a32a;
    font-weight: 600;
    font-size: 12px;
}
.cbb-loyalty-final {
    font-size: 22px;
    font-weight: 700;
    color: #00a32a;
}

@media (max-width: 600px) {
    .cbb-loyalty-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .cbb-loyalty-amounts {
        text-align: center;
    }
}

/* ==========================================================
   COUPON CODE SECTION
   ========================================================== */

.cbb-coupon-section {
    margin-bottom: 20px;
}

.cbb-coupon-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cbb-coupon-input-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 44px;
    box-sizing: border-box;
}

.cbb-coupon-input-wrap input[type="text"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.cbb-coupon-input-wrap input[type="text"]:disabled {
    background: #f6f7f7;
    color: #646970;
}

.cbb-btn--coupon {
    flex-shrink: 0;
    width: 120px;
    height: 44px;
    padding: 0 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    box-sizing: border-box;
}

.cbb-btn--coupon:hover {
    background: #135e96;
}

.cbb-btn--coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cbb-coupon-result {
    margin-top: 10px;
}

.cbb-coupon-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #edfaef;
    border: 1px solid #00a32a;
    border-radius: 6px;
    font-size: 14px;
}

.cbb-coupon-tag {
    background: #00a32a;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.cbb-coupon-savings {
    color: #00a32a;
    font-weight: 600;
    flex: 1;
}

.cbb-coupon-remove {
    background: none;
    border: none;
    color: #d63638;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    font-weight: 700;
}

.cbb-coupon-remove:hover {
    color: #a00;
}

.cbb-coupon-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #d63638;
    border-radius: 6px;
    color: #d63638;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================
   PAYMENT BREAKDOWN (Booking Form — Partial Payments)
   ========================================================== */

.cbb-payment-breakdown {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.cbb-payment-breakdown h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.cbb-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #495057;
}

.cbb-breakdown-row strong {
    color: #1d2327;
}

.cbb-breakdown-row--highlight {
    background: #e8f5e9;
    margin: 4px -12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #00a32a;
}

.cbb-breakdown-row--balance {
    color: #e67e22;
    font-size: 13px;
    font-style: italic;
}

.cbb-breakdown-row--balance strong {
    color: #e67e22;
}
