/* Theme Start */

/* OT-15392: Red Hat Display, self-hosted (files supplied separately) */
@font-face {
  font-family: 'Red Hat Display';
  src: url('../fonts/RedHatDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Red Hat Display Bold';
  src: url('../fonts/RedHatDisplay-Black.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: rgb(80, 16, 152);
  --secondary-color: #EDE4F5; /* OT-15392: primary tint */
  --tertiary-color: #FFFFFF;
  --surface-color: #FFFFFF;
  --background-1-color: #FFFFFF;
  --background-2-color: #f7f7f7;
  --background-3-color: #ECEEF2;
  --error-color: #BB1D1D;
  --success-color: #6F7D21;
  --on-primary-color: #FFFFFF;
  --on-secondary-color: #010101; /* OT-15392 */
  --on-secondary-variant-color: #000000;
  --on-tertiary-color: #FFFFFF;
  --on-tertiary-variant-color: #FFFFFF;
  --on-surface-color: #010101; /* OT-15392 */
  --on-surface-variant-color: #E42A21;
  --on-background-color: #FFFFFF;
  --on-background-variant-color: #E42A21;
  --on-error-color: #FFFFFF;
  --on-success-color: #FFFFFF;
  --text-1-color: #010101; /* OT-15392 */
  --text-2-color: #FFFFFF;
  --text-3-color: #000000;
  --text-4-color: #085687;
  --text-5-color: #888888;
  --main-font: 'Red Hat Display', sans-serif; /* OT-15392 */
  --bold-font: 'Red Hat Display Bold', sans-serif; /* OT-15392 */
  --secondary-font: 'Red Hat Display', sans-serif; /* OT-15392 */
  --shadow: 2px 5px 15px -10px #1D1D1B;
  --ripple: rgba(228, 42, 33, 0.3);
  --product-image-width: 145px;
  --border-radius: 6px; /* OT-15392 */
  --border-color: #B8B5B5;
  --arrow-size: 6px;
  --placeholder-color: #656F83;
  --dashed: 1px solid rgba(0, 0, 0, 0.4); /*wagama does not use dashes uses solid lines*/
  --dotted: 2px dotted rgba(0, 0, 0, 1);
  --max-width: 1280px;
  --special-1-color: #936623;
  --header-height: 56px;
  --cubic-bounce: cubic-bezier(.34,1.35,.57,.94);
  /* OT-14830: BSC web design tokens */
  --input-border-color: #E9EBF1;
  --input-border-focus-color: #656F83;
  --hairline-color: #E9EBF1;
  --muted-text-color: #767676;
  --control-height: 45px;
  --btn-radius: 2px; /* OT-15392 */
  --card-radius: 6px; /* OT-15392 */
  --card-shadow: rgba(35, 31, 32, 0.12) 0px 4px 8px -1px; /* OT-15392 */
  --card-top-border: 0; /* OT-15392 */
  --disabled-color: #A3A3A3;
  --destructive-color: #D32F2F;
  --account-background-color: #F4F4F4;
  --account-column-width: 520px;
  --tab-page-width: 1080px;
  --logo-color: var(--primary-color); /* OT-15392 */
  --page-max-width: 1600px;
  --page-outside-color: #F4F4F4;
  --footer-color: rgb(34, 40, 54); /* OT-15392 */
}

/* Global / Overrides */
h1, h2, h3, h4, h5, h6, .heading-title {
  text-transform: none !important; /* OT-15392 */
  font-family: var(--bold-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  color: var(--text-1-color);
}

p, span {
  letter-spacing: 0.02em;
}

/* OT-15011: the scrollbar's space is always kept, so a Bootstrap modal hiding the scrollbar no longer shifts the page
   and the fixed header. Bootstrap then must not add its own scrollbar compensation on top. */
html {
  scrollbar-gutter: stable;
}

body.modal-open,
body.modal-open .modal {
  padding-right: 0 !important;
}

body {
  font-family: var(--main-font);
  background-color: var(--page-outside-color) !important;
  color: var(--text-1-color);
  min-height: 100dvh;
}

/* Every page sits in a centred column of at most --page-max-width (OT-14831) */
.master-wrapper-page {
  max-width: var(--page-max-width);
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: var(--header-height);
  background-color: var(--background-1-color);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

a.text-link, .text-link {
  color: var(--text-1-color);
  font-weight: 400;
  text-decoration: underline;
}

.page-title h1, h1.page-title {
  font-size: 36px;
  line-height: 1.25;
  text-align: center;
}

.card {
  border-radius: var(--card-radius);
  border: none;
  box-shadow: var(--card-shadow);
}

.card-top-border {
  border-top: var(--card-top-border);
}

.btn {
  text-transform: none !important; /* OT-15392 */
  box-shadow: none;
  border-radius: var(--border-radius);
  width: auto;
  font-family: var(--bold-font);
  font-weight: 400 !important;
  letter-spacing: 0.025em;
  color: var(--on-primary-color);

  &:hover, &:focus, &:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary-color);
  }
}

.btn-primary, .btn-secondary, .btn-inverse, .btn-danger {
  min-height: var(--control-height);
  border-radius: var(--btn-radius);
  border-width: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.1;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--on-primary-color);

  &:hover, &:focus, &:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--on-primary-color) !important;
    opacity: 0.92;
  }
}

.btn-secondary {
  background-color: var(--surface-color);
  border-color: var(--primary-color);
  color: var(--primary-color) !important;

  &:hover, &:focus, &:active {
    background-color: rgba(109, 39, 163, 0.05) !important; /* OT-15392 */
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
  }
  &:active:focus {
    box-shadow: none;
  }
}

.btn-inverse {
  background-color: var(--surface-color);
  border-color: var(--surface-color);
  color: var(--primary-color) !important;

  &:hover, &:focus, &:active {
    background-color: var(--surface-color) !important;
    border-color: var(--surface-color) !important;
    color: var(--primary-color) !important;
    opacity: 0.92;
  }
}

.btn-danger {
  background-color: var(--destructive-color);
  border-color: var(--destructive-color);
  color: var(--on-error-color);

  &:hover, &:focus, &:active {
    background-color: var(--destructive-color) !important;
    border-color: var(--destructive-color) !important;
    color: var(--on-error-color) !important;
    opacity: 0.92;
  }
}

.btn-primary:disabled, .btn-primary.disabled,
.btn-secondary:disabled, .btn-secondary.disabled,
.btn-inverse:disabled, .btn-inverse.disabled,
.btn-danger:disabled, .btn-danger.disabled {
  background-color: var(--disabled-color) !important;
  border-color: var(--disabled-color) !important;
  color: var(--on-primary-color) !important;
  opacity: 1;
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.show > .btn-secondary.dropdown-toggle:focus
 {
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* 700 is the heaviest weight in this theme (OT-14831); nxg.css sets 800 here */
.quick-add-quantity {
  font-weight: 400;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-transform: none; /* OT-15392 */
}

.bg-primary-semi {
  background-color: rgb(109 39 163 / 90%) !important; /* OT-15392 */
  color: var(--on-primary-color) !important;

  hr {
    border-color: var(--on-primary-color) !important;
  }
}

@view-transition {
  navigation: auto;
}

/* Header (OT-14830) */
.header {
  left: 0;
  right: 0;
  max-width: var(--page-max-width);
  margin: 0 auto;
  background-color: var(--primary-color); /* OT-15392 */
  border-bottom: 0;
  padding: 0;
  height: var(--header-height);
  color: var(--on-primary-color);
}

.header .logo .cls-1 {
  fill: var(--logo-color);
}

.header-logo .logo {
  /* OT-15392: 1:1 TB logo */
  width: 40px;
  height: 40px;
}

.bsc-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}

.bsc-header__back,
.bsc-header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--on-primary-color); /* OT-15392 */

  &:hover, &:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--on-primary-color);
  }
}

.bsc-header__logo {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.bsc-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bsc-header__menu {
  position: relative;
}

.bsc-header__burger[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px var(--on-primary-color); /* OT-15392 */
}

.bsc-header__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  padding: 8px 0;
  background: var(--surface-color);
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;

  &[hidden] {
    display: none;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    text-transform: none; /* OT-15392 */
    color: var(--text-1-color);
    text-decoration: none;

    &:hover, &:focus-visible, &[aria-current="page"] {
      background-color: rgba(0, 0, 0, 0.05);
      color: var(--text-1-color);
      text-decoration: none;
    }
  }
}

.bsc-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--on-primary-color); /* OT-15392: white on the purple header */
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;

  span {
    letter-spacing: 0;
  }

  &:hover, &:focus-visible {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.9;
  }
}

/* OT-15392: inline desktop nav (replaces the burger dropdown). OT-15477: hidden on mobile, which has no bottom tab bar */
.tb-header__nav {
  ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: var(--on-primary-color);
    font-family: var(--bold-font);
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    text-decoration: none;

    &:hover, &:focus-visible, &[aria-current="page"] {
      color: var(--on-primary-color);
      text-decoration: none;
    }
  }

  .tb-header__btn {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid var(--on-primary-color);
    border-radius: var(--btn-radius);

    &:hover, &:focus-visible {
      background-color: rgba(255, 255, 255, 0.15);
      text-decoration: none;
    }
  }
}

@media (max-width: 767px) {
  .bsc-header__menu,
  .tb-header__nav {
    display: none;
  }

  .bsc-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Account pages: centred light-grey column on a white page */
.bsc-account-column {
  max-width: var(--account-column-width);
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 32px 20px;
  background-color: var(--account-background-color);
}

.bsc-tab-page {
  max-width: var(--tab-page-width);
  margin: 0 auto;
}


.hidden {
  display: none;
}


.form-group select,
.checkout-page-form .form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select {
  border-color: var(--input-border-color);
  font-family: var(--main-font);
  color: var(--text-1-color);

  &:placeholder {
    color: var(--placeholder-color);
    opacity: 1;
  }

  &:focus-within, &:active, &:focus {
    border-color: var(--input-border-focus-color) !important;
    border-width: 2px !important;
  }
}

/* Form inputs (OT-14830): 45px, hairline border, square corners, bold value */
input.form-control:not(.input-number),
.form-fields input[type="text"],
.form-fields input[type="email"],
.form-fields input[type="tel"],
.form-fields input[type="password"] {
  height: var(--control-height);
  border: 2px solid var(--input-border-color);
  border-radius: 0;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  background-color: var(--surface-color);

  &::placeholder {
    color: var(--placeholder-color);
    font-weight: 400;
    opacity: 1;
  }
}

.form-fields label:not(.form-check-label), .bsc-field-label {
  font-size: 12px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  color: var(--muted-text-color);
  margin-bottom: 6px;
}


.checkmark,
.form-check-label:hover input ~ .checkmark {
  border-color: var(--text-1-color);
}

span.checkmark {
  border-radius: 3px;
  background: transparent;
}

.form-check input:checked ~ .checkmark:after {
  border: solid var(--on-primary-color);
  border-width: 0px 2px 2px 0;
  /* OT-15392: centred in the box at any size; -60% lifts the tick to balance its heavier lower-right corner */
  left: 50%;
  top: 50%;
  width: 6px;
  height: 11px;
  transform: translate(-50%, -60%) rotate(45deg);
}

input:checked ~ .checkmark, 
.checkout-page-form .form-check-label input:checked ~ .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-radius: calc(var(--border-radius) / 4);
}

.form-check .form-check-label {
  color: var(--text-1-color);
  font-weight: 500;
  font-family: var(--main-font);
}

.border-top, .border-bottom {
  border-color: var(--border-color) !important;
}

/* Animations */
@keyframes fadeIn20 {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.2;
  }
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes spin {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.fade-in {
    animation: fadeInAnimation 0.2s ease-in forwards;
}


/* Modals */
.loader-brand,
.circle-ripple,
#checkoutModal .modal-content,
#productModal .modal-content,
#please-wait-modal .modal-content {
  /* OT-15392: 25% smaller than BSC's 180px tile */
  height: 135px;
  width: 135px;
  display: block;
  position: absolute;
  top: calc(50% - 67.5px);
  left: calc(50% - 67.5px);
  animation: spin 2s infinite var(--cubic-bounce);
  perspective: 1000px;
  transform-style: preserve-3d;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.loader-brand:after, .loader-brand:before,
.circle-ripple:after, .circle-ripple:before,
#checkoutModal .modal-content:after, #checkoutModal .modal-content:before,
#productModal .modal-content:after, #productModal .modal-content:before,
#please-wait-modal .modal-content:after, #please-wait-modal .modal-content:before {
  content: '';
  height: 135px;
  width: 135px;
  /* OT-15392: purple TB logo on a white tile, centred at 94px */
  background: url(../images/tacobell-logo-primary.svg) center center/94px 94px no-repeat var(--surface-color);
  border-radius: var(--card-radius);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

#checkoutModal .modal-body,
#productModal .modal-body,
#please-wait-modal .modal-body {
  display: none;
}

.loader-brand:after,
.circle-ripple:after,
#checkoutModal .modal-content:after,
#productModal .modal-content:after,
#please-wait-modal .modal-content:after {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.modal-body {
  text-align: center;
}

.modal-body .modal-icon {
  width: 94px;
  height: 94px;
  border: 2px solid var(--tertiary-color);
  background-color: var(--background-1-color);
  border-radius: 100%;
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -60px auto 15px auto;
}


/* Pages with image background */
.html-home-page body,
.html-account-page body,
.html-order-details-page body {
  /* OT-15392: flat brand colour instead of the BSC photo banner. Kept as an image so the pages that opt out with
     background-image: none still do, and body's !important background-color does not win. */
  background-image: linear-gradient(var(--primary-color), var(--primary-color));

  .page-title h1 {
    color: var(--on-primary-color) !important;
  }

  .master-wrapper-page {
    background: none;
    box-shadow: none;
  }
}


/* The landing page (OT-14831) is the html-home-page that does not take the image background. Kept as its own rule:
   a browser without :has() drops only this rule, not the whole selector list above. */
html.html-home-page:has(.bsc-home) body {
  background-image: none !important;

  .master-wrapper-page {
    background-color: var(--background-1-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }
}

/* Page not found card */
.home-cards-wrapper {
  max-width: 400px;
  margin: 0 auto;
  min-height: 100dvh;

  .card {
    width: 100%;
    text-align: center;
  }
}

/* Pages tagged html-home-page (landing, findpostcode, menu) */
.html-home-page .master-wrapper-content {
  background: none;
}

/* Home Page (OT-14831): photo | card split on desktop, card only on mobile */
html.html-home-page .master-wrapper-content:has(.bsc-home) {
  width: 100% !important;
  max-width: none !important;
}

.bsc-home {
  display: flex;
  min-height: calc(100dvh - var(--header-height));
  background-color: var(--account-background-color);
  text-align: left;

  [hidden] {
    display: none !important;
  }
}

.bsc-home__photo {
  display: none;
}

.bsc-home__panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 20px;
}

.bsc-home__card {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bsc-home__dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background-color: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-home__title {
  margin: 0;
  font-size: 36px;
  line-height: 32px;
  text-align: center;
  color: var(--on-primary-color) !important;
}

.bsc-home__divider {
  align-self: stretch;
  height: 1px;
  margin: 24px -24px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.bsc-home__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;

  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  span {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.025em;
    text-transform: none; /* OT-15392 */
    text-align: center;
  }
}

.bsc-home__cta {
  margin-top: 32px;
  font-size: 16px;
}

.bsc-home__footer {
  padding: 24px;
  text-align: center;

  p {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
  }
}

.bsc-home__login {
  margin-top: 8px;
  background-color: transparent;
}

/* Signed in */
.bsc-home--member .bsc-home__title {
  margin-bottom: 24px;
}

.bsc-home__saved-location,
.bsc-home__location .nxg-ac-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--btn-radius);
  background-color: #ffffff;
  color: var(--text-1-color);
}

.bsc-home__saved-address {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bsc-home__change {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 400;
  text-decoration: underline;
  text-transform: none; /* OT-15392 */
  color: var(--text-1-color);
}

.bsc-home__location {
  width: 100%;

  .nxg-ac-container input.js-nxg-ac-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0 !important;
    background: transparent;
    font-size: 16px;
    color: var(--text-1-color);
    box-shadow: none;
    outline: none;
  }

  .nxg-ac-container:focus-within {
    box-shadow: 0 0 0 2px var(--on-primary-color);
  }

  .nxg-ac-results {
    z-index: 5;
    text-align: left;
  }

  .error_note {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    color: #FF8A80;
  }
}

.bsc-home__pin {
  flex: none;
}

.bsc-home__use-location {
  gap: 8px;
  margin-top: 12px;
  border-color: var(--on-primary-color);
  background-color: transparent;
  color: var(--on-primary-color);
  font-size: 16px;

  &:hover, &:focus, &:active {
    border-color: var(--on-primary-color) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--on-primary-color) !important;
  }
}

.bsc-home--member .bsc-home__cta {
  margin-top: 36px;
}

.bsc-home__loyalty:empty {
  display: none;
}

/* the strip's height while it loads, so nothing below jumps when it arrives */
.bsc-home__loyalty-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  margin: 16px 16px 0;
}

.bsc-home__tier {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 16px 0;
  padding: 10px 16px;
  border-radius: var(--btn-radius);
  background-color: #C5C8CE;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #B4B8BF 0%, #E6E8EB 45%, #A9ADB4 100%);
  color: var(--text-1-color);
  text-decoration: none;

  &:hover, &:focus-visible {
    color: var(--text-1-color);
    text-decoration: none;
    filter: brightness(1.04);
  }

  svg {
    flex: none;
    margin-left: auto;
  }
}

.bsc-home__tier--bronze {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #B9814F 0%, #E6C19C 45%, #A26839 100%);
}

.bsc-home__tier--gold {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #C29B43 0%, #F1DE9F 45%, #A9852C 100%);
}

.bsc-home__tier--black {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #1D1D1B 0%, #4A4A48 45%, #111111 100%);
  color: var(--on-primary-color);

  &:hover, &:focus-visible {
    color: var(--on-primary-color);
  }
}

.bsc-home__tier-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bsc-home__tier-name {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none; /* OT-15392 */
}

.bsc-home__tier-details {
  font-size: 12px;
  line-height: 16px;
}

.bsc-home__recents {
  padding-bottom: 24px;
}

.bsc-home__recents-title {
  margin: 0;
  padding: 16px 16px 10px;
  border-bottom: 2px solid var(--primary-color);
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-align: center;
}

.bsc-home__orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 20px 20px 0;
  list-style: none;
}

.bsc-home__order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: var(--card-shadow);
}

.bsc-home__order-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid var(--input-border-color);
  border-radius: 10px;
  background-color: var(--surface-color);

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.bsc-home__order-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
}

.bsc-home__order-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: none; /* OT-15392 */
}

.bsc-home__order-meta {
  color: var(--muted-text-color);
}

.bsc-home__order-view {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 16px;
  border: 2px solid var(--input-border-color);
  background-color: var(--surface-color);
  font-size: 12px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  color: var(--text-1-color);

  &:hover, &:focus-visible {
    border-color: var(--primary-color);
    color: var(--text-1-color);
    text-decoration: none;
  }
}

.bsc-home__recents-empty {
  padding: 24px 20px 0;
  text-align: center;
  font-size: 16px;
  color: var(--muted-text-color);

  p {
    margin: 0;
  }
}

.bsc-home__recents-empty-title {
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  color: var(--text-1-color);
}

@media (max-width: 767px) {
  .bsc-home {
    min-height: calc(100dvh - var(--header-height));
  }

  /* Signed in on a phone: the dark section runs edge to edge, the rest sits on the grey page */
  .bsc-home--member .bsc-home__panel {
    align-items: flex-start;
    padding: 0;
  }

  .bsc-home__card--member {
    max-width: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  /* OT-15816: the primary panel fills the screen down to the footer / recent orders */
  .bsc-home--member .bsc-home__panel {
    align-items: stretch;
  }

  .bsc-home__card--member {
    display: flex;
    flex-direction: column;

    .bsc-home__dark {
      flex: 1 0 auto;
    }
  }
}

@media (min-width: 768px) {
  .bsc-home__photo {
    display: block;
    flex: 0 0 50%;
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));

    img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* The two photos take turns, as in the design prototype */
    img + img {
      opacity: 0;
      animation: bscHomePhotoSwap 14s ease-in-out infinite;
    }
  }

  .bsc-home__panel {
    position: relative;
    overflow: hidden;
    flex-basis: 50%;
    padding: 48px 40px;
    background-color: #ffffff;
    /* OT-15392: BSC roundel watermark dropped */
  }

  .bsc-home__card {
    position: relative;
    max-width: 468px;
    box-shadow: var(--card-shadow);
  }
}

@keyframes bscHomePhotoSwap {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bsc-home__photo img + img {
    animation: none;
  }
}

/* Find postcode Page */
.lets_started {
  background: none;

  #txtfindpostcode {
    height: 100%
  }

  .icon-location {
    color: var(--primary-color);
  }
}

.lets_started .search_wrap .search_title {
  color: var(--on-primary-color);
}


/* Login / Register page */
.page.account-page {
  padding: 0;
}

form.my-account {
  border-radius: var(--border-radius);
}

.checkout-page-form a, .checkout-page-form a:hover, .form-check-label a, .form-check-label a:hover {
  text-decoration: underline;
}

.back-to-menu {
  padding: 15px 15px 15px 0;
  margin-left: 0;
}

.page.account-page {
  padding-top: 60px;
  padding-bottom: 100px;
}

/* Account forms - login (OT-14832), sign up + result (OT-14833), forgot / reset password (OT-14834).
   These are the SHARED Views/Nxg/Customer views: the design comes from this block, theme-suffixed resources
   (*.BlackSheepUK / *.BlackSheepUS) and bsc-password-toggle.js (eye buttons, "*" placeholders). */
:is(.html-login-page, .html-registration-page, .html-password-recovery-page, .html-registration-result-page) {
  .page {
    max-width: calc(480px + 32px);
    margin: 0 auto;
    padding: 40px 16px 100px;
    text-align: left;
  }

  .page-title {
    margin-bottom: 40px;
  }

  /* nxg.css sets the secondary (display) font on several of these labels, hover states included
     (e.g. .forgot-password a:hover); the design uses the body font throughout. :is(*, :hover) lifts this above them. */
  .page-body :is(*, :hover) {
    font-family: var(--main-font);
  }

  .back-to-menu {
    display: none;
  }

  /* styles.css + nxg.css frame .form-fields as a card (border-top, padding, shadow); the design has none */
  .form-fields {
    padding: 0;
    border-top: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .fieldset,
  .inputs {
    margin: 0 0 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .input-group {
    flex-wrap: nowrap;
  }

  /* the placeholder is the field label in the design: bold, same grey (as specific as the base input rule's 400) */
  input:is(.form-control, [type])::placeholder {
    font-weight: 400;
  }

  /* date-of-birth selects (when the store enables DOB) match the inputs */
  select {
    height: var(--control-height);
    padding: 0 16px;
    border: 2px solid var(--input-border-color);
    border-radius: 0;
    background-color: var(--surface-color);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-1-color);
  }

  /* the placeholders carry the "*" (bsc-password-toggle.js) */
  .required {
    display: none !important;
  }

  .page-body p,
  .title,
  .result {
    font-size: 16px;
    line-height: 20px;
  }

  .message-error,
  .field-validation-error {
    font-size: 13px;
    line-height: 1.4;
    color: var(--error-color);
  }

  .message-error {
    margin: 0 0 16px;

    ul {
      margin: 0;
      padding: 0;
      list-style: none;
      white-space: initial;
    }

    a {
      color: var(--error-color);
      font-weight: 400;
      text-decoration: underline;
    }
  }

  .input-validation-error {
    border-color: var(--error-color) !important;
  }

  .page-body .btn {
    width: 100%;
    min-height: var(--control-height);
    margin: 0 0 12px;
    border: 2px solid var(--primary-color);
    border-radius: var(--btn-radius);
    background-color: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 16px;
    font-family: var(--bold-font);

    &:disabled {
      border-color: var(--disabled-color);
      background-color: var(--disabled-color);
      opacity: 1;
    }
  }

  .page-body .btn-outline {
    border-radius: var(--btn-radius); /* OT-15392 */
    background-color: var(--surface-color);
    color: var(--primary-color);

    &:hover, &:focus, &:active {
      background-color: rgba(109, 39, 163, 0.05); /* OT-15392 */
      color: var(--primary-color);
    }
  }

  .buttons {
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
  }

  .external-authentication:empty {
    display: none;
  }
}

/* Password input + show / hide button, wrapped by bsc-password-toggle.js */
.bsc-password {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;

  input {
    padding-right: 52px !important;
  }

  /* Edge's own reveal button would sit next to ours */
  input::-ms-reveal {
    display: none;
  }
}

.bsc-password__toggle {
  position: absolute;
  top: 0;
  right: 0;
  /* above the input: styles.css lifts a focused input to z-index 1 */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: var(--control-height);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted-text-color);
  cursor: pointer;

  &:hover {
    color: var(--text-1-color);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -4px;
  }

  .bsc-password__icon-hide {
    display: none;
  }

  &[aria-pressed="true"] {
    .bsc-password__icon-show {
      display: none;
    }

    .bsc-password__icon-hide {
      display: block;
    }
  }
}

/* Login (OT-14832): no "Remember me" in the design (unticked = today's default, so nothing is lost) */
.html-login-page {
  .login-page-form-title {
    margin: 0 0 12px;
    font-family: var(--bold-font) !important;
    font-size: 16px;
    line-height: 20px;
    text-transform: none;
    color: var(--text-1-color);
  }

  .form-check,
  .remember-me-warning {
    display: none;
  }

  .login-button {
    margin-top: 0;
  }

  .forgot-password {
    margin: 16px 0 0;
    text-align: right;
    font-size: 16px;

    a, a:hover {
      color: var(--text-1-color);
      font-size: 16px;
      font-weight: 400;
      text-decoration: underline;
    }
  }

  .dont-have-an-account {
    margin: 56px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline-color);
    text-align: center;
  }
}

/* Reset password (OT-14834): the result line sits above its button */
.html-password-recovery-page .result {
  margin: 0 0 24px;
  text-align: center;
}

/* Sign up (OT-14833) */
.html-registration-page {
  .title {
    margin: 0 0 24px;
    padding: 0;
    border: none;

    strong {
      font-size: 16px;
      font-weight: 400;
      font-family: var(--bold-font) !important;
      text-transform: none; /* OT-15392 */
      color: var(--text-1-color);
    }
  }

  .form-check {
    margin: 0 0 20px;
    padding-left: 0;
  }

  .form-check-label {
    margin: 0 !important;
    padding-left: 36px;
    min-height: 24px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;

    a {
      color: var(--text-1-color);
      font-weight: 400;
      text-decoration: none;
    }
  }

  .checkmark {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-1-color);
    border-radius: 0 !important;
    background-color: var(--surface-color);
  }

  .form-check-label input:focus-visible ~ .checkmark {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  hr.dashed {
    margin: 0 0 24px;
    border-top: 1px dashed var(--hairline-color);
  }

  /* the privacy notice comes after the buttons in the shared view; the design puts it above them */
  #RegisterForm {
    display: flex;
    flex-direction: column;
  }

  .register-warning-info {
    order: 1;
    margin: 0 0 16px;
  }

  hr.dashed {
    order: 2;
  }

  #register-button,
  #register-button ~ .btn-outline {
    order: 3;
  }
}

/* Manage my account (OT-14839): the hub (BSC InfoNxg override) and the pages it links to - customer info, change password,
   addresses, vehicles, deactivate account. The sub-pages are SHARED views: back-link wording + the Update / Cancel dirty
   state come from bsc-account.js, eye toggles from bsc-password-toggle.js, other wording from *.BlackSheepUK / US resources. */
html:has(.page.account-page:is(.customer-info-page, .change-password-page, .address-list-page, .address-edit-page, .vehicle-list-page, .vehicle-edit-page, .delete-account-page, .delete-account-page-success)) {
  body {
    background-image: none !important;
  }

  body .master-wrapper-page {
    background-color: var(--background-1-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }

  /* nxg.css insets the customer-info page 15px on mobile; the grey column runs edge to edge */
  .master-wrapper-content.main-content-area {
    margin: 0 auto !important;
    width: auto !important;
  }
}

.page.account-page:is(.customer-info-page, .change-password-page, .address-list-page, .address-edit-page, .vehicle-list-page, .vehicle-edit-page, .delete-account-page, .delete-account-page-success) {
  display: flex;
  flex-direction: column;
  max-width: var(--account-column-width);
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 32px 20px 48px;
  background-color: var(--account-background-color);
  text-align: left;

  .page-title {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    text-align: center;

    h1 {
      margin: 0;
      font-size: 36px;
      line-height: 1.2;
      color: var(--text-1-color) !important;
    }
  }

  /* nxg.css puts the display font on several labels and links; the design uses the body font throughout */
  .page-body :is(*, :hover) {
    font-family: var(--main-font);
  }

  .page-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  /* each section is a white card */
  .page-body > form,
  .page-body > .account-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 16px;
    border: 2px solid var(--input-border-color);
    border-radius: var(--card-radius);
    background-color: var(--surface-color);
    box-shadow: none;
    font-size: 16px;
    line-height: 20px;
  }

  .heading-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
  }

  .page-body p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 20px;
  }

  hr.dashed {
    display: none;
  }

  /* the back link is an outline button at the bottom of the column (relabelled by bsc-account.js) */
  .back-to-menu {
    order: 1;
    margin: 24px 0 0;
    padding: 0;

    &::before {
      content: none;
    }

    a, a:hover {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: var(--control-height);
      padding: 8px 16px;
      border: 2px solid var(--primary-color);
      border-radius: var(--btn-radius);
      background-color: var(--surface-color);
      color: var(--primary-color);
      font-size: 16px;
      font-weight: 400;
      text-transform: none; /* OT-15392 */
      text-decoration: none;
    }

    a:hover {
      background-color: rgba(29, 29, 27, 0.05);
    }
  }

  /* fields: uppercase grey label above a 45px hairline input */
  .form-group {
    position: relative;
    margin: 0 0 16px;
  }

  label:not(.form-check-label, .forcheckbox) {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-transform: none; /* OT-15392 */
    color: var(--muted-text-color);
  }

  input:is([type="text"], [type="email"], [type="tel"], [type="password"]),
  select {
    width: 100% !important;
    height: var(--control-height);
    border: 2px solid var(--input-border-color);
    border-radius: 0;
    background-color: var(--surface-color);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-1-color);

    &::placeholder {
      color: var(--placeholder-color);
      font-weight: 400;
      opacity: 1;
    }

    &:disabled {
      background-color: var(--account-background-color);
      color: var(--muted-text-color);
    }
  }

  /* the phone input keeps the intl-tel-input padding for its flag */
  input:is([type="text"], [type="email"], [type="password"]),
  select {
    padding: 0 16px;
  }

  .intl-phone-input {
    padding-right: 16px;
  }

  .input-group {
    flex-wrap: nowrap;
  }

  .date-of-birth {
    display: flex;
    gap: 8px;
  }

  .required,
  .input-field-eye-icon {
    display: none !important;
  }

  .message-error,
  .field-validation-error {
    font-size: 13px;
    line-height: 1.4;
    color: var(--error-color);
  }

  .message-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .input-validation-error,
  input.error {
    border-color: var(--error-color) !important;
  }

  .page-body .btn {
    width: 100%;
    min-height: var(--control-height);
    margin: 0 0 12px;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--btn-radius);
    background-color: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 16px;
    font-weight: 400;
    text-transform: none; /* OT-15392 */

    &:last-child {
      margin-bottom: 0;
    }

    &:disabled {
      border-color: var(--disabled-color);
      background-color: var(--disabled-color);
      color: var(--on-primary-color);
      opacity: 1;
    }
  }

  .page-body .btn-outline {
    background-color: var(--surface-color);
    color: var(--primary-color);

    &:hover, &:focus, &:active {
      background-color: rgba(109, 39, 163, 0.05); /* OT-15392 */
      color: var(--primary-color);
    }
  }

  .buttons {
    margin: 0 !important;
    padding: 0;
    border: none;
  }

  /* saved address / vehicle rows */
  .account-item .info {
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--hairline-color);
    list-style: none;
  }

  .account-item .name span {
    color: var(--muted-text-color);
  }
}

/* Manage my account hub + its two in-page sections (BSC InfoNxg override: ?section=info / ?section=actions) */
.page.account-page.bsc-account {
  .page-body > .bsc-account__card {
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    border: 2px solid var(--input-border-color);
    border-radius: var(--card-radius);
    background-color: var(--surface-color);
  }

  /* links styled as buttons */
  .page-body a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  #save-info-button {
    margin-top: 8px;
  }

  /* CANCEL CHANGES: text-style, faint outline; UPDATE PROFILE greys out via the base :disabled rule */
  .page-body .bsc-account__cancel {
    border: 2px solid var(--input-border-color);
    background-color: transparent;
    color: var(--primary-color);

    &:hover, &:focus {
      background-color: rgba(29, 29, 27, 0.05);
    }

    &:disabled {
      border-color: var(--hairline-color);
      background-color: transparent;
      color: var(--disabled-color);
    }
  }

  .bsc-account__warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--destructive-color);

    &::before {
      content: '';
      flex: 0 0 16px;
      height: 16px;
      background-color: currentColor;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    }
  }

  .email-to-revalidate,
  .email-to-revalidate-note {
    display: block;
    font-size: 13px;
    color: var(--muted-text-color);
  }
}

.page.account-page.bsc-account-hub .page-body .btn {
  margin: 0;
}

.bsc-account-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.bsc-account-hub__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 176px;
  padding: 24px 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--text-1-color);
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s ease;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
    box-shadow: var(--card-shadow);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  svg {
    flex: 0 0 auto;
  }
}

.bsc-account-hub__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none; /* OT-15392 */
}

.bsc-account-hub__text {
  font-size: 16px;
  line-height: 20px;
}

@media (max-width: 400px) {
  .bsc-account-hub__card {
    padding: 20px 12px;
  }
}

/* Deactivate account: red action button (account actions + the password confirm page) */
.page.account-page.bsc-account .page-body .bsc-account__danger,
.page.account-page.delete-account-page .page-body form .btn {
  border-color: var(--destructive-color);
  background-color: var(--destructive-color);
  color: var(--on-primary-color);

  &:hover, &:focus {
    border-color: #B71C1C;
    background-color: #B71C1C;
    color: var(--on-primary-color);
  }
}

.page.account-page.delete-account-page .form-instructions {
  color: var(--text-1-color);
}

/* Change password: the back button replaces Cancel (both go to the account page) */
.page.account-page.change-password-page .page-body .btn-outline {
  display: none;
}

/* Address list: edit + delete side by side */
.page.account-page.address-list-page {
  .address-list {
    padding: 0;
  }

  .address-item {
    margin: 0 0 16px;
  }

  .address-item .buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px !important;

    .btn {
      flex: 1 1 auto;
      width: auto;
      margin: 0;
    }

    .delete-address-button {
      flex: 0 0 56px;
    }
  }
}

.page.account-page.address-edit-page {
  .edit-address,
  .inputs {
    width: auto;
    margin: 0;
    text-align: left;
    background: none;
  }

  .address-details-title {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    color: var(--text-1-color);
  }

  .buttons {
    width: auto;
    border-top: none;
  }
}

/* Account deactivated */
.page.account-page.delete-account-page-success {
  padding-top: 64px;

  form.my-account {
    margin: 0;
    padding: 24px 16px;
    border: 2px solid var(--input-border-color);
    border-radius: var(--card-radius);
    background-color: var(--surface-color);
    font-size: 16px;
    line-height: 20px;
  }

  p {
    margin: 0 0 16px;
    padding: 0;
    text-align: center;
  }

  .title {
    font-size: 18px;
    line-height: 24px;
    text-transform: none; /* OT-15392 */
  }

  .btn {
    width: 100%;
    min-height: var(--control-height);
    border-radius: var(--btn-radius);
    font-size: 16px;
    font-weight: 400;
    text-transform: none; /* OT-15392 */
  }
}

.page.account-page.customer-dashboard {
  padding-top: 0;
}

/* Account */
.customer-info-page .form-fields {
  border-radius: calc(var(--border-radius)/3);
}

.account-item .info, .account-item .name span {
  font-family: var(--secondary-font);
}

.my-account a, .my-account a:hover {
  color: var(--primary-color);
  font-weight: 400;
  text-decoration: underline;
}

.account-order-preview .btn-outline, .account-order-preview .btn-outline:hover,
.account-order-preview .btn-outline:focus, .btn-outline.edit-button,
.btn-outline.edit-button:hover, .btn-outline.edit-button:focus,
.order-list-page .btn-outline, .order-list-page .btn-outline:hover, .order-list-page .btn-outline:focus {
    border-color: var(--primary-color); /* OT-15392 */
    color: var(--primary-color);
}

.account-page .heading-title {
  overflow-wrap: anywhere;
}

.page-body-account {
  max-width: 500px;
  margin: 0 auto;
}

.account-card {
  background: var(--surface-color);
  padding: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  display: block;
  max-width: 500px;
  height: 100%;
}

.account-card-primary {
  background: var(--primary-color);
  color: var(--on-primary-color);

  h1, h2, h3, h4, h5, h6, .heading-title {
    color: var(--on-primary-color);
  }
}

.account-card-link {
  padding: 25px 25px 5px 25px;
  text-decoration: none;
  color: var(--primary-color);

  .heading-title {
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 0;
  }
}

.account-card-link:hover, .account-card-link:focus {
  text-decoration: none;
}

.account-card-icon {
  margin: 0 auto 5px auto;
  text-align: center;
}

.account-qrcode {
  margin: 0 auto;
  text-align: center;

  img {
    max-width: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
  }
}

.account-codeinfo {
  text-align: center;

  p {
    margin-bottom: 10px;
  }

  h6 {
    text-transform: none;
    font-weight: 700 !important;
    margin-bottom: 15px;
  }
}

.account-code {
  letter-spacing: 5px;
}

.account-card-bottom-info {
  color: var(--primary-color);
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 15px;
}

.account-card-reward {
  position: relative;
  text-align: center;
  height: auto;
  margin-bottom: 0;
  padding: 0 0 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;

  .account-card-icon {
    position: absolute;
    top: 10px; 
    left: 10px;
  }

  .account-card-reward-content {
    padding: 16px 15px 0 16px;
  }

  .heading-title {
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 0;
  }

  .account-card-bottom-info {
    margin-top: auto;
    padding-top: 15px;
  }

  .label-pending {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--on-secondary-color);
    font-size: 8px;
    font-weight: 600 !important;
    padding: 0 8px;
    border-radius: 12px;
    text-transform: none; /* OT-15392 */
  }
}

.rewards-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.html-account-page .sub-heading {
  font-size: 18px;
  font-weight: 700 !important;
  color: var(--primary-color);
}

.modal-reward {
  .account-card-img {
    width: 100%;
    margin: 0 auto 15px auto;
  }

  .close-icon {
    color: var(--text-1-color) !important;
    right: 15px;
    top: 15px;
  }
  .close-icon:hover, .close-icon:focus {
    color: var(--primary-color) !important;
  }
}

.form-group-reward-code {
  margin: 30px 0;
}

.modal-rewards-details {
  h3 {
    overflow-wrap: anywhere;
  }
}

.order-confirmation {
  background: none !important;
}

.order-confirmation-details {
  color: var(--text-1-color);
  font-weight: 400;
  font-size: 16px;
}

.product-list-details-item {
  font-family: var(--main-font);
}

.product-title {
  font-weight: 400 !important;
}

.html-customer-rewards-page {
  .sub-heading {
    color: var(--text-2-color);
    text-transform: none; /* OT-15392 */
    font-family: var(--secondary-font);
  }
}

.account-item .info, .account-item .name span {
  font-family: var(--main-font);
}

/* Store selection page (OT-15019): numbered store cards beside the map; on mobile only the list (an address opens that store's map) */
/* an html-home-page, but like the landing page it sits on the plain grey outside colour, not the photo */
html.store-selection-page body {
  background-image: none !important;

  .master-wrapper-page {
    background-color: var(--background-1-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }
}

.store-selection-page .master-wrapper-content {
  max-width: none !important;
  padding: 0;
}

.bsc-stores {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  height: calc(100dvh - var(--header-height));
  background: var(--background-2-color);
}

.bsc-stores__list {
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
}

.bsc-stores__title {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.2;
}

.bsc-stores__search {
  margin-bottom: 20px;

  .nxg-ac-container {
    position: relative;
  }
}

.bsc-stores__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  font-family: var(--bold-font);
}

/* the landing page's location field (48px, --btn-radius, 16px), white on this grey page */
.bsc-stores__field {
  display: flex;
  gap: 8px;

  input.js-nxg-ac-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--input-border-color);
    border-radius: var(--btn-radius);
    background-color: var(--surface-color);
    color: var(--text-1-color);
    font-family: var(--main-font);
    font-size: 16px;
    outline: none;

    &::placeholder {
      color: var(--placeholder-color);
      opacity: 1;
    }

    &:focus {
      border-color: var(--primary-color);
    }
  }

  .btn {
    flex: none;
    min-height: 48px;
    padding: 0 20px;
  }
}

.bsc-stores__use-location {
  font-family: var(--main-font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1-color);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

.bsc-stores__count {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
}

.bsc-stores__notes {
  font-family: var(--main-font);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-text-color);
}

.bsc-stores__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bsc-store-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface-color);
  transition: box-shadow 0.2s ease;

  &.is-focused {
    box-shadow: 0 0 0 2px var(--primary-color), var(--card-shadow);
  }

  &.is-disabled {
    .bsc-store-card__name, .bsc-store-card__address, .bsc-store-card__distance {
      color: var(--disabled-color);
    }

    .bsc-store-card__pin {
      background: var(--disabled-color);
    }
  }
}

.bsc-store-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bsc-store-card__pin {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 13px;
  font-weight: 400;
}

.bsc-store-card__name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.bsc-store-card__distance {
  flex: none;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.bsc-store-card__address {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1-color);
  font-family: var(--main-font);
  font-size: 16px;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.bsc-store-card__hours {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--text-1-color);
  font-size: 13px;
  font-weight: 400;

  &.is-closed {
    color: var(--error-color);
  }
}

.bsc-store-card__warning {
  margin: 4px 0 0;
  color: var(--error-color);
  font-size: 13px;
  font-weight: 400;
}

/* COLLECT FROM HERE, then the other order types; _DeliveryAndMarketplaces still writes the generic classes */
.bsc-store-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;

  .btn-outline, .blue-btn-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--control-height);
    border: 2px solid var(--primary-color);
    border-radius: var(--btn-radius);
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 16px;
  }

  .marketplace-btn img {
    max-height: 24px;
    width: auto;
  }
}

.bsc-stores__map {
  position: relative;
  min-width: 0;

  #storemap {
    width: 100%;
    height: 100%;
  }
}

.bsc-stores__info {
  font-family: var(--main-font);
  font-size: 13px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  color: var(--text-1-color);
}

/* the per-store map panel opened from a card's address on mobile (startInfoPanels) */
.store-selection-page .notification-container {
  padding-top: var(--header-height);

  #mobilestoremap {
    width: 100%;
    height: calc(100% - 52px);
  }
}

.bsc-stores__panel-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--text-1-color);
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

@media (max-width: 767px) {
  .bsc-stores {
    display: block;
    height: auto;
    min-height: calc(100dvh - var(--header-height));
  }

  .bsc-stores__list {
    overflow: visible;
    padding: 20px 16px;
  }

  .bsc-stores__title {
    font-size: 20px;
  }

  .bsc-stores__map {
    display: none;
  }
}

.nxg-ac-results {
  letter-spacing: 0;
}

/* Shared .lets_started / .search_box pages (store finder, shipping address) */
.use_location_btn .btn {
  width: 100%;
}

.lets_started {
  .note {
    color: var(--text-1-color);
    font-size: 16px;
    line-height: 1.2;
    font-family: var(--main-font);
  }
}

.lets_started .search_wrap .search_box .location_icon {
  display: none;
}

.search_box {
  padding-top: 32px;
  margin-top: 32px;
}

/* =================== OT-15020: BSC web time slot page =================== */
/* Same look as the OT-15019 store selection list: plain grey page, title, flat white card, labelled 48px fields. */
html.bsc-time-slot-page body {
  background-image: none !important;

  .master-wrapper-page {
    background-color: var(--background-1-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }
}

.bsc-time-slot-page .master-wrapper-content {
  max-width: none !important;
  padding: 0;
}

.bsc-time-slot {
  min-height: calc(100dvh - var(--header-height));
  padding: 24px;
  background: var(--background-2-color);
  /* OT-15392: content centred vertically in the viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;

  > * {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* nxg.css positions this absolutely with a tertiary-colour arrow */
.bsc-time-slot .back-to-locations {
  position: static;
  margin-bottom: 16px;

  &::before {
    content: none;
  }

  a, a:hover {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    color: var(--text-1-color);
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 400;
    text-transform: none; /* OT-15392 */
  }
}

/* the global heading rule uppercases with !important; the design title is sentence case */
.bsc-time-slot__title {
  text-transform: none !important;
}

.bsc-time-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface-color);

  select {
    font-family: var(--main-font);
  }

  /* _Intro: "Collect from <store>" with the change link, or the redirect warning */
  .location-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    text-align: left;
  }

  .search_title {
    margin: 0;
    color: var(--muted-text-color);
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 400 !important;
    text-transform: none !important;
  }

  .btn-location-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-1-color);
    font-size: 16px;
    font-weight: 400;
    text-transform: none !important;

    &:hover, &:focus {
      color: var(--text-1-color);
      text-decoration: underline;
      box-shadow: none;
    }
  }

  .search_title.search_title_update {
    padding: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--error-color) 8%, transparent);
    color: var(--error-color);
    line-height: 1.4;
  }
}

.bsc-time-card__timezone {
  margin: 0;
  color: var(--muted-text-color);
  font-size: 13px;
}

.bsc-time-card__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* minmax(0, 1fr): a long Spanish ASAP label must not widen the grid past a 390px viewport */
.bsc-time-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bsc-time-card__field .bsc-stores__label {
  margin-bottom: 6px;
}

/* the store selection location field: 48px, hairline border, --btn-radius, 16px */
.bsc-time-card__select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--btn-radius);
  background: var(--surface-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D1D1B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--text-1-color);
  font-size: 16px;
  text-overflow: ellipsis;
  appearance: none;
  outline: none;

  /* the global select:focus rule forces its own border */
  &:focus {
    border-color: var(--primary-color) !important;
  }

  &:disabled {
    color: var(--disabled-color);
  }
}

.bsc-time-card__message {
  margin: 0;
  color: var(--error-color);
  font-size: 13px;
  font-weight: 400;
}

.bsc-time-slot__note {
  margin-top: 16px;

  .note, .note p {
    margin: 0;
    font-family: var(--main-font);
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted-text-color);
    text-transform: none;
  }
}

@media (max-width: 767px) {
  .bsc-time-slot {
    min-height: calc(100dvh - var(--header-height));
    padding: 20px 16px;

    > * {
      max-width: none;
    }
  }
}

/* =================== OT-15010: BSC web menu page =================== */
.html-home-page.html-menu-page body {
  background: var(--background-2-color) !important;

  .master-wrapper-page {
    background-color: var(--background-2-color);
  }
}

/* OT-15011: the menu column and the space around it share the light grey, so a stronger shadow marks its edges */
.html-home-page.html-menu-page .master-wrapper-page {
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

.listing-page {
  background: var(--surface-color) !important; /* OT-15392 */
  padding-top: 0;
}

#groupOrdering {
  display: none;
}

/* OT-15392: checkout cross-sells reuse the menu cards outside .bsc-menu, so they need the same image height */
.tb-cross-sells {
  --bsc-menu-image: 170px;

  .bsc-menu-grid {
    margin-top: 12px;
  }
}

.bsc-menu {
  --bsc-menu-image: 170px; /* OT-15392: card image height (the mobile stepper sits on its bottom edge) */
  --bsc-menu-round: 36px;
  padding: 0;
  max-width: none;

  .container {
    max-width: none;
    padding: 0;
  }

  .row {
    margin: 0;
  }

  .listing-left-section {
    padding: 0;
  }
}

/* nxg.css caps every html-home-page at --max-width (1280px) with !important; the menu uses the whole page column */
html.html-menu-page .master-wrapper-content:has(.bsc-menu) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* menu takes what the bag leaves: about 70 / 30 on a 1440px screen, 3 cards per row */
@media (min-width: 768px) {
  .bsc-menu .listing-left-section {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .bsc-menu .listing-right-section {
    flex: 0 0 clamp(400px, 29%, 420px);
    max-width: clamp(400px, 29%, 420px);
  }
}

/* Back + Rewards */
.bsc-menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 0 16px;
  background: var(--surface-color);
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-menu-topbar__back,
.bsc-menu-topbar__rewards {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1-color);
  font-weight: 400;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
  }
}

.bsc-menu-topbar__back {
  font-size: 15px;
}

.bsc-menu-topbar__rewards {
  font-size: 13px;
  text-transform: none; /* OT-15392 */
  letter-spacing: 0.04em;
}

/* Sticky category row: search, arrows, pills */
.bsc-menu-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface-color);
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-menu-nav__round {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bsc-menu-round);
  height: var(--bsc-menu-round);
  padding: 0;
  border: 2px solid var(--input-border-color);
  border-radius: 50%;
  background: var(--surface-color);
  color: var(--text-1-color);
  cursor: pointer;

  &:disabled {
    color: var(--disabled-color);
    cursor: default;
  }
}

.bsc-menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bsc-menu-search__toggle {
  background: var(--background-3-color);
  border-color: transparent;
}

.bsc-menu-nav.is-searching .bsc-menu-search__toggle {
  background: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-menu-search__field {
  position: relative;
  width: 260px;
}

.bsc-menu-search__input {
  width: 100%;
  height: var(--bsc-menu-round);
  padding: 0 38px 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1-color);
  background: var(--surface-color);

  &::-webkit-search-cancel-button {
    display: none;
  }

  &:focus {
    outline: none;
    border-color: var(--primary-color);
  }
}

.bsc-menu-search__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-text-color);
  transform: translateY(-50%);
}

.bsc-menu-nav__pills {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.bsc-menu-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: var(--bsc-menu-round);
  padding: 0 16px;
  border-radius: 10px;
  color: var(--text-1-color);
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 13px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  white-space: nowrap;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
    background: var(--background-3-color);
  }

  &.is-active {
    background: var(--primary-color);
    color: var(--on-primary-color);
  }
}

.bsc-menu-empty {
  margin: 32px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--muted-text-color);
}

/* Sections + card grid */
.bsc-menu-content {
  padding: 8px 16px 32px;
}

.bsc-menu-section {
  padding-top: 16px;
}

.bsc-menu-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 20px;

  img {
    display: none;
  }
}

.bsc-menu-section__description {
  margin: -4px 0 12px;
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 13px;
  color: var(--muted-text-color);
}

.bsc-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.bsc-menu-card {
  position: relative;
  min-width: 0;
  background: var(--surface-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.15s ease;

  &.is-in-bag {
    box-shadow: 0 0 0 2px var(--primary-color), var(--card-shadow);
  }

  &.is-disabled .bsc-menu-card__link {
    opacity: 0.55;
    filter: grayscale(1);
    cursor: default;
  }
}

/* OT-15392: image on top of the content at every size (BSC had it on the left on desktop) */
.bsc-menu-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-1-color);
  border-radius: inherit;
  overflow: hidden;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

.bsc-menu-card__media {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  width: 100%;
  /* OT-15392: fixed height at every width; photos are cropped to fill */
  height: var(--bsc-menu-image);
  background: var(--surface-color);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.bsc-menu-card.no-picture .bsc-menu-card__media {
  height: 40px;

  img {
    display: none;
  }
}

.bsc-menu-card__badge {
  display: none;
}

.bsc-menu-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 16px;
}

.bsc-menu-card__name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bsc-menu-card__kcal {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-1-color); /* OT-15392 */
}

.bsc-menu-card__desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-1-color); /* OT-15392 */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  p {
    display: inline;
    margin: 0;
  }
}

.bsc-menu-card__price {
  margin-top: auto;
  padding-top: 8px;
  color: var(--text-1-color); /* OT-15392 */
  font-family: var(--bold-font);
  font-size: 16px;
  font-weight: 400;
}

.bsc-menu-card__unavailable {
  font-size: 12px;
  font-weight: 600;
  color: var(--error-color);
}

.bsc-menu-card__info {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--input-border-color);
  border-radius: 50%;
  background: var(--surface-color);
  color: var(--muted-text-color);
  cursor: pointer;
}

/* bin / qty / + - shown once the product is in the bag */
.bsc-menu-stepper {
  position: absolute;
  /* OT-15392: tucked into the corner so it clears the description; the pill's 4px padding keeps the buttons 10px in */
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  /* OT-15392: one look on desktop and mobile; the frosted pill keeps the qty readable where it sits on the photo (mobile) */
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* the remove button shows a bin at quantity 1 (it removes the line) and a minus above that (is-single from bsc-menu.js) */
.bsc-menu-stepper__icon-bin,
.bsc-menu-card.is-single .bsc-menu-stepper__icon-minus {
  display: none;
}

.bsc-menu-card.is-single .bsc-menu-stepper__icon-bin {
  display: block;
}

.bsc-menu-card--quick-add.is-in-bag .bsc-menu-stepper {
  display: flex;
}

.bsc-menu-card.is-busy .bsc-menu-stepper {
  opacity: 0.6;
  pointer-events: none;
}

.bsc-menu-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;

  &:active {
    transform: translateY(1px);
  }

  /* no ring after a tap or click; keyboard focus keeps its outline */
  &:focus:not(:focus-visible) {
    outline: none;
  }
}

.bsc-menu-stepper__bin {
  background: var(--hairline-color);
  color: var(--text-1-color);
}

.bsc-menu-stepper__plus {
  background: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-menu-stepper__qty {
  min-width: 16px;
  text-align: center;
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 16px;
  font-weight: 400;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
  .bsc-menu-topbar {
    padding: 8px 12px;
    border-bottom: 0;
    background: transparent;
  }

  .bsc-menu-topbar__back {
    display: none;
  }

  .bsc-menu-topbar__rewards {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
    border: 2px solid var(--input-border-color);
    border-radius: var(--btn-radius);
    background: var(--surface-color);
  }

  .bsc-menu-nav {
    padding: 6px 8px;
  }

  .bsc-menu-nav.is-searching {
    .bsc-menu-nav__arrow,
    .bsc-menu-nav__pills {
      display: none;
    }

    .bsc-menu-search {
      flex: 1 1 auto;
    }

    .bsc-menu-search__field {
      flex: 1 1 auto;
      width: auto;
    }
  }

  .bsc-menu-content {
    padding: 8px 12px 96px;
  }

  .bsc-menu-section__title {
    justify-content: center;
    font-size: 18px;
  }

  .bsc-menu-section__description {
    text-align: center;
  }

  .bsc-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* OT-15392: same 16:9 image and full content as desktop; no price badge (the price shows in the body) */
  .bsc-menu-card__body {
    align-items: center;
    justify-content: center;
    padding: 8px 8px 16px;
    text-align: center;
  }

  .bsc-menu-card__name {
    font-size: 13px;
  }

  .bsc-menu-card__info {
    top: 6px;
    left: 6px;
  }

  /* two columns are too narrow to share the price row, so the stepper sits on the image's bottom edge */
  .bsc-menu-stepper {
    top: calc(var(--bsc-menu-image) - 52px);
    right: 8px;
    bottom: auto;
  }
}

/* Allergen / nutrition modal */
.bsc-info-modal__section:not([hidden]) ~ .bsc-info-modal__section {
  border-top: 1px solid var(--hairline-color);
}

.bsc-info-modal {
  .modal-dialog {
    max-width: 576px;
  }

  .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
  }
}

.bsc-info-modal__head {
  position: relative;
  padding: 28px 60px 18px;
  text-align: center;
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-info-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-info-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.bsc-info-modal__description {
  font-size: 16px;
  color: var(--muted-text-color);

  p {
    margin: 0;
  }
}

.bsc-info-modal__body {
  padding: 4px 24px 20px;
  overflow-y: auto;
}

.bsc-info-modal__loader {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.bsc-info-modal__message {
  margin: 20px 0 0;
  font-weight: 600;
}

.bsc-info-modal__section {
  padding: 18px 0;
  font-size: 16px;

  h3 {
    margin: 0 0 10px;
    font-size: 16px; /* OT-15392 */
  }

  p {
    margin: 0 0 8px;
  }
}

.bsc-info-modal__allergens {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;

  li {
    margin-bottom: 4px;
  }

  li::before {
    content: "\2022";
    margin-right: 6px;
  }
}

.bsc-info-modal__nutrition {
  width: 100%;

  th, td {
    padding: 6px 0;
    font-weight: 600;
  }

  td {
    text-align: right;
    font-weight: 400;
  }
}
/* =================== end OT-15010 =================== */

/* =================== OT-15011: BSC web bag panel + mobile review page =================== */
/* Panel- / review-only parts of the shared bag markup (MiniCartNxg, OrderReviewNxg) */
.bsc-review .bsc-bag--panel-only,
html:not(:has([data-bsc-review])) .bsc-bag--review-only {
  display: none !important;
}

.bsc-bag button,
.bsc-bag input,
.bsc-bag-links button,
.bsc-bag-modal button,
.bsc-bag-modal select {
  font-family: var(--main-font);
}

/* one class only: a selector list here would lend its most specific member to every nested state, and the white hover
   text would then beat the outline variant below. The checkout button carries .bsc-bag-btn itself (OrderReviewNxg). */
.bsc-bag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--primary-color); /* OT-15392 */
  border-radius: var(--btn-radius);
  background: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 15px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  text-align: center;
  letter-spacing: 0.02em;

  &:hover, &:focus {
    color: var(--on-primary-color);
    text-decoration: none;
  }

  &:disabled, &.disabled {
    border-color: var(--disabled-color);
    background: var(--disabled-color);
    color: var(--on-primary-color);
    opacity: 1;
    cursor: default;
  }
}

/* OT-15392: bold label; button.bsc-bag-btn matches `.bsc-bag button { font-family: var(--main-font) }` in specificity and wins by order */
.bsc-bag-btn,
button.bsc-bag-btn {
  font-family: var(--bold-font);
}

.bsc-bag-btn.bsc-bag-btn--outline {
  /* OT-15392: TB secondary - white, purple 2px border */
  border-color: var(--primary-color);
  background: var(--surface-color);
  color: var(--primary-color);

  &:hover, &:focus, &:active {
    border-color: var(--primary-color);
    background: rgba(109, 39, 163, 0.05);
    color: var(--primary-color);
  }

  &:disabled, &.disabled {
    border-color: var(--hairline-color);
    background: var(--surface-color);
    color: var(--disabled-color);
  }
}

/* Panel frame: docked right of the menu, scrolling body, footer always visible. On desktop the Back / Rewards row
   sticks under the header too, so the category row and the bag start below it and the bag fits the viewport. */
.bsc-menu {
  --bsc-menu-topbar: 0px; /* OT-15392: the Back row is removed, so the category row and bag start right under the header */
}

@media (min-width: 768px) {
  .bsc-menu-topbar {
    position: sticky;
    top: var(--header-height);
    z-index: 21;
    height: var(--bsc-menu-topbar);
    min-height: 0;
  }

  .bsc-menu .bsc-menu-nav {
    top: calc(var(--header-height) + var(--bsc-menu-topbar));
  }

  .bsc-menu .right-section-bg.bsc-bag {
    top: calc(var(--header-height) + var(--bsc-menu-topbar));
    height: calc(100dvh - var(--header-height) - var(--bsc-menu-topbar));
  }
}

.right-section-bg.bsc-bag {
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-height));
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--surface-color);
  font-family: var(--main-font);

  &.hidden {
    display: none;
  }

  &.is-busy {
    opacity: 0.6;
    pointer-events: none;
  }

  /* OT-15392: the brand card shadow (colour/blur of --card-shadow), cast left onto the menu since the panel is full height */
  @media (min-width: 768px) {
    box-shadow: -4px 0 8px -1px rgba(35, 31, 32, 0.12);
  }
}

.bsc-menu .listing-right-section {
  padding: 0;
  border-left: 1px solid var(--hairline-color);
  background: var(--surface-color);
}

.bsc-bag__links {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-bag-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 50px;
  padding: 8px 16px;
}

.bsc-bag-links__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 13px;
  font-weight: 400;
  text-align: left;

  span {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  svg {
    flex: 0 0 auto;
  }

  &.is-static span {
    text-decoration: none;
  }
}

button.bsc-bag-links__link {
  cursor: pointer;
  /* OT-15392: element+class, to beat `.bsc-bag-links button { font-family: var(--main-font) }` above */
  font-family: var(--bold-font);
}

.right-box-body.bsc-bag__body {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  border-bottom: 0 !important;
  background: var(--surface-color);
}

.right-box-footer.bsc-bag__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  padding: 16px;
  border-top: 1px solid var(--hairline-color) !important;
  background: var(--surface-color);

  .review-btn {
    margin: 0;
  }

  .min-order {
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--error-color);
  }
}

.bsc-bag-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bsc-bag-footer-links__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1-color);
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;

  &:hover, &:focus {
    color: var(--text-1-color);
  }
}

/* Promo code */
.bsc-bag-promo {
  margin-bottom: 16px;
}

.bsc-bag-promo__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  letter-spacing: 0.04em;
}

.bsc-bag-promo__row {
  display: flex;
  gap: 8px;
}

.bsc-bag-promo__input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--control-height);
  padding: 0 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--btn-radius);
  background: var(--surface-color);
  color: var(--text-1-color);
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-bag-promo__apply.bsc-bag-btn {
  flex: 0 0 auto;
  width: auto;
  font-family: var(--bold-font); /* OT-15392 */
  min-height: var(--control-height);
  padding: 0 24px;
}

.bsc-bag-promo__applied {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 13px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-bag-promo__remove {
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.bsc-bag-promo__messages p {
  margin: 8px 0 0;
  font-size: 13px;

  &.is-success {
    color: var(--success-color);
  }

  &.is-error {
    color: var(--error-color);
  }
}

/* OT-15012: Dine In / Takeaway switch (bag panel, review page, checkout panel) */
.bsc-order-type {
  margin-bottom: 16px;
  padding: 12px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);
}

.bsc-order-type__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bsc-order-type__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 12px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--btn-radius);
  background: var(--surface-color);
  color: var(--text-1-color);
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  cursor: pointer;

  &.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--on-primary-color);
    cursor: default;
  }

  &:not(.is-active):hover {
    border-color: var(--primary-color);
  }
}

.bsc-checkout-order-type .bsc-order-type {
  margin: 0 0 16px;
}

.bsc-order-type-modal__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;

  > li + li {
    margin-top: 10px;
  }

  ul {
    margin: 2px 0 0;
    padding-left: 16px;
    list-style: none;
    color: var(--muted-text-color);
  }
}

.bsc-order-type-modal__product {
  font-weight: 400;
}

.bsc-order-type-modal__arrow {
  margin: 0 4px;
}

/* Item cards */
.bsc-bag__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bsc-bag-item.js-cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);

  &.no-picture {
    grid-template-columns: minmax(0, 1fr);
  }

  /* OT-15392: the cards were touching on mobile */
  @media (max-width: 767px) {
    margin-bottom: 15px;
  }
}

.bsc-bag-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid var(--input-border-color);
  border-radius: 8px;
  background: var(--surface-color);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.bsc-bag-item__head.pro-title-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.right-box-body .bsc-bag-item__name.pro-title,
.bsc-bag-item__name {
  max-width: none;
  margin: 0;
  color: var(--text-1-color);
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none; /* OT-15392 */
}

.right-box-body .bsc-bag-item__price.pro-price,
.bsc-bag-item__price {
  flex: 0 0 auto;
  max-width: none;
  color: var(--text-1-color); /* OT-15392 */
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 16px;
  font-weight: 400;
}

.bsc-bag-item__attributes.pro-item-list-dic {
  display: block;
  margin-top: 4px;
  color: var(--muted-text-color);
  font-size: 13px;
  line-height: 1.35;
}

.bsc-bag-item__actions.qty-plus-minus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.bsc-bag-qty.input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: auto;
}

.bsc-bag-qty.input-group button.btn.bsc-bag-qty__btn.btn-number-nxg {
  &, &:hover, &:focus, &:active, &:not(:disabled):not(.disabled):active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--on-primary-color);
    line-height: 1;
    box-shadow: none;
    outline: none;
    transform: none;
    opacity: 1;
  }

  &:hover {
    background: #3a3a38;
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  &.bsc-bag-qty__minus {
    &, &:focus, &:active, &:not(:disabled):not(.disabled):active {
      background: var(--hairline-color);
      color: var(--text-1-color);
    }

    &:hover {
      background: #D4D4D4;
    }
  }

  &:disabled {
    opacity: 0.5;
  }

  svg {
    display: block;
  }
}

.bsc-bag-qty.input-group .form-control.input-number.bsc-bag-qty__value {
  &, &:focus {
    flex: 0 0 auto;
    top: 0;
    width: 32px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-1-color);
    font-family: var(--bold-font); /* OT-15392 */
    font-size: 16px;
    line-height: 40px;
    font-weight: 400;
    text-align: center;
  }
}

.bsc-bag-item__buttons {
  display: flex;
  gap: 8px;

  .delete-edit-item {
    margin: 0;
  }
}

.bsc-bag-item__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 2px solid var(--input-border-color);
  border-radius: 8px;
  background: var(--surface-color);
  color: var(--text-1-color);
  font-size: 12px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
    border-color: var(--text-1-color);
  }
}

/* Empty bag */
.bsc-bag-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 16px;
  color: var(--muted-text-color);
  text-align: center;

  svg {
    margin-bottom: 8px;
    color: var(--disabled-color);
  }

  .bsc-bag-btn {
    width: auto;
    margin-top: 12px;
  }
}

.bsc-bag-empty__title {
  margin: 0;
  color: var(--text-1-color);
  font-size: 16px;
  font-weight: 400;
}

.bsc-bag-empty__text {
  margin: 0;
  font-size: 16px;
}

/* Location / time / clear modals */
.bsc-bag-modal {
  .modal-dialog {
    max-width: 384px;
    padding: 0 16px;
  }

  .modal-content {
    position: relative;
    align-items: stretch;
    padding: 64px 24px 24px;
    margin-top: 48px;
    border: 0;
    border-radius: var(--card-radius);
    background: var(--surface-color);
    text-align: center;
  }
}

.bsc-bag-modal__badge {
  position: absolute;
  top: -48px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
  color: var(--text-1-color);
}

.bsc-bag-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted-text-color);
  cursor: pointer;
}

.bsc-bag-modal__title {
  margin: 0 0 20px;
  font-family: var(--main-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.bsc-bag-modal__text {
  margin: 0 0 20px;
  color: var(--muted-text-color);
  font-size: 15px;
  line-height: 1.5;
}

.bsc-bag-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsc-bag-time__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.bsc-bag-time__select {
  width: 100%;
  min-height: 64px;
  padding: 8px 32px 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: var(--surface-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%231D1D1B'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text-1-color);
  font-size: 15px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  appearance: none;

  &:disabled {
    border-color: var(--hairline-color);
    color: var(--disabled-color);
  }
}

.bsc-bag-time__message {
  margin: -8px 0 16px;
  color: var(--error-color);
  font-size: 16px;
}

/* Mobile: the location / time strip under the header and the sticky "Review order" bar */
.bsc-menu-orderinfo {
  background: var(--primary-color);
  color: var(--on-primary-color);

  .bsc-bag-links {
    min-height: 0;
    padding: 10px 16px;
  }
}

.review-order-mobile.bsc-review-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: transparent;
}

.bsc-review-bar__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 12px;
  border-radius: var(--btn-radius);
  background: var(--primary-color);
  box-shadow: var(--card-shadow);
  color: var(--on-primary-color);
  font-weight: 400;

  &:hover, &:focus {
    color: var(--on-primary-color);
    text-decoration: none;
  }

  &.disabled {
    background: var(--disabled-color);
    cursor: default;
  }
}

.bsc-review-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--text-1-color);
  font-size: 15px;
}

.bsc-review-bar__label {
  flex: 1 1 auto;
  font-size: 16px;
  text-transform: none; /* OT-15392 */
  letter-spacing: 0.02em;
}

.bsc-review-bar__total {
  flex: 0 0 auto;
  font-family: var(--bold-font); /* OT-15392 */
  font-size: 16px;
}

@media (max-width: 767px) {
  .bsc-menu:has(.bsc-review-bar) {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* "Review your order" page (CheckoutNxg.Review) */
.html-review-page body {
  background: var(--background-2-color) !important;
}

.bsc-review {
  --bsc-review-footer: 196px;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: calc(var(--bsc-review-footer) + env(safe-area-inset-bottom));
  background: var(--background-2-color);
  font-family: var(--main-font);

  .right-section-bg.bsc-bag {
    position: static;
    height: auto;
    background: transparent;
  }

  .bsc-bag__links {
    border-bottom: 0;
    background: var(--primary-color);
    color: var(--on-primary-color);
  }

  .bsc-bag-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 16px 20px;
  }

  .bsc-bag-links__link {
    font-size: 14px; /* OT-15392 */
  }

  .right-box-body.bsc-bag__body {
    overflow: visible;
    background: transparent;
  }

  .bsc-bag.is-empty .bsc-bag__body {
    background: transparent;
  }

  .right-box-footer.bsc-bag__footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 0 !important;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .bsc-bag-footer-links {
    justify-content: space-between;
    margin-bottom: 8px;
  }

  /* the promo field stays behind "Have a promo code?" until opened, or while a code is applied */
  &:not(.is-promo-open) .bsc-bag-promo:not(.has-code) {
    display: none;
  }
}

.bsc-review__head {
  padding: 20px 16px 16px;
  background: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-review__title {
  margin: 0;
  color: inherit;
  font-size: 22px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-review-crosssell {
  padding: 8px 16px 16px;
}

.bsc-review-crosssell__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-review-crosssell__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bsc-review-crosssell__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
  color: var(--text-1-color);

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
  }

  &.is-busy {
    opacity: 0.6;
    pointer-events: none;
  }
}

.bsc-review-crosssell__media {
  position: relative;
  display: block;
  height: 130px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.bsc-review-crosssell__price {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border: 2px solid var(--input-border-color);
  border-radius: 999px;
  background: var(--surface-color);
  font-size: 13px;
  font-weight: 400;
}

.bsc-review-crosssell__name {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  text-transform: none; /* OT-15392 */
}
/* =================== end OT-15011 =================== */

.right-box-footer .btn, .review-btn .btn {
  width: 100%;
  text-align: center;
}

.right-section-bg .order-summary {
  display: none;
}

.collection-header {
  padding-top: 0;
  border-top: none;
  /* OT-15392: store / time lines and their Change links bold in the text colour (links keep the underline) */
  font-family: var(--bold-font);
  color: var(--text-1-color);

  .icon-container {
    display: none;
  }

  .change a {
    color: var(--text-1-color);
    font-family: var(--bold-font);
    text-decoration: underline;
  }
}

.right-section-bg {
  font-family: var(--main-font);
}

.change a {
  font-weight: 500 !important;
}

.pro-item-list-dic {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

button.btn.btn-minus.btn-number-nxg, button.btn.btn-plus.btn-number-nxg, button.btn.btn-minus.btn-number-nxg:focus, button.btn.btn-plus.btn-number-nxg:focus {
  color: var(--text-1-color);

  &:hover, &:focus {
    border-color: transparent;
  }
}

.qty-plus-minus .form-control.input-number {
  color: var(--text-1-color);
}

.right-section-bg {
  top: 80px;
}

.right-box-footer, .review-btn {
  border-top: none !important;
}

.right-box-body {
  border-bottom: none !important;
}

.html-product-details-page, .checkout-page {
  .back-to-locations a, .back_manu, .back-to-menu a, .back_manu:hover, .back-to-menu a:hover {
    color: var(--primary-color);
  }
  .back-to-locations::before, .back-to-menu::before, .back_manu::before {
    border-right-color: var(--primary-color);
  }
}

/* OT-15392: nxg.css colours .close-icon with --on-primary-color (white), which vanishes on the white allergen modal */
/* OT-15392: the same round purple close as the menu's product info modal (.bsc-info-modal__close); also undoes
   Bootstrap's .close (opacity, float, text-shadow) and nxg.css's white-on-white .close-icon */
.modal-nutrition-and-allergens .close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  float: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--on-primary-color) !important;
  font-size: 16px;
  text-shadow: none;
  opacity: 1;

  &:hover, &:focus {
    color: var(--on-primary-color) !important;
    opacity: 0.9;
  }
}

/* nxg.css pads the tab panes 12px left and right, inset from the modal's own content edge */
.modal-nutrition-and-allergens .tabcontent {
  padding-left: 0;
  padding-right: 0;
}

.recommended-intake {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

/* Product page */
.html-product-details-page {
  .main_container {
    padding-top: 0;
  }

  .content {
    margin-top: 20px;
  }

  .content h2 {
    color: var(--text-1-color); /* OT-15392: nxg.css makes it primary */
    font-size: 34px;
    line-height: 1.2;

    @media (min-width: 1024px) {
      font-size: 42px;
    }
  }

  .pro_image {
    margin-bottom: 20px;
  }
}

.started_content {
  background: none;
}

.product_content {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

.allergen {
  color: var(--text-1-color);
}

.totalcount input[type="text"], .qty-plus-minus .form-control.input-number, .options-wrapper input[type="text"] {
  font-family: var(--main-font);
  font-size: 28px;
  line-height: 28px;
  font-weight: 400;
  position: relative;
  top: -1px;
}

/* OT-15392: product quantity in bold, tall enough for the bold glyphs, centred between the -/+ icons. Every layer
   is a centring flex box (the input sits inside .add-to-cart > .add-to-cart-panel), and the icons are blocks so the
   buttons hold no inline descender space under them. The price column is centred on the same line. */
.total_prices {
  align-items: center;
}

.totalcount {
  .input-group,
  .input-group-btn,
  .add-to-cart,
  .add-to-cart-panel {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .btn-number svg {
    display: block;
  }

  .input-group {
    gap: 4px;
  }

  /* same round -/+ as the bag stepper (.bsc-bag-qty): grey minus, primary plus, 16px line icons */
  .input-group button.btn.btn-number {
    &, &:hover, &:focus, &:active, &:not(:disabled):not(.disabled):active {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      min-width: 40px;
      height: 40px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: var(--primary-color);
      color: var(--on-primary-color);
      line-height: 1;
      box-shadow: none;
      outline: none;
      opacity: 1;
    }

    &:hover {
      background: #3a3a38;
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }

    &.btn-minus {
      &, &:focus, &:active, &:not(:disabled):not(.disabled):active {
        background: var(--hairline-color);
        color: var(--text-1-color);
      }

      &:hover {
        background: #D4D4D4;
      }
    }

    &:disabled {
      opacity: 0.5;
    }
  }
}

.totalprice .prices {
  justify-content: flex-end;
  margin: 0;

  .product-price,
  .product-price span {
    font-family: var(--bold-font);
    font-weight: 400;
  }
}

.totalcount input[type="text"] {
  height: 35px;
  line-height: 35px;
  top: 0;
  font-family: var(--bold-font);
}
.options-wrapper input[type="text"], .options-wrapper .btn-number {
  color: var(--primary-color) !important;
  font-size: 36px;
  background: var(--background-2-color);
}
.options-wrapper .btn-number {
  height: 24px !important;
}
.options-wrapper * {
  color: var(--primary-color) !important;
}

/* OT-15392: modifier names and prices in the text colour (group headings stay primary) */
.options-wrapper .form-check-label,
.options-wrapper .prices p {
  color: var(--text-1-color) !important;
}
.options-wrapper .form-check input[type="radio"]+*::before {
  border-color: var(--primary-color);
  top: -2px;
  left: -4px;
}
.options-wrapper .form-check input[type="radio"]:checked+*::before {
  background: radial-gradient(var(--primary-color) 0%,var(--primary-color) 40%,transparent 50%,transparent);
  border-color: var(--primary-color);
}
.options-wrapper select, .options-wrapper .qty-box input[type="text"] {
  border: 1px solid var(--primary-color);
  background: var(--background-2-color);
  font-size: 16px;
  font-family: var(--main-font);
}
.options-wrapper .qty-box {
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.options-wrapper .qty-box input[type="text"] {
  max-width: 100px;
}
.options-wrapper .prices {
  align-items: center;
}
.options-wrapper .prices p {
  line-height: 1.5;
  width: 50px;
}
.options-wrapper .input-group {
  height: 24px;
  top: -2px;
}
.options-wrapper .prices input[type="text"] {
  width: 45px;
  height: auto;
  font-family: var(--main-font);
  font-size: 36px;
  font-weight: 400;
  position: relative;
  top: 1px;
  line-height: 24px;
  padding: 0;
}
.options-wrapper .check_redio {
  margin-bottom: 0;
}
.options-wrapper .attribute-row {
  margin-bottom: 12px;
}
.options-wrapper .selected-modifier+.prices p {
  margin-left: 0;
}

/* OT-15392: modifier quantity (-/qty/+ beside a picked modifier): one centred row, bold number at the 24px icon
   height, no grey box; the rules above pinned the group at 24px with offsets and set 36px text */
.options-wrapper .prices {
  /* fixed so a row keeps its height when picking a modifier reveals the stepper (no vertical jump) */
  height: 32px;

  .input-group {
    flex-wrap: nowrap;
    align-items: center;
    height: auto;
    top: 0;
    gap: 4px;
  }

  .input-group-btn {
    display: flex;
    align-items: center;
  }

  .btn-number {
    height: auto !important;
    padding: 0;
    border: 0;
    line-height: 0;
    background: none;

    svg {
      display: block;
    }
  }

  input[type="text"] {
    height: 24px;
    top: 0;
    background: transparent;
    font-family: var(--bold-font);
    font-size: 24px;
    line-height: 24px;
  }
}

.prices p {
  font-family: var(--main-font);
  font-weight: 400;
}

/* OT-15816: option cards (BSC "no image" style), one per row: name, kcal and price on the left, radio / tick on the right */
.options-wrapper .tb-card {
  height: 100%;
  border: 1px solid var(--hairline-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);

  .check_redio {
    margin: 0;
  }

  .form-check {
    display: block;
    width: 100%;
  }

  /* drop the shared label::before radio; the card draws its own indicator */
  .form-check input[type="radio"] + *::before {
    display: none;
  }

  /* .check_redio .form-check scope out-specifies nxg.css, which zeroes the padding of radio labels */
  .check_redio .form-check .tb-card__label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 15px;
    cursor: pointer;
  }

  .tb-card__info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
  }

  .tb-card__name {
    color: var(--text-1-color) !important;
    font-family: var(--bold-font);
    font-size: 15px;
    line-height: 1.25;
  }

  .tb-card__meta,
  .tb-card__meta * {
    margin-top: 2px;
    color: var(--muted-text-color) !important;
    font-family: var(--main-font);
    font-size: 13px;
    line-height: 1.35;
  }

  .tb-card__price {
    white-space: nowrap;
  }

  .tb-card__radio,
  .tb-card__tick {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
  }

  .tb-card__tick {
    border-radius: 4px;
  }

  .check_redio input:checked + label .tb-card__radio {
    border-color: var(--primary-color);
    background: radial-gradient(var(--primary-color) 0, var(--primary-color) 40%, transparent 45%);
  }

  .check_redio input:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    border-radius: var(--card-radius);
  }

  /* modifier quantity, right-aligned under the indicator, only while the option is picked */
  .tb-card__qty {
    justify-content: flex-end;
    height: auto;
    margin-top: -6px;
    padding: 0 15px 10px;

    .input-group {
      gap: 2px;
    }

    input[type="text"] {
      width: 32px;
    }
  }
}

/* 2px selected border drawn as 1px border + 1px inset shadow, so picking an option does not resize the card */
.options-wrapper .tb-card:not(.tb-card--inverted):has(.check_redio input:checked),
.options-wrapper .tb-card--inverted:has(.check_redio input:not(:checked)) {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px var(--primary-color);
}

.options-wrapper .tb-card:not(.tb-card--inverted):has(.check_redio input:checked) .tb-card__tick,
.options-wrapper .tb-card--inverted:has(.check_redio input:not(:checked)) .tb-card__tick {
  border-color: var(--primary-color);
  background: var(--primary-color);

  &::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 6px;
    height: 11px;
    border: solid var(--on-primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
}

.options-wrapper .tb-card:not(:has(.check_redio input:checked)) .tb-card__qty {
  display: none;
}

/* max selection reached: the options that can no longer be picked */
.options-wrapper .tb-card:has(.check_redio input:disabled:not(:checked)) {
  opacity: .5;
}

/* HideRadioPriceAdjustment: the price shows once the option is picked; visibility keeps the line height */
.options-wrapper .tb-card--price-on-select:not(:has(.check_redio input:checked)) {
  .tb-card__price,
  .tb-card__sep {
    visibility: hidden;
  }
}

/* OT-15816: total-within-button layout - space between the quantity row and Cancel / Add */
.total_prices .tb-add-buttons {
  margin-top: 16px;
}

button.btn.btn-minus.btn-number, button.btn.btn-plus.btn-number, button.btn.btn-minus.btn-number:focus, button.btn.btn-plus.btn-number:focus {
  color: var(--primary-color);

  &:hover, &:focus {
    border-color: transparent;
  }
}

.content-info .pro-content {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

.crepe_options_part h4 {
  line-height: 1.2;
  font-size: 21px !important;
}

.row.modifiers {
  margin-bottom: 20px;
}

.allergen {
  font-weight: 700 !important;
}

.totalprice p {
  font-weight: 700 !important;
  text-transform: none;
  /* OT-15392: the total is a <p> in Views/Nxg/Product/_ProductPrice; weight 700 alone renders regular in --main-font */
  font-family: var(--bold-font);
}

.tab button span {
  font-family: var(--main-font);
  font-weight: 600 !important;
  color: var(--primary-color);
}

.item-box .product-title a, .item-box .product-title a:hover, .item-box .product-title a:focus {
  font-family: var(--secondary-font) !important;
  font-size: 18px !important;
}

.cross-sells .title {
  font-family: var(--main-font) !important;
  font-weight: 400 !important;
}

.cart-total .order-total {
  font-weight: 700 !important;
}
.cart-total .order-total strong {
  font-weight: 700 !important;
}
/* OT-15392: --main-font has no bold face, so weight 700 alone renders regular */
.cart-total .order-total span,
.cart-total .order-total strong {
  font-family: var(--bold-font);
}

hr.dotted {
  border-top: 1px solid var(--border-color);
}

/* Checkout page */
.checkout-page, .html-checkout-page {
  padding: 0;
  background: transparent;

  .back-to-menu {
    margin-left: 0;
  }

  .btn {
    width: 100%;
  }
}

.checkout-page {
  max-width: 1100px;
}

.checkout-page-form .form-control {
  border: 1px solid var(--border-color);
}

.discount-code .btn.apply-coupon-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input#discountcouponcode {
  border: 1px solid var(--border-color);
}

.stripe-ex-btn-card {
  font-weight: 400;
}

.checkout-page-form .dic {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

.stripe-ex-btn-card, .stripe-ex-btn-card:hover, .stripe-ex-btn-card:focus, .stripe-ex-btn-card:active {
  background-color: var(--primary-color);
  color: var(--on-primary-color);
}

/* Shipping address page */
.html-shippingaddress-page {
  /* OT-15392: spaced cart items (all sizes) and no rule above Sub-total (nxg.css .checkout-page .total-info) */
  .bsc-bag-item.js-cart-item {
    margin-bottom: 15px;
  }

  .checkout-page .total-info {
    border-top: 0;
  }

  /* the summary is a floating card in nxg.css; flat on this page (the desktop panel adds its own 16px padding) */
  .checkout-page .right-section-bg {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* OT-15392: on desktop the page runs edge to edge like the menu: the form column takes what the summary leaves, and
   the summary is the menu bag's width, flush right, sticky under the header and full height */
@media (min-width: 768px) {
  html.html-shippingaddress-page .master-wrapper-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* the theme's `.checkout-page { max-width: 1100px }` and nxg.css's auto margin + padding cap the page */
  .html-shippingaddress-page .checkout-page {
    max-width: none;
    margin: 0;
    padding: 0;

    > .container {
      max-width: none;
      padding: 0;
    }

    > .container > .row {
      flex-wrap: nowrap;
      margin: 0;
    }

    .listing-left-section {
      flex: 1 1 0;
      min-width: 0;
      max-width: none;
      padding: 24px 32px 48px;

      > * {
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
      }
    }

    .listing-right-section {
      position: sticky;
      top: var(--header-height);
      align-self: flex-start;
      flex: 0 0 clamp(400px, 29%, 420px);
      max-width: clamp(400px, 29%, 420px);
      height: calc(100dvh - var(--header-height));
      overflow-y: auto;
      padding: 0;
      background: var(--surface-color);
      border-left: 1px solid var(--hairline-color);
      box-shadow: -4px 0 8px -1px rgba(35, 31, 32, 0.12);

      /* the summary is a floating sticky card (nxg.css .right-section-bg); inside the panel it fills the column */
      .right-section-bg {
        position: static;
        top: auto;
        margin: 0;
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
      }

      /* nxg.css caps the item list at 40vh with its own scroll; the panel scrolls as a whole instead */
      .right-box-body {
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }
    }
  }
}

/* Payment page */
#payment-loader {
  position: relative;
  min-height: 200px;
}

/* Order details page */
.order-confirmation h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.order-confirmation h4 {
  color: var(--text-1-color);
}

.order-confirmation p {
  margin: 0;
}

.order-confirmation-details .product-quantity-text {
  width: auto;
}

.order-confirmation-details {
  padding-top: 15px;
  font-size: 16px;
}

.product-list-details-item {
  padding-left: 15px;
}

.order-confirmation-content .save-btn {
  margin-top: 30px;
  margin-bottom: 30px;
}

.order-details-title {
  font-weight: 400;
}

@media (max-width: 767px) {
  .address-text {
    width: 100%;
    max-width: 100%;
  }
}

/* Oops page */
.order-confirmation p {
  font-family: var(--main-font);
  color: var(--text-1-color);
}

/* Kiosk and DriveThru receipt */
.qr-journey-receipt-page .order-number svg {
  color: var(--text-1-color);
  top: 0;
}
.qr-journey-receipt-page .order-number {
  padding-top: 0;
  border-bottom: var(--dashed);
  margin-bottom: 15px;
  display: flex;
  justify-content: end;
}


.btn-reg-plate {
  display: inline-flex;
  width: auto;
  align-items: center;

  svg {
    margin-right: 10px;
  }
}

.reg-plate-value {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1;
  font-family: var(--secondary-font);
  letter-spacing: 2.5px;
  text-transform: none; /* OT-15392 */
  color: var(--text-1-color);
  text-align: center;
}

.qr-journey-receipt-page {

  .order-confirmation-content h3 {
    color: var(--secondary-color);
    text-align: left;
  }

  .card {
    padding: 15px;
  }

  .order-date {
    display: flex;
    text-align: left;
    font-family: var(--main-font);
    color: var(--text-1-color);
    font-size: 16px;
    margin-bottom: 0;
  }

  .order-payment {
    border-top: var(--dashed);
    padding: 15px 0;
    text-align: center;
    font-weight: 400;
    color: var(--text-1-color);
  }
  
  .product-title {
    font-weight: 700 !important;
  }

  .order-details-title {
    text-transform: none; /* OT-15392 */
    text-align: left;
    font-weight: 400;
    border-bottom: none;
  }

  .link-close {
    color: var(--text-1-color) !important;
    font-weight: 400;
    font-size: 16px;
  }

  .cart-total {
    padding: 15px 0;
    border-top: var(--dashed);
    font-weight: 400;
  }

  .cart-total-taxes {
    font-weight: 400;
  }

  .cart-total-order-confirmation {
    text-transform: none; /* OT-15392 */
    font-family: var(--main-font);
    font-weight: 400;
    border-top: none;
  }

  .order-details-toilet-code {
    font-family: var(--main-font);
    font-size: 16px;
  }
}

.order-details-toilet-code, .order-details-promo-content {
    border-top: var(--dashed);
}

.order-details-promo-content a {
    text-decoration: underline;
    font-weight: 400;
    color: var(--text-1-color);
}

.order-details-toilet-code {
  font-size: 1rem;
}



#pdfArea.printStyle {
  width: 540px;
  color: #000 !important;

  * {
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px;
  }
  svg {
    display: none;
  }
  .cart-total-order-confirmation {
    font-weight: bold !important;
    border-bottom: none !important;
  }
}

/* end of DriveThru receipt */

/* =================== OT-14835 / OT-14836 / OT-14838: BSC web Profile, Loyalty rewards, Previous orders =================== */
/* Same page frame as Manage my account (OT-14839): a light-grey column on white. Profile is 520px, the two tab pages
   (Loyalty rewards | Previous orders) 1080px, past order details 490px. */
html:has(.page.account-page:is(.bsc-profile, .bsc-loyalty, .bsc-order-details)) {
  body {
    background-image: none !important;
  }

  body .master-wrapper-page {
    background-color: var(--background-1-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  }

  .master-wrapper-content.main-content-area {
    margin: 0 auto !important;
    width: auto !important;
  }
}

.page.account-page:is(.bsc-profile, .bsc-loyalty, .bsc-order-details) {
  display: flex;
  flex-direction: column;
  max-width: var(--account-column-width);
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 32px 20px 48px;
  background-color: var(--account-background-color);
  text-align: left;

  .page-title {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    text-align: center;

    h1 {
      margin: 0;
      font-size: 36px;
      line-height: 1.2;
      color: var(--text-1-color) !important;
    }
  }

  .page-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  .page-body :is(*, :hover) {
    font-family: var(--main-font);
  }

  .page-body p {
    margin: 0;
  }

  .page-body .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--control-height);
    margin: 0;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--btn-radius);
    background-color: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 16px;
    font-weight: 400;
    text-transform: none; /* OT-15392 */
    text-decoration: none;

    &:disabled {
      border-color: var(--disabled-color);
      background-color: var(--disabled-color);
      opacity: 1;
    }
  }

  .page-body .btn-outline {
    background-color: var(--surface-color);
    color: var(--primary-color);

    &:hover, &:focus {
      background-color: rgba(109, 39, 163, 0.05); /* OT-15392 */
      color: var(--primary-color);
    }
  }
}

.page.account-page.bsc-loyalty {
  max-width: var(--tab-page-width);
}

.page.account-page.bsc-order-details {
  max-width: 530px;
  background-color: var(--background-1-color);
}

/* Profile (OT-14835) */
.bsc-profile__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 24px;
  border-top: var(--card-top-border);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.bsc-profile__card-title {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.2;
}

.bsc-profile__qr {
  padding: 4px;
  border: 2px solid var(--primary-color);
  line-height: 0;

  img {
    width: 128px;
    height: 128px;
  }
}

.bsc-profile__code {
  width: 100%;
  margin-top: 20px;
  padding-bottom: 20px;
}

.bsc-profile__code-heading {
  font-size: 16px;
  font-weight: 400;
}

.bsc-profile__code-text {
  font-size: 16px;
  color: var(--muted-text-color);
}

.bsc-profile__code-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.bsc-profile__code-digits {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.bsc-profile__code-error p {
  font-size: 16px;
  color: var(--error-color);
}

.bsc-profile__retry {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  color: var(--primary-color);
}

.bsc-profile__wallet {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-color);

  p {
    margin: 0 0 16px !important;
    font-size: 16px;
    line-height: 20px;
    color: var(--muted-text-color);
  }

  .bsc-profile__wallet-error {
    margin: 12px 0 0 !important;
    color: var(--error-color);
  }
}

.bsc-profile__google-wallet {
  display: flex;
  justify-content: center;
}

.bsc-profile__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bsc-profile__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  padding: 20px 12px;
  border-top: var(--card-top-border);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: var(--card-shadow);
  color: var(--text-1-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  text-transform: none; /* OT-15392 */
  text-decoration: none;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Tab bar shared by Loyalty rewards and Previous orders (OT-14836) */
.bsc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  color: var(--text-1-color);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  text-transform: none; /* OT-15392 */
  text-decoration: none;

  &:hover, &:focus {
    color: var(--text-1-color);
    text-decoration: none;
    background-color: rgba(29, 29, 27, 0.05);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
  }
}

.bsc-tabs__tab--active,
.bsc-tabs__tab--active:is(:hover, :focus) {
  background-color: var(--primary-color);
  color: var(--on-primary-color);
}

/* Loyalty rewards (OT-14836) */
.bsc-loyalty__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;

  &[hidden] {
    display: none;
  }
}

/* three dots, the middle one a dot with its two neighbours drawn as shadows (css-loaders.com/dots #5) */
.bsc-dots-loader {
  --bsc-dot-on: var(--primary-color);
  --bsc-dot-off: color-mix(in srgb, var(--primary-color) 13%, transparent);
  --bsc-dot-gap: 16px;
  display: block;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: bsc-dots 1s infinite linear alternate;
}

@keyframes bsc-dots {
  0% { box-shadow: var(--bsc-dot-gap) 0 var(--bsc-dot-on), calc(-1 * var(--bsc-dot-gap)) 0 var(--bsc-dot-off); background: var(--bsc-dot-on); }
  33% { box-shadow: var(--bsc-dot-gap) 0 var(--bsc-dot-on), calc(-1 * var(--bsc-dot-gap)) 0 var(--bsc-dot-off); background: var(--bsc-dot-off); }
  66% { box-shadow: var(--bsc-dot-gap) 0 var(--bsc-dot-off), calc(-1 * var(--bsc-dot-gap)) 0 var(--bsc-dot-on); background: var(--bsc-dot-off); }
  100% { box-shadow: var(--bsc-dot-gap) 0 var(--bsc-dot-off), calc(-1 * var(--bsc-dot-gap)) 0 var(--bsc-dot-on); background: var(--bsc-dot-on); }
}

.bsc-loyalty__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  font-size: 16px;
  text-align: center;

  .btn {
    width: auto !important;
  }
}

.bsc-loyalty__empty-title {
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-loyalty__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bsc-loyalty__cards--single {
  grid-template-columns: minmax(0, 1fr);
}

.bsc-loyalty__stamps,
.bsc-loyalty__tier {
  padding: 24px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
}

.bsc-loyalty__stamps {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F4F0DF;
  text-align: center;
}

.bsc-loyalty__stamps-title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 20px;
}

.bsc-loyalty__stamps-grid {
  display: grid;
  grid-template-columns: repeat(var(--bsc-stamp-cols, 4), 44px);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.bsc-loyalty__stamp img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.18;
  filter: grayscale(1);
}

.bsc-loyalty__stamp--filled img {
  opacity: 1;
  filter: none;
}

.bsc-loyalty__stamps-remaining {
  font-size: 13px;
  font-weight: 400;
}

.bsc-loyalty__stamps-earn {
  font-size: 11px;
  color: var(--muted-text-color);
}

/* metal per tier - the same colours as the landing page tier strip */
.bsc-loyalty__tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-color: transparent;
  background-color: #C5C8CE;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #B4B8BF 0%, #E6E8EB 45%, #A9ADB4 100%);
  color: var(--text-1-color);
  font-size: 13px;
}

.bsc-loyalty__tier--bronze {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #B9814F 0%, #E6C19C 45%, #A26839 100%);
}

.bsc-loyalty__tier--gold {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #C29B43 0%, #F1DE9F 45%, #A9852C 100%);
}

.bsc-loyalty__tier--black {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, #1D1D1B 0%, #4A4A48 45%, #111111 100%);
  color: var(--on-primary-color);

  .bsc-loyalty__progress {
    background-color: rgba(255, 255, 255, 0.25);
  }

  .bsc-loyalty__progress-fill {
    background-color: var(--on-primary-color);
  }
}

.bsc-loyalty__tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsc-loyalty__tier-title {
  font-size: 16px;
  text-transform: none; /* OT-15392 */
}

.bsc-loyalty__tier-points {
  flex: none;
  font-weight: 400;
}

.bsc-loyalty__tier-discount {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;

  span {
    font-size: 16px;
  }
}

.bsc-loyalty__tier-earn {
  font-size: 11px;
  font-weight: 400;
}

.bsc-loyalty__progress {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(29, 29, 27, 0.2);
  overflow: hidden;
}

.bsc-loyalty__progress-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--primary-color);
}

.bsc-loyalty__tier-unlock {
  font-weight: 400;
}

.bsc-loyalty__benefits-title {
  margin-top: 4px !important;
  font-size: 11px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-loyalty__benefits {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: "· ";
}

.bsc-loyalty__section-title {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--muted-text-color);
}

.bsc-loyalty__rewards-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsc-loyalty__reward {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 10px 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.bsc-loyalty__reward-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  text-transform: none; /* OT-15392 */
}

.bsc-loyalty__reward-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;

  img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.bsc-loyalty__reward-name {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
}

.bsc-loyalty__reward-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted-text-color);
}

.bsc-loyalty__reward--open .bsc-loyalty__reward-text {
  display: block;
  -webkit-line-clamp: unset;
}

.bsc-loyalty__reward-useby {
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--account-background-color);
  font-size: 10px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-loyalty__reward-details {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding: 4px 0 0;
  border: none;
  background: none;
  color: var(--muted-text-color);
  font-size: 13px;
  font-weight: 400;

  svg {
    transition: transform 0.15s ease;
  }

  &[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  &[hidden] {
    display: none;
  }
}

/* Previous orders (OT-14838) */
.bsc-orders__filter select {
  width: 100%;
  height: var(--control-height);
  padding: 0 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-1-color);
}

.bsc-orders__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsc-order-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 16px;

  .btn {
    margin-top: 8px !important;
  }
}

.bsc-order-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.bsc-order-card__type {
  font-size: 18px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-status {
  padding: 2px 8px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-transform: none; /* OT-15392 */
}

.bsc-order-card__date {
  margin-left: auto;
  color: var(--muted-text-color);
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-card__store {
  margin-top: 4px !important;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-card__address,
.bsc-order-card__address:hover {
  font-size: 12px;
  color: var(--text-1-color);
  text-decoration: underline;
}

.bsc-order-card__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-text-color);
}

.bsc-order-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsc-order-card__view,
.bsc-order-card__view:hover {
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  text-decoration: underline;
  color: var(--text-1-color);
}

.bsc-order-card__number {
  color: var(--muted-text-color);
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

/* Past order details (OT-14838) */
.bsc-order-details__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-order-details__type {
  margin: 0;
  font-size: 22px;
}

.bsc-order-details__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-order-details__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;

  svg {
    flex: none;
    color: var(--muted-text-color);
  }
}

.bsc-order-details__store {
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-details__lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--hairline-color);
  list-style: none;
}

.bsc-order-details__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 400;
}

.bsc-order-details__line-price {
  flex: none;
}

.bsc-order-details__line-attributes {
  margin-top: 2px !important;
  font-size: 12px;
  color: var(--muted-text-color);
}

.bsc-order-details__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;

  div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  dt, dd {
    margin: 0;
    font-weight: 400;
  }
}

.bsc-order-details__total {
  margin-top: 8px;

  dt, dd {
    font-size: 16px;
    font-weight: 700 !important;
    text-transform: none; /* OT-15392 */
  }
}

.bsc-order-details__tax-included {
  color: var(--muted-text-color);
  font-size: 12px;
}

@media (max-width: 991px) {
  .bsc-loyalty__rewards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page.account-page:is(.bsc-profile, .bsc-loyalty, .bsc-order-details) {
    padding: 24px 16px 40px;
  }

  .account-page .page-title h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .bsc-loyalty__cards,
  .bsc-orders__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsc-loyalty__rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .bsc-profile__link {
    padding: 16px 8px;
  }

  .bsc-tabs__tab {
    font-size: 12px;
  }
}
/* =================== end OT-14835 / OT-14836 / OT-14838 =================== */

/* =================== OT-15009: BSC web categories gallery =================== */
.html-categories-gallery-page body,
.html-categories-gallery-page .master-wrapper-page {
  background: var(--page-outside-color) !important;
}

html.html-categories-gallery-page .master-wrapper-content:has(.bsc-gallery) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bsc-gallery {
  --bsc-gallery-gap: 18px;
  --bsc-gallery-picture: 148px;
  --bsc-gallery-name: 54px;
  padding: 0;
  margin: 0;
  max-width: none;
}

.bsc-gallery__banner {
  height: 230px;
  overflow: hidden;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.bsc-gallery__body {
  max-width: 1166px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.bsc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bsc-gallery-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsc-gallery__item {
  min-width: 0;
}

.bsc-gallery__item--highlight {
  grid-column: span 2;
}

.bsc-gallery__tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
  color: var(--text-2-color);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  &:hover, &:focus-visible {
    text-decoration: none;
    color: var(--text-2-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  }

  &:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
}

.bsc-gallery__picture {
  display: block;
  height: var(--bsc-gallery-picture);
  background: var(--surface-color);

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.bsc-gallery__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bsc-gallery-name);
  padding: 6px 12px;
  background: var(--text-3-color);
  font-family: var(--main-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: none; /* OT-15392 */
  overflow-wrap: anywhere;
}

.bsc-gallery__full-menu {
  display: table;
  margin: 48px auto 0;
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none; /* OT-15392 */
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--text-1-color);

  &:hover, &:focus-visible {
    color: var(--text-1-color);
    text-decoration-thickness: 2px;
  }
}

@media (max-width: 767px) {
  .bsc-gallery {
    --bsc-gallery-gap: 12px;
    --bsc-gallery-picture: 90px;
    --bsc-gallery-name: 36px;
  }

  .bsc-gallery__banner {
    height: 160px;
  }

  .bsc-gallery__body {
    padding: 24px 16px 40px;
  }

  .bsc-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsc-gallery__name {
    font-size: 12px;
  }

  .bsc-gallery__full-menu {
    margin-top: 32px;
  }
}
/* =================== end OT-15009 =================== */

/* =================== OT-15015: BSC web checkout (CheckoutNxg/ExpressCheckout) =================== */
.html-bsc-checkout-page body,
.html-bsc-checkout-page .master-wrapper-page {
  background: var(--page-outside-color) !important;
}

html.html-bsc-checkout-page .master-wrapper-content:has(.bsc-checkout) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* main column | bag panel on desktop, main column only on mobile (the bag lives on the review page there) */
.bsc-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  min-height: calc(100dvh - var(--header-height));
  font-family: var(--main-font);
  color: var(--text-1-color);

  > * {
    min-width: 0;
  }

  button,
  input,
  textarea {
    font-family: var(--main-font);
  }
}

.bsc-checkout__main {
  padding: 4px 16px 48px;
}

.bsc-checkout__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.bsc-checkout__title {
  margin: 0;
  font-size: 36px;
  line-height: 32px;
  text-align: center;
}

.bsc-checkout__bag {
  border-left: 1px solid var(--hairline-color);
  background: var(--surface-color);

  /* the panel's own CHECKOUT button would only lead back here */
  .bsc-bag .review-btn {
    display: none;
  }
}

.bsc-checkout__notice {
  padding: 16px;
  border: 1px solid var(--error-color);
  background: var(--surface-color);
  color: var(--error-color);
  font-size: 16px;
  font-weight: 400;
}

/* Order summary */
.bsc-checkout-summary {
  padding: 16px;
  border: 2px solid var(--primary-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);
}

.bsc-checkout-summary__title {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
}

.bsc-checkout-summary__items {
  margin: 0 0 16px;
  padding: 0 0 8px;
  list-style: none;
  border-bottom: 1px solid var(--hairline-color);
}

.bsc-checkout-summary__item {
  margin-bottom: 12px;
}

.bsc-checkout-summary__item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 20px;
}

.bsc-checkout-summary__item-name {
  min-width: 0;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  overflow-wrap: anywhere;
}

.bsc-checkout-summary__item-price {
  flex: 0 0 auto;
  color: var(--muted-text-color);
}

.bsc-checkout-summary__item-attributes {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted-text-color);
  overflow-wrap: anywhere;
}

.bsc-checkout-summary__rows {
  margin: 0;
}

.bsc-checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted-text-color);

  dt, dd {
    margin: 0;
    font-weight: 400;
  }

  dd {
    text-align: right;
  }
}

.bsc-checkout-summary__row--total {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--primary-color);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-1-color);

  dt, dd {
    font-weight: 400;
  }
}

/* OT-15016: tip card ("Add a tip?") */
.bsc-tip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);

  &[aria-busy="true"] {
    opacity: .7;
  }
}

.bsc-tip__title {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.01em;
}

/* one row of equal segments; the labels are spans, never headings (#81) */
.bsc-tip__options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border: 1px solid var(--primary-color);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.bsc-tip__option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 55px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid var(--primary-color);
  border-radius: 0;
  background: var(--surface-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color .15s, color .15s;

  &:last-child {
    border-right: 0;
  }

  &[aria-checked="true"] {
    background: var(--primary-color);
    color: var(--on-primary-color);
  }

  &[aria-disabled="true"] {
    cursor: default;
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -4px;
    box-shadow: inset 0 0 0 3px var(--surface-color);
  }
}

.bsc-tip__option-label {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: normal;
}

/* the amount under the %; inherits the segment colour, so a checked segment is white on black */
.bsc-tip__option-amount {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;

  &:empty {
    display: none;
  }
}

.bsc-tip__option:first-child .bsc-tip__option-label {
  font-size: 16px;
  text-transform: none; /* OT-15392 */
}

.bsc-tip__or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-transform: none; /* OT-15392 */
  color: var(--text-3-color);

  &::before,
  &::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--hairline-color);
  }
}

.bsc-tip__custom-row {
  display: flex;
  gap: 8px;
}

.bsc-tip__apply.bsc-bag-btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 45px;
  padding: 0 24px;

  &[aria-disabled="true"] {
    cursor: default;
  }
}

.bsc-tip__custom {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);
  color: var(--text-1-color);
  font-size: 16px;
  font-weight: 500;
  text-align: center;

  &::placeholder {
    color: var(--placeholder-color);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
  }
}

.bsc-tip__message {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--error-color);

  &:empty {
    display: none;
  }
}

/* Form: details fallback, notes, consents */
.bsc-checkout__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bsc-checkout-details {
  padding: 16px;
  border: 2px solid var(--input-border-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);

  &[hidden] {
    display: none;
  }
}

.bsc-checkout-details__title {
  margin: 0 0 12px;
  font-size: 16px;
}

.bsc-checkout-notes,
.bsc-checkout-captcha {
  margin: 0;
}

.bsc-checkout-consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bsc-checkout-check.form-check {
  margin: 0;
  padding: 0;

  .form-check-label {
    padding-left: 28px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
  }

  a {
    color: var(--text-1-color);
    font-weight: 600;
  }

  .checkmark {
    top: 2px;
    width: 16px;
    height: 16px;
    border-width: 1px;
  }

  input:checked ~ .checkmark:after {
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
  }

  input:focus-visible ~ .checkmark {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

.bsc-checkout__secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted-text-color);

  svg {
    flex: 0 0 auto;
    margin-top: 2px;
  }
}

.bsc-checkout__secure--mobile {
  display: none;
}

/* Payment component (the payment method's express view; Adyen: adyen-express__*) */
.bsc-checkout-payment {
  position: relative;
  transition: opacity 0.2s ease;

  /* T&Cs not ticked: dimmed and covered, so nothing (incl. the card iframes) can be reached */
  &.is-locked {
    opacity: 0.4;

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 2;
      background: rgba(255, 255, 255, 0.3);
      cursor: not-allowed;
    }
  }
}

.bsc-checkout-payment .adyen-express {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bsc-checkout-payment .adyen-express__wallets {
  display: flex;
  flex-direction: column;
  gap: 16px;

  &:not(:has(> :not([hidden]))) {
    display: none;
  }
}

.bsc-checkout-payment .adyen-express__wallet {
  min-height: 56px;

  &[hidden] {
    display: none;
  }

  .adyen-checkout__applepay__button,
  .adyen-checkout__paywithgoogle,
  .adyen-checkout__paywithgoogle button {
    width: 100%;
    height: 56px;
    min-height: 56px;
    border-radius: var(--btn-radius);
  }

  .adyen-checkout__paywithgoogle {
    overflow: hidden;
  }
}

.bsc-checkout-payment .adyen-express__separator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--disabled-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: none; /* OT-15392 */
  letter-spacing: 0.05em;

  &::before, &::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--hairline-color);
  }

  &[hidden] {
    display: none;
  }
}

.bsc-checkout-payment .adyen-express__card-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--hairline-color);
  border-radius: var(--btn-radius);
  background: var(--surface-color);
  color: var(--muted-text-color);
  font-size: 16px;
  font-weight: 400;

  /* card outline with its stripe */
  &::before {
    content: '';
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: linear-gradient(currentColor, currentColor) 0 3px / 100% 2px no-repeat;
  }

  &:hover, &:focus-visible {
    border-color: var(--primary-color);
    color: var(--text-1-color);
  }

  /* open: the toggle reads "Collapse card details" under the card form */
  &.active {
    order: 1;
    min-height: 0;
    padding: 4px;
    border: 0;
    background: none;
    font-size: 16px;
    font-weight: 600;

    &::before {
      display: none;
    }
  }
}

.bsc-checkout-payment .adyen-express__action,
.bsc-checkout-payment .adyen-express__error {
  order: 2;
}

.bsc-checkout-payment .adyen-express__card-panel {
  padding: 16px;
  border: 2px solid var(--primary-color);
  border-radius: var(--card-radius);
  background: var(--surface-color);

  &[hidden] {
    display: none;
  }

  .adyen-checkout__input {
    height: var(--control-height);
    border-color: var(--hairline-color);
    border-radius: 0;
    background: var(--page-outside-color);
  }

  .adyen-checkout__label__text {
    color: var(--muted-text-color);
    font-family: var(--main-font);
  }
}

.bsc-checkout-payment .adyen-express__card-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-checkout-payment [aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.bsc-checkout-payment .adyen-express__error {
  margin: 0;
  color: var(--error-color);
  font-size: 16px;
  font-weight: 600;

  &[hidden] {
    display: none;
  }
}

/* Cross-sells: the review page cards, as many to a row as fit beside the bag */
.bsc-checkout__crosssell .bsc-review-crosssell {
  margin-top: 16px;
  padding: 0;
}

@media (min-width: 768px) {
  .bsc-checkout__crosssell .bsc-review-crosssell__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .bsc-checkout__crosssell .bsc-review-crosssell__media {
    height: 110px;
  }
}

/* Processing overlay: the OT-14831 brand loader */
.bsc-checkout-processing {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(255, 255, 255, 0.9);

  &[hidden] {
    display: none;
  }
}

.bsc-checkout-processing__text {
  position: absolute;
  top: calc(50% + 110px);
  left: 16px;
  right: 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-transform: none; /* OT-15392 */
}

html.is-bsc-checkout-processing {
  overflow: hidden;
}

@media (max-width: 767px) {
  .bsc-checkout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsc-checkout__bag,
  .bsc-checkout__crosssell {
    display: none;
  }

  .bsc-checkout__main {
    padding: 8px 16px 32px;
  }

  .bsc-checkout__title {
    font-size: 28px;
    line-height: 36px;
  }

  .bsc-checkout-consents {
    padding: 16px;
    border: 2px solid var(--input-border-color);
    background: var(--surface-color);
  }

  .bsc-checkout__secure--mobile {
    display: flex;
  }

  .bsc-checkout__secure--desktop {
    display: none;
  }

  .bsc-checkout-payment .adyen-express__card-toggle:not(.active) {
    border-color: var(--primary-color);
    text-transform: none; /* OT-15392 */
  }
}
/* =================== end OT-15015 =================== */

/* =================== OT-15017: BSC web order confirmation (Order/Details) =================== */
/* light-grey page with a centred ~450px column; inner elements carry the width (#81b) */
html:has(.page.bsc-order-confirmation) {
  body {
    background-image: none !important;
    background-color: var(--account-background-color);
  }

  .master-wrapper-content.main-content-area {
    margin: 0 auto !important;
    width: auto !important;
  }
}

.page.bsc-order-confirmation {
  min-height: calc(100dvh - var(--header-height));
  margin: 0;
  padding: 40px 16px 48px;
  background-color: var(--account-background-color);
  color: var(--text-1-color);
  text-align: left;

  p {
    margin: 0;
  }
}

.bsc-order-confirmation__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 450px;
  margin: 0 auto;
}

.bsc-order-confirmation__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.bsc-order-confirmation__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-order-confirmation__title {
  margin: 0 !important;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-1-color) !important;
}

.bsc-order-confirmation__email {
  font-size: 15px;
}

.bsc-order-confirmation__spam {
  font-size: 12px;
  color: var(--muted-text-color);
}

.bsc-order-confirmation__group {
  margin-top: 12px !important;
  font-size: 13px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-confirmation__number {
  margin-top: 12px !important;
  font-size: 18px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

/* loyalty card, swapped in by bsc-loyalty.js */
.bsc-order-confirmation__loader {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  border-radius: var(--card-radius);
  background-color: #F4F0DF;
}

.bsc-order-confirmation__loyalty {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--card-radius);
  background-color: #F4F0DF;
  text-align: center;
}

.bsc-order-confirmation__stamps {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* 50px stamps that shrink with the card on narrow screens, keeping the column count */
  .bsc-loyalty__stamps-grid {
    width: 100%;
    max-width: calc(var(--bsc-stamp-cols, 4) * 50px + (var(--bsc-stamp-cols, 4) - 1) * 8px);
    grid-template-columns: repeat(var(--bsc-stamp-cols, 4), minmax(0, 1fr));
    margin: 0;
  }

  .bsc-loyalty__stamp img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

.bsc-order-confirmation__stamps-title {
  margin: 0 0 16px !important;
  font-size: 18px;
  line-height: 1.3;
}

.bsc-order-confirmation__banner {
  padding: 12px 16px;
  border-radius: var(--btn-radius);
  background-color: var(--primary-color);
  color: var(--on-primary-color);
}

.bsc-order-confirmation__banner-title {
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
}

.bsc-order-confirmation__banner-text {
  margin-top: 2px !important;
  font-size: 12px;
}

/* tier banner: the kiosk rewards drawer's tier-card metals, moving sheen and brushed grain (BaseBlackSheepKioskV2 .bsc-rd-tier-card) */
.bsc-order-confirmation__banner--tier {
  --oc-band-bright: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0.05) 34%, rgba(255,255,255,0.16) 41%, rgba(255,255,255,0.38) 46%, rgba(255,255,255,0.62) 50%, rgba(255,255,255,0.38) 54%, rgba(255,255,255,0.16) 59%, rgba(255,255,255,0.05) 66%, rgba(255,255,255,0) 74%, rgba(255,255,255,0) 100%);
  --oc-band-soft: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.06) 44%, rgba(255,255,255,0.18) 48%, rgba(255,255,255,0.30) 50%, rgba(255,255,255,0.18) 52%, rgba(255,255,255,0.06) 56%, rgba(255,255,255,0) 62%, rgba(255,255,255,0) 100%);
  --oc-card-flat: rgb(189, 193, 199);
  --oc-card-band: var(--oc-band-soft);
  --oc-card-text: #111827;
  --oc-card-border: 2px solid #B7BCC2;
  --oc-gleam-secs: 9s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 20px;
  border: var(--oc-card-border);
  border-radius: 16px;
  background-color: var(--oc-card-flat);
  background-image: var(--oc-card-band), linear-gradient(var(--oc-card-flat), var(--oc-card-flat));
  background-size: 230% 100%, 100% 100%;
  background-repeat: no-repeat;
  color: var(--oc-card-text);
  text-align: center;
  animation: bscOcSheen var(--oc-gleam-secs) linear infinite;
}

.bsc-order-confirmation__banner--tier::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.055) 0, rgba(255,255,255,.055) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0, rgba(0,0,0,.05) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.044) 0, rgba(255,255,255,.044) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 1px, transparent 7px);
  -webkit-mask-image: linear-gradient(315deg, #000 0%, rgba(0,0,0,.92) 16%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.18) 46%, transparent 58%);
  mask-image: linear-gradient(315deg, #000 0%, rgba(0,0,0,.92) 16%, rgba(0,0,0,.55) 34%, rgba(0,0,0,.18) 46%, transparent 58%);
}

@keyframes bscOcSheen {
  0% { background-position: 0% 0, 0 0; }
  100% { background-position: 100% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bsc-order-confirmation__banner--tier {
    animation: none;
  }
}

.bsc-order-confirmation__banner-eyebrow {
  margin: 0 0 6px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: none; /* OT-15392 */
}

.bsc-order-confirmation__banner-headline {
  margin: 0 !important;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none; /* OT-15392 */
}

/* kiosk bronze card: no plate, just the bronze outline */
.bsc-order-confirmation__banner--bronze {
  --oc-card-flat: transparent;
  --oc-card-band: none;
  --oc-card-text: var(--primary-color);
  --oc-card-border: 1px solid #A97142;
  animation: none;
}

.bsc-order-confirmation__banner--bronze::after {
  content: none;
}

.bsc-order-confirmation__banner--gold {
  --oc-card-flat: rgb(204, 169, 91);
  --oc-card-band: var(--oc-band-bright);
  --oc-card-border: 2px solid #C8A24A;
  --oc-gleam-secs: 7s;
}

.bsc-order-confirmation__banner--black {
  --oc-card-flat: rgb(22, 22, 22);
  --oc-card-band: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.051) 44%, rgba(255,255,255,0.153) 48%, rgba(255,255,255,0.255) 50%, rgba(255,255,255,0.153) 52%, rgba(255,255,255,0.051) 56%, rgba(255,255,255,0) 62%, rgba(255,255,255,0) 100%);
  --oc-card-text: #FFFFFF;
  --oc-card-border: 2px solid #1A1A1A;
  --oc-gleam-secs: 7s;
}

@media (max-width: 480px) {
  .bsc-order-confirmation__banner-headline {
    font-size: 18px;
  }
}

.bsc-order-confirmation__tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(29, 29, 27, 0.15);

  .bsc-loyalty__progress {
    height: 4px;
  }

  .bsc-loyalty__progress-fill {
    background-color: #C29B43;
  }
}

.bsc-order-confirmation__tier-text {
  font-size: 13px;
  font-weight: 400;
}

/* neutral Starter look wherever the tier card or the landing strip shows it (the base style is silver) */
.bsc-loyalty__tier--starter,
.bsc-home__tier--starter {
  background-image: none;
  background-color: var(--surface-color);
  border: 2px solid var(--input-border-color);
}

/* pickup */
.bsc-order-confirmation__pickup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;

}

.bsc-order-confirmation__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  svg {
    flex: none;
    margin-top: 1px;
  }
}

.bsc-order-confirmation__link {
  color: var(--text-1-color);
  text-decoration: underline;

  &:hover, &:focus-visible {
    color: var(--text-1-color);
  }
}

/* items and totals */
.bsc-order-confirmation__items-title {
  margin: 0 0 12px !important;
  font-size: 16px;
  text-align: left;
}

.bsc-order-confirmation__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--hairline-color);
  list-style: none;
}

.bsc-order-confirmation__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
}

.bsc-order-confirmation__participant {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted-text-color);

  &:not(:first-child) {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline-color);
  }
}

.bsc-order-confirmation__line-attributes {
  margin-top: 2px !important;
  font-size: 12px;
  color: var(--muted-text-color);
}

.bsc-order-confirmation__totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 16px;

  > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  dt {
    font-weight: 400;
  }

  dd {
    margin: 0;
  }
}

.bsc-order-confirmation__total {
  margin-top: 4px;
  font-size: 16px;

  dt, dd {
    font-weight: 700 !important;
  }
}

.page.bsc-order-confirmation .bsc-order-confirmation__finish {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control-height);
  margin: 0;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: var(--btn-radius);
  background-color: var(--primary-color);
  color: var(--on-primary-color);
  font-size: 16px;
  font-weight: 400;
  text-transform: none; /* OT-15392 */
  text-decoration: none;
}

@media (max-width: 767px) {
  .page.bsc-order-confirmation {
    padding: 24px 16px 40px;
  }

  .bsc-order-confirmation__loyalty {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsc-order-confirmation__loader .bsc-dots-loader {
    animation: none;
    background: var(--bsc-dot-on);
    box-shadow: var(--bsc-dot-gap) 0 var(--bsc-dot-off), calc(-1 * var(--bsc-dot-gap)) 0 var(--bsc-dot-off);
  }
}
/* =================== end OT-15017 =================== */

/* OT-15392: normal case over shared CSS (nxg.css / styles.css force uppercase on these) */
.btn,
.account-order-preview .order-number a,
.order-confirmation h2,
.checkout-page .order-summary,
.cat-listing-slider .item a,
.createGroupOrder .search_box.not_found .main_title,
.group-guest .guest-name,
.popup h2,
input#tableNumber,
#btnfind,
.account-item .name,
.address-edit-page .address-details-title,
.account-page .heading-title,
.header-links span, .header-links a,
.account-page .button-1,
.password-recovery-page .button-1,
.checkout-page .button-1,
.cart-footer .checkout-button,
.cart-collaterals .button-2,
.order-completed .details strong,
.order-details-page .order-overview .order-number,
.order-details-page .repost .button-2,
.ui-datepicker-title,
.mini-shopping-cart button[type="button"] {
  text-transform: none !important;
}
