/*
 * BuyBackEmpire — "Amber" design
 * One stylesheet for the whole customer-facing site. Responsive refinements live in mediaqueries.css.
 *
 * Palette   black #000 · ink #111 · amber #ffc41f (the quote button and the highlighted word) · white · soft greys
 * Type      Outfit (headlines) + Nunito Sans (text)
 * Idea      A black masthead that flows straight into the hero, one yellow highlight word,
 *           one big model search, then large clean white cards for picking a category.
 */
:root {
  --bb-black: #000000;
  --bb-black-soft: #262626;
  --bb-ink: #111111;
  --bb-ink-muted: #5c5c63;
  --bb-paper: #ffffff;
  --bb-grey-50: #f6f6f7;
  --bb-grey-100: #efeff1;
  --bb-grey-300: #d9d9dd;
  --bb-amber: #ffc41f;
  --bb-amber-hover: #ffd34d;
  --bb-amber-press: #e8aa00;
  --bb-check: #22a85a;
  --bb-line: #e9e9ec;
  --bb-line-strong: #cfcfd4;
  --bb-line-inv: rgba(255, 255, 255, 0.18);
  --bb-success: #1f8a52;
  --bb-danger: #c0271a;
  --bb-warning: #f2b632;
  /* Legacy token names, kept so any older markup keeps resolving */
  --bb-ink-deep: var(--bb-black);
  --bb-surface: var(--bb-paper);
  --bb-surface-soft: var(--bb-grey-50);
  --bb-surface-warm: var(--bb-grey-50);
  --bb-border: var(--bb-line);
  --bb-border-strong: var(--bb-line-strong);
  --bb-brand: var(--bb-black);
  --bb-brand-hover: var(--bb-black-soft);
  --bb-brand-soft: var(--bb-grey-100);
  --bb-accent: var(--bb-amber);
  --bb-font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bb-font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --bb-shadow-md: 0 22px 50px rgba(0, 0, 0, 0.14);
  --bb-radius-sm: 12px;
  --bb-radius: 20px;
  --bb-radius-lg: 30px;
  --bb-container: 1240px;
  --bb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-black) var(--bb-grey-100);
}

/* Custom scrollbar: WebKit/Blink get the styled version, Firefox uses the standard properties above */
@supports selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bb-grey-100);
  }

  ::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 3px solid var(--bb-grey-100);
    border-radius: 999px;
    background: var(--bb-black);
  }

  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active {
    background: var(--bb-amber-press);
  }

  ::-webkit-scrollbar-corner {
    background: var(--bb-grey-100);
  }
}

body.body-text {
  margin: 0;
  overflow-x: hidden;
  background: var(--bb-paper);
  color: var(--bb-ink);
  font-family: var(--bb-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cbp-spmenu-push-toleft {
  overflow: hidden;
}

body .container {
  width: 100%;
  max-width: var(--bb-container);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bb-ink);
  font-family: var(--bb-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

img {
  max-width: 100%;
}

a {
  color: var(--bb-black);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 200ms ease, transform 200ms ease;
}

a:hover,
a:focus {
  color: var(--bb-black-soft);
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bb-amber-press);
  outline-offset: 3px;
}

header a:focus-visible,
header button:focus-visible,
.hero a:focus-visible,
.steps-section a:focus-visible,
footer a:focus-visible,
.cbp-spmenu a:focus-visible,
.cbp-spmenu button:focus-visible {
  outline-color: var(--bb-amber);
}

::selection {
  background: var(--bb-amber);
  color: var(--bb-black);
}

/* ------------------------------------------------------------------
   Loading screen (dismissed by slider.js; CSS fallback if JS fails)
   ------------------------------------------------------------------ */
.page-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bb-black);
  transition: transform 700ms cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 700ms;
  animation: bb-loader-failsafe 0.01s linear 3.4s forwards;
}

.page-loader-ring {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--bb-amber);
  border-radius: 50%;
  animation: bb-spin 0.8s linear infinite;
}

html.is-ready .page-loader {
  visibility: hidden;
  transform: translateY(-100%);
}

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

@keyframes bb-loader-failsafe {
  to { visibility: hidden; opacity: 0; pointer-events: none; }
}

/* ------------------------------------------------------------------
   Scroll reveal (progressive: only hidden when JS is running)
   ------------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  animation: bb-reveal 650ms var(--bb-ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes bb-reveal {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes bb-rise {
  from { opacity: 0; transform: translateY(30px); }
}

@keyframes bb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bb-pop {
  from { opacity: 0; transform: scale(0.85); }
}

@keyframes bb-line {
  from { transform: scaleX(0); }
}

@keyframes bb-tag-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  border-radius: 999px;
  font-family: var(--bb-font-body);
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 220ms var(--bb-ease);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary,
.home-search-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--bb-amber);
  color: var(--bb-black);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus,
.home-search-form .btn-primary:hover,
.home-search-form .btn-primary:focus {
  border: 0;
  background: var(--bb-amber-hover);
  box-shadow: 0 10px 24px rgba(255, 196, 31, 0.45);
  color: var(--bb-black);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  border: 0;
  background: var(--bb-amber-press);
  box-shadow: none;
  color: var(--bb-black);
  transform: translateY(1px);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.5;
  transform: none;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.75rem 1.9rem;
  border: 0;
  background: var(--bb-black);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
}

.btn-ink:hover,
.btn-ink:focus {
  background: var(--bb-black-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--bb-black);
  background: transparent;
  color: var(--bb-black);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--bb-black);
  color: #fff;
}

/* ------------------------------------------------------------------
   Reassurance bar and black masthead
   ------------------------------------------------------------------ */
.usp-bar {
  border-bottom: 1px solid var(--bb-line);
  background: var(--bb-paper);
  color: var(--bb-ink);
  font-size: 0.82rem;
}

.usp-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 11px 40px;
  list-style: none;
}

.usp-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.usp-list i {
  color: var(--bb-check);
  font-size: 0.8rem;
}

.usp-list strong {
  font-weight: 800;
}

header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--bb-black);
  color: #fff;
  transition: box-shadow 220ms ease;
}

header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.navbar > .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 1400px;
  min-height: 104px;
  padding-right: 40px;
  padding-left: 40px;
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.menu-btn i {
  font-size: 1.45rem;
  transition: transform 260ms var(--bb-ease);
}

.menu-btn:hover,
.menu-btn:focus {
  color: var(--bb-amber);
}

.menu-btn:hover i {
  transform: scaleX(1.12);
  transform-origin: left center;
}

.logo,
.logo:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

/* The logo sits on a white tile so any supplied logo reads on the black masthead */
.logo-padding {
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--bb-paper);
}

.logo-img-lg,
.logo-img-default {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 44px;
}

.icon-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar .icon-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.icon-menu .how-link {
  padding: 10px 6px 10px 10px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.icon-menu .how-link:hover,
.icon-menu .how-link:focus {
  color: var(--bb-amber);
}

.icon-menu > li:not(.how-item) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}

.icon-menu > li:not(.how-item) > a:hover,
.icon-menu > li:not(.how-item) > a:focus {
  background: rgba(255, 255, 255, 0.14);
  color: var(--bb-amber);
}

.icon-user,
.icon-search,
.icon-cart {
  width: 22px;
  height: 22px;
  font-size: 1.12rem;
  line-height: 22px;
  text-align: center;
  object-fit: contain;
}

.icon-menu > li:not(.how-item) > a.sale-link {
  width: auto;
  height: 46px;
  gap: 7px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.icon-menu .cart {
  position: relative;
}

.icon-menu .cart .sale-link-text {
  position: static;
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.icon-menu .cart span:not(.sale-link-text) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bb-amber);
  color: var(--bb-black);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.icon-menu .cart span:empty {
  display: none;
}

.icon-menu .submenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: none;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  background: var(--bb-paper);
  box-shadow: var(--bb-shadow-md);
}

.icon-menu .submenu::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.icon-menu .user:hover .submenu,
.icon-menu .user:focus-within .submenu,
.icon-menu .user.is-open .submenu {
  display: block;
  animation: bb-tag-in 200ms var(--bb-ease);
}

.icon-menu .submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--bb-ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.icon-menu .submenu a:hover,
.icon-menu .submenu a:focus {
  background: var(--bb-grey-100);
  color: var(--bb-black);
}

.icon-menu .submenu .cart {
  display: none;
}

/* ------------------------------------------------------------------
   Demo notice
   ------------------------------------------------------------------ */
.demo-banner {
  position: relative;
  z-index: 1035;
  padding: 7px 0;
  border-bottom: 1px solid var(--bb-grey-300);
  background: var(--bb-grey-100);
  color: var(--bb-black);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.demo-banner p {
  position: relative;
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 36px 0 20px;
}

.demo-banner strong {
  font-weight: 800;
}

.demo-banner .close-banner {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--bb-black);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.demo-banner .close-banner:hover {
  color: var(--bb-danger);
}




/* Header search retains the JavaScript IDs */
.search-form-top {
  position: absolute;
  top: calc(100% + 8px);
  right: 15px;
  display: none;
  width: min(460px, calc(100vw - 30px));
  padding: 12px;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-paper);
  box-shadow: var(--bb-shadow-md);
}

.search-form-top.active {
  display: block;
}

.search-form-top .input-group {
  display: flex;
  flex-wrap: nowrap;
}

.search-form-top .form-control {
  height: 48px;
  min-width: 0;
  padding-left: 18px;
  border: 2px solid var(--bb-line);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: var(--bb-grey-50);
  box-shadow: none;
  color: var(--bb-ink);
  font-size: 0.95rem;
}

.search-form-top .form-control:focus {
  border-color: var(--bb-black);
  background: var(--bb-paper);
}

.search-form-top .input-group-append {
  display: flex;
}

.search-form-top .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0 16px 16px 0;
  background: var(--bb-amber);
  color: var(--bb-ink);
  box-shadow: none;
}

.search-form-top .input-group-text:hover,
.search-form-top .input-group-text:focus {
  background: var(--bb-amber-hover);
  color: var(--bb-ink);
  transform: none;
  box-shadow: none;
}

#suggestions-list2,
#suggestions-list {
  position: absolute;
  z-index: 1040;
  right: 0;
  left: 0;
  max-height: 264px;
  margin: 6px 0 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-paper);
  box-shadow: var(--bb-shadow-md);
  text-align: left;
}

#suggestions-list2:empty,
#suggestions-list:empty {
  display: none;
}

#suggestions-list2 li,
#suggestions-list li {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--bb-ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

#suggestions-list2 li:hover,
#suggestions-list li:hover {
  background: var(--bb-grey-100);
}

#suggestions-list2 a,
#suggestions-list a {
  display: block;
  margin: -10px -12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.error-message,
.error-message2 {
  display: none;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid #f2c0b9;
  border-radius: 14px;
  background: #fff3f1;
  color: var(--bb-danger);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile drawer keeps the legacy classes and IDs */
.nav-scrim {
  position: fixed;
  z-index: 1090;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}

body.cbp-spmenu-push-toleft .nav-scrim {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.cbp-spmenu {
  position: fixed;
  top: 0;
  height: 100%;
  background: var(--bb-black);
  visibility: hidden;
  transition: left 320ms var(--bb-ease), visibility 0s linear 320ms;
}

.cbp-spmenu.cbp-spmenu-right {
  z-index: 1100;
  right: auto;
  left: -360px;
  display: flex;
  flex-direction: column;
  width: 340px;
  padding: 22px 26px 30px;
  overflow-y: auto;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.25);
}

.cbp-spmenu.cbp-spmenu-right.cbp-spmenu-open {
  left: 0;
  visibility: visible;
  transition-delay: 0s;
}

/* The page no longer slides sideways when the drawer opens; the scrim carries the transition */
.cbp-spmenu-push {
  position: relative;
  left: 0;
}

.cbp-spmenu-push-toleft {
  left: 0;
}

.cbp-spmenu .close-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 18px auto;
  border: 1px solid var(--bb-line-inv);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0;
  transition: background-color 180ms ease, transform 260ms var(--bb-ease);
}

.cbp-spmenu .close-menu:hover {
  background: var(--bb-black);
  transform: rotate(90deg);
}

.cbp-spmenu .close-menu::before {
  content: "×";
  font-size: 1.6rem;
  line-height: 1;
}

.cbp-spmenu a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--bb-line-inv);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--bb-font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cbp-spmenu a:hover,
.cbp-spmenu a:focus,
.cbp-spmenu a.active {
  color: #fff;
}

.cbp-spmenu a.active {
  color: var(--bb-amber);
}

.cbp-spmenu a.drawer-sub {
  padding: 11px 4px;
  color: rgba(239, 239, 241, 0.7);
  font-family: var(--bb-font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.cbp-spmenu a.drawer-cta {
  margin-top: 26px;
  padding: 15px 22px;
  border: 0;
  border-radius: 16px;
  background: var(--bb-amber);
  color: var(--bb-ink);
  font-family: var(--bb-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.cbp-spmenu a.drawer-cta:hover,
.cbp-spmenu a.drawer-cta:focus {
  background: var(--bb-amber-hover);
  color: var(--bb-ink);
}

/* ------------------------------------------------------------------
   Feedback messages
   ------------------------------------------------------------------ */
.messages {
  position: relative;
  z-index: 1020;
  max-width: var(--bb-container);
  margin: 18px auto 0;
  padding: 0 15px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px 16px;
  border: 1px solid var(--bb-line);
  border-left: 5px solid var(--bb-black);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-paper);
  box-shadow: var(--bb-shadow-sm);
  color: var(--bb-ink);
  font-size: 0.93rem;
  font-weight: 600;
  transition: opacity 300ms ease, transform 300ms ease;
}

.message-success { border-left-color: var(--bb-success); }
.message-error { border-left-color: var(--bb-danger); }
.message-warning { border-left-color: var(--bb-warning); }

.message-icon { color: var(--bb-black); }
.message-success .message-icon { color: var(--bb-success); }
.message-error .message-icon { color: var(--bb-danger); }
.message-warning .message-icon { color: #9a6a00; }

.message-text {
  flex: 1 1 auto;
}

.message .close-button {
  margin: -3px -4px -3px 0;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--bb-ink-muted);
  cursor: pointer;
}




/* ------------------------------------------------------------------
   Homepage: hero (continues the black masthead)
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 2;
  padding: 26px 0 0;
  background: var(--bb-black);
  color: #fff;
}

.hero > .container {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

.hero-content {
  padding: 28px 24px 96px 60px;
}

.hero-title {
  max-width: 10em;
  margin: 0 0 34px;
  color: #fff;
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.hero-title mark {
  padding: 0;
  background: none;
  color: var(--bb-amber);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

.search-box-wrapper {
  position: relative;
  flex: 1 1 380px;
  max-width: 480px;
}

.home-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-search-form {
  position: relative;
}

.home-search-form .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 6px 6px 6px 20px;
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--bb-paper);
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

.home-search-form .input-group:focus-within {
  border-color: var(--bb-amber);
  box-shadow: 0 0 0 4px rgba(255, 196, 31, 0.28);
}

.home-search-form .input-group::before {
  flex: 0 0 auto;
  margin-right: 14px;
  color: var(--bb-black);
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-size: 1rem;
  font-weight: 900;
}

.search-input.form-control {
  height: 46px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bb-ink);
  font-size: 1rem;
  font-weight: 600;
}

.search-input.form-control::placeholder {
  color: var(--bb-ink-muted);
  font-weight: 500;
  opacity: 0.85;
}

.search-input.form-control:focus {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.home-search-form .btn-primary {
  flex: 0 0 auto;
  min-height: 46px;
  padding-right: 1.4rem;
  padding-left: 1.4rem;
  border-radius: 8px;
}

.hero .error-message {
  margin-left: 4px;
}

.hero-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-help i {
  color: #fff;
  font-size: 1.05rem;
}

.hero-help:hover,
.hero-help:focus {
  color: var(--bb-amber);
}

.hero-proof {
  margin: 40px 0 0;
  color: #fff;
  font-size: 1.05rem;
}

.hero-proof strong {
  font-weight: 800;
}

/* Entrance: one staggered sequence when the loader lifts */
html.js .hero [data-hero] {
  opacity: 0;
}

html.js.is-ready .hero [data-hero] {
  opacity: 1;
  animation: bb-rise 800ms var(--bb-ease) backwards;
  animation-delay: calc(var(--i, 0) * 100ms + 250ms);
}

/* Device group that overhangs the black hero */
.hero-visual-col {
  align-self: flex-end;
}

.hero-art {
  position: relative;
  margin: 0 0 -110px;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.art-float {
  animation: bb-float 8s ease-in-out infinite;
}

.art-float--b {
  animation-delay: -2.6s;
  animation-duration: 9s;
}

.art-float--c {
  animation-delay: -5s;
  animation-duration: 7s;
}

html.js.is-ready .hero-art {
  animation: bb-rise 1000ms 0.5s var(--bb-ease) backwards;
}

/* ------------------------------------------------------------------
   Category selection (big white cards)
   ------------------------------------------------------------------ */
.home-section {
  padding: 150px 0 100px;
}

.home-section > .container,
.page-body > .container {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

.section-header {
  max-width: 44em;
  margin: 0 0 34px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
}

.section-header .lead {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 1.1rem;
}

.section-header--split {
  display: block;
  max-width: none;
}

.section-header--split > div {
  max-width: none;
}

.section-header--split .btn {
  display: none;
}

.pick-grid,
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card,
.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--bb-line);
  border-radius: 26px;
  background: var(--bb-paper);
  color: var(--bb-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, transform 260ms var(--bb-ease), box-shadow 260ms var(--bb-ease);
}

/* Hover keeps the reference behaviour: a bold black outline */
.category-card:hover,
.category-card:focus,
.device-card:hover,
.device-card:focus {
  border-color: var(--bb-black);
  box-shadow: 0 0 0 1.5px var(--bb-black), 0 18px 40px rgba(0, 0, 0, 0.1);
  color: var(--bb-ink);
  transform: translateY(-4px);
}

.category-media,
.device-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.category-media {
  height: 268px;
  padding: 36px 30px 8px;
}

.device-media {
  height: 240px;
  padding: 28px 30px 8px;
}

.pick-grid--brands .category-media {
  height: 190px;
}

.category-image,
.device-media img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 340ms var(--bb-ease);
}

.category-card:hover .category-image,
.device-card:hover .device-media img {
  transform: scale(1.06);
}

.category-name {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 30px;
  font-family: var(--bb-font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.category-go {
  display: none;
}

.device-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 26px;
}

.device-name {
  margin: 0;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.device-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bb-ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.device-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--bb-amber);
  color: var(--bb-black);
  font-size: 0.88rem;
  font-weight: 800;
}

.device-card:hover .device-cta {
  background: var(--bb-black);
  color: #fff;
}

.device-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Inner page heading (black band, like the masthead) */
.page-head {
  position: relative;
  padding: 44px 0 56px;
  background: var(--bb-black);
  color: #fff;
}

.page-head > .container {
  max-width: 1400px;
  padding-right: 100px;
  padding-left: 100px;
}

.page-head h1 {
  max-width: 14em;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-lede {
  max-width: 36em;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.page-body {
  padding: 56px 0 100px;
}

.page-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  border: 2px dashed var(--bb-grey-300);
  border-radius: 24px;
  color: var(--bb-ink-muted);
  text-align: center;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
  padding: 22px;
  border-radius: 24px;
  background: var(--bb-grey-50);
}

.filters-form .form-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.form-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 2px solid var(--bb-line-strong);
  border-radius: 12px;
  background-color: var(--bb-paper);
  color: var(--bb-ink);
  font-size: 0.97rem;
}

.form-select:focus {
  border-color: var(--bb-black);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------------
   Homepage: how it works (a real sequence, so it is numbered)
   ------------------------------------------------------------------ */
.steps-section {
  padding: 100px 0 108px;
  background: var(--bb-grey-50);
}

.steps-section .section-header {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 34px 28px 32px;
  border-radius: 28px;
  background: var(--bb-paper);
  counter-increment: step;
  transition: transform 260ms var(--bb-ease), box-shadow 260ms var(--bb-ease);
}

.step-item:hover {
  box-shadow: var(--bb-shadow-md);
  transform: translateY(-6px);
}

/* Connector between the cards */
.step-item:not(:last-child)::after {
  position: absolute;
  top: 66px;
  right: -20px;
  z-index: 1;
  width: 20px;
  height: 0;
  border-top: 3px dashed var(--bb-amber);
  content: "";
}

.step-num {
  display: none;
}

.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: var(--bb-black);
  color: var(--bb-amber);
  font-size: 1.45rem;
}

.step-icon::after {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--bb-paper);
  border-radius: 50%;
  background: var(--bb-amber);
  color: var(--bb-black);
  content: counter(step);
  font-family: var(--bb-font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.step-item p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 0.97rem;
}

/* ------------------------------------------------------------------
   Homepage: why sell with us (asymmetric tiles)
   ------------------------------------------------------------------ */
.why-choose-us {
  padding: 100px 0 40px;
}

.why-choose-us > .container {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.why-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-row: 1 / span 2;
  padding: 46px 40px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--bb-black);
  color: #fff;
}

.why-intro::before {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--bb-amber);
  content: "";
}

.why-intro::after {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bb-black);
  content: "";
}

.why-intro > * {
  position: relative;
  z-index: 1;
}

.why-intro h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.why-intro p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.why-intro .btn-outline {
  align-self: flex-start;
  border-color: var(--bb-amber);
  background: var(--bb-amber);
  color: var(--bb-black);
}

.why-intro .btn-outline:hover {
  background: var(--bb-amber-hover);
  color: var(--bb-black);
}

.feature-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-box {
  padding: 30px 28px 32px;
  border: 1.5px solid var(--bb-line);
  border-radius: 28px;
  background: var(--bb-paper);
  transition: transform 260ms var(--bb-ease), box-shadow 260ms var(--bb-ease), border-color 200ms ease;
}

.feature-box:nth-child(3) {
  grid-column: 2 / span 2;
  border-color: var(--bb-amber);
  background: var(--bb-amber);
}

.feature-box:hover {
  border-color: var(--bb-black);
  box-shadow: var(--bb-shadow-md);
  transform: translateY(-5px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--bb-amber);
  color: var(--bb-black);
  font-size: 1.3rem;
}

.feature-box:nth-child(3) .feature-icon {
  background: var(--bb-black);
  color: var(--bb-amber);
}

.feature-box h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.feature-box p {
  margin: 0;
  color: var(--bb-ink-muted);
}

.feature-box:nth-child(3) p {
  color: rgba(0, 0, 0, 0.75);
}

/* Help cards */
.help-section {
  padding: 40px 0 20px;
}

.help-section > .container,
.cta-section > .container {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

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

.help-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 1.5px solid var(--bb-line);
  border-radius: 26px;
  background: var(--bb-paper);
  color: var(--bb-ink);
  text-decoration: none;
}

.help-card:hover,
.help-card:focus {
  border-color: var(--bb-black);
  box-shadow: 0 0 0 1.5px var(--bb-black);
  color: var(--bb-ink);
  transform: translateY(-4px);
}

.help-card > i:first-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--bb-grey-100);
  color: var(--bb-black);
  font-size: 1.4rem;
}

.help-card h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.help-card p {
  margin: 0;
  color: var(--bb-ink-muted);
  font-size: 0.95rem;
}

.help-card .help-go {
  margin-left: auto;
  color: var(--bb-black);
  transition: transform 240ms var(--bb-ease);
}

.help-card:hover .help-go {
  transform: translateX(5px);
}

/* ------------------------------------------------------------------
   Homepage: closing call to action
   ------------------------------------------------------------------ */
.cta-section {
  padding: 40px 0 100px;
}

.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  padding: 58px 56px;
  border-radius: 36px;
  background: var(--bb-amber);
  color: var(--bb-black);
}

.cta-band::before {
  position: absolute;
  top: -120px;
  right: 16%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.cta-band::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 46px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  content: "";
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 14em;
  margin: 0 0 10px;
  color: var(--bb-black);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.cta-band p {
  margin: 0;
  color: rgba(0, 0, 0, 0.78);
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-band a:focus-visible {
  outline-color: var(--bb-black);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
footer {
  background: var(--bb-black);
  color: rgba(255, 255, 255, 0.78);
}

.footer-panel {
  padding: 72px 0 0;
}

.footer-panel > .container {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand .logo-img-footer {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--bb-paper);
  box-sizing: content-box;
}

.footer-intro {
  max-width: 20em;
  margin: 24px 0 22px;
  color: #fff;
  font-family: var(--bb-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-col h3 {
  margin: 4px 0 16px;
  color: var(--bb-amber);
  font-family: var(--bb-font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

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

.footer-col li + li {
  margin-top: 4px;
}

.footer-col li a {
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--bb-amber), var(--bb-amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: color 160ms ease, background-size 240ms var(--bb-ease);
}

.footer-col li a:hover,
.footer-col li a:focus {
  background-size: 100% 2px;
  color: #fff;
}

.footer-col li.footer-badge a {
  background-image: none;
}

.footer-col img[alt="checkmend logo"] {
  width: 110px;
  height: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.social {
  margin-top: 4px;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-brand .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-brand .social a:hover,
.footer-brand .social a:focus {
  border-color: var(--bb-amber);
  background: var(--bb-amber);
  color: var(--bb-black);
  transform: translateY(-3px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--bb-line-inv);
}

.footer-base p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.to-top:hover,
.to-top:focus {
  border-color: var(--bb-amber);
  background: var(--bb-amber);
  color: var(--bb-black);
}

/* ------------------------------------------------------------------
   Content pages (CMS pages such as How it works, Support, Terms)
   ------------------------------------------------------------------ */
.page-content {
  max-width: 820px;
  color: var(--bb-ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin: 1.6em 0 0.5em;
}

.page-content h1:first-child,
.page-content h2:first-child {
  margin-top: 0;
}

.page-content img {
  height: auto;
  border-radius: var(--bb-radius-sm);
}

.page-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}




/* ------------------------------------------------------------------
   Account area, customer dashboard and checkout flow
   ------------------------------------------------------------------ */
.acct-page {
  padding: 36px 0 90px;
}

.acct-heading {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-align: center;
}

.acct-lede {
  max-width: 34em;
  margin: 0 auto 30px;
  color: var(--bb-ink-muted);
  font-size: 1.05rem;
  text-align: center;
}

/* Sign in, register and password screens */
.auth-shell {
  display: flex;
  justify-content: center;
  padding: 52px 15px 96px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 38px 34px;
  border: 1.5px solid var(--bb-line);
  border-radius: 24px;
  background: var(--bb-paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.auth-card--wide {
  max-width: 940px;
  text-align: left;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
}

.auth-card > p,
.auth-lede {
  margin: 0 0 22px;
  color: var(--bb-ink-muted);
  line-height: 1.6;
}

.auth-card a:not(.btn) {
  color: var(--bb-black);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--bb-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bb-grey-100);
  color: var(--bb-black);
  font-size: 1.7rem;
}

.auth-icon--warn {
  background: #ffe3de;
  color: var(--bb-amber-press);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 1080px;
  margin: 52px auto 96px;
  overflow: hidden;
  border: 1.5px solid var(--bb-line);
  border-radius: 24px;
  background: var(--bb-paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 46px;
}

.auth-main h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.auth-main .auth-lede {
  margin-bottom: 26px;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 38px;
  overflow: hidden;
  background: var(--bb-black);
  color: var(--bb-grey-100);
  text-align: center;
}

.auth-aside::before {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border: 46px solid rgba(239, 239, 241, 0.07);
  border-radius: 50%;
  content: "";
}

.auth-aside h2 {
  position: relative;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.auth-aside p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(239, 239, 241, 0.82);
}

.auth-aside img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 230px;
  margin-top: 26px;
  border-radius: 18px;
}

/* Forms (works with hand-written fields and Django's as_p output) */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.form-stack p,
.form-stack .field {
  margin: 0;
}

.form-stack label {
  display: block;
  margin: 0 0 6px;
  color: var(--bb-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.form-stack select,
.form-stack textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1.05rem;
  border: 2px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-grey-50);
  box-shadow: none;
  color: var(--bb-ink);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.form-stack textarea {
  min-height: 130px;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: var(--bb-black);
  outline: 0;
  background: var(--bb-paper);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.form-stack input[type="checkbox"],
.form-stack input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: var(--bb-black);
}

.form-stack .helptext,
.form-stack small {
  display: block;
  margin-top: 6px;
  color: var(--bb-ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-stack .errorlist,
.form-stack .text-danger {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--bb-danger) !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-stack .btn,
.form-stack button[type="submit"] {
  width: 100%;
}

.form-note {
  margin: 0;
  text-align: center;
}

.form-section {
  margin: 12px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bb-grey-100);
  color: var(--bb-black);
  font-family: var(--bb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

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

.form-grid > .span-2 {
  grid-column: 1 / -1;
}

.auth-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-fieldset legend {
  width: auto;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--bb-grey-100);
  color: var(--bb-black);
  font-family: var(--bb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Alerts */
.auth-alert,
.auth-alert.alert {
  position: relative;
  width: 100%;
  margin: 0 0 20px;
  padding: 16px 44px 16px 18px;
  border: 2px solid var(--bb-danger);
  border-radius: 18px;
  background: #fff1ef;
  color: #6b1a12;
  font-size: 0.92rem;
  text-align: left;
}

.auth-alert h3 {
  margin: 0 0 8px;
  color: var(--bb-danger);
  font-family: var(--bb-font-body);
  font-size: 1rem;
  font-weight: 800;
}

.auth-alert ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.auth-alert p {
  margin: 0 0 4px;
}

.auth-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bb-danger);
  cursor: pointer;
}

.auth-alert-close:hover {
  background: rgba(180, 35, 24, 0.1);
}

.auth-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bb-grey-100);
  color: var(--bb-black);
  font-size: 0.92rem;
  text-align: left;
}

.auth-note p {
  margin: 0;
}

.auth-success {
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 2px solid var(--bb-success);
  border-radius: 18px;
  background: #e8f6ee;
  color: var(--bb-success);
  font-weight: 700;
}

/* Customer dashboard tabs */
.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 6px;
  border: 1.5px solid var(--bb-line);
  border-radius: 16px;
  background: var(--bb-paper);
}

.acct-tabs .tab-link {
  padding: 10px 20px;
  border-radius: 16px;
  color: var(--bb-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.acct-tabs .tab-link:hover,
.acct-tabs .tab-link:focus {
  background: var(--bb-grey-100);
  color: var(--bb-black);
}

.acct-tabs .tab-link.active {
  background: var(--bb-black);
  color: #fff;
}

.panel {
  margin-bottom: 28px;
  padding: 30px;
  border: 1.5px solid var(--bb-line);
  border-radius: 24px;
  background: var(--bb-paper);
  box-shadow: var(--bb-shadow-sm);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.welcome-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 26px 30px;
  border-radius: 24px;
  background: var(--bb-black);
  color: var(--bb-grey-100);
}

.welcome-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.welcome-band p {
  margin: 4px 0 0;
  color: rgba(239, 239, 241, 0.8);
}

/* Tables */
.data-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.data-table th {
  font-family: var(--bb-font-body);
  font-weight: 500;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid var(--bb-black);
  background: transparent;
  color: var(--bb-black);
  font-size: 0.85rem;
  text-align: left;
}

.data-table td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--bb-line);
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: var(--bb-grey-50);
}

.data-table tbody tr[data-order-id] {
  cursor: pointer;
}

.data-table td.revised-price {
  padding: 14px;
  border-radius: 18px;
  background: #fff6e0;
  text-align: center;
}

.data-table td.revised-price p {
  margin: 4px 0;
  font-size: 0.88rem;
}

.data-table td.revised-price form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.data-table td.revised-price .user-response {
  font-weight: 700;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 5px 13px;
  border: 0;
  border-radius: 16px;
  background: var(--bb-grey-100);
  color: var(--bb-black);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn-chip:hover {
  background: var(--bb-black);
  color: #fff;
}

.btn-chip--solid {
  background: var(--bb-black);
  color: #fff;
}

.btn-chip--solid:hover {
  background: var(--bb-black-soft);
}

.btn-accept,
.btn-reject {
  padding: 8px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-accept {
  background: var(--bb-success);
}

.btn-reject {
  background: var(--bb-danger);
}

.was-price {
  color: var(--bb-danger);
  text-decoration: line-through;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.9rem;
}

.pager a {
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--bb-grey-100);
  color: var(--bb-black);
  font-weight: 700;
  text-decoration: none;
}

.pager a:hover {
  background: var(--bb-black);
  color: #fff;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.status-legend .status-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bb-grey-50);
}

.status-legend .status {
  display: block;
  color: var(--bb-black);
  font-size: 0.95rem;
  font-weight: 800;
}

.status-legend .description {
  display: block;
  margin-top: 2px;
  color: var(--bb-ink-muted);
  font-size: 0.86rem;
}

/* Sale flow: progress, layout and summary */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 9px;
  border: 2px solid var(--bb-line);
  border-radius: 16px;
  background: var(--bb-paper);
  color: var(--bb-ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
  counter-increment: flow;
}

.flow-steps li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bb-grey-50);
  color: var(--bb-ink-muted);
  content: counter(flow);
  font-size: 0.8rem;
}

.flow-steps li.is-done {
  border-color: var(--bb-black);
  color: var(--bb-black);
}

.flow-steps li.is-done::before {
  background: var(--bb-black);
  color: #fff;
}

.flow-steps li.is-current {
  border-color: var(--bb-black);
  background: var(--bb-black);
  color: #fff;
}

.flow-steps li.is-current::before {
  background: var(--bb-amber);
  color: var(--bb-ink);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
}

.flow-side {
  position: sticky;
  top: 110px;
}

.total-card {
  padding: 28px;
  border: 1.5px solid var(--bb-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border-radius: 24px;
  background: var(--bb-black);
  color: var(--bb-grey-100);
}

.total-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.25rem;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bb-line-inv);
  font-size: 0.95rem;
}

.total-row:last-of-type {
  border-bottom: 0;
}

.total-row--big {
  padding-top: 16px;
  font-weight: 700;
}

.total-row--big .total-figure {
  color: #fff;
  font-family: var(--bb-font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.total-card .btn {
  width: 100%;
  margin-top: 14px;
}

.total-card .btn-outline {
  border-color: rgba(239, 239, 241, 0.5);
  color: var(--bb-grey-100);
}

.total-card .btn-outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--bb-black);
}

.choice {
  position: relative;
  margin-bottom: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px 18px;
  border: 2px solid var(--bb-line);
  border-radius: 18px;
  background: var(--bb-paper);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice label::before {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bb-line-strong);
  border-radius: 50%;
  content: "";
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice label:hover {
  border-color: var(--bb-black);
}

.choice input:checked + label {
  border-color: var(--bb-black);
  background: var(--bb-grey-100);
}

.choice input:checked + label::before {
  border-color: var(--bb-black);
  background: var(--bb-black);
  box-shadow: inset 0 0 0 4px var(--bb-grey-100);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--bb-amber);
  outline-offset: 2px;
}

.confirm-note {
  margin: 18px 0;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--bb-grey-50);
  font-size: 0.9rem;
  line-height: 1.55;
}

.confirm-note p {
  margin: 0;
}

.confirm-note a {
  color: var(--bb-black);
  font-weight: 700;
  text-decoration: underline;
}

.success-hero {
  padding: 40px 30px;
  border-radius: 24px;
  background: var(--bb-black);
  color: var(--bb-grey-100);
  text-align: center;
}

.success-hero h1 {
  margin: 14px 0 6px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.success-hero p {
  margin: 0;
  color: rgba(239, 239, 241, 0.85);
}

.success-hero .auth-icon {
  margin: 0;
  background: var(--bb-amber);
  color: var(--bb-ink);
}

.order-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1.5px dashed rgba(239, 239, 241, 0.5);
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ship-label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 22px;
  border: 2px dashed var(--bb-black);
  border-radius: 22px;
  background: var(--bb-paper);
  text-align: left;
}

.ship-label p {
  margin: 2px 0;
}

.ship-label .sender-details {
  font-weight: 700;
  line-height: 1.6;
}

.ship-label .postage-info-box {
  padding: 12px 18px;
  border: 2px dashed var(--bb-line-strong);
  border-radius: 16px;
  background: var(--bb-grey-50);
  font-weight: 700;
  text-align: center;
}

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

.modal-header {
  border-bottom: 0;
  background: var(--bb-black);
  color: #fff;
}

.modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
}

@media (max-width: 991.98px) {
  .flow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-side {
    position: static;
  }

  .auth-split {
    grid-template-columns: minmax(0, 1fr);
    margin-right: 12px;
    margin-left: 12px;
  }

  .auth-main,
  .auth-aside {
    padding: 38px 26px;
  }
}

@media (max-width: 767.98px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    padding: 30px 22px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .acct-tabs {
    border-radius: 22px;
  }

  .acct-tabs .tab-link {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
}




/* ------------------------------------------------------------------
   Reduced motion: everything is visible immediately and nothing moves
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .page-loader {
    display: none !important;
  }

  html.js [data-reveal],
  html.js .hero [data-hero],
  html.js .hero-art {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .art-float {
    animation: none !important;
  }

  .category-card:hover,
  .device-card:hover,
  .feature-box:hover,
  .step-item:hover,
  .help-card:hover,
  .btn-primary:hover,
  .btn-ink:hover {
    transform: none;
  }
}
