/* Booking payment choices */
.payment-methods { min-width: 0; border: 0; padding: 0; margin: 1.5rem 0 1rem; text-align: left; }
.payment-methods legend { padding: 0; margin-bottom: .75rem; font-size: 1.3rem; font-weight: 700; }
.payment-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.buchungsform-default .payment-option { position: relative; display: block; margin: 0; cursor: pointer; }
.buchungsform-default .payment-choice-input {
    position: absolute; width: 1px !important; height: 1px; padding: 0; margin: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.payment-option-card {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 126px; height: 100%; padding: 1.2rem .4rem .85rem; border: 2px solid #dce7e7;
    border-radius: 12px; background: #fff; text-align: center; transition: border-color .15s, background-color .15s;
}
.buchungsform-default .payment-option-icon { margin: 0 0 .6rem; font-size: 1.75rem; color: #317c81; }
.buchungsform-default .payment-option-icon.fa-paypal { color: #003087; }
.payment-option-label { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.payment-option-hint { margin-top: .2rem; font-size: .9rem; line-height: 1.3; color: #666a6b; }
.payment-option-check { position: absolute; top: .55rem; right: .55rem; width: 14px; height: 14px; border: 1px solid #a3b8ba; border-radius: 50%; background: #fff; }
.payment-option:hover .payment-option-card { border-color: #7fb7bb; background: #f7fbfb; }
.payment-choice-input:checked + .payment-option-card { border-color: #317c81; background: #edf7f6; }
.payment-choice-input:checked + .payment-option-card .payment-option-check { border: 4px solid #317c81; }
.payment-choice-input:focus-visible + .payment-option-card { outline: 3px solid #003087; outline-offset: 3px; }
.payment-error { color: #a32b2b; margin: .6rem 0 0; font-size: 1rem; }
.payment-error:empty { display: none; }
.payment-transfer-details, .payment-instructions { padding: 1rem 1.15rem; border-radius: 10px; background: #edf7f6; border-left: 3px solid #3ca7ad; text-align: left; overflow-wrap: anywhere; }
.payment-transfer-details p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.booking-mail-notice { padding: .85rem 1rem; border-radius: 8px; background: #fff7df; color: #705310; }

/* Shared CTA, including the link shown immediately after booking. */
.payment-paypal-button, a.payment-paypal-button:link, a.payment-paypal-button:visited {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px;
    max-width: 100%; padding: .85rem 1.7rem; border: 0; border-radius: 28px; background: #ffc439;
    color: #003087; font: 700 1.15rem/1.3 "Condensed", sans-serif; text-decoration: none; text-align: center; cursor: pointer;
    box-shadow: 0 3px 8px #00308710;
}
.payment-paypal-button:hover, a.payment-paypal-button:hover { background: #f2ba36; color: #003087; }
.payment-paypal-button:focus-visible, .payment-secondary:focus-visible, .payment-back:focus-visible { outline: 3px solid #003087; outline-offset: 4px; }
.payment-paypal-button i { color: #003087; font-size: 1.35rem; }
.payment-paypal-button:disabled, .payment-secondary:disabled { opacity: .65; cursor: wait; }
.paypal-offer { margin: 1.25rem 0; }

/* Payment page */
body.payment-page { min-height: 100vh; background: #f3f7f6; }
.payment-shell { max-width: 560px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.payment-brand { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.payment-brand img { width: 115px; height: auto; }
.payment-card { padding: 2.2rem; border: 1px solid #e0e9e7; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px #294e4710; text-align: center; }
.payment-eyebrow { margin: 0 0 .65rem; color: #317c81; font-size: .95rem; letter-spacing: .07em; text-transform: uppercase; }
.payment-card h1 { margin: 0 0 .6rem; font-size: 2.1rem; color: #355557; }
.payment-booking-reference { margin: 0; font-size: 1rem; }
.payment-total { margin: 1.65rem 0; padding: 1.3rem 0; border-top: 1px solid #e6edeb; border-bottom: 1px solid #e6edeb; }
.payment-total span { display: block; font-size: 1rem; }
.payment-total strong { display: block; margin-top: .25rem; font-size: 2.6rem; line-height: 1.2; color: #355557; }
.payment-status { padding: .9rem 1rem; margin-bottom: 1.2rem; background: #f3f7f6; border-radius: 10px; font-size: 1.05rem; line-height: 1.5; }
.payment-status p { margin: 0; }
.payment-status[data-state="success"] { color: #22634e; background: #edf7f1; }
.payment-status[data-state="warning"], .payment-status[data-state="error"] { color: #705310; background: #fff7df; }
.payment-status[data-state="loading"]::before { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid #d3e3e1; border-top-color: #317c81; border-radius: 50%; animation: payment-spin .8s linear infinite; }
.payment-actions { display: flex; flex-direction: column; gap: .7rem; }
.payment-actions[hidden] { display: none; }
.payment-secondary { min-height: 44px; padding: .65rem 1rem; border: 1px solid #c2d4d2; border-radius: 24px; background: #fff; color: #355557; font: inherit; font-size: 1rem; cursor: pointer; }
.payment-secondary:hover { background: #f3f7f6; }
.payment-note { margin: 1rem 0 0; font-size: .9rem; line-height: 1.5; }
.payment-back, .payment-back:visited { display: block; width: fit-content; margin: 1.5rem auto 0; color: #355557; font-size: 1rem; text-underline-offset: 4px; }
.payment-back i { margin-right: .4rem; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .payment-options { grid-template-columns: 1fr; }
    .payment-option-card { min-height: 76px; padding: .85rem 2rem .85rem 3.7rem; align-items: flex-start; text-align: left; }
    .buchungsform-default .payment-option-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); margin: 0; }
    .payment-option-check { top: calc(50% - 7px); right: .9rem; }
    .payment-shell { padding-top: 1.2rem; }
    .payment-card { padding: 1.5rem 1.1rem; }
    .paypal-offer .payment-paypal-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .payment-option-card { transition: none; } .payment-status[data-state="loading"]::before { animation: none; } }
@media (forced-colors: active) { .payment-choice-input:checked + .payment-option-card { border-color: Highlight; } .payment-choice-input:checked + .payment-option-card .payment-option-check { border-color: Highlight; } }
