/* GZ-HOTEL-SDK-PAY-01: the Nuitee Payment SDK form in the Gazova look, shared by the flight page (.fj-pay) and the hotel
 * checkout (.hc-pay). Moved from flight-results.css (GZ-FLIGHT-SDK-PAY-01/02) without visual changes.
 * .gz-pay is the card around the form, .gz-pay__form the wrapper's target element. Nothing here hides overflow:
 * the form box is 100% wide with min-width 0 inside a minmax(0, 1fr) grid card. */
.gz-pay { --pay-ink: #16140F; --pay-gold: #B48A34; --pay-gold-light: #E6C774; --pay-line: #EAE1CD; --pay-danger: #B4462F; }

.gz-pay__form:empty { display: none; }
/* 4px of padding gives Stripe's focus rings (drawn outside the field) room inside the box instead of past its edge. */
.gz-pay__form { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 120px; padding: 4px; }
.gz-pay__form form,
.gz-pay__form form > div { min-width: 0; max-width: 100%; box-sizing: border-box; }
.gz-pay__form iframe { max-width: 100%; }

/* The wrapper ships no CSS (its cssFile is empty): the submit button and the error line are styled here. */
.gz-pay .lp-submit-button-wrapper { margin-top: 16px; }
.gz-pay .lp-submit-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-sizing: border-box; width: 100%; height: 56px; min-height: 56px; margin: 0; padding: 0 20px;
    border: 1px solid var(--pay-ink); border-radius: 14px; background: var(--pay-ink); color: var(--pay-gold-light);
    font-family: 'Manrope', system-ui, sans-serif; font-size: 16px; font-weight: 800; line-height: 1; letter-spacing: 0; text-align: center;
    cursor: pointer; -webkit-appearance: none; appearance: none;
    transition: background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gz-pay .lp-submit-button::before {
    content: ''; flex: 0 0 auto; width: 18px; height: 18px; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gz-pay .lp-submit-button:hover { background: #2C2820; border-color: #2C2820; }
.gz-pay .lp-submit-button:focus-visible { outline: 3px solid rgba(180, 138, 52, .6); outline-offset: 3px; }
.gz-pay .lp-submit-button:disabled,
.gz-pay .lp-submit-button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.gz-pay__form.is-processing .lp-submit-button { opacity: .85; cursor: progress; pointer-events: none; }
.gz-pay__form.is-processing .lp-submit-button::before {
    -webkit-mask: none; mask: none; background: none;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; box-sizing: border-box;
    animation: gzPaySpin .8s linear infinite;
}
@keyframes gzPaySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .gz-pay__form.is-processing .lp-submit-button::before { animation: none; }
    .gz-pay .lp-submit-button { transition: none; }
}
.gz-pay #st-error-message { margin-top: 12px; color: var(--pay-danger); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.gz-pay #st-error-message:empty { display: none; }

/* Night (html[data-theme="dark"]): gold button with dark text; the Stripe form follows through the look hook. */
html[data-theme="dark"] .gz-pay { --pay-danger: #E58A73; }
html[data-theme="dark"] .gz-pay .lp-submit-button { border-color: #E6C774; background: #E6C774; color: #16140F; }
html[data-theme="dark"] .gz-pay .lp-submit-button:hover { border-color: #F0D58A; background: #F0D58A; }
html[data-theme="dark"] .gz-pay .lp-submit-button:focus-visible { outline-color: rgba(230, 199, 116, .7); }
