/* The step 4 card (krb_render_pay_card in booking-form.php): the booking's only price summary, on the theme's own
   tokens, with the deposit set off as what is paid now. Loaded on every trip page. */

.pay-card { max-width: 480px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 16px var(--shadow); overflow: hidden; font-size: 16px; line-height: 1.55; }

.pay-card__trip { position: relative; aspect-ratio: 5 / 2; color: #FFFFFF; }
@media (max-width: 720px) { .pay-card__trip { aspect-ratio: 16 / 9; } }
.pay-card__trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-card__trip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 13, 0.88) 0%, rgba(8, 16, 13, 0.2) 55%, rgba(8, 16, 13, 0) 100%); }
.pay-card__trip--plain { aspect-ratio: auto; min-height: 96px; background: var(--green); }
.pay-card__trip--plain::after { content: none; }
.pay-card__trip-body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; display: grid; gap: 2px; }
.pay-card__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; text-wrap: balance; }
.pay-card__head { color: #D6DED9; font-size: 14px; font-weight: 600; }

.pay-card__body { padding: 18px 20px 20px; display: grid; gap: 14px; }

/* Price lines: small lines, then the total in the display face, then what is paid now and what is left. */
.pay-card__lines { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.pay-card__who:not([hidden]) + .pay-card__lines { border-top: 1px solid var(--line); padding-top: 14px; }
.pay-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.pay-line dt { margin: 0; color: var(--ink-soft); }
.pay-line dd { margin: 0; white-space: nowrap; }
.pay-line--discount dd { color: var(--green); font-weight: 600; }
.pay-line--total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 16px; }
.pay-line--total dt { color: var(--ink); }
.pay-line--total dd { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.pay-line--now { background: var(--bg-soft); border-radius: 10px; margin: 6px -10px 0; padding: 10px; font-size: 17px; font-weight: 700; }
.pay-line--now dt { color: var(--ink); }
.pay-line--now dd { color: var(--green); }
.pay-line--later { font-size: 14px; }

/* Code, checkboxes, the important information and the button. */
.pay-card__confirm { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.pay-card .booking__code, .pay-card .check { margin: 0; }
.pay-card .booking__code-body .field { max-width: none; }
.pay-card .booking__precontract { margin: -6px 0 0 32px; font-size: 14px; }
.booking__form .pay-card__cta { width: 100%; text-align: center; padding: 15px 18px; margin-top: 4px; }
.pay-card__note { margin: -4px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

@media (max-width: 400px) {
	.pay-card__body { padding: 16px 16px 18px; }
	.pay-line--now { margin-inline: -8px; padding-inline: 8px; }
}

/* The participant page: age beside the experience choice, which needs the room for its longer options. */
.booking__form--details .participant .field-grid { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
.booking__form--details .participant .field--narrow { max-width: none; }
.booking__form--details .field-grid + .field { margin-top: 14px; }
@media (max-width: 480px) { .booking__form--details .participant .field-grid { grid-template-columns: minmax(0, 1fr); } .booking__form--details .participant .field--narrow { max-width: 160px; } }
