.booking-deposit-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin: 18px 0 24px;
    border: 1px solid rgba(182, 141, 66, 0.46);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: #fffaf2;
    padding: 16px;
}

.booking-deposit-preview__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2e2c2;
    color: var(--gold-dark);
}

.booking-deposit-preview__content {
    min-width: 0;
}

.booking-deposit-preview h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.booking-deposit-preview p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.booking-deposit-preview__amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 14px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(182, 141, 66, 0.28);
}

.booking-deposit-preview__amounts div {
    min-width: 0;
}

.booking-deposit-preview__amounts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-deposit-preview__amounts dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.deposit-checkout {
    width: min(1030px, 100%);
    margin: 0 auto;
}

.deposit-checkout__heading {
    max-width: 670px;
    margin-bottom: clamp(22px, 4vw, 34px);
}

.deposit-checkout__heading h1 {
    max-width: none;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1;
}

.deposit-checkout__heading > p:last-child {
    max-width: 62ch;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.deposit-checkout__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    gap: clamp(18px, 3vw, 30px);
    align-items: start;
}

.deposit-payment-panel,
.deposit-booking-summary {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 70px rgba(23, 19, 15, 0.12);
}

.deposit-payment-panel {
    padding: clamp(20px, 4vw, 32px);
}

.deposit-panel-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.deposit-panel-heading__icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2e2c2;
    color: var(--gold-dark);
}

.deposit-panel-heading h2,
.deposit-state h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
}

.deposit-authentication-mount:not(:empty) {
    min-height: 180px;
    margin-top: 14px;
    border-top: 1px solid rgba(182, 141, 66, 0.34);
    padding-top: 14px;
}

.deposit-panel-heading p,
.deposit-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.deposit-hold-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
    border: 1px solid rgba(182, 141, 66, 0.42);
    border-radius: 8px;
    background: #fffaf2;
    color: var(--gold-dark);
    padding: 12px 14px;
}

.deposit-hold-notice[hidden] {
    display: none;
}

.deposit-hold-notice > svg {
    margin-top: 1px;
}

.deposit-hold-notice > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.deposit-hold-notice strong {
    color: var(--ink);
    font-size: 13px;
}

.deposit-hold-notice time {
    margin-top: 3px;
    color: var(--gold-dark);
    font-weight: 800;
}

.deposit-state-stack:empty {
    display: none;
}

.deposit-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 15px;
}

.deposit-state[hidden] {
    display: none;
}

.deposit-state--progress {
    border-left-color: var(--gold);
    background: #fffaf2;
}

.deposit-state--error {
    border-color: rgba(159, 29, 29, 0.36);
    border-left-color: var(--danger);
    background: #fff6f3;
}

.deposit-state--attention {
    border-color: rgba(182, 141, 66, 0.52);
    border-left-color: var(--gold-dark);
    background: #fffaf2;
}

.deposit-state h2 {
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
}

.deposit-state__symbol,
.deposit-spinner {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 15px;
    font-weight: 800;
}

.deposit-state--attention .deposit-state__symbol {
    background: var(--gold-dark);
}

.deposit-spinner {
    border: 3px solid rgba(182, 141, 66, 0.24);
    border-top-color: var(--gold-dark);
    background: transparent;
    animation: deposit-spin 900ms linear infinite;
}

.deposit-text-action {
    display: inline-flex;
    margin-top: 9px;
    border: 0;
    background: transparent;
    color: var(--gold-dark);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.deposit-recovery-reference {
    display: grid;
    gap: 3px;
    margin-top: 12px !important;
    border-top: 1px solid rgba(182, 141, 66, 0.34);
    padding-top: 12px;
}

.deposit-recovery-reference span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.deposit-recovery-reference strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
}

.deposit-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.deposit-payment-form {
    display: grid;
    gap: 17px;
    margin-top: 22px;
}

.deposit-checkout:not([data-payment-state="ready"]):not([data-payment-state="declined"]) .deposit-payment-form {
    display: none;
}

.deposit-card-field {
    display: grid;
    gap: 8px;
}

.deposit-card-field__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.deposit-card-label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.deposit-card-field__heading span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.deposit-tokenization-mount {
    min-height: 148px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    padding: 18px;
    text-align: center;
    overflow: hidden;
}

.deposit-provider-placeholder {
    width: 100%;
    display: grid;
    place-items: center;
    gap: 13px;
}

.deposit-provider-placeholder[hidden] {
    display: none;
}

.deposit-tokenization-mount iframe {
    width: 100%;
    min-height: 176px;
    display: block;
    border: 0;
}

.deposit-card-skeleton {
    width: min(100%, 340px);
    height: 42px;
    border-radius: 7px;
    background: linear-gradient(90deg, #f4efe7 20%, #fffaf2 45%, #f4efe7 70%);
    background-size: 220% 100%;
    animation: deposit-shimmer 1.5s ease-in-out infinite;
}

.deposit-security-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.deposit-security-note svg {
    margin-top: 1px;
    color: var(--gold-dark);
}

.deposit-submit {
    gap: 9px;
    min-height: 52px;
    font-size: 15px;
}

.deposit-return-link {
    justify-self: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-underline-offset: 3px;
}

.deposit-return-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
}

.deposit-return-button:hover,
.deposit-return-button:focus-visible {
    color: var(--ink);
}

.deposit-abandon-form {
    display: none;
}

.deposit-booking-summary {
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.deposit-booking-summary__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(223, 212, 197, 0.7);
    background: var(--ink);
    color: white;
    padding: 15px 18px;
}

.deposit-booking-summary__top span {
    color: #d9bd82;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.deposit-booking-summary__top svg {
    color: #d9bd82;
}

.deposit-booking-summary > h2 {
    margin: 0;
    padding: 20px 20px 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

.deposit-booking-summary__time {
    margin: 5px 0 0;
    padding: 0 20px 18px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.deposit-service-list {
    display: grid;
    margin: 0;
    padding: 0 20px;
    list-style: none;
}

.deposit-service-list li {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding: 13px 0;
}

.deposit-service-list li > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.deposit-service-list strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
}

.deposit-service-list li > strong {
    flex: 0 0 auto;
    color: var(--gold-dark);
}

.deposit-service-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.deposit-amount-summary {
    display: grid;
    margin: 5px 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.deposit-amount-summary div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.deposit-amount-summary dt,
.deposit-amount-summary dd {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.deposit-amount-summary dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    text-align: right;
}

.deposit-amount-summary__due {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.deposit-amount-summary__due dt,
.deposit-amount-summary__due dd {
    color: var(--gold-dark);
    font-size: 14px;
}

.deposit-summary-note {
    margin: 0;
    padding: 16px 20px 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.55;
}

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

@keyframes deposit-shimmer {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 780px) {
    .deposit-checkout__heading {
        margin-bottom: 20px;
    }

    .deposit-checkout__heading h1 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .deposit-checkout__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .deposit-booking-summary {
        position: static;
    }
}

@media (max-width: 520px) {
    .booking-deposit-preview {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-deposit-preview__amounts {
        grid-template-columns: minmax(0, 1fr);
    }

    .deposit-payment-panel {
        padding: 18px;
    }

    .deposit-panel-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .deposit-panel-heading__icon {
        width: 40px;
        height: 40px;
    }

    .deposit-panel-heading h2 {
        font-size: 25px;
    }

    .deposit-card-field__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .deposit-tokenization-mount {
        min-height: 138px;
        padding: 14px;
    }

    .deposit-booking-summary > h2,
    .deposit-booking-summary__time,
    .deposit-service-list,
    .deposit-summary-note {
        padding-left: 16px;
        padding-right: 16px;
    }

    .deposit-amount-summary {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .deposit-spinner,
    .deposit-card-skeleton {
        animation: none;
    }
}
