/**
 * OSAC Confirmation View
 * Premium Resort Design - Two Box Layout
 *
 * Design Context: Public-facing (Brand Design)
 * Tokens: --os-* (Brand Tokens)
 * Tokenized: 2026-03-12
 */

/* =========================================================
   BOX 1: CONFIRMATION (Hauptbox)
   ========================================================= */
.osb-confirmation-box {
    max-width: 480px;
    margin: 2rem auto 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.06);
    animation: osb-confirmation-enter 0.3s ease-out;
}

@keyframes osb-confirmation-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header (centered) */
.osb-confirmation-header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--os-bg, #FDFCF9);
    border-bottom: 1px solid var(--os-border, #E2DDD3);
}

.osb-confirmation-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--os-success, #10B981);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.osb-confirmation-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--os-primary, #1C2E3F);
    letter-spacing: -0.01em;
}

.osb-confirmation-subtitle {
    margin: 0.375rem 0 0 0;
    font-size: 0.875rem;
    color: var(--os-text-muted, #7C8694);
    font-weight: 400;
}

/* Booking Details (clean table layout) */
.osb-confirmation-details {
    padding: 1.25rem 1.5rem;
}

.osb-confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--os-bg-cream, #F7F4EF);
}

.osb-confirmation-row:last-child {
    border-bottom: none;
}

.osb-confirmation-row--total {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--os-border, #E2DDD3);
    border-bottom: none;
}

.osb-confirmation-label {
    font-size: 0.8125rem;
    color: var(--os-text-light, #A0A8B4);
    font-weight: 400;
    flex-shrink: 0;
}

.osb-confirmation-value {
    font-size: 0.9375rem;
    color: var(--os-primary, #1C2E3F);
    font-weight: 500;
    text-align: right;
}

.osb-confirmation-row--total .osb-confirmation-label {
    font-size: 0.875rem;
    color: var(--os-text-muted, #7C8694);
    font-weight: 500;
}

.osb-confirmation-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--os-primary, #1C2E3F);
}

/* Reference Info (centered, subtle) */
.osb-confirmation-refs {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 1.5rem;
    background: var(--os-bg, #FDFCF9);
    border-top: 1px solid var(--os-bg-cream, #F7F4EF);
}

.osb-confirmation-ref {
    text-align: center;
}

.osb-confirmation-ref-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--os-text-light, #A0A8B4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.osb-confirmation-ref-value {
    font-size: 0.875rem;
    color: var(--os-primary, #1C2E3F);
    font-weight: 600;
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

/* =========================================================
   BOX 2: NEXT STEPS (unified container)
   White card matching confirmation box – holds cross-sell
   cards and tertiary footer links in one cohesive block
   ========================================================= */
.osb-nextsteps {
    max-width: 480px;
    margin: 0.875rem auto 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.06);
    animation: osb-confirmation-enter 0.3s ease-out 0.1s both;
}

.osb-nextsteps__headline {
    margin: 0 0 0.25rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--os-primary, #1C2E3F);
    text-align: center;
    letter-spacing: 0.01em;
}

/* ── Cross-Sell: Frosted Glass Cards (floating) ── */
.osb-crosssell__card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem 1.375rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-5px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
}

.osb-crosssell__card:hover {
    transform: translateY(0);
    text-decoration: none;
}

/* Resort: soft ocean tint — floating with colored shadow */
.osb-crosssell__card--resort {
    background: linear-gradient(135deg, rgba(235, 245, 255, 0.85) 0%, rgba(219, 234, 254, 0.65) 100%);
    border-color: rgba(59, 130, 246, 0.12);
    box-shadow:
        0 4px 8px rgba(59, 130, 246, 0.10),
        0 8px 24px rgba(59, 130, 246, 0.10),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.osb-crosssell__card--resort:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Homestay: soft garden tint — floating with colored shadow */
.osb-crosssell__card--homestay {
    background: linear-gradient(135deg, rgba(236, 253, 243, 0.85) 0%, rgba(209, 250, 229, 0.65) 100%);
    border-color: rgba(34, 197, 94, 0.12);
    box-shadow:
        0 4px 8px rgba(34, 197, 94, 0.10),
        0 8px 24px rgba(34, 197, 94, 0.10),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.osb-crosssell__card--homestay:hover {
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Card Content */
.osb-crosssell__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Resort themed text */
.osb-crosssell__card--resort .osb-crosssell__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e40af;
    line-height: 1.3;
}

.osb-crosssell__card--resort .osb-crosssell__desc {
    font-size: 0.6875rem;
    color: #60a5fa;
    line-height: 1.3;
    letter-spacing: 0.015em;
}

/* Homestay themed text */
.osb-crosssell__card--homestay .osb-crosssell__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--os-success-dark, #059669);
    line-height: 1.3;
}

.osb-crosssell__card--homestay .osb-crosssell__desc {
    font-size: 0.6875rem;
    color: #4ade80;
    line-height: 1.3;
    letter-spacing: 0.015em;
}

/* CTA Button (full-width, soft) */
.osb-crosssell__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.osb-crosssell__card--resort .osb-crosssell__action {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.osb-crosssell__card--resort:hover .osb-crosssell__action {
    background: rgba(59, 130, 246, 0.13);
    border-color: rgba(59, 130, 246, 0.30);
}

.osb-crosssell__card--homestay .osb-crosssell__action {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.osb-crosssell__card--homestay:hover .osb-crosssell__action {
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.30);
}

/* ── Tertiary Footer Links (sub-items) ── */
.osb-nextsteps__footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--os-bg-cream, #F7F4EF);
}

.osb-nextsteps__link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--os-primary, #1C2E3F);
    background: var(--os-bg-cream, #F7F4EF);
    border: 1px solid var(--os-border, #E2DDD3);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.osb-nextsteps__link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.osb-nextsteps__link:hover {
    color: var(--os-primary, #1C2E3F);
    background: var(--os-bg-cream, #F7F4EF);
    border-color: var(--os-border, #E2DDD3);
    text-decoration: none;
}

.osb-nextsteps__link:hover svg {
    opacity: 0.85;
}

/* =========================================================
   FOOTER LINK
   ========================================================= */
.osb-newbooking-link {
    display: block;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--os-text-muted, #7C8694);
    text-decoration: none;
    transition: color 0.2s ease;
}

.osb-newbooking-link:hover {
    color: var(--os-success, #10B981);
    text-decoration: underline;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.osb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Primary Button (Green) */
.osb-btn-primary {
    background: var(--os-success, #10B981);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    width: 100%;
}

.osb-btn-primary:hover {
    background: var(--os-success-dark, #059669);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Secondary Button (Outline) */
.osb-btn-secondary {
    background: #fff;
    color: var(--os-primary, #1C2E3F);
    border: 1px solid var(--os-border, #E2DDD3);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.osb-btn-secondary:hover {
    background: #fff;
    border-color: var(--os-success, #10B981);
    color: var(--os-success, #10B981);
    text-decoration: none;
}

/* =========================================================
   CONFIRMATION CTA (centered, full-width button container)
   ========================================================= */
.osb-confirmation-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* =========================================================
   NEXT STEPS BOX (Manage Booking container)
   ========================================================= */
.osb-nextsteps-box {
    max-width: 480px;
    margin: 1rem auto 0;
    text-align: center;
}

.osb-nextsteps-buttons {
    display: flex;
    justify-content: center;
}

/* Manage Booking Button (stronger secondary CTA) */
.osb-btn-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--os-primary, #1C2E3F);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.2);
}

.osb-btn-manage:hover {
    background: color-mix(in srgb, var(--os-primary, #1C2E3F) 85%, white);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(30, 58, 95, 0.3);
    transform: translateY(-1px);
}

/* =========================================================
   ACCOUNT HINT (for unregistered guests)
   ========================================================= */
.osb-account-hint {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: var(--osb-warning-light, #fef3c7);
    border: 1px solid var(--osb-warning, #f59e0b);
    border-radius: 8px;
    text-align: center;
}

.osb-account-hint__text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--osb-warning-dark, #b45309);
    line-height: 1.5;
}

/* =========================================================
   COMPACT DESIGN (Standard Popup Layout)
   ========================================================= */
.osb-confirmation-box--compact {
    text-align: center;
}

.osb-confirmation-box--compact .osb-confirmation-header {
    border-bottom: none;
    padding-bottom: 1rem;
}

/* Confirmation Icon (SVG) */
.osb-confirmation-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 12px;
}

.osb-confirmation-icon svg {
    width: 100%;
    height: 100%;
}

.osb-confirmation-icon--success {
    background: var(--os-success-light, #d1fae5);
}

.osb-confirmation-icon--success svg {
    stroke: var(--os-success, #10B981);
}

.osb-confirmation-icon--hold {
    background: var(--osb-brand-primary-light);
}

.osb-confirmation-icon--hold svg {
    stroke: var(--osb-brand-primary);
}

/* Booking Reference (centered) */
.osb-booking-ref {
    text-align: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--os-border, #E2DDD3);
}

.osb-booking-ref__label {
    display: block;
    font-size: 0.6875rem;
    color: var(--os-text-light, #A0A8B4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 4px;
}

.osb-booking-ref__value {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--osb-brand-primary);
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.025em;
}

/* Stay Summary (compact inline layout) */
.osb-booking-summary {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--os-border, #E2DDD3);
}

.osb-booking-summary__dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.osb-booking-summary__date {
    font-weight: 600;
    color: var(--os-primary, #1C2E3F);
    font-size: 1rem;
}

.osb-booking-summary__arrow {
    color: var(--osb-brand-primary);
    font-size: 1.125rem;
}

.osb-booking-summary__details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.osb-booking-summary__item {
    color: var(--os-text-muted, #7C8694);
    font-size: 0.875rem;
}

.osb-booking-summary__item:not(:last-child)::after {
    content: '·';
    margin-left: 6px;
    color: var(--os-border, #E2DDD3);
}

/* Status Display Badge */
.osb-status-display {
    text-align: center;
    padding: 16px 0;
}

.osb-status-display__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.osb-status-display__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: osb-pulse 2s ease-in-out infinite;
}

@keyframes osb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.osb-status-display__badge--confirmed {
    background: var(--os-success-light, #d1fae5);
    color: var(--os-success-dark, #059669);
    border: 2px solid var(--os-success, #10B981);
}

.osb-status-display__badge--confirmed .osb-status-display__dot {
    background: var(--os-success, #10B981);
}

.osb-status-display__badge--hold {
    background: var(--osb-brand-primary-light);
    color: var(--osb-brand-primary);
    border: 2px solid var(--osb-brand-primary);
}

.osb-status-display__badge--hold .osb-status-display__dot {
    background: var(--osb-brand-primary);
}

/* Booking Total Card */
.osb-booking-total {
    background: var(--os-bg-cream, #F7F4EF);
    border: 1px solid var(--os-border, #E2DDD3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 16px 0;
}

.osb-booking-total__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--os-text-muted, #7C8694);
    margin-bottom: 8px;
}

.osb-booking-total__amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--osb-brand-primary);
    letter-spacing: -0.01em;
}

.osb-booking-total__note {
    display: block;
    font-size: 0.75rem;
    color: var(--os-text-muted, #7C8694);
    margin-top: 6px;
}

/* Agency variant (green tint) */
.osb-booking-total--agency {
    background: var(--os-success-light, #d1fae5);
    border-color: var(--os-success, #10B981);
}

.osb-booking-total--agency .osb-booking-total__label,
.osb-booking-total--agency .osb-booking-total__amount {
    color: var(--os-success-dark, #059669);
}

/* Commission Info (agencies) */
.osb-commission-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--os-success-light, #d1fae5);
    border: 1px solid var(--os-success, #10B981);
    border-radius: 6px;
    margin-bottom: 12px;
}

.osb-commission-info__label {
    font-size: 0.8125rem;
    color: var(--os-text-muted, #7C8694);
}

.osb-commission-info__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--os-success-dark, #059669);
}

/* Hold Timer Notice */
.osb-hold-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--osb-warning-light, #fef3c7);
    border-radius: 8px;
    margin: 16px 1.5rem;
}

.osb-hold-notice svg {
    width: 18px;
    height: 18px;
    stroke: var(--osb-warning, #f59e0b);
    flex-shrink: 0;
}

.osb-hold-notice span {
    font-size: 0.875rem;
    color: var(--osb-warning-dark, #b45309);
    font-weight: 500;
}

/* Full-width button */
.osb-btn--full {
    width: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 520px) {

    .osb-confirmation-box,
    .osb-nextsteps,
    .osb-newbooking-link {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: none;
    }

    .osb-confirmation-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .osb-confirmation-checkmark {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .osb-confirmation-title {
        font-size: 1.25rem;
    }

    .osb-confirmation-details {
        padding: 1rem 1.25rem;
    }

    .osb-confirmation-refs {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .osb-hold-notice {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }

    .osb-nextsteps {
        padding: 1.25rem;
    }

    .osb-crosssell__card {
        padding: 1rem 1.125rem;
        gap: 0.75rem;
    }

    .osb-confirmation-price {
        font-size: 1.25rem;
    }
}