
/* Header Section */
.cb-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.cb-header-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
}

.cb-header-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Base Card Style */
.cb-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.cb-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

/* Badges */
.cb-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.cb-badge-green {
    background-color: #DCFCE7;
    color: #16A34A;
}

.cb-badge-blue {
    background-color: #DBEAFE;
    color: #2563EB;
}

/* Top Booking Summary */
.cb-booking-summary-card {
    display: flex;
    gap: 24px;
    align-items: center;
}

.cb-summary-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cb-summary-content {
    flex-grow: 1;
}

.cb-summary-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .cb-summary-title-row h2 {
        font-size: 16px;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 6px 0;
    }

.cb-booking-id {
    font-size: 13px;
    color: #6b7280;
}

/* Form Grid & Inputs */
.cb-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.cb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.cb-read-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cb-form-control {
    appearance: none;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .cb-form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background-color: #ffffff;
    }

/* Info Boxes */
.cb-info-box {
    border-radius: 10px;
    padding: 18px 22px;
}

.cb-info-primary {
    background-color: #FFEDED;
    border: 1px solid #E0E7FF;
}

.cb-info-warning {
    background-color: #FEFCE8;
    border: 1px solid #FEF08A;
}

.cb-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cb-info-primary .cb-info-title {
    color: #36483D;
}

    .cb-info-primary .cb-info-title svg {
        color: #3B82F6;
    }

.cb-info-warning .cb-info-title {
    color: #854D0E;
}

    .cb-info-warning .cb-info-title svg {
        color: #EAB308;
    }

.cb-info-list {
    margin: 0;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.7;
}

.cb-info-primary .cb-info-list {
    color: #;
}

.cb-info-list li {
    margin-bottom: 4px;
}

    .cb-info-list li:last-child {
        margin-bottom: 0;
    }

.cb-info-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.cb-info-warning .cb-info-text {
    color: #A16207;
}

/* Key Value Rows (Calc & Guest Info) */
.cb-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 13px;
}

.cb-kv-lbl {
    color: #4B5563;
    font-weight: 500;
    flex-shrink: 0;
}

.cb-kv-val {
    color: #111827;
    font-weight: 600;
    text-align: right;
    max-width: 65%;
    line-height: 1.4;
}

.cb-divider {
    border: 0;
    height: 1px;
    background-color: #E5E7EB;
    margin: 16px 0;
}

/* Method Grid */
.cb-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.cb-method-box {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-method-lbl {
    font-size: 11px;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
}

.cb-method-val {
    font-size: 13px;
    color: #1F2937;
    font-weight: 600;
}

/* Buttons */
.cb-btn-outline {
    background-color: #ffffff;
    border: 1px solid #D1D5DB;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

    .cb-btn-outline:hover {
        background-color: #F9FAFB;
        border-color: #9CA3AF;
    }

.cb-btn-primary {
    background-color: #2563EB;
    border: 1px solid #2563EB;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

    .cb-btn-primary:hover {
        background-color: #1D4ED8;
    }

.cb-btn-danger {
    background-color: #DC2626;
    border: 1px solid #DC2626;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
}

    .cb-btn-danger:hover {
        background-color: #B91C1C;
    }

.cb-bottom-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-bottom: 32px;
}

/* Modals */
.cb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.cb-modal-container {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    animation: cbScaleIn 0.3s ease-out;
}

@keyframes cbScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cb-modal-icon-wrapper {
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
}

.cb-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

    .cb-modal-title.red {
        color: #1F2937;
    }
    /* Modernized to dark gray instead of pure red */
    .cb-modal-title.green {
        color: #1F2937;
    }

.cb-modal-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.cb-modal-data-box {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.cb-m-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

    .cb-m-row:last-child {
        margin-bottom: 0;
    }

.cb-m-lbl {
    color: #6B7280;
    font-weight: 500;
}

.cb-m-val {
    font-weight: 600;
    color: #1F2937;
}

    .cb-m-val.red {
        color: #DC2626;
    }

    .cb-m-val.green {
        color: #10B981;
    }

.cb-modal-actions {
    display: flex;
    gap: 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cb-booking-summary-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cb-summary-img {
        width: 100%;
        height: 160px;
    }

    .cb-form-grid {
        grid-template-columns: 1fr;
    }

    .cb-method-grid {
        grid-template-columns: 1fr;
    }

    .cb-header-row {
        flex-direction: column;
    }

    .cb-bottom-actions {
        flex-direction: column;
    }

        .cb-bottom-actions button {
            width: 100%;
        }
}

