/* Shared commerce theme. Keep the checkout application's app/checkout copy in sync. */
html:is([data-wandoras-commerce], :has([data-standalone-checkout], #wm-mix-all)) {
  color-scheme: light;
  background-color: var(--w-commerce-canvas);
  color: var(--w-commerce-ink);
}
html[data-wandoras-commerce] body,
html:has([data-standalone-checkout], #wm-mix-all) body {
  background-color: var(--w-commerce-canvas);
  color: var(--w-commerce-ink);
  font-family: Outfit, Arial, sans-serif;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-hub, .pt-card, .pt-comparison
) {
  --pt-base: var(--w-commerce-canvas);
  --pt-card: var(--w-commerce-white);
  --pt-ink: var(--w-commerce-ink);
  --pt-muted: var(--w-commerce-muted);
  --pt-edge: var(--w-commerce-line);
  --pt-soft: var(--w-commerce-ivory);
  --pt-active: var(--w-commerce-ivory);
  --pt-accent: var(--w-commerce-ink);
  --pt-gold: var(--w-commerce-champagne);
}

html[data-wandoras-commerce] #wm-mix-all,
#wm-mix-all[data-wandoras-palette] {
  --mm-ink: var(--w-commerce-ink);
  --mm-line: var(--w-commerce-line);
  --mm-muted: var(--w-commerce-muted);
  --mm-gold: var(--w-commerce-champagne);
  --mm-teal: var(--w-commerce-ink);
  --mm-paper: var(--w-commerce-canvas);
  background-color: var(--w-commerce-canvas) !important;
  color: var(--w-commerce-ink);
  font-family: Outfit, Arial, sans-serif !important;
}
html[data-wandoras-commerce] :is(.pt-hub, .sig, .adp-product, .smp-product-mobile, .amp-product-root, .atlas-desktop-product),
#wm-mix-all :is(.be-itinerary, .sd-page, .mm-shell) {
  background-color: var(--w-commerce-canvas) !important;
}
html[data-wandoras-commerce] :is(.pt-hero, .tb-hero) .wsl-copy :is(.wsl-title, .pt-full-copy, .pt-short-copy) {
  color: var(--w-commerce-white);
}
html[data-wandoras-commerce] :is(.pt-hero, .tb-hero) .wsl-copy :is(.wsl-kicker, .wsl-title .pt-full-copy > span) {
  color: var(--w-commerce-champagne);
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-card, .pt-comparison, .tb-card, .tb-list-card, .tb-upsell, .tb-reputation,
  .pt-how, .smp-review-card, .smj-dialog, .nmj-dialog, .sdj-dialog, .ndj-dialog,
  .ndj-booking-panel, .smj-summary, .nmj-summary, .sdj-summary, .ndj-order-summary,
  .nmj-option-card, .ndj-option-card, .smj-option-card, .sdj-option-card,
  .nmj-calendar, .ndj-calendar, .sdj-calendar, .smj-calendar, .wa-calendar,
  .sv7-booking, .booking-panel, .sv7-sticky, .sv7-mobile-bar, .nmj-mobile-bar, .bm-booking-bar,
  .wm-option, .smp-orientation-card, .smp-trust, .sv7-inclusions > div,
  .unified-bundle-summary, .unified-bundle-dialog,
  .sd-evening-card, .sd-pick-card, .sd-summary, .sd-mobile-bar, .sd-details,
  .mm-compact-card, .mm-setup-form, .mm-trip-form, .mm-summary, .mm-price-summary,
  .mm-option-picker, .mm-option-picker-summary, .mm-combined-checkout, .mm-checkout-review-v2,
  .mm-dock, .mm-bookbar, .mm-combine-save-summary, .be-card, .be-summary, .be-travellers,
  .wd-card, .wd-form, .wd-review-summary, .wd-payment-card, .unf-meeting, .unf-payment,
  .bn-panel, .attraction-panel, .attraction-summary-card, .attraction-mobile-bar
) {
  background-color: var(--w-commerce-white) !important;
  border-color: var(--w-commerce-line) !important;
  color: var(--w-commerce-ink);
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .native-price-amount, .tb-price, .tb-price strong, .tb-list-price, .tb-live-price,
  .pt-from, .pt-total, .pt-price, .pt-card [data-sgd-minor], .whp-price-new, .whp-price-old,
  .wm-price, .wm-option [data-sgd-minor], .bm-price, .smp-from-price,
  .sv7-lead-price, .sv7-option-price, .sv7-total strong, .unified-total,
  .smj-footer-price, .smj-option-total, .nmj-sticky-price-summary, .nmj-option-total,
  .sdj-entry-price, .sdj-card-total, .sdj-summary-total strong, .ndj-panel-price,
  .ndj-option-total, .ndj-option-prices, .ndj-summary-total strong,
  .sd-evening-price, .sd-mobile-total, .sd-total, .sd-pickup-option b,
  .be-line-price, .be-total, .be-offer strong, .be-original s, .be-price, .mm-price, .mm-dock-amount, .mm-itinerary-price,
  .mm-price-total, .mm-summary-total, .mm-welcome-price, .mm-option-choice-price,
  .mm-checkout-price-row strong, .mm-ticket-card-price, .mm-ticket-card-total,
  .wd-native-price, .wd-pay-total, .wd-review-total strong, .wd-transfer-total strong,
  .wd-selection-total, .sm-action-price, .sm-choice-price, .sm-choice-total,
  .atlas-price-total, .ub-payment-amount, .ub-total, .wpk-total, .bn-mobile-total,
  .wd-total, .wd-total strong, .unf-total strong, .unf-review-total strong,
  .bn-summary-total, .bn-tier-price, .attraction-total, .attraction-cart-total strong,
  .attraction-mobile-bar strong, .attraction-bundle-price, .attraction-transfer-price,
  .attraction-catalogue-price, .attraction-details-option-price, .premium-mobile-price strong,
  .whp-stopover-price, [data-native-card-price], [data-live-tour-price],
  .sd-price-details strong, .be-sum-row strong, .wpk-total strong, [data-merch-option-price]
) {
  color: var(--w-commerce-ink) !important;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-saving, .whp-saving, .tb-saving, .sd-saving, .mm-price-saving, .mm-dock-saving,
  .mm-combine-save-saving, .be-saving, .be-savings, [data-bundle-saving], .tb-bundle-badge
) {
  background-color: var(--w-commerce-accent-wash) !important;
  border-color: var(--w-commerce-champagne) !important;
  color: var(--w-commerce-ink) !important;
}
:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-saving, .whp-saving, .tb-saving, .sd-saving, .mm-price-saving, .mm-dock-saving,
  .mm-combine-save-saving, .be-saving, .be-savings, [data-bundle-saving], .tb-bundle-badge
) :is(span, strong, b) {
  color: var(--w-commerce-ink) !important;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-modes > a, .tb-recommendation, .tb-suggestion, .wd-notice, .wd-arrangement, .premium-trust,
  .ndj-breakdown, .mm-price-breakdown, .mm-setup-note, .sd-trip-note, .be-breakdown, .tb-category,
  .be-offer, .tb-list-card[data-tb-bundle-group] > .tb-list-link, .mm-welcome-prices
) {
  background: var(--w-commerce-ivory) !important;
  border-color: var(--w-commerce-line);
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .pt-modes > a[aria-current=page], .pt-comparison .whp-tabs button[aria-selected=true],
  .sd-evening-card[aria-pressed=true], .sd-pickup-option[aria-pressed=true],
  .nmj-option-card.is-selected, .ndj-option-card.is-selected, .smj-option-card.is-selected, .sdj-option-card.is-selected,
  .mm-details-option[aria-pressed=true], .mm-option-card[aria-pressed=true],
  .sd-evening-card:is([data-selected=true], .is-selected, :has(input:checked)),
  .sd-pickup-option:is([data-selected=true], .is-selected, :has(input:checked)),
  .wd-option.selected, .sm-choice-card[data-selected=true], .attraction-bundle[data-selected=true],
  .be-choice:is([aria-pressed=true], [data-selected=true]), .wa-calendar button[aria-pressed=true]
) {
  background-color: var(--w-commerce-ivory) !important;
  border-color: var(--w-commerce-champagne) !important;
  color: var(--w-commerce-ink) !important;
  box-shadow: none;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  input:not([type=checkbox], [type=radio], [type=hidden], [type=range], [type=submit]),
  select, textarea, .wd-intl-phone-control, .wd-designed-trigger, .sd-date-trigger
):not([aria-invalid=true], :disabled, #wandoras-site-header *, .wim-dialog *) {
  background-color: var(--w-commerce-white) !important;
  border-color: var(--w-commerce-field) !important;
  color: var(--w-commerce-ink) !important;
}
:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) input:is([type=radio], [type=checkbox]) {
  accent-color: var(--w-commerce-champagne);
}
:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all)
  :is(input, select, textarea, a, button, summary):focus-visible:not(#wandoras-site-header *, .wim-dialog *) {
  outline: 2px solid var(--w-commerce-ink);
  outline-offset: 3px;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .adp-book, .adp-booking-slot .action, .hero-book, .sv7-book, .bm-book, .smp-book, .v3-book,
  .sv7-booking-continue, .sv7-mobile-bar a, .nmj-mobile-bar a, .smj-option-select,
  .nmj-primary, .ndj-primary, .smj-primary, .sdj-primary, .unified-primary,
  .booking-panel .btn:not(.outline), .tb-card-action, .tb-cta, .pt-book, .pt-primary,
  .sd-primary, .mm-primary, .mm-existing-book, .mm-itinerary-book, .mm-combine-save-primary, .mm-welcome-primary,
  .be-book, .be-checkout, .atlas-book, .premium-book, .wd-book, .wd-button:not(.wd-secondary, .wd-button-secondary),
  .bn-cta, .sm-cta, .attraction-cta, .attraction-secure-payment-cta, .mandai-request form > button
):not(:disabled, [aria-disabled=true], #wandoras-site-header *, .wim-dialog *) {
  background: var(--w-commerce-champagne) !important;
  color: var(--w-commerce-ink) !important;
  border-color: var(--w-commerce-champagne) !important;
  box-shadow: none;
  font-family: Outfit, Arial, sans-serif;
  font-weight: 600 !important;
}
:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .adp-book, .sv7-book, .bm-book, .smp-book, .nmj-primary, .ndj-primary, .smj-primary, .sdj-primary,
  .unified-primary, .pt-book, .sd-primary, .mm-primary, .be-book, .be-checkout, .wd-button:not(.wd-secondary, .wd-button-secondary),
  .bn-cta, .attraction-cta
):hover:not(:disabled, [aria-disabled=true]) {
  background: var(--w-commerce-hover) !important;
  border-color: var(--w-commerce-hover) !important;
  color: var(--w-commerce-ink) !important;
}

:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .tb-title, .tb-card h3, .tb-list-card h3, .pt-card h3, .sd-evening-card h3, .be-card h3,
  .wm-option h3, .mm-compact-card h3, .ndj-option-card h3, .smj-option-card h3
) {
  font-weight: 600;
}
:is(html[data-wandoras-commerce], [data-standalone-checkout], #wm-mix-all) :is(
  .smp-benefit-icon > svg, .asm-benefit-icon > svg, .adp-fact-icon > svg, .pt-icon > svg
) {
  width: min(1.25rem, 100%);
  height: min(1.25rem, 100%);
}

html[data-wandoras-commerce] body[data-wandoras-standalone] {
  --book-ink: var(--w-commerce-ink);
  --book-line: var(--w-commerce-line);
  --book-paper: var(--w-commerce-white);
  --book-soft: var(--w-commerce-ivory);
  --book-gold: var(--w-commerce-champagne);
  --book-accent: var(--w-commerce-ink);
  --book-selected: var(--w-commerce-accent-wash);
}
:is(html[data-wandoras-commerce], #wm-mix-all) :is(.tb-merchandising, .smp-benefit-icon, .asm-benefit-icon, .sv7-stop-number) {
  background-color: var(--w-commerce-neutral);
  color: var(--w-commerce-ink);
}
:is(html[data-wandoras-commerce], #wm-mix-all) :is(.tb-pickup, .be-category) {
  color: var(--w-commerce-muted);
}
#wm-mix-all .be-choice input:checked {
  border-color: var(--w-commerce-champagne) !important;
  background: var(--w-commerce-champagne) !important;
}

@media (min-width: 1024px) {
  body .bt-bundle-planner > .pt-wrap {
    max-width: none;
    width: 100%;
    padding-inline: 0;
  }
  #wm-mix-all .be-itinerary :is(.be-hero-inner, .be-layout),
  #wm-mix-all .sd :is(.sd-shell, .sd-layout),
  #wm-mix-all :is(.mm-layout, .mm-detail, .mm-setup, .mm-review, .mm-combined-checkout) {
    box-sizing: border-box;
    width: var(--w-content-width);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
  }
  .bt-main [data-native-trip] #wm-mix-all .mm-layout {
    width: var(--w-content-width);
    padding-inline: 0;
  }
  [data-standalone-checkout] :is(.wd-main, .attraction-width, .wpk) {
    box-sizing: border-box;
    width: var(--w-content-width);
    max-width: var(--w-content-max);
    margin-inline: auto;
    padding-inline: 0;
  }
  [data-standalone-checkout] .wd-checkout.wd-atlas-checkout.wd-premium-checkout .wd-main {
    width: var(--w-content-width);
    max-width: var(--w-content-max);
    padding-inline: 0;
  }
}

#wm-mix-all :is(.be-category, .sd-hero .sd-kicker, .mm-option-choice-price) {
  color: var(--w-commerce-ink);
}
#wm-mix-all .be-hero-inner > a { color: var(--w-commerce-champagne); }

#wm-mix-all .sd :is(.sd-hero a, .sd-back, .sd-add, .sd-drag),
#wm-mix-all .be-itinerary .be-guests button {
  color: var(--w-commerce-ink) !important;
}
