/**
 * Cloudstay Checkout & Confirmation Styles (v1.1)
 *
 * Uses design tokens from design-tokens.css
 *
 * @package Cloudstay
 * @since 1.3.0
 */

/* ========================================
   Variables - Widget Builder → Design Tokens → Fallbacks

   Design tokens (--cs-gray-*, --cs-primary, etc.) are defined in design-tokens.css.
   This block adds checkout-specific variables that read from the widget builder
   (--csg-co-*) first, then fall back to design tokens or hardcoded values.
   ======================================== */
.cloudstay-checkout-page,
.cloudstay-confirmation-page {
    /* Border radius - Widget builder → Design tokens */
    --cs-radius: var(--csg-co-summary-radius, var(--cs-radius-lg, 12px));
    --cs-radius-sm: var(--csg-co-input-radius, var(--cs-radius-md, 8px));

    /* Page-specific variables from widget builder */
    --cs-page-bg: var(--csg-co-page-bg, #f9fafb);
    --cs-card-bg: var(--csg-co-card-bg, #ffffff);
    --cs-text-primary: var(--csg-co-text-primary, var(--cs-gray-900));
    --cs-text-secondary: var(--csg-co-text-secondary, var(--cs-gray-600));
    --cs-border-color: var(--csg-co-border-color, var(--cs-gray-200));
    --cs-label-color: var(--csg-co-label-color, var(--cs-gray-700));
    --cs-input-bg: var(--csg-co-input-bg, #ffffff);
    --cs-input-border: var(--csg-co-input-border, var(--cs-gray-300));
    --cs-input-focus-border: var(--csg-co-input-focus-border, var(--cs-primary));
    --cs-input-height: var(--csg-co-input-height, 48px);
    --cs-summary-bg: var(--csg-co-summary-bg, #ffffff);
    --cs-summary-border: var(--csg-co-summary-border, var(--cs-gray-200));
    --cs-btn-primary-bg: var(--csg-co-submit-bg, var(--csg-accent, #111827));
    --cs-btn-primary-text: var(--csg-co-submit-text, #ffffff);
    --cs-btn-primary-hover: var(--csg-co-submit-hover-bg, var(--csg-accent-hover, var(--csg-accent, #374151)));
    --cs-accent-color: var(--csg-co-accent-color, var(--cs-primary));
    --cs-container-width: var(--csg-co-container-width, 1200px);
    --cs-sidebar-width: var(--csg-co-sidebar-width, 400px);
    --cs-section-gap: var(--csg-co-section-gap, 24px);
    --cs-page-padding: var(--csg-co-page-padding, 24px);
    --cs-font-family: var(--csg-co-font-family, var(--e-global-typography-text-font-family, inherit));
}

/* ========================================
   Base Page Styles
   ======================================== */
.cloudstay-checkout-page,
.cloudstay-confirmation-page {
    background: var(--cs-page-bg) !important;
    min-height: 100vh !important;
    padding: 0 0 40px 0 !important;
    font-family: var(--cs-font-family) !important;
}

/* Reset theme styles */
.cloudstay-checkout-page *,
.cloudstay-checkout-page *::before,
.cloudstay-checkout-page *::after {
    box-sizing: border-box;
    font-family: inherit !important;
}

.cloudstay-checkout-page input,
.cloudstay-checkout-page textarea,
.cloudstay-checkout-page button {
    font-family: inherit;
}

.cloudstay-checkout-page h1,
.cloudstay-checkout-page h2,
.cloudstay-checkout-page h3,
.cloudstay-checkout-page h4 {
    font-family: inherit;
    line-height: 1.3;
}

.cloudstay-container {
    max-width: var(--cs-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Loading State (Skeleton)
   ======================================== */
.cloudstay-checkout-loading {
    padding: 20px 0;
}

.confirmation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cs-gray-200);
    border-top-color: var(--cs-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.confirmation-loading p {
    margin-top: 16px;
    color: var(--cs-gray-600);
    font-size: 15px;
}

/* Skeleton block shimmer */
.skeleton-block {
    background: var(--cs-gray-200, #e5e7eb);
    border-radius: 6px;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--cs-gray-200, #e5e7eb) 25%, var(--cs-gray-100, #f3f4f6) 50%, var(--cs-gray-200, #e5e7eb) 75%);
    animation: shimmer 1.5s infinite;
}

.skeleton-header {
    margin-bottom: 24px;
}

.skeleton-layout {
    display: grid;
    grid-template-columns: 1fr var(--cs-sidebar-width, 380px);
    gap: var(--cs-section-gap, 32px);
    align-items: start;
}

.skeleton-main {
    background: var(--cs-card-bg, #fff);
    border-radius: var(--cs-radius, 12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    padding: 32px;
    border: 1px solid var(--cs-border-color, #e5e7eb);
}

.skeleton-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.skeleton-input {
    height: 48px;
    background: var(--cs-gray-200, #e5e7eb);
    border-radius: 8px;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--cs-gray-200, #e5e7eb) 25%, var(--cs-gray-100, #f3f4f6) 50%, var(--cs-gray-200, #e5e7eb) 75%);
    animation: shimmer 1.5s infinite;
    margin-bottom: 16px;
}

.skeleton-form-row .skeleton-input {
    margin-bottom: 0;
}

.skeleton-sidebar .skeleton-card {
    background: var(--cs-card-bg, #fff);
    border-radius: var(--cs-radius, 12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cs-border-color, #e5e7eb);
    overflow: hidden;
    margin-bottom: 16px;
}

.skeleton-image {
    width: 100%;
    height: 140px;
    background: var(--cs-gray-200, #e5e7eb);
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--cs-gray-200, #e5e7eb) 25%, var(--cs-gray-100, #f3f4f6) 50%, var(--cs-gray-200, #e5e7eb) 75%);
    animation: shimmer 1.5s infinite;
}

.skeleton-card-body {
    padding: 16px;
}

.skeleton-details {
    background: var(--cs-card-bg, #fff);
    border-radius: var(--cs-radius, 12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cs-border-color, #e5e7eb);
    padding: 16px;
    margin-bottom: 16px;
}

.skeleton-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skeleton-detail-row:last-child {
    margin-bottom: 0;
}

.skeleton-pricing {
    background: var(--cs-card-bg, #fff);
    border-radius: var(--cs-radius, 12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cs-border-color, #e5e7eb);
    padding: 16px;
}

.skeleton-divider {
    height: 1px;
    background: var(--cs-border-color, #e5e7eb);
    margin: 12px 0;
}

@media (max-width: 1024px) {
    .skeleton-layout {
        grid-template-columns: 1fr;
    }
    .skeleton-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .skeleton-main {
        padding: 16px;
        box-shadow: none;
        border: none;
    }
    .skeleton-sidebar .skeleton-card,
    .skeleton-details,
    .skeleton-pricing {
        box-shadow: none;
        border: none;
    }
}

/* ========================================
   Error State
   ======================================== */
.cloudstay-checkout-error,
.confirmation-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--cs-card-bg);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    max-width: 500px;
    margin: 0 auto;
}

.cloudstay-checkout-error .error-icon,
.confirmation-error .error-icon {
    width: 64px;
    height: 64px;
    color: var(--cs-error);
    margin-bottom: 20px;
}

.cloudstay-checkout-error h1,
.cloudstay-checkout-error h2,
.confirmation-error h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 12px;
}

.cloudstay-checkout-error p,
.confirmation-error p {
    color: var(--cs-gray-600);
    margin: 0 0 8px;
    font-size: 15px;
}

.cloudstay-checkout-error .error-hint {
    font-size: 13px;
    color: var(--cs-gray-400);
    margin-bottom: 24px;
}

/* ========================================
   Header
   ======================================== */
.cloudstay-checkout-header {
    margin-bottom: 32px;
}

.cloudstay-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cs-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cloudstay-back-link:hover {
    color: var(--cs-primary);
}

.cloudstay-checkout-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cs-text-primary);
    margin: 0;
}

/* ========================================
   Layout
   ======================================== */
.cloudstay-checkout-layout {
    display: grid;
    grid-template-columns: 1fr var(--cs-sidebar-width);
    gap: var(--cs-section-gap);
    align-items: start;
}

/* ========================================
   Main Form Area
   ======================================== */
.cloudstay-checkout-main {
    background: var(--cs-card-bg) !important;
    border-radius: var(--cs-radius) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
    padding: 32px !important;
    border: 1px solid var(--cs-border-color) !important;
}

.cloudstay-checkout-main * {
    box-sizing: border-box;
}

/* Step Indicator */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cs-border-color);
}

.checkout-stepper .step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-stepper .step.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-stepper .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    background: var(--cs-gray-200);
    color: var(--cs-gray-600);
    transition: all 0.2s;
}

.checkout-stepper .step.active .step-number {
    background: var(--cs-primary);
    color: #fff;
}

.checkout-stepper .step.completed .step-number {
    background: var(--cs-success);
    color: #fff;
}

.checkout-stepper .step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-gray-600);
}

.checkout-stepper .step.active .step-label {
    color: var(--cs-gray-900);
}

.checkout-stepper .step-line {
    width: 60px;
    height: 2px;
    background: var(--cs-gray-200);
    margin: 0 16px;
}

/* Checkout Sections (Card Style) */
.checkout-step {
    background: var(--cs-card-bg);
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}

.checkout-step h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--cs-text-primary) !important;
    margin: 0 0 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--cs-border-color) !important;
}

/* Form Styles */
.cloudstay-checkout-form h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--cs-text-primary) !important;
    margin: 0 0 24px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.cloudstay-checkout-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
}

.cloudstay-checkout-form .form-row-thirds {
    grid-template-columns: 1fr 1fr 1fr !important;
}

.cloudstay-checkout-form .form-row-halves {
    grid-template-columns: 1fr 1fr !important;
}

/* Guesty Payment Form - SDK Container */
.cloudstay-checkout-form .guesty-sdk-container {
    min-height: 400px !important;
    background: var(--cs-card-bg) !important;
    border-radius: var(--cs-radius-sm) !important;
    overflow: hidden !important;
}

.cloudstay-checkout-form .guesty-sdk-container iframe {
    width: 100% !important;
    min-height: 400px !important;
    border: none !important;
}

.cloudstay-checkout-form .guesty-sdk-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 200px !important;
    color: var(--cs-gray-500) !important;
    font-size: 14px !important;
}

.cloudstay-checkout-form .guesty-sdk-error {
    color: var(--cs-error) !important;
    padding: 16px !important;
    text-align: center !important;
}

/* Legacy Guesty form styles - kept for backward compatibility */
.cloudstay-checkout-form .guesty-payment-form .form-group input,
.cloudstay-checkout-form .guesty-payment-form .form-group select {
    height: 48px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
}

.cloudstay-checkout-form .guesty-payment-form .form-group select {
    cursor: pointer !important;
}

.cloudstay-checkout-form .form-group {
    margin-bottom: 20px !important;
}

.cloudstay-checkout-form .form-group label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--cs-label-color) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.cloudstay-checkout-form .form-group label .required {
    color: var(--cs-error) !important;
}

.cloudstay-checkout-form .form-group label .optional {
    color: var(--cs-gray-400) !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.cloudstay-checkout-form .form-group input,
.cloudstay-checkout-form .form-group textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid var(--cs-input-border) !important;
    border-radius: var(--cs-radius-sm) !important;
    font-size: 15px !important;
    color: var(--cs-text-primary) !important;
    background: var(--cs-input-bg) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cloudstay-checkout-form .form-group input:focus,
.cloudstay-checkout-form .form-group textarea:focus {
    outline: none !important;
    border-color: var(--cs-input-focus-border) !important;
    box-shadow: 0 0 0 3px rgba(227, 83, 35, 0.1) !important;
}

.cloudstay-checkout-form .form-group input.error,
.cloudstay-checkout-form .form-group textarea.error {
    border-color: var(--cs-error) !important;
}

.cloudstay-checkout-form .form-group .field-error {
    display: none;
    font-size: 13px !important;
    color: var(--cs-error) !important;
    margin-top: 4px !important;
}

.cloudstay-checkout-form .form-group textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* ========================================
   Input Field Icons
   ======================================== */
.form-group {
    position: relative;
}

.form-group.has-icon input {
    padding-left: 40px !important;
}

.form-group .input-icon {
    position: absolute;
    left: 12px;
    top: 38px;
    width: 18px;
    height: 18px;
    color: var(--cs-gray-400);
    pointer-events: none;
}

/* Validation checkmark */
.form-group.valid input {
    border-color: #10b981 !important;
    padding-right: 40px !important;
}

.form-group .validation-icon {
    position: absolute;
    right: 12px;
    top: 38px;
    width: 18px;
    height: 18px;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-group.valid .validation-icon {
    opacity: 1;
}

/* ========================================
   Payment Section Enhancements
   ======================================== */
/* Lock icon next to Payment header */
#step-payment h2,
#payment-step-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#step-payment h2::before,
.payment-header-lock {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Card logos */
.card-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.card-logos img,
.card-logos svg {
    height: 24px;
    width: auto;
}

.card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px 8px;
    height: 28px;
}

.card-logo svg {
    height: 16px;
    width: auto;
}

/* Payment methods section */
.payment-methods-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cs-gray-100);
}

.pci-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--cs-gray-500);
}

.pci-badge svg {
    color: #10b981;
}

/* Stripe card element */
.stripe-card-element {
    position: relative;
}

/* Security badge near submit */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--cs-gray-500);
}

.security-notice svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

/* Policies */
.policies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 16px;
}

.policy-checkbox:hover {
    /* No hover effect needed */
}

.policy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.policy-checkbox .policy-text {
    font-size: 14px;
    color: var(--cs-gray-700);
    line-height: 1.5;
    text-transform: none;
    font-weight: 500;
}

.policy-checkbox .policy-text a {
    color: var(--cs-primary);
    text-decoration: none;
}

.policy-checkbox .policy-text a:hover {
    text-decoration: underline;
}

.policies-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--cs-error);
    padding: 12px 16px;
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
    margin-top: 16px;
}

/* Payment Form */
.payment-form {
    margin-bottom: 24px;
}

.stripe-card-element {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: var(--cs-radius-sm);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stripe-card-element:focus-within {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--cs-gray-50);
    border-radius: var(--cs-radius-sm);
    font-size: 13px;
    color: var(--cs-gray-600);
}

.security-badge svg {
    color: var(--cs-success);
}

/* Inquiry Notice */
.inquiry-notice,
.payment-not-configured {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--cs-radius-sm);
    margin-bottom: 24px;
}

.payment-not-configured {
    background: #fffbeb;
    border-color: #fcd34d;
}

.inquiry-notice .notice-icon,
.payment-not-configured .notice-icon {
    color: var(--cs-primary);
    flex-shrink: 0;
}

.payment-not-configured .notice-icon.warning {
    color: var(--cs-warning);
}

.inquiry-notice p,
.payment-not-configured p {
    margin: 0;
    font-size: 14px;
    color: var(--cs-gray-700);
    line-height: 1.5;
}

/* Checkout Error */
.checkout-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--cs-error);
    padding: 12px 16px;
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Step Actions */
.step-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cs-border-color);
}

.step-actions .btn-next:only-child {
    margin-left: auto;
}

/* Wide submit button */
.step-actions .btn-submit {
    min-width: 280px;
    padding: 16px 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: var(--cs-radius-sm) !important;
    background: var(--cs-btn-primary-bg) !important;
    color: var(--cs-btn-primary-text) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.step-actions .btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.step-actions .btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================
   Buttons
   ======================================== */
.cloudstay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--cs-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.cloudstay-btn-primary {
    background: var(--cs-btn-primary-bg);
    color: var(--cs-btn-primary-text);
}

.cloudstay-btn-primary:hover:not(:disabled) {
    background: var(--cs-btn-primary-hover);
}

.cloudstay-btn-secondary {
    background: var(--cs-card-bg);
    color: var(--cs-gray-700);
    border: 1px solid var(--cs-gray-300);
}

.cloudstay-btn-secondary:hover:not(:disabled) {
    background: var(--cs-gray-50);
    border-color: var(--cs-gray-400);
}

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

.btn-submit .btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========================================
   Sidebar
   ======================================== */
.cloudstay-checkout-sidebar {
    position: sticky;
    top: 20px;
}

.booking-summary {
    background: var(--cs-summary-bg);
    border-radius: var(--cs-radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--cs-summary-border);
    overflow: hidden;
}

/* Summary Listing */
.summary-listing {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--cs-border-color);
}

.summary-image {
    width: 100px;
    height: 80px;
    border-radius: var(--cs-radius-sm, 8px);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cs-gray-100, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-image .image-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--cs-gray-100, #f3f4f6) 25%, var(--cs-gray-200, #e5e7eb) 50%, var(--cs-gray-100, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.summary-image .image-placeholder {
    color: var(--cs-gray-400, #9ca3af);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.summary-info {
    flex: 1;
    min-width: 0;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-text-primary);
    margin: 0 0 4px;
    line-height: 1.3;
}

.summary-location {
    font-size: 13px;
    color: var(--cs-text-secondary);
    margin: 0;
}

.summary-meta {
    font-size: 13px;
    color: var(--cs-gray-500);
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.summary-meta-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.summary-meta-stat svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.summary-meta-separator {
    margin: 0 2px;
}

/* Summary Details */
.summary-details {
    padding: 16px;
    border-bottom: 1px solid var(--cs-border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 14px;
    color: var(--cs-gray-600);
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-gray-900);
}

/* Editable detail rows */
.detail-row-editable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.detail-row-editable .detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-row-editable .detail-label {
    font-size: 12px;
    color: var(--cs-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row-editable .detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-gray-900);
}

.detail-nights {
    color: var(--cs-gray-500);
    font-weight: 400;
}

.cs-detail-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--cs-border-color, var(--cs-gray-200));
    border-radius: var(--cs-radius-sm, 8px);
    background: transparent;
    color: var(--cs-text-secondary, var(--cs-gray-600)) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cs-detail-edit-btn:focus,
.cs-detail-edit-btn:focus-visible,
.cs-detail-edit-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
}

.cs-detail-edit-btn:hover {
    background: var(--cs-gray-50, #f9fafb);
    border-color: var(--cs-gray-300, #d1d5db);
    color: var(--cs-text-primary, var(--cs-gray-900)) !important;
}

/* Summary Pricing */
.summary-pricing {
    padding: 16px;
    border-bottom: 1px solid var(--cs-border-color);
}

.summary-pricing h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-text-primary);
    margin: 0 0 16px;
}

/* Pricing Skeleton */
.pricing-skeleton .skeleton-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 120px;
    height: 16px;
    background: var(--cs-gray-200);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--cs-gray-200) 25%, var(--cs-gray-100) 50%, var(--cs-gray-200) 75%);
}

.skeleton-price {
    width: 60px;
    height: 16px;
    background: var(--cs-gray-200);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--cs-gray-200) 25%, var(--cs-gray-100) 50%, var(--cs-gray-200) 75%);
}

.skeleton-row.total .skeleton-text {
    width: 80px;
}

.skeleton-row.total .skeleton-price {
    width: 80px;
}

/* Pricing Breakdown */
.pricing-breakdown .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.pricing-breakdown .price-row .label {
    color: var(--cs-gray-600);
}

.pricing-breakdown .price-row .value {
    color: var(--cs-gray-900);
}

.pricing-breakdown .price-row.discount .value {
    color: var(--cs-success);
}

/* Pricing Total with Expandable Breakdown */
.pricing-total-wrapper {
    display: block;
}

.pricing-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-total-row .total-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-gray-900);
}

.pricing-total-row .total-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--cs-gray-900);
}

.cs-toggle-breakdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid var(--cs-border-color, var(--cs-gray-200));
    border-radius: var(--cs-radius-sm, 8px);
    background: transparent;
    color: var(--cs-text-secondary, var(--cs-gray-600)) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.cs-toggle-breakdown-btn:focus,
.cs-toggle-breakdown-btn:focus-visible,
.cs-toggle-breakdown-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
}

.cs-toggle-breakdown-btn:hover {
    background: var(--cs-gray-50, #f9fafb);
    border-color: var(--cs-gray-300, #d1d5db);
    color: var(--cs-text-primary, var(--cs-gray-900)) !important;
}

.cs-toggle-breakdown-btn .cs-chevron-icon {
    transition: transform 0.3s ease;
}

.cs-toggle-breakdown-btn.expanded .cs-chevron-icon {
    transform: rotate(180deg);
}

/* Collapsible breakdown */
.pricing-breakdown.collapsed {
    display: none;
}

.pricing-breakdown.expanded {
    display: block;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed var(--cs-gray-200);
}

.pricing-breakdown.expanded .price-row {
    margin-bottom: 6px;
}

.pricing-breakdown.expanded .price-row:last-child {
    margin-bottom: 0;
}

.pricing-note {
    font-size: 12px;
    color: var(--cs-gray-500);
    margin: 12px 0 0;
}

/* Cancellation notice */
.cancellation-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #166534;
}

.cancellation-notice svg {
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 1px;
}

.cancellation-notice.highlight {
    animation: highlightPulse 0.5s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3); }
}

/* Policy disclosure list */
.policies-disclosure {
    margin-bottom: 16px;
}

.policy-disclosure-text {
    font-size: 14px;
    color: var(--cs-gray-600, #4b5563);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.policy-disclosure-text:last-child {
    margin-bottom: 0;
}

.policy-disclosure-text a {
    color: var(--cs-primary, #e35323);
    text-decoration: none;
    font-weight: 500;
}

.policy-disclosure-text a:hover {
    text-decoration: underline;
}

/* Inline policies disclosure (below submit button) */
.inline-policies-disclosure {
    width: 100%;
    font-size: 12px;
    color: var(--cs-gray-500, #6b7280);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}

.inline-policies-disclosure a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.inline-policies-disclosure a:hover {
    text-decoration: underline;
}

.cloudstay-checkout-form .step-actions label.inline-policy-checkbox,
label.inline-policy-checkbox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--cs-gray-600, #4b5563) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    transition: color 0.2s;
}

.inline-policy-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--cs-primary, #e35323);
}

.inline-policy-checkbox.has-error {
    color: var(--cs-error, #dc2626);
}

.inline-policy-checkbox.has-error input[type="checkbox"] {
    outline: 2px solid var(--cs-error, #dc2626);
    outline-offset: 1px;
}

.inline-policy-error {
    display: none;
    font-size: 12px;
    color: var(--cs-error, #dc2626);
    margin-top: 4px;
}

/* Inline policy agreement (below submit button) */
.checkout-inline-policy-agreement {
    text-align: center;
    font-size: 12px;
    color: var(--cs-text-secondary, #6b7280);
    margin-top: 24px;
    line-height: 1.5;
}
.checkout-inline-policy-agreement a {
    color: var(--cs-text-secondary, #6b7280);
    text-decoration: underline;
}
.checkout-inline-policy-agreement a:hover {
    color: var(--cs-text-primary, #374151);
}
.cancellation-notice--inline {
    margin-top: 16px;
}

/* Coupon */
.summary-coupon {
    padding: 20px;
    border-bottom: 1px solid var(--cs-border-color);
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--cs-gray-300);
    border-radius: var(--cs-radius-sm);
    font-size: 14px;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--cs-primary);
}

.coupon-input-group .cloudstay-btn {
    padding: 10px 16px;
    font-size: 14px;
}

.coupon-message {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--cs-radius-sm);
}

.coupon-message.success {
    background: #ecfdf5;
    color: var(--cs-success);
}

.coupon-message.error {
    background: #fef2f2;
    color: var(--cs-error);
}

/* Trust Badges */
.trust-badges {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--cs-gray-600);
}

.trust-badge svg {
    color: var(--cs-gray-400);
}

/* ========================================
   Success State
   ======================================== */
.cloudstay-checkout-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.cloudstay-checkout-success .success-icon {
    width: 80px;
    height: 80px;
    color: var(--cs-success);
    margin-bottom: 24px;
}

.cloudstay-checkout-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cs-gray-900);
    margin: 0 0 12px;
}

.cloudstay-checkout-success p {
    font-size: 16px;
    color: var(--cs-gray-600);
    margin: 0 0 8px;
}

/* ========================================
   Confirmation Page
   ======================================== */
.confirmation-content {
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-header {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    margin-bottom: 24px;
}

.confirmation-header .confirmation-icon {
    width: 64px;
    height: 64px;
    color: var(--cs-success);
    margin: 0 auto 20px;
}

.confirmation-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cs-gray-900);
    margin: 0 0 8px;
}

.confirmation-header p {
    font-size: 16px;
    color: var(--cs-gray-600);
    margin: 0;
}

/* Confirmation Code */
.confirmation-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--cs-gray-50);
    border: 2px dashed var(--cs-gray-300);
    border-radius: var(--cs-radius);
    margin-bottom: 24px;
}

.confirmation-code .label {
    font-size: 13px;
    color: var(--cs-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.confirmation-code .code {
    font-size: 24px;
    font-weight: 700;
    color: var(--cs-gray-900);
    font-family: monospace;
}

/* Confirmation Card */
.confirmation-card {
    background: #fff;
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Property Info */
.property-info {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--cs-gray-200);
}

.property-image {
    width: 120px;
    height: 90px;
    border-radius: var(--cs-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cs-gray-100);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 4px;
}

.property-location {
    font-size: 14px;
    color: var(--cs-gray-500);
    margin: 0;
}

/* Trip Details */
.trip-details {
    padding: 24px;
    border-bottom: 1px solid var(--cs-gray-200);
}

.trip-details .detail-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trip-details .detail-row.secondary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cs-gray-200);
}

.trip-details .detail-item {
    flex: 1;
    text-align: center;
}

.trip-details .detail-label {
    font-size: 12px;
    color: var(--cs-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.trip-details .detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-900);
    display: block;
}

.trip-details .detail-sub {
    font-size: 13px;
    color: var(--cs-gray-500);
    display: block;
    margin-top: 2px;
}

.trip-details .detail-divider {
    color: var(--cs-gray-300);
}

/* Guest Info */
.guest-info {
    padding: 24px;
    border-bottom: none;
}

.guest-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 12px;
}

.guest-details p {
    font-size: 14px;
    color: var(--cs-gray-600);
    margin: 0 0 4px;
}

/* Price Summary */
.price-summary {
    padding: 24px;
}

.price-summary h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 16px;
}

.price-summary .price-breakdown {
    margin-bottom: 16px;
}

.price-summary .price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.price-summary .price-row span:first-child {
    color: var(--cs-gray-600);
}

.price-summary .price-row span:last-child {
    color: var(--cs-gray-900);
}

.price-summary .price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--cs-gray-200);
}

.price-summary .price-total .label {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-900);
}

.price-summary .price-total .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cs-gray-900);
}

/* What's Next */
.whats-next {
    background: #fff;
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.whats-next h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 16px;
}

.whats-next ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.whats-next li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--cs-gray-700);
    line-height: 1.5;
}

.whats-next li:last-child {
    margin-bottom: 0;
}

.whats-next .step-icon {
    width: 28px;
    height: 28px;
    background: var(--cs-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Contact Info */
.contact-info {
    background: #fff;
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 8px;
}

.contact-info p {
    font-size: 14px;
    color: var(--cs-gray-600);
    margin: 0 0 16px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .cloudstay-checkout-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cloudstay-checkout-sidebar {
        position: static;
        order: -1;
    }
}

/* Mobile sticky footer - hidden by default, shown on mobile */
.mobile-sticky-footer {
    display: none;
}

@media (max-width: 768px) {
    html.cloudstay-checkout-page,
    body.cloudstay-checkout-page,
    .cloudstay-checkout-page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .cloudstay-checkout-page,
    .cloudstay-confirmation-page {
        padding: 12px 0 !important;
    }

    .cloudstay-checkout-page .container,
    .cloudstay-checkout-page .cloudstay-container,
    .cloudstay-confirmation-page .container,
    .cloudstay-confirmation-page .cloudstay-container {
        padding: 0 12px !important;
    }

    .cloudstay-checkout-main {
        padding: 16px !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Remove borders from all sections/containers */
    .cloudstay-checkout-main .form-section,
    .cloudstay-checkout-main .checkout-step,
    .cloudstay-checkout-main .step-content,
    .cloudstay-checkout-main .policy-checkbox,
    .cloudstay-checkout-main .trip-details,
    .cloudstay-checkout-main .property-info,
    .cloudstay-checkout-main .price-summary,
    .cloudstay-checkout-main .payment-section,
    .cloudstay-checkout-main .user-details-section,
    .cloudstay-checkout-page .price-breakdown,
    .cloudstay-checkout-page .coupon-section {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Keep borders on form inputs and Stripe fields */
    .cloudstay-checkout-main input,
    .cloudstay-checkout-main select,
    .cloudstay-checkout-main textarea,
    .cloudstay-checkout-main .StripeElement,
    .cloudstay-checkout-main #card-element,
    .cloudstay-checkout-main .card-input {
        border: 1px solid var(--cs-gray-300) !important;
    }

    .cloudstay-checkout-main .stripe-card-element {
        border: 1px solid #ccc !important;
    }

    .cloudstay-checkout-header {
        padding: 0 16px;
    }

    .cloudstay-checkout-header h1 {
        font-size: 24px !important;
    }

    .checkout-step {
        padding: 0 !important;
    }

    .checkout-stepper {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .checkout-stepper .step-line {
        display: none;
    }

    .checkout-stepper .step-label {
        display: none;
    }

    .checkout-stepper .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    /* Form sections */
    .form-section {
        padding: 16px 0;
    }

    .form-section h2,
    .form-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Form rows - 1 field per line */
    .form-row,
    .cloudstay-checkout-form .form-row,
    .cloudstay-checkout-form .form-row-halves,
    .cloudstay-checkout-form .form-row-thirds {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 20px;
    }

    .step-actions .cloudstay-btn {
        width: 100%;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 12px;
    }

    .confirmation-actions .cloudstay-btn {
        width: 100%;
    }

    .trip-details {
        padding: 16px;
    }

    .trip-details .detail-row {
        flex-direction: column;
        gap: 12px;
    }

    .trip-details .detail-divider {
        display: none;
    }

    .property-info {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .property-image {
        width: 80px;
        height: 60px;
        flex-shrink: 0;
    }

    .property-name {
        font-size: 14px;
    }

    /* Summary listing with meta */
    .summary-listing {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }

    .summary-image {
        width: 80px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .summary-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .summary-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .summary-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin: 0 0 4px !important;
        line-height: 1.3 !important;
    }

    .summary-meta {
        font-size: 12px !important;
        color: var(--cs-gray-500) !important;
        margin-top: 2px !important;
    }

    .summary-location {
        display: none !important;
    }

    /* Sidebar on mobile */
    .cloudstay-checkout-sidebar,
    .booking-summary,
    .cloudstay-checkout-sidebar .booking-summary {
        padding: 0 !important;
        margin-bottom: 0;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Remove ALL box shadows on mobile */
    .cloudstay-checkout-page *,
    .cloudstay-checkout-page *::before,
    .cloudstay-checkout-page *::after {
        box-shadow: none !important;
    }

    .price-summary h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .price-row {
        padding: 8px 0;
        font-size: 14px;
    }

    .price-total {
        padding-top: 12px;
        margin-top: 12px;
        font-size: 16px;
    }

    /* Trust badges - inline on one line with dot dividers */
    .trust-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 12px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
        white-space: nowrap !important;
    }

    .trust-badge {
        font-size: 12px;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 4px !important;
    }

    .trust-badge svg,
    .trust-badge .badge-icon {
        width: 12px !important;
        height: 12px !important;
    }

    .trust-badge:not(:last-child)::after {
        content: "·";
        margin: 0 6px;
        color: var(--cs-gray-500);
    }

    /* Coupon section */
    .summary-coupon {
        padding: 12px 16px;
    }

    .coupon-input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .coupon-input-group input,
    #coupon_code {
        width: 100% !important;
        flex: none !important;
        border: 1px solid #e5e5e5 !important;
        text-align: center !important;
    }

    .coupon-input-group input::placeholder,
    #coupon_code::placeholder {
        text-align: center !important;
    }

    .coupon-input-group button,
    .coupon-input-group .cloudstay-btn,
    #apply-coupon {
        width: 100% !important;
        flex: none !important;
        background-color: #e5e5e5 !important;
        color: #333 !important;
        border: none !important;
    }

    /* Policy checkboxes */
    .policy-checkbox {
        padding: 0 !important;
        margin-bottom: 8px;
        gap: 10px;
    }

    .policy-checkbox .policy-text,
    .policy-checkbox label {
        font-size: 12px;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .policy-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .policies-section,
    .policy-checkboxes {
        gap: 8px !important;
    }

    /* Sticky footer with total and CTA on mobile */
    .mobile-sticky-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--cs-card-bg);
        padding: 12px 16px;
        border-top: 1px solid var(--cs-border-color);
        z-index: 100;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-sticky-footer .sticky-total {
        display: flex;
        flex-direction: column;
    }

    .mobile-sticky-footer .sticky-total-label {
        font-size: 12px;
        color: var(--cs-gray-500);
    }

    .mobile-sticky-footer .sticky-total-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--cs-gray-900);
    }

    .mobile-sticky-footer .sticky-cta {
        flex: 1;
        max-width: 200px;
    }

    .mobile-sticky-footer .sticky-dates {
        display: flex;
        flex-direction: column;
        text-align: right;
    }

    .mobile-sticky-footer .sticky-dates-value {
        font-size: 14px;
        font-weight: 600;
        color: var(--cs-gray-900);
    }

    .mobile-sticky-footer .sticky-dates-nights {
        font-size: 12px;
        font-weight: 400;
        color: var(--cs-gray-500);
    }

    /* Add padding at bottom of page for sticky footer */
    .cloudstay-checkout-page {
        padding-bottom: 80px !important;
    }

    /* Hide input icons on mobile for cleaner look */
    .form-group .input-icon {
        display: none !important;
    }

    .form-group.has-icon input {
        padding-left: 12px !important;
    }

    /* Keep validation icons visible */
    .form-group .validation-icon {
        top: 34px !important;
    }

    /* Card logos smaller on mobile */
    .card-logos {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .card-logo {
        padding: 3px 6px !important;
        height: 24px !important;
    }

    .card-logo svg {
        height: 14px !important;
    }

    /* Security notice on mobile */
    .security-notice {
        margin-top: 8px !important;
        font-size: 11px !important;
    }

    /* Step actions full width button on mobile */
    .step-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .step-actions .btn-submit {
        width: 100% !important;
        min-width: unset !important;
        padding: 14px 24px !important;
    }

    /* Compact spacing for mobile - fit more on screen */
    .summary-pricing {
        padding: 12px 16px !important;
    }

    .summary-pricing h4 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .pricing-total-row {
        padding: 6px 0 !important;
    }

    .pricing-total-row .total-label {
        font-size: 14px !important;
    }

    .pricing-total-row .total-value {
        font-size: 16px !important;
    }

    .pricing-note {
        margin-top: 6px !important;
        font-size: 11px !important;
    }

    /* Compact summary details */
    .summary-details {
        padding: 12px 16px !important;
    }

    .summary-details .detail-row {
        padding: 6px 0 !important;
    }

    .detail-row .detail-label {
        font-size: 12px !important;
    }

    .detail-row .detail-value {
        font-size: 13px !important;
    }

    .cs-detail-edit-btn {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    /* Compact cancellation notice */
    .cancellation-notice {
        padding: 10px !important;
        margin-top: 10px !important;
        font-size: 12px !important;
    }

    .cancellation-notice svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Compact form sections */
    .checkout-step h2 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .form-group {
        margin-bottom: 12px !important;
    }

    .form-group label {
        margin-bottom: 4px !important;
    }

    /* Compact payment methods section */
    .payment-methods-section {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .pci-badge {
        font-size: 10px !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .cloudstay-confirmation-page {
        background: #fff;
        padding: 0;
    }

    .confirmation-actions,
    .contact-info {
        display: none !important;
    }

    .confirmation-card,
    .whats-next {
        box-shadow: none;
        border: 1px solid var(--cs-gray-200);
    }
}

/* ========================================
   Security Deposit Notice
   ======================================== */
.security-deposit-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--cs-radius-sm);
    margin-top: 16px;
}

.security-deposit-notice .deposit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #d97706;
}

.security-deposit-notice .deposit-content {
    flex: 1;
}

.security-deposit-notice .deposit-title {
    font-weight: 600;
    color: #92400e;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.security-deposit-notice .deposit-amount {
    font-weight: 700;
    color: #d97706;
}

.security-deposit-notice .deposit-description {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   Payment Options (Installments)
   ======================================== */
.payment-options {
    margin-bottom: 24px;
}

.payment-options h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-800);
    margin: 0 0 16px 0;
}

.payment-option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--cs-gray-200);
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option-item:hover {
    border-color: var(--cs-gray-300);
}

.payment-option-item.active,
.payment-option-item:has(input:checked) {
    border-color: var(--cs-primary);
    background: #eff6ff;
}

.payment-option-item input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--cs-primary);
    cursor: pointer;
}

.payment-option-content {
    flex: 1;
}

.payment-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.payment-option-title {
    font-weight: 600;
    color: var(--cs-gray-800);
    font-size: 15px;
}

.payment-option-amount {
    font-weight: 700;
    color: var(--cs-gray-900);
    font-size: 15px;
}

.payment-option-desc {
    font-size: 13px;
    color: var(--cs-gray-500);
    margin: 0;
}

.payment-option-desc .amount-highlight {
    font-weight: 600;
    color: var(--cs-primary);
}

/* Installment Schedule */
.installment-schedule {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cs-gray-200);
}

.installment-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.installment-schedule .schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--cs-gray-50);
    border-radius: 6px;
}

.installment-schedule .schedule-date {
    font-size: 13px;
    color: var(--cs-gray-600);
}

.installment-schedule .schedule-amount {
    font-weight: 600;
    font-size: 14px;
    color: var(--cs-gray-800);
}

/* Connection Payment Info (pre-configured payment option) */
.connection-payment-info {
    margin-bottom: 24px;
}

.connection-payment-info .payment-info-box {
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: 12px;
    padding: 16px 20px;
}

.connection-payment-info .payment-info-box h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-gray-800);
}

.connection-payment-info .payment-schedule-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connection-payment-info .schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--cs-white);
    border-radius: 8px;
    border: 1px solid var(--cs-gray-100);
}

.connection-payment-info .schedule-label {
    font-size: 14px;
    color: var(--cs-gray-600);
}

.connection-payment-info .schedule-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--cs-gray-900);
}

/* Guesty payment schedule specific styles */
.guesty-payment-schedule .schedule-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guesty-payment-schedule .schedule-date {
    font-size: 12px;
    color: var(--cs-gray-500);
}

.guesty-payment-schedule .schedule-row-primary {
    background: var(--cs-primary-50, #f0f9ff);
    border-color: var(--cs-primary-200, #bae6fd);
}

.guesty-payment-schedule .schedule-row-primary .schedule-label {
    color: var(--cs-primary-700, #0369a1);
    font-weight: 500;
}

.guesty-payment-schedule .schedule-row-primary .schedule-value {
    color: var(--cs-primary-900, #0c4a6e);
}

/* ========================================
   Account Payment Option Cards
   ======================================== */

/* List layout (default) */
.payment-option-list.layout-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Grid layout */
.payment-option-list.layout-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-option-list.layout-grid .payment-option-card,
.cloudstay-checkout-form .payment-option-list.layout-grid label.payment-option-card {
    flex: 1 1 0;
    min-width: 80px;
    text-align: center;
    padding: 14px 10px !important;
    position: relative;
}

.payment-option-list.layout-grid .payment-option-card.selected,
.cloudstay-checkout-form .payment-option-list.layout-grid label.payment-option-card.selected {
    padding: 13px 9px !important;
}

/* Grid check indicator */
.payment-option-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.payment-option-card.selected .payment-option-check {
    display: flex;
}

/* Grid inner layout */
.payment-option-grid-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.payment-option-pct,
.cloudstay-checkout-form .payment-option-pct {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.2;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.payment-option-grid-amount,
.cloudstay-checkout-form .payment-option-grid-amount {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.payment-option-grid-name,
.cloudstay-checkout-form .payment-option-grid-name {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-top: 2px;
}

/* Grid tooltip */
.payment-option-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px !important;
    line-height: 1.5;
    white-space: normal;
    width: 550px;
    max-width: 90vw;
    z-index: 100;
    pointer-events: none;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-option-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.payment-option-tooltip .tooltip-line {
    padding: 1px 0;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    color: #ddd !important;
}

.payment-option-tooltip .tooltip-line:first-child {
    color: #fff !important;
    font-weight: 500 !important;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.payment-option-card:hover .payment-option-tooltip {
    display: block;
}

.payment-option-card,
.cloudstay-checkout-form .payment-option-card,
.cloudstay-checkout-form label.payment-option-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    background: #fff;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    color: #111 !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.payment-option-card:hover {
    border-color: #bbb;
}

.payment-option-card.selected {
    border-color: #222;
    border-width: 2px;
    padding: 13px 15px; /* compensate for thicker border */
}

.payment-option-card input[type="radio"] {
    display: none;
}

.payment-option-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Radio dot indicator */
.payment-option-radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s ease;
}

.payment-option-card.selected .payment-option-radio-dot {
    border-color: #222;
}

.payment-option-card.selected .payment-option-radio-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #222;
}

.payment-option-card-content {
    flex: 1;
    min-width: 0;
}

.payment-option-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.payment-option-name,
.cloudstay-checkout-form .payment-option-name {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #111 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.payment-option-amount,
.cloudstay-checkout-form .payment-option-amount {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #111 !important;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.payment-option-desc,
.cloudstay-checkout-form .payment-option-desc {
    display: block;
    font-size: 13px !important;
    color: #777 !important;
    line-height: 1.4;
    margin-top: 2px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

.payment-option-schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.payment-option-schedule .schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.payment-option-schedule .schedule-row-now .schedule-label {
    font-weight: 600;
    color: #111;
}

.payment-option-schedule .schedule-row-now .schedule-value {
    font-weight: 700;
    color: #111;
}

.payment-option-schedule .schedule-label,
.cloudstay-checkout-form .payment-option-schedule .schedule-label {
    font-size: 13px !important;
    color: #666 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

.payment-option-schedule .schedule-value,
.cloudstay-checkout-form .payment-option-schedule .schedule-value {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #444 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Payment schedule display (below option cards) */
.payment-schedule-display {
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .payment-option-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .connection-payment-info .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .payment-option-list.layout-grid .payment-option-card {
        min-width: 60px;
    }
    .payment-option-tooltip {
        white-space: normal;
        min-width: 200px;
    }
}

/* ========================================
   Confirmation Page - Deposit Info
   ======================================== */
.deposit-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cs-gray-200);
}

.deposit-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--cs-radius-sm);
}

.deposit-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #d97706;
}

.deposit-info-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.deposit-info-content p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.deposit-info-content .deposit-note {
    margin-top: 8px;
    font-size: 13px;
    color: #a16207;
}

/* ========================================
   Confirmation Page - Installment Info
   ======================================== */
.installment-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cs-gray-200);
}

.installment-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-800);
    margin: 0 0 16px 0;
}

.installment-payments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.installment-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--cs-gray-50);
    border-radius: var(--cs-radius-sm);
    border-left: 3px solid var(--cs-gray-300);
}

.installment-payment-item.paid {
    border-left-color: var(--cs-success);
    background: #ecfdf5;
}

.installment-payment-item.pending {
    border-left-color: var(--cs-primary);
}

.installment-payment-item .payment-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.installment-payment-item.paid .payment-status {
    color: var(--cs-success);
}

.installment-payment-item.pending .payment-status {
    color: var(--cs-gray-500);
}

.installment-payment-item .status-label {
    font-size: 13px;
    font-weight: 500;
}

.installment-payment-item .payment-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.installment-payment-item .payment-date {
    font-size: 14px;
    color: var(--cs-gray-600);
}

.installment-payment-item .payment-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-gray-800);
}

.installment-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: #eff6ff;
    border-radius: var(--cs-radius-sm);
    font-size: 13px;
    color: var(--cs-primary);
    line-height: 1.5;
}

.installment-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   Available Promotions
   ======================================== */
.available-promotions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cs-gray-200);
}

.available-promotions h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-gray-600);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promotion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px dashed #10b981;
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.promotion-item:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    transform: translateY(-1px);
}

.promotion-item .promo-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    color: #fff;
}

.promotion-item .promo-content {
    flex: 1;
    min-width: 0;
}

.promotion-item .promo-code {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #065f46;
    font-family: monospace;
}

.promotion-item .promo-desc {
    display: block;
    font-size: 12px;
    color: #047857;
    margin-top: 2px;
}

.promotion-item .promo-discount {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
    color: #065f46;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ========================================
   Booking Status Badge
   ======================================== */
.booking-status {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Provider Info (PMS Bookings)
   ======================================== */
.provider-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cs-gray-50);
    border-radius: var(--cs-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--cs-gray-600);
}

.provider-label {
    color: var(--cs-gray-500);
}

.provider-name {
    font-weight: 600;
    color: var(--cs-gray-700);
}

/* Provider logo styles for future use */
.provider-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   Checkout Details Modal (Dates & Guests)
   ======================================== */
.checkout-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--csg-co-modal-overlay, rgba(0, 0, 0, 0.5));
    z-index: 9999;
    overflow: hidden;
}

.checkout-details-modal.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.checkout-details-modal-content {
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    background: var(--csg-co-modal-bg, #fff) !important;
    border-radius: var(--csg-co-modal-radius, 16px) var(--csg-co-modal-radius, 16px) 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideUp 0.3s ease-out !important;
    overflow: hidden !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Modal Header */
.checkout-details-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--cs-gray-200) !important;
    flex-shrink: 0 !important;
}

.checkout-details-modal-header h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--cs-gray-900) !important;
    margin: 0 !important;
}

.checkout-details-modal-header .modal-close-btn {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--cs-gray-100) !important;
    border: none !important;
    color: var(--cs-gray-900) !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: background 0.2s !important;
    padding: 0 !important;
}

.checkout-details-modal-header .modal-close-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

.checkout-details-modal-header .modal-close-btn:hover {
    background: var(--cs-gray-200) !important;
}

/* Modal Tabs */
.checkout-details-tabs {
    display: flex !important;
    padding: 12px 20px !important;
    gap: 8px !important;
    border-bottom: 1px solid var(--cs-gray-200) !important;
    flex-shrink: 0 !important;
}

.checkout-details-tab {
    flex: 1 !important;
    padding: 10px 16px !important;
    background: var(--csg-co-modal-tab-bg, #fff) !important;
    border: 1px solid var(--csg-co-modal-tab-border, #222) !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--csg-co-modal-tab-text, #222) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
}

.checkout-details-tab:focus,
.checkout-details-tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.checkout-details-tab:hover {
    background: #f5f5f5 !important;
}

.checkout-details-tab.active {
    background: var(--csg-co-modal-tab-active-bg, #222) !important;
    color: var(--csg-co-modal-tab-active-text, #fff) !important;
    border-color: var(--csg-co-modal-tab-active-bg, #222) !important;
}

/* Modal Body */
.checkout-details-body {
    flex: 1 1 auto !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 0 !important;
    overscroll-behavior: contain !important;
}

.checkout-details-panel {
    display: none !important;
    padding: 20px !important;
}

.checkout-details-panel.active {
    display: block !important;
}

/* Dates panel - no padding, calendar has its own */
.checkout-details-panel#panel-dates.active,
.checkout-details-panel#listing-panel-dates.active {
    padding: 0 !important;
}

/* Guests Info */
.checkout-guests-info {
    font-size: 14px;
    color: var(--cs-gray-600);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cs-gray-200);
}

/* Guest Rows */
.checkout-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--cs-gray-100);
}

.checkout-guest-row:last-child {
    border-bottom: none;
}

.checkout-guest-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin: 0 0 2px;
}

.checkout-guest-info p {
    font-size: 13px;
    color: var(--cs-gray-500);
    margin: 0;
}

/* Guest Counter */
.checkout-guest-counter {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.checkout-counter-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--csg-co-modal-counter-bg, #fff) !important;
    border: 1px solid var(--csg-co-modal-counter-border, var(--cs-gray-300)) !important;
    border-radius: 50% !important;
    color: var(--csg-co-modal-counter-text, var(--cs-gray-600)) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    outline: none !important;
}

.checkout-counter-btn:focus,
.checkout-counter-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.checkout-counter-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

.checkout-counter-btn:hover:not(:disabled) {
    border-color: var(--cs-gray-900) !important;
    color: var(--cs-gray-900) !important;
}

.checkout-counter-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.checkout-counter-value {
    min-width: 32px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--cs-gray-900) !important;
}

/* Calendar Container */
.checkout-calendar-container {
    padding: 0 20px;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.checkout-calendar-scroll {
    padding-bottom: 20px;
    overflow-x: hidden;
}

/* Calendar Month */
.checkout-calendar-month {
    margin-bottom: 24px;
    max-width: 100%;
    overflow: hidden;
}

.checkout-calendar-month-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-gray-900);
    margin-bottom: 12px;
    padding: 0 4px;
    text-align: center;
}

.checkout-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--cs-gray-500);
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cs-gray-900);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
}

.checkout-calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--cs-gray-100);
}

.checkout-calendar-day.empty {
    cursor: default;
}

.checkout-calendar-day.disabled {
    color: var(--cs-gray-300);
    cursor: not-allowed;
}

.checkout-calendar-day.booked {
    color: var(--cs-gray-300);
    text-decoration: line-through;
    cursor: not-allowed;
}

.checkout-calendar-day.selected {
    background: var(--csg-co-cal-selected-bg, var(--lp-cal-selected-bg, var(--cal-selected-bg, #1f1f1f))) !important;
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
}

.checkout-calendar-day.in-range {
    background: var(--csg-co-cal-range-bg, var(--lp-cal-range-bg, var(--cal-range-bg, rgba(31, 31, 31, 0.1)))) !important;
    border-radius: 0;
}

.checkout-calendar-day.range-start {
    border-radius: 50% 0 0 50%;
}

.checkout-calendar-day.range-end {
    border-radius: 0 50% 50% 0;
}

/* Modal Footer */
.checkout-details-footer {
    padding: 16px 20px !important;
    border-top: 1px solid var(--cs-gray-200) !important;
    background: var(--csg-co-modal-bg, #fff) !important;
    flex-shrink: 0 !important;
}

.checkout-details-confirm {
    width: 100% !important;
    padding: 14px 24px !important;
    background: var(--lp-mobile-modal-confirm-bg, #111111) !important;
    color: var(--lp-mobile-modal-confirm-text, #ffffff) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    min-height: 48px !important;
    outline: none !important;
}

.checkout-details-confirm:focus,
.checkout-details-confirm:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.checkout-details-confirm:hover {
    background: var(--lp-mobile-modal-confirm-hover-bg, #222222) !important;
    color: var(--lp-mobile-modal-confirm-hover-text, #ffffff) !important;
}

/* Remove all focus outlines in modal */
.checkout-details-modal button:focus,
.checkout-details-modal button:focus-visible,
.checkout-details-modal *:focus,
.checkout-details-modal *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Override Elementor button focus styles */
.checkout-details-modal .elementor-button:focus,
.checkout-details-modal button.elementor-button:focus,
body .checkout-details-modal button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Pets not allowed state */
.checkout-guest-row.pets-disabled .checkout-guest-counter {
    display: none;
}

.checkout-guest-row.pets-disabled .pets-note {
    color: var(--cs-gray-500);
}

/* ========================================
   Modal Calendar - Full Availability
   ======================================== */

/* Loading state */
.checkout-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.checkout-calendar-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--cs-gray-200);
    border-top-color: var(--cs-gray-900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.checkout-calendar-loading p {
    margin-top: 12px;
    color: var(--cs-gray-500);
    font-size: 14px;
}

/* Legend */
.checkout-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cs-gray-100);
    font-size: 12px;
    color: var(--cs-gray-600);
}

.checkout-calendar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-calendar-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.checkout-calendar-legend .legend-dot.available {
    background: var(--cs-gray-900);
}

.checkout-calendar-legend .legend-dot.booked {
    background: var(--cs-gray-300);
}

/* Calendar error message */
.checkout-calendar-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #fecaca;
}

/* Calendar day with price */
.checkout-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--csg-co-cal-day-text, var(--cs-gray-900));
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 4px 2px;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
}

.checkout-calendar-day .day-number {
    font-weight: 500;
}

.checkout-calendar-day .day-price {
    font-size: 9px;
    color: var(--csg-co-cal-price-text, var(--cs-gray-500));
    font-weight: 400;
}

.checkout-calendar-day:hover:not(.disabled):not(.blocked):not(.empty) {
    background: var(--cs-gray-100);
}

/* Empty day */
.checkout-calendar-day.empty {
    cursor: default;
}

/* Disabled (past) day */
.checkout-calendar-day.disabled {
    color: var(--csg-co-cal-disabled-text, var(--cs-gray-300));
    cursor: not-allowed;
}

.checkout-calendar-day.disabled .day-price {
    display: none;
}

/* Blocked/Booked day - match listing page style */
.checkout-calendar-day.blocked {
    color: var(--csg-co-cal-blocked-text, #9ca3af) !important;
    cursor: not-allowed !important;
    background: var(--csg-co-cal-blocked-bg, #f9fafb) !important;
}

.checkout-calendar-day.blocked .day-number {
    text-decoration: line-through !important;
    color: var(--csg-co-cal-blocked-text, #9ca3af) !important;
    display: block !important;
    visibility: visible !important;
}

.checkout-calendar-day.blocked .day-price {
    display: none !important;
}

/* Checkout-only day (diagonal split) */
.checkout-calendar-day.checkout-only {
    background: linear-gradient(135deg, transparent 50%, var(--cs-gray-100) 50%);
}

/* Checkin-only day (diagonal split) */
.checkout-calendar-day.checkin-only {
    background: linear-gradient(135deg, var(--cs-gray-100) 50%, transparent 50%);
}

/* Selected day - match listing page */
.checkout-calendar-day.selected {
    background: var(--csg-co-cal-selected-bg, var(--lp-cal-selected-bg, var(--cal-selected-bg, #1f1f1f))) !important;
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
    border: none !important;
    border-radius: 4px !important;
}

.checkout-calendar-day.selected .day-number {
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
}

.checkout-calendar-day.selected .day-price {
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, rgba(255, 255, 255, 0.8)))) !important;
    opacity: 0.8;
}

/* Date range start (check-in) */
.checkout-calendar-day.range-start {
    background: var(--csg-co-cal-selected-bg, var(--lp-cal-selected-bg, var(--cal-selected-bg, #1f1f1f))) !important;
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
    border: none !important;
    border-radius: 4px !important;
}

.checkout-calendar-day.range-start .day-number,
.checkout-calendar-day.range-start .day-price {
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
}

.checkout-calendar-day.range-start .day-price {
    opacity: 0.8;
}

/* Date range end (check-out) */
.checkout-calendar-day.range-end {
    background: var(--csg-co-cal-selected-bg, var(--lp-cal-selected-bg, var(--cal-selected-bg, #1f1f1f))) !important;
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
    border: none !important;
    border-radius: 4px !important;
}

.checkout-calendar-day.range-end .day-number,
.checkout-calendar-day.range-end .day-price {
    color: var(--csg-co-cal-selected-text, var(--lp-cal-selected-text, var(--cal-selected-text, #fff))) !important;
}

.checkout-calendar-day.range-end .day-price {
    opacity: 0.8;
}

/* In range - light gray background */
.checkout-calendar-day.in-range {
    background: var(--csg-co-cal-range-bg, rgba(31, 31, 31, 0.1)) !important;
    border: none !important;
    border-radius: 4px !important;
}

/* Today indicator */
.checkout-calendar-day.today .day-number {
    text-decoration: underline;
}

/* ========================================
   Compact Vertical Spacing
   ======================================== */
.cloudstay-checkout-page.cs-compact .cloudstay-checkout-header {
    margin-bottom: 16px;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-main {
    padding: 20px !important;
}

.cloudstay-checkout-page.cs-compact .checkout-stepper {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.cloudstay-checkout-page.cs-compact .checkout-step {
    margin-bottom: 12px;
}

.cloudstay-checkout-page.cs-compact .checkout-step h2 {
    margin: 0 0 12px !important;
    padding-bottom: 10px !important;
    font-size: 16px !important;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-form .form-group {
    margin-bottom: 12px !important;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-form .form-group label {
    margin-bottom: 4px !important;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-form .form-group input,
.cloudstay-checkout-page.cs-compact .cloudstay-checkout-form .form-group textarea {
    padding: 8px 12px !important;
}

.cloudstay-checkout-page.cs-compact .form-group.has-icon input {
    padding-left: 36px !important;
}

.cloudstay-checkout-page.cs-compact .form-group .input-icon {
    top: 30px;
}

.cloudstay-checkout-page.cs-compact .form-group .validation-icon {
    top: 30px;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-form .form-row {
    gap: 10px !important;
}

.cloudstay-checkout-page.cs-compact .payment-options {
    margin-bottom: 12px;
}

.cloudstay-checkout-page.cs-compact .payment-options h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-header h1 {
    font-size: 22px;
}

.cloudstay-checkout-page.cs-compact .cloudstay-checkout-layout {
    gap: 16px;
}

.cloudstay-checkout-page.cs-compact .step-actions:not(:has(.security-notice)) {
    border-top: none;
    padding-top: 0;
}

/* ========================================
   Dark Mode
   ======================================== */

/* Override CSS variables for dark mode
   Uses the same dark palette as listing pages (#202020, #2a2a2a, #333, #444) */
.cloudstay-checkout-page.cs-dark-mode,
.cloudstay-confirmation-page.cs-dark-mode {
    --cs-page-bg: #202020;
    --cs-card-bg: #2a2a2a;
    --cs-text-primary: #ffffff;
    --cs-text-secondary: #999999;
    --cs-border-color: #333333;
    --cs-label-color: #999999;
    --cs-input-bg: #2a2a2a;
    --cs-input-border: #444444;
    --cs-summary-bg: #2a2a2a;
    --cs-summary-border: #333333;
    --cs-btn-primary-bg: #ffffff;
    --cs-btn-primary-text: #202020;
    --cs-btn-primary-hover: #e5e7eb;
}

/* Page background */
.cloudstay-checkout-page.cs-dark-mode {
    background: var(--cs-page-bg) !important;
}

/* Headings */
.cloudstay-checkout-page.cs-dark-mode h1,
.cloudstay-checkout-page.cs-dark-mode h2,
.cloudstay-checkout-page.cs-dark-mode h3,
.cloudstay-checkout-page.cs-dark-mode h4 {
    color: var(--cs-text-primary) !important;
}

/* Back link */
.cloudstay-checkout-page.cs-dark-mode .cloudstay-back-link {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-back-link:hover {
    color: var(--cs-text-primary) !important;
}

/* Form labels */
.cloudstay-checkout-page.cs-dark-mode label {
    color: var(--cs-label-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .required {
    color: #ef4444 !important;
}
.cloudstay-checkout-page.cs-dark-mode .optional {
    color: #666666 !important;
}

/* Form inputs */
.cloudstay-checkout-page.cs-dark-mode input[type="text"],
.cloudstay-checkout-page.cs-dark-mode input[type="email"],
.cloudstay-checkout-page.cs-dark-mode input[type="tel"],
.cloudstay-checkout-page.cs-dark-mode input[type="number"],
.cloudstay-checkout-page.cs-dark-mode textarea,
.cloudstay-checkout-page.cs-dark-mode select {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-input-border) !important;
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode input::placeholder,
.cloudstay-checkout-page.cs-dark-mode textarea::placeholder {
    color: #666666 !important;
}
.cloudstay-checkout-page.cs-dark-mode input:focus,
.cloudstay-checkout-page.cs-dark-mode textarea:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}
/* Browser autofill override for dark mode */
.cloudstay-checkout-page.cs-dark-mode input:-webkit-autofill,
.cloudstay-checkout-page.cs-dark-mode input:-webkit-autofill:hover,
.cloudstay-checkout-page.cs-dark-mode input:-webkit-autofill:focus,
.cloudstay-checkout-page.cs-dark-mode input:-webkit-autofill:active,
.cloudstay-checkout-page.cs-dark-mode textarea:-webkit-autofill,
.cloudstay-checkout-page.cs-dark-mode select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #ffffff !important;
}

/* Input icons */
.cloudstay-checkout-page.cs-dark-mode .input-icon {
    color: #999999 !important;
}

/* Checkout steps / form card */
.cloudstay-checkout-page.cs-dark-mode .checkout-step {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-checkout-form {
    background: var(--cs-card-bg) !important;
    border-color: var(--cs-border-color) !important;
}

/* Policies */
.cloudstay-checkout-page.cs-dark-mode .policy-disclosure-text {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .policy-disclosure-text a {
    color: var(--cs-accent-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .inline-policies-disclosure {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .inline-policies-disclosure a {
    color: #60a5fa !important;
}
.cloudstay-checkout-page.cs-dark-mode .inline-policy-checkbox {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cancellation-notice {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cancellation-notice svg {
    color: #10b981 !important;
}
.cloudstay-checkout-page.cs-dark-mode .cancellation-notice span {
    color: var(--cs-text-secondary) !important;
}

/* Payment options */
.cloudstay-checkout-page.cs-dark-mode .payment-option {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-input-border) !important;
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option.active {
    border-color: var(--cs-accent-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .option-title {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .option-amount,
.cloudstay-checkout-page.cs-dark-mode .option-desc {
    color: var(--cs-text-secondary) !important;
}

/* Payment form / card element */
.cloudstay-checkout-page.cs-dark-mode .stripe-card-element {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-input-border) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-methods-section {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .card-logo svg rect[fill="#fff"] {
    fill: var(--cs-input-bg) !important;
}
.cloudstay-checkout-page.cs-dark-mode .pci-badge {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .security-badge {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .security-notice {
    color: var(--cs-text-secondary) !important;
}

/* Installment schedule */
.cloudstay-checkout-page.cs-dark-mode .installment-schedule {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .schedule-list {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .installment-note {
    background: #2a2a2a !important;
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-item.active,
.cloudstay-checkout-page.cs-dark-mode .payment-option-item:has(input:checked) {
    background: #333333 !important;
    border-color: var(--cs-accent-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-card {
    background: var(--cs-input-bg, #2a2a2a) !important;
    border-color: var(--cs-input-border, #444) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-card.selected {
    border-color: #fff !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-name,
.cloudstay-checkout-page.cs-dark-mode .payment-option-amount,
.cloudstay-checkout-page.cs-dark-mode .payment-option-schedule .schedule-row-now .schedule-label,
.cloudstay-checkout-page.cs-dark-mode .payment-option-schedule .schedule-row-now .schedule-value {
    color: var(--cs-text-primary, #fff) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-desc,
.cloudstay-checkout-page.cs-dark-mode .payment-option-schedule .schedule-label,
.cloudstay-checkout-page.cs-dark-mode .payment-option-schedule .schedule-value {
    color: var(--cs-text-secondary, #999) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-radio-dot {
    border-color: #666 !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-card.selected .payment-option-radio-dot {
    border-color: #fff !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-card.selected .payment-option-radio-dot::after {
    background: #fff !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-schedule {
    border-top-color: #444 !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-pct {
    color: var(--cs-text-primary, #fff) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-grid-amount {
    color: var(--cs-text-secondary, #ccc) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-grid-name {
    color: var(--cs-text-secondary, #999) !important;
}
.cloudstay-checkout-page.cs-dark-mode .payment-option-check {
    background: #fff !important;
    color: #111 !important;
}

/* Inquiry / notice */
.cloudstay-checkout-page.cs-dark-mode .inquiry-notice,
.cloudstay-checkout-page.cs-dark-mode .payment-not-configured {
    background: #2a2a2a !important;
    border-color: #444444 !important;
}
.cloudstay-checkout-page.cs-dark-mode .inquiry-notice p,
.cloudstay-checkout-page.cs-dark-mode .payment-not-configured p {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .inquiry-notice .notice-icon,
.cloudstay-checkout-page.cs-dark-mode .payment-not-configured .notice-icon {
    color: var(--cs-accent-color) !important;
}

/* Submit button */
.cloudstay-checkout-page.cs-dark-mode .btn-submit,
.cloudstay-checkout-page.cs-dark-mode .cloudstay-btn-primary {
    background: var(--cs-btn-primary-bg) !important;
    color: var(--cs-btn-primary-text) !important;
}
.cloudstay-checkout-page.cs-dark-mode .btn-submit:hover,
.cloudstay-checkout-page.cs-dark-mode .cloudstay-btn-primary:hover {
    background: var(--cs-btn-primary-hover) !important;
}

/* Sidebar - Booking summary */
.cloudstay-checkout-page.cs-dark-mode .booking-summary {
    background: var(--cs-summary-bg) !important;
    border-color: var(--cs-summary-border) !important;
}
.cloudstay-checkout-page.cs-dark-mode .summary-title {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .summary-location,
.cloudstay-checkout-page.cs-dark-mode .summary-meta {
    color: var(--cs-text-secondary) !important;
}

/* Summary details */
.cloudstay-checkout-page.cs-dark-mode .summary-details {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .detail-label {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .detail-value {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .detail-nights {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cs-detail-edit-btn {
    color: var(--cs-text-primary) !important;
    border-color: var(--cs-border-color) !important;
}

/* Pricing */
.cloudstay-checkout-page.cs-dark-mode .summary-pricing {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .total-label {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .total-value {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .pricing-note {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .pricing-breakdown {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cs-toggle-breakdown-btn {
    color: var(--cs-text-primary) !important;
    border-color: var(--cs-border-color) !important;
}

/* Coupon */
.cloudstay-checkout-page.cs-dark-mode .summary-coupon input {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-input-border) !important;
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-btn-secondary {
    background: var(--cs-input-bg) !important;
    border-color: var(--cs-input-border) !important;
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-btn-secondary:hover {
    background: var(--cs-border-color) !important;
}

/* Trust badges */
.cloudstay-checkout-page.cs-dark-mode .trust-badges {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .trust-badge {
    color: var(--cs-text-secondary) !important;
}

/* Security deposit */
.cloudstay-checkout-page.cs-dark-mode .security-deposit-notice {
    background: #2a2a2a !important;
    border-color: #444444 !important;
}
.cloudstay-checkout-page.cs-dark-mode .deposit-label {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .deposit-amount {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .deposit-note {
    color: var(--cs-text-secondary) !important;
}

/* Error states */
.cloudstay-checkout-page.cs-dark-mode .checkout-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}
.cloudstay-checkout-page.cs-dark-mode .field-error {
    color: #fca5a5 !important;
}

/* Loading state (skeleton dark mode) */
.cloudstay-checkout-page.cs-dark-mode .skeleton-block,
.cloudstay-checkout-page.cs-dark-mode .skeleton-input,
.cloudstay-checkout-page.cs-dark-mode .skeleton-image {
    background-color: var(--cs-border-color, #333) !important;
    background-image: linear-gradient(90deg, var(--cs-border-color, #333) 25%, rgba(255,255,255,0.06) 50%, var(--cs-border-color, #333) 75%) !important;
}
.cloudstay-checkout-page.cs-dark-mode .skeleton-main,
.cloudstay-checkout-page.cs-dark-mode .skeleton-sidebar .skeleton-card,
.cloudstay-checkout-page.cs-dark-mode .skeleton-details,
.cloudstay-checkout-page.cs-dark-mode .skeleton-pricing {
    background: var(--cs-card-bg) !important;
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .skeleton-divider {
    background: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .loading-spinner {
    border-color: var(--cs-border-color) !important;
    border-top-color: var(--cs-text-primary) !important;
}

/* Success state */
.cloudstay-checkout-page.cs-dark-mode .cloudstay-checkout-success h2 {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-checkout-success p {
    color: var(--cs-text-secondary) !important;
}

/* Error page */
.cloudstay-checkout-page.cs-dark-mode .cloudstay-checkout-error h1 {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .cloudstay-checkout-error p {
    color: var(--cs-text-secondary) !important;
}

/* Promotions */
.cloudstay-checkout-page.cs-dark-mode .available-promotions {
    border-color: var(--cs-border-color) !important;
}

/* Calendar dark mode */
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-modal {
    background: var(--cs-card-bg) !important;
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-header {
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.disabled {
    color: #666666 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-weekday {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-nav {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day .day-price {
    color: var(--cs-text-secondary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.in-range {
    background: rgba(249, 250, 251, 0.1) !important;
}

/* Guest editor modal dark mode */
.cloudstay-checkout-page.cs-dark-mode .guest-editor-modal {
    background: var(--cs-card-bg) !important;
    border-color: var(--cs-border-color) !important;
}
.cloudstay-checkout-page.cs-dark-mode .guest-editor-modal label {
    color: var(--cs-text-primary) !important;
}
.cloudstay-checkout-page.cs-dark-mode .guest-editor-modal .guest-count {
    color: var(--cs-text-primary) !important;
}

/* Checkout details modal (modify booking) dark mode */
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal-content {
    background: #2a2a2a !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal-header {
    border-bottom-color: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal-header h3 {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal-header .modal-close-btn {
    background: #333333 !important;
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-modal-header .modal-close-btn:hover {
    background: #444444 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-tabs {
    border-bottom-color: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-tab {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-tab:hover {
    background: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-tab.active {
    background: #ffffff !important;
    color: #202020 !important;
    border-color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-details-footer {
    background: #2a2a2a !important;
    border-top-color: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-guests-info {
    color: #999999 !important;
    border-bottom-color: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-guest-info h4 {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-guest-info p {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-counter-btn {
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-counter-btn:hover:not(:disabled) {
    border-color: #ffffff !important;
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-counter-value {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-month-title {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-weekdays {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day:hover:not(.disabled):not(.empty) {
    background: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.disabled,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.booked {
    color: #666666 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.selected {
    background: #ffffff !important;
    color: #202020 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.selected .day-number,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.selected .day-price {
    color: #202020 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-start,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-end {
    background: #ffffff !important;
    color: #202020 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-start .day-number,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-start .day-price,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-end .day-number,
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.range-end .day-price {
    color: #202020 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-day.in-range {
    background: rgba(255, 255, 255, 0.1) !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-calendar-loading {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-guest-row {
    border-bottom-color: #333333 !important;
}

/* Mobile sticky footer dark mode */
.cloudstay-checkout-page.cs-dark-mode .mobile-sticky-footer {
    background: #2a2a2a !important;
    border-top-color: #333333 !important;
}
.cloudstay-checkout-page.cs-dark-mode .mobile-sticky-footer .sticky-total-label {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .mobile-sticky-footer .sticky-total-value {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .mobile-sticky-footer .sticky-dates-value {
    color: #ffffff !important;
}
.cloudstay-checkout-page.cs-dark-mode .mobile-sticky-footer .sticky-dates-nights {
    color: #999999 !important;
}

/* Inline policy agreement dark mode */
.cloudstay-checkout-page.cs-dark-mode .checkout-inline-policy-agreement {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-inline-policy-agreement a {
    color: #999999 !important;
}
.cloudstay-checkout-page.cs-dark-mode .checkout-inline-policy-agreement a:hover {
    color: #cccccc !important;
}

/* Beds24 Payment Notice */
.beds24-payment-form .payment-notice {
    text-align: center;
    padding: 30px 20px;
}

.beds24-payment-form .notice-icon {
    color: #2196F3;
    margin-bottom: 12px;
}

/* Beds24 Iframe Wrapper */
.beds24-iframe-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0;
}

.beds24-iframe-header {
    text-align: center;
    margin-bottom: 24px;
}

.beds24-iframe-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.beds24-iframe-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.beds24-iframe-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.beds24-payment-iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.beds24-iframe-footer {
    text-align: center;
    margin-top: 24px;
}

.beds24-iframe-footer .cloudstay-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.beds24-iframe-help {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .beds24-payment-iframe {
        min-height: 500px;
    }

    .beds24-iframe-wrapper {
        padding: 16px;
    }
}
