/* Checkout-only, compact order journey. Keep the payment action in normal flow. */
body .bto-checkout.bto-checkout--journey {
  width: min(100%, 1080px);
  margin: 20px auto 40px;
  padding-inline: 16px;
  line-height: 1.65;
}

body .bto-checkout.bto-checkout--journey .bto-checkout__head {
  max-width: none;
  margin: 0 0 16px;
  text-align: right;
}

body .bto-checkout.bto-checkout--journey .bto-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
}

body .bto-checkout.bto-checkout--journey .bto-checkout__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

body .bto-checkout.bto-checkout--journey .bto-form--single {
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgb(21 19 26 / 5%);
}

body .bto-checkout.bto-checkout--journey .bto-selection-stage,
body .bto-checkout.bto-checkout--journey .bto-selection-picker {
  min-width: 0;
  gap: 16px;
}

body .bto-checkout.bto-checkout--journey .bto-selection-stage--preselected {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

/* The section retains its accessible name without an extra visual step. */
body .bto-checkout.bto-checkout--journey .bto-selection-stage--preselected > .bto-section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body .bto-checkout.bto-checkout--journey .bto-selection-stage--preselected > .bto-selection-picker {
  grid-column: 1 / -1;
  padding-top: 8px;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 12px;
  background: #fff;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package > div {
  min-width: 0;
  min-height: 68px;
  gap: 3px;
  padding: 10px 14px;
  border-bottom: 0;
  border-inline-end: 1px solid var(--bto-border);
}

body .bto-checkout.bto-checkout--journey .bto-selected-package > div:last-child {
  border-inline-end: 0;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package span {
  font-size: 12px;
  line-height: 1.4;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package strong {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package__total {
  grid-column: auto;
  background: #fff3f7;
}

body .bto-checkout.bto-checkout--journey .bto-selected-package__total strong {
  color: var(--bto-primary-dark);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body .bto-checkout.bto-checkout--journey .bto-change-package {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--bto-border);
  border-radius: 10px;
  background: #fff;
  color: var(--bto-primary-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

body .bto-checkout.bto-checkout--journey .bto-change-package:hover {
  border-color: var(--bto-primary);
  background: #fff3f7;
}

body .bto-checkout.bto-checkout--journey .bto-checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 22px;
  margin-top: 18px;
  padding-top: 18px;
}

body .bto-checkout.bto-checkout--journey .bto-customer-fields {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body .bto-checkout.bto-checkout--journey .bto-section-heading {
  margin-bottom: 12px;
}

body .bto-checkout.bto-checkout--journey .bto-section-heading :is(h2, h3) {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
}

body .bto-checkout.bto-checkout--journey .bto-customer-fields > .bto-section-heading > span {
  display: none;
}

body .bto-checkout.bto-checkout--journey .bto-field {
  min-width: 0;
  margin-bottom: 16px;
}

body .bto-checkout.bto-checkout--journey .bto-field > label {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

body .bto-checkout.bto-checkout--journey .bto-field > label > [data-bto-target-label] {
  color: var(--bto-ink);
  font: inherit;
  font-weight: 700;
}

body .bto-checkout.bto-checkout--journey .bto-field :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select),
body .bto-checkout.bto-checkout--journey .bto-phone-tools select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid #bbb5c2;
  border-radius: 10px;
  background-color: #fff;
  color: var(--bto-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  scroll-margin-block: 110px 32px;
}

body .bto-checkout.bto-checkout--journey .bto-field :is(input[type="tel"], input[type="url"], input[type="email"], #bto-whatsapp, #bto-tiktok-url) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

body .bto-checkout.bto-checkout--journey .bto-field input::placeholder {
  color: #69636f;
  opacity: 1;
}

body .bto-checkout.bto-checkout--journey .bto-field textarea {
  min-height: 88px;
  resize: vertical;
}

body .bto-checkout.bto-checkout--journey .bto-field small {
  display: block;
  margin-top: 6px;
  color: var(--bto-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-field .bto-field-error,
body .bto-checkout.bto-checkout--journey .bto-field-error {
  display: block;
  margin: 6px 0 0;
  color: #a21638;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey :is(input, textarea, select)[aria-invalid="true"] {
  border-color: #b4233f;
  outline: 2px solid rgb(180 35 63 / 15%);
  outline-offset: 1px;
}

body .bto-checkout.bto-checkout--journey :is(button, input, textarea, select, summary, a):focus-visible {
  outline: 3px solid #087783;
  outline-offset: 3px;
}

body .bto-checkout.bto-checkout--journey .bto-phone-tools {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin-top: 8px;
}

body .bto-checkout.bto-checkout--journey .bto-phone-tools label {
  color: var(--bto-muted);
  font-size: 13px;
  line-height: 1.6;
}

body .bto-checkout.bto-checkout--journey .bto-phone-tools select {
  min-height: 44px;
  padding-block: 9px;
  padding-inline-end: 32px;
}

body .bto-checkout.bto-checkout--journey .bto-optional-field {
  margin-bottom: 12px;
}

body .bto-checkout.bto-checkout--journey .bto-optional-field summary {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
}

body .bto-checkout.bto-checkout--journey .bto-optional-field .bto-field {
  margin: 0;
  padding: 0 12px 12px;
}

body .bto-checkout.bto-checkout--journey .bto-disclosure-short {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #504954;
  font-size: 13px;
  line-height: 1.7;
}

body .bto-checkout.bto-checkout--journey .bto-consent {
  min-height: 44px;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.8;
}

body .bto-checkout.bto-checkout--journey .bto-consent input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
}

body .bto-checkout.bto-checkout--journey .bto-order-summary {
  position: sticky;
  top: var(--bto-sticky-offset, 112px);
  min-width: 0;
  padding: 18px;
  border-radius: 14px;
  background: #fcfbfc;
  box-shadow: none;
}

body .bto-checkout.bto-checkout--journey .bto-summary--compact > div {
  grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

body .bto-checkout.bto-checkout--journey .bto-summary__total strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

body .bto-checkout.bto-checkout--journey .bto-form-message {
  margin-block: 12px;
  scroll-margin-top: 110px;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-button--kashier-direct {
  position: static;
  inset: auto;
  display: flex;
  width: 100%;
  min-height: 56px;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 16px;
  line-height: 1.5;
  transform: none;
}

body .bto-checkout.bto-checkout--journey .bto-button--kashier-direct [data-bto-submit-label] {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-button--kashier-direct strong {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

body .bto-checkout.bto-checkout--journey .bto-button--kashier-direct:disabled {
  opacity: .6;
  cursor: not-allowed;
}

body .bto-checkout.bto-checkout--journey .bto-secure-note {
  margin: 9px 0 0;
  color: var(--bto-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-payment-assurances {
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bto-border);
  color: #504954;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  body .bto-checkout.bto-checkout--journey .bto-checkout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body .bto-checkout.bto-checkout--journey .bto-order-summary {
    position: static;
    top: auto;
  }
}

@media (max-width: 920px) {
  body .bto-checkout.bto-checkout--journey {
    margin: 10px auto 28px;
    padding-inline: 8px;
  }

  body .bto-checkout.bto-checkout--journey .bto-checkout__head {
    margin-bottom: 12px;
  }

  body .bto-checkout.bto-checkout--journey .bto-title {
    margin-bottom: 4px;
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.4;
  }

  body .bto-checkout.bto-checkout--journey .bto-checkout__head p {
    font-size: 14px;
    line-height: 1.65;
  }

  body .bto-checkout.bto-checkout--journey .bto-form--single {
    padding: 12px;
    border-radius: 15px;
  }

  body .bto-checkout.bto-checkout--journey .bto-selection-stage--preselected {
    gap: 8px;
  }

  body .bto-checkout.bto-checkout--journey .bto-selected-package > div {
    min-height: 64px;
    padding: 8px 10px;
  }

  body .bto-checkout.bto-checkout--journey .bto-selected-package strong {
    font-size: 14px;
  }

  body .bto-checkout.bto-checkout--journey .bto-selected-package__total strong {
    font-size: 17px;
  }

  body .bto-checkout.bto-checkout--journey .bto-change-package {
    max-width: 70px;
    padding: 8px;
    font-size: 13px;
  }

  body .bto-checkout.bto-checkout--journey .bto-checkout-grid {
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }

  body .bto-checkout.bto-checkout--journey .bto-customer-fields {
    padding: 0;
  }

  body .bto-checkout.bto-checkout--journey .bto-section-heading {
    margin-bottom: 10px;
  }

  body .bto-checkout.bto-checkout--journey .bto-section-heading :is(h2, h3) {
    font-size: 20px;
  }

  body .bto-checkout.bto-checkout--journey .bto-field {
    margin-bottom: 14px;
  }

  /* Only duplicate package rows are collapsed; price and payment notes remain. */
  body .bto-checkout.bto-checkout--journey .bto-order-summary {
    display: block;
    position: static;
    inset: auto;
    padding: 12px;
    border-radius: 12px;
  }

  body .bto-checkout.bto-checkout--journey .bto-order-summary > .bto-section-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  body .bto-checkout.bto-checkout--journey .bto-order-summary .bto-summary > div:not(.bto-summary__total) {
    display: none;
  }

  body .bto-checkout.bto-checkout--journey .bto-summary {
    border: 0;
    border-radius: 8px;
  }

  body .bto-checkout.bto-checkout--journey .bto-summary--compact > .bto-summary__total {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
  }

  body .bto-checkout.bto-checkout--journey .bto-summary__total strong {
    font-size: 22px;
    white-space: nowrap;
  }

  body .bto-checkout.bto-checkout--journey .bto-button--kashier-direct {
    position: static;
    inset: auto;
    min-height: 56px;
    margin-top: 10px;
    padding: 12px;
    transform: none;
  }

  body .bto-checkout.bto-checkout--journey .bto-payment-assurances {
    margin-top: 10px;
    padding-top: 10px;
  }
}

@media (max-width: 360px) {
  body .bto-checkout.bto-checkout--journey .bto-selected-package > div {
    padding-inline: 7px;
  }

  body .bto-checkout.bto-checkout--journey .bto-selected-package__total strong {
    font-size: 16px;
  }

  body .bto-checkout.bto-checkout--journey .bto-change-package {
    max-width: 60px;
    padding-inline: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .bto-checkout.bto-checkout--journey :is(button, input, select, textarea) {
    transition: none;
  }

  body .bto-checkout.bto-checkout--journey .bto-button__spinner {
    animation: none;
  }
}

/* One package, one full-row link: the quantity and price are part of the target. */
body .bto-public-catalog li.bto-catalog-option {
  display: block;
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-column: auto;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #c9c2cc;
  border-radius: 11px;
  background: #fff;
  color: var(--bto-ink, #15131a);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link > span:first-child {
  min-width: 0;
  color: var(--bto-ink, #15131a);
  overflow-wrap: anywhere;
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link > strong {
  min-width: 0;
  color: var(--bto-primary-dark, #a60d3a);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  unicode-bidi: isolate;
}

body .bto-public-catalog li.bto-catalog-option .bto-catalog-option__action {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bto-primary, #c11145);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link:hover {
  border-color: var(--bto-primary, #c11145);
  background: #fff7fa;
  box-shadow: 0 4px 12px rgb(193 17 69 / 9%);
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link:focus-visible {
  outline: 3px solid #087783;
  outline-offset: 3px;
  border-color: #087783;
  background: #f2fbfc;
  box-shadow: none;
}

body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link:active {
  background: #fff0f5;
}

@media (max-width: 399px) {
  body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 10px;
  }

  body .bto-public-catalog li.bto-catalog-option .bto-catalog-option__action {
    grid-column: 1 / -1;
    min-height: 32px;
    padding-block: 5px;
    background: #fff0f5;
    color: var(--bto-primary-dark, #a60d3a);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .bto-public-catalog li.bto-catalog-option > a.bto-catalog-option__link {
    transition: none;
  }
}

/* Optional Egyptian-wallet route: public package prices remain in USD. */
body .bto-checkout.bto-checkout--journey .bto-payment-routes {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

body .bto-checkout.bto-checkout--journey .bto-payment-routes > legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--bto-ink, #15131a);
  font-size: 15px;
  font-weight: 800;
}

body .bto-checkout.bto-checkout--journey .bto-payment-route {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bdb6c3;
  border-radius: 11px;
  background: #fff;
  color: var(--bto-ink, #15131a);
  cursor: pointer;
}

body .bto-checkout.bto-checkout--journey .bto-payment-route.is-selected {
  border-color: var(--bto-primary, #c11145);
  background: #fff3f7;
  box-shadow: inset 0 0 0 1px var(--bto-primary, #c11145);
}

body .bto-checkout.bto-checkout--journey .bto-payment-route > input {
  position: static;
  appearance: auto;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--bto-primary, #c11145);
  opacity: 1;
}

body .bto-checkout.bto-checkout--journey .bto-payment-route > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body .bto-checkout.bto-checkout--journey .bto-payment-route strong {
  color: var(--bto-ink, #15131a);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

body .bto-checkout.bto-checkout--journey .bto-payment-route small,
body .bto-checkout.bto-checkout--journey .bto-wallet-help {
  margin: 0;
  color: #57505c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-help {
  padding: 9px 11px;
  border-inline-start: 3px solid #087783;
  border-radius: 6px;
  background: #effafb;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote {
  min-width: 0;
  margin: 10px 0 0;
  padding: 11px;
  border: 1px solid #c5dadd;
  border-radius: 10px;
  background: #f4fbfc;
  color: #343039;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote p {
  margin: 0 0 8px;
  color: #343039;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote > p:has(> span) {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 10px;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote :is(strong, bdi, time) {
  color: #25212b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote a {
  color: #075964;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote .bto-wallet-quote__expiry {
  color: #5b4722;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote details {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .bto-checkout.bto-checkout--journey .bto-wallet-quote summary {
  min-height: 44px;
  padding: 10px 0;
  color: #075964;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body .bto-checkout.bto-checkout--journey :is(.bto-wallet-quote, .bto-wallet-help, [data-bto-card-note])[hidden] {
  display: none !important;
}

body .bto-checkout.bto-checkout--journey.is-processing .bto-payment-route {
  cursor: wait;
}
