/* Keep the JS replacement anchor without adding a flex item; real alerts retain the shell gap. */
.kp-client-booking-flow > [data-booking-flashes] { display: contents; }

/* New recap fragments retain the canonical booking frame. */
.kp-recap-surcharge { margin: 10px 0; font-size: 13px; line-height: 1.5; color: var(--kp-maj-text); }
.kp-recap-surcharge > p, .kp-recap-surcharge > p strong { margin: 0; font-size: 13px; color: var(--kp-maj-text); }
.kp-recap-surcharge summary { display: flex; align-items: center; list-style: none; color: var(--kp-maj-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0; }
.kp-recap-surcharge summary::-webkit-details-marker { display: none; }
.kp-recap-surcharge summary::marker { content: ""; }
.kp-recap-surcharge details > p { margin: 13px 0; font-size: 13px; color: var(--kp-maj-text); }
.kp-recap-modify { margin-top: 4px; text-align: right; }
.kp-recap-modify a { display: inline-block; min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.kp-recap-guide, .kp-recap-mobile-summary { display: none; }
[data-recap-consent-error][hidden] { display: none; }
[data-recap-submit-status] { flex-basis: 100%; margin: 8px 0 0; }
#recap-dates { scroll-margin-top: 85px; }
@media (max-width: 1099px) {
    .js .kp-recap-actions { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 18; box-sizing: border-box; background: var(--kp-maj-card, #fff); border: 1px solid var(--kp-maj-border-soft, #efe8d6); border-radius: 16px; padding: 34px 16px 12px; box-shadow: 0 -4px 20px color-mix(in srgb, var(--kp-color-text-main) 8%, transparent); display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
    .js [data-recap-consent] { padding-bottom: 120px; }
    .js .kp-recap-actions > a { display: none; }
    .js .kp-recap-mobile-summary { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--kp-maj-text-soft); font-size: 12px; }
    .js .kp-recap-mobile-summary > span { position: absolute; top: 12px; left: 16px; right: 16px; }
    .js .kp-recap-mobile-summary > div { display: grid; gap: 2px; }
    .js .kp-recap-mobile-summary strong { font-size: 20px; color: var(--kp-maj-text); }
    .js .kp-recap-mobile-summary { flex: 1; }
    .js .kp-recap-guide { display: inline-flex; min-height: 44px; padding: 12px 14px; font-size: 13px; width: auto; flex: 0 0 auto; margin: 0; }
    .js [data-recap-consent]:not(.has-recap-consent) .kp-recap-actions [data-recap-submit] { display: none; }
    .js .has-recap-consent .kp-recap-guide { display: none; }
    .js .has-recap-consent .kp-recap-actions { padding-top: 12px; }
    .js .kp-recap-actions [data-recap-submit] { min-height: 44px; font-size: 13px; padding: 12px 14px; width: auto; flex: 0 0 auto; margin: 0; }
    .js .kp-legal-consent-field { scroll-margin-bottom: 200px; }
}

.kp-recap-daily-price { margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid var(--kp-maj-border-soft); background: transparent; }
.kp-recap-daily-price__date { display: block; margin-bottom: 10px; font-size: 14px; }
.kp-recap-daily-price .kp-booking-price-row { margin-bottom: 10px; gap: 12px; font-size: 13px; font-family: var(--kp-font-body); }
.kp-recap-sidebar-date { border-top: 1px solid var(--kp-maj-border-soft); padding-top: 12px; }
.kp-recap-sidebar-date > p { margin: 6px 0; font-size: 13px; }

/* Published price details follow the Epic18 tokens, outside the historical frame. */
#recap-dates { color: var(--kp-maj-text); background: var(--kp-maj-card); border-color: var(--kp-maj-border-soft); }
#recap-dates > h3, #recap-dates .kp-multi-day-recap__price-details > h3 { color: var(--kp-maj-text); font-family: var(--kp-maj-font-heading); }
#recap-dates .kp-multi-day-recap__day { color: var(--kp-maj-text); background: var(--kp-maj-blue); }
#recap-dates .kp-booking-price-row, .kp-recap-daily-price .kp-booking-price-row { margin-bottom: 10px; color: var(--kp-maj-text-soft); font-size: 13px; font-family: var(--kp-font-body); }
#recap-dates .kp-booking-price-row strong, .kp-recap-daily-price .kp-booking-price-row strong { color: var(--kp-maj-text); font-size: 13px; }
#recap-dates .kp-booking-price-total { align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 14px; margin-bottom: 0; border-color: var(--kp-maj-border-soft); color: var(--kp-maj-text); }
#recap-dates .kp-booking-price-total > span { font-family: var(--kp-maj-font-body); font-size: 14px; font-weight: 700; }
#recap-dates .kp-booking-price-total strong { color: var(--kp-maj-primary); font-family: var(--kp-maj-font-body); font-size: 24px; font-weight: 700; }
.kp-recap-modify a, .kp-recap-daily-price { color: var(--kp-maj-text); }
.kp-recap-modify a { color: var(--kp-maj-primary); }
.kp-recap-quote-update { border-color: var(--kp-color-warning-border); background: var(--kp-color-warning-bg); }
.kp-recap-quote-update .kp-button, .kp-recap-actions .kp-button--primary { font-family: var(--kp-maj-font-body); color: var(--kp-maj-card); background: var(--kp-maj-primary); }
.kp-recap-actions .kp-recap-mobile-summary strong { color: var(--kp-maj-primary); font-family: var(--kp-maj-font-body); }
.kp-recap-daily-price__date { color: var(--kp-maj-text); }

.kp-recap-mobile-summary [data-recap-days-link] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 12px; }

@media (max-width: 1099px) { .js .kp-recap-actions > a[data-recap-retry] { display: inline-flex; align-items: center; min-height: 44px; width: auto; padding: 12px 14px; font-size: 13px; } }

/* F3/F6: source Alert primitive for the new quote/update and unavailable warnings. */
.kp-alert.kp-recap-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; }
.kp-recap-alert--warning { color: var(--kp-color-warning-fg); border-color: var(--kp-color-warning-border); background: var(--kp-color-warning-bg); }
.kp-recap-alert__icon { flex: 0 0 auto; font-size: 16px; line-height: 20px; color: var(--kp-color-warning-fg); }
.kp-recap-alert__content { flex: 1; min-width: 0; font-family: var(--kp-font-body); font-size: 13px; line-height: 1.5; color: var(--kp-color-warning-fg); }
.kp-recap-alert .kp-recap-alert__content p { margin: 0; font-size: 13px; line-height: 1.5; color: inherit; }
.kp-recap-alert .kp-recap-alert__content strong, .kp-recap-alert .kp-recap-alert__content p span { font-size: 13px; color: inherit; }
.kp-booking-panel .kp-recap-alert__content p span { display: inline; }
.kp-recap-alert .kp-recap-alert__title { display: block; margin: 0 0 2px; font-family: var(--kp-maj-font-body); font-weight: 700; font-size: 13px; line-height: 1.5; color: inherit; }
.kp-recap-alert .kp-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 44px; padding: 10px 20px; border-radius: 10px; font-family: var(--kp-maj-font-body); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; color: var(--kp-maj-card); background: var(--kp-maj-primary); box-shadow: 0 1px 3px color-mix(in srgb, var(--kp-color-text-main) 25%, transparent); }
/* F4: the guided state is distinct from canonical server validation errors. */
.kp-booking-panel .kp-legal-consent-field--guided { --kp-booking-consent-check-size: 18px; grid-template-columns: 18px minmax(0, 1fr); gap: 0 10px; padding: 12px; border-color: #c03939; background: #fff3f2; }
.kp-booking-panel .kp-legal-consent-field--guided:focus-within { border-color: #c03939; box-shadow: none; }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent,
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent__copy,
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent__copy a { color: var(--kp-maj-text-soft); font-family: var(--kp-font-body); font-size: 13px; font-weight: 400; line-height: 1.5; }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent { align-items: flex-start; gap: 10px; }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent input { width: 18px; height: 18px; margin: 2px 0 0; box-shadow: none; accent-color: var(--kp-maj-primary); }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent input:focus-visible { outline-color: var(--kp-maj-primary); box-shadow: none; }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent__error { margin-top: 4px; color: #a52c2c; font-size: 12px; font-weight: 700; line-height: 1.5; }
.kp-booking-panel .kp-legal-consent-field--guided .kp-legal-consent__error-icon { display: none; }
.kp-recap-submit-arrow { display: none; }
@media (max-width: 1099px) { .has-recap-consent .kp-recap-submit-arrow { display: inline-block; width: 16px; height: 16px; margin: 0; } }

#recap-dates .kp-multi-day-recap__price-details > h3 { font-size: 13px; }

/* F2b: only the daily detail heading, outside schedule cards and historical sidebars. */
#recap-dates .kp-recap-daily-price__date { font-family: var(--kp-font-body); font-size: 16px; font-weight: 700; color: var(--kp-maj-text); }

.kp-booking-price-panel .kp-recap-surcharge, .kp-booking-price-panel .kp-recap-surcharge > p, .kp-booking-price-panel .kp-recap-surcharge > p strong { font-family: var(--kp-font-body); font-size: 13px; }
.kp-booking-price-panel .kp-recap-surcharge > p strong { font-weight: 700; }
