/* One public palette shared by storefront, cart, customer account and access. */
body.marketplace-page {
  --bg: #07090c;
  --panel: #10151d;
  --text: #eef3fa;
  --muted: #a5b5c9;
  --line: #253345;
  background: #07090c;
  color: #eef3fa;
  color-scheme: dark;
}
body.marketplace-page .marketplace-header {
  background: transparent;
  border-bottom-color: #1d2938;
  padding-top: 12px;
}
body.marketplace-page .marketplace-header .brand.official-brand {
  width: 240px;
  height: 80px;
}
body.marketplace-page .header-actions {
  gap: 12px;
}
.header-actions .personal-account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: inherit;
  text-decoration: none;
}
.header-actions .personal-account-link[hidden] {
  display: none;
}
body.marketplace-page #primary-nav {
  border-top-color: transparent;
}
body.marketplace-page #primary-nav a {
  color: #dbe6f4;
}
body.marketplace-page #primary-nav a:hover {
  background: #121e2c;
  color: #e3bd6a;
}
body.marketplace-page #primary-nav .service-nav {
  margin-left: 0;
}
body.marketplace-page[data-page="shop"] #primary-nav,
body.marketplace-page[data-page="product"] #primary-nav {
  justify-content: flex-start;
  gap: 32px;
}
body:is([data-page="shop"], [data-page="product"])
  #primary-nav
  :is(a[href="/reservas"], a[href="/torneos"], a[href="/contacto"]) {
  display: none;
}
body.marketplace-page .cart-label {
  display: none;
}
body.marketplace-page #open-customer,
body.marketplace-page .header-actions > a.text-link {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e4edf8;
  font-size: 0;
}
body.marketplace-page #open-customer[hidden],
body.marketplace-page .header-actions > a.text-link[hidden] {
  display: none !important;
}
body.marketplace-page #open-customer::before,
body.marketplace-page .header-actions > a.text-link::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("/icons/account.svg") center / contain no-repeat;
}
body.marketplace-page #open-customer::after,
body.marketplace-page .header-actions > a.text-link::after {
  display: none;
  content: none;
}
body.marketplace-page #open-customer:hover {
  background: #142132;
}
.favorite-shortcut {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.favorite-shortcut:hover {
  background: #142132;
}
.favorite-shortcut[hidden] {
  display: none !important;
}
.favorite-shortcut > img {
  width: 22px;
  height: 22px;
}
.favorite-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #dfbc6e;
  color: #102038;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  padding: 0 3px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
body.marketplace-page
  :is(
    .product-card,
    .account-entry,
    .cart-summary,
    .auth-card,
    .settings-card,
    .clean-account-profile,
    .store-empty
  ) {
  background: #10151d;
  color: #edf3fb;
  border-color: #253345;
  box-shadow: none;
}
body.marketplace-page
  :is(
    .product-card h1,
    .product-card h3,
    .product-price,
    .section-heading h1,
    .section-heading h2,
    .store-empty h3,
    .auth-card h1
  ) {
  color: #edf3fb;
}
body.marketplace-page
  :is(
    .product-card p,
    .store-empty p,
    .auth-intro,
    .cart-summary p,
    .professional-footer p,
    .professional-footer a
  ) {
  color: #aabbd0;
}
body.marketplace-page .product-stock {
  color: #8dcfa9 !important;
}
body.marketplace-page .is-unavailable {
  color: #d5b789 !important;
}
body.marketplace-page .product-tile-link > img {
  background: #10151d;
  color: #9eb1c8;
}
body.marketplace-page .product-tile-link > .product-placeholder {
  background: #0a111b;
  color: #9eb1c8;
}
body.marketplace-page .product-tile {
  position: relative;
}
body.marketplace-page .favorite-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #3b4d65;
  background: #0c1525ed;
  color: #e6f0fc;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
body.marketplace-page .favorite-heart:hover {
  background: #20334d;
  border-color: #83b4e2;
}
body.marketplace-page .favorite-heart[aria-pressed="true"] {
  border-color: #a75973;
  background: #2c1b2b;
}
body.marketplace-page .favorite-heart > img {
  display: block;
  width: 22px;
  height: 22px;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
body.marketplace-page .favorite-heart:focus-visible {
  outline: 3px solid #88bcf0;
  outline-offset: 3px;
}
body.marketplace-page .favorite-heart:disabled {
  opacity: 0.6;
}
body.marketplace-page
  :is(
    .secondary-button,
    .product-quantity input,
    select,
    input:not([type="checkbox"]):not([type="radio"]),
    textarea
  ) {
  background: #0c1420;
  color: #e4edf8;
  border-color: #34475e;
}
body.marketplace-page input::placeholder {
  color: #92a5bd;
}
body.marketplace-page
  :is(dialog, .image-zoom, .customer-dialog, .profile-settings-dialog) {
  background: #10151d;
  color: #edf3fb;
  border-color: #30435b;
}
body.marketplace-page .image-zoom .secondary-button {
  background: #172438;
  color: #eef3fb;
  border-color: #3a526e;
}
body.marketplace-page .product-gallery-main {
  background: #0c131d;
}
body.marketplace-page .personal-dropdown {
  background: #101a28;
  border-color: #30435b;
  color: #edf3fb;
}
body.marketplace-page .professional-footer {
  background: transparent;
  border-top-color: #233143;
  color: #aabbd0;
}
body.marketplace-page .professional-footer .brand {
  color: #edf3fb;
}
body.marketplace-page .text-link {
  color: #90bff0;
}
body.marketplace-page .status-line {
  background: #0d1623;
  color: #a9bdd5;
  border-color: #28394e;
}
@media (max-width: 600px) {
  body.marketplace-page .marketplace-header .brand.official-brand {
    width: 170px;
    height: 57px;
  }
  body.marketplace-page .header-actions {
    gap: 5px;
  }
  body.marketplace-page .personal-name {
    display: none;
  }
  body.marketplace-page .personal-account-link {
    gap: 3px;
  }
  body.marketplace-page .favorite-heart {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-heart {
    transition: none !important;
  }
}
body.marketplace-page .product-card .product-stock.is-unavailable {
  color: #d5b789 !important;
}
.marketplace-page:is([data-page="shop"], [data-page="product"]) #nav-toggle {
  display: none;
}
.marketplace-page:is([data-page="shop"], [data-page="product"]) #primary-nav {
  display: flex;
  flex-direction: row;
  position: relative;
  grid-row: 2;
  grid-column: 1/-1;
  width: 100%;
  margin: 0;
  padding: 6px 0 12px;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Photo-first shelves and a focused product page. */
.marketplace-page[data-page="shop"] #product-list.product-shelves {
  display: block;
  min-width: 0;
}
.product-shelf {
  min-width: 0;
  margin: 0 0 48px;
}
.shelf-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
}
body.marketplace-page .shelf-heading h2 {
  color: #edf3fb;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.shelf-all {
  margin-left: auto;
  color: #edf3fb;
  white-space: nowrap;
  text-underline-offset: 5px;
  font-size: 15px;
}
.shelf-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.shelf-all + .shelf-controls {
  margin-left: 0;
}
.shelf-controls[hidden] {
  display: none;
}
body.marketplace-page .shelf-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: #34475e transparent;
}
.product-rail:focus-visible {
  outline: 2px solid #8cbbeb;
  outline-offset: 5px;
  border-radius: 12px;
}
.product-rail > article {
  scroll-snap-align: start;
  min-width: 0;
}
body.marketplace-page .catalog-main .product-rail .product-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.marketplace-page .product-rail .product-tile-link {
  padding: 0;
  border-radius: 0;
}
.marketplace-page .product-rail .product-tile-link > img,
.marketplace-page .product-rail .product-tile-link > .product-placeholder {
  border-radius: 22px;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.marketplace-page .product-rail .product-tile h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 16px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.marketplace-page .product-rail .product-price {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
body.marketplace-page .product-rail .favorite-heart {
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  background: #10151ded;
  border: 0;
  box-shadow: 0 2px 12px #0002;
}
body.marketplace-page .product-rail .favorite-heart img {
  width: 25px;
  height: 25px;
}
.marketplace-page .product-editorial.product-page-card {
  display: block;
  padding: 0;
  margin: 24px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 52px;
  align-items: start;
}
.product-overview > .product-gallery {
  margin: 0;
  min-width: 0;
  position: sticky;
  top: 24px;
}
.product-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #10151d;
}
.product-photo-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}
.product-photo-track::-webkit-scrollbar {
  display: none;
}
.product-photo-track:focus-visible {
  outline: 3px solid #8cbbeb;
  outline-offset: -4px;
}
.product-photo-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.product-photo-track.is-dragging .product-photo-open {
  cursor: grabbing;
}
.product-photo-open {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.product-editorial .product-gallery-main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
}
.product-photo-open:focus-visible {
  outline: 3px solid #8cbbeb;
  outline-offset: -4px;
}
.product-photo-frame .product-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #aabbd0;
}
.photo-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #07090ce6;
  color: #edf3fb;
  font-size: 13px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #64748b55;
  border-radius: 50%;
  background: #07090cd9;
  color: #fff;
  font:
    30px/1 "DM Sans",
    sans-serif;
  cursor: pointer;
}
.photo-previous {
  left: 12px;
}
.photo-next {
  right: 12px;
}
.photo-arrow:hover {
  background: #20334d;
}
.photo-arrow:focus-visible {
  outline: 3px solid #8cbbeb;
  outline-offset: 2px;
}
.product-editorial .product-thumbnails {
  padding: 14px 3px 4px;
  gap: 10px;
  scrollbar-width: thin;
}
.product-editorial .product-thumbnail {
  width: 74px;
  height: 74px;
  flex-basis: 74px;
  border-radius: 10px;
  background: #10151d;
  padding: 3px;
}
.product-editorial .product-thumbnail img {
  display: block;
  border-radius: 5px;
  object-fit: cover;
}
.product-editorial .gallery-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #92a5bd;
}
.product-purchase {
  min-width: 0;
}
.product-purchase .product-category-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: #aabbd0;
}
.product-editorial .product-purchase h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.product-editorial .product-purchase .product-price {
  display: block;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.045em;
}
.product-purchase .product-stock {
  margin: 0 0 22px;
  font-size: 14px;
}
.product-condition-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #253345;
  padding: 18px 0;
  color: #aabbd0;
  font-size: 14px;
}
.product-condition-line strong {
  color: #edf3fb;
}
.product-editorial .product-quantity {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: none;
  font-size: 14px;
  color: #b8c8da;
  margin: 0 0 22px;
}
.product-editorial .product-quantity input {
  display: inline-block;
  width: 86px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
}
.product-purchase-actions {
  display: grid;
  gap: 10px;
}
.product-purchase-actions :is(.button, .secondary-button) {
  width: 100%;
  min-height: 48px;
  border-radius: 28px;
  padding: 13px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}
.product-purchase-actions .product-buy {
  background: #4799ef;
  color: #071423;
  border-color: #4799ef;
}
.product-purchase-actions :is(.product-buy, .product-add):disabled {
  background: #273446;
  color: #aabbd0;
  border-color: #34475e;
  cursor: not-allowed;
}
.product-purchase-feedback:empty {
  display: none;
}
.product-editorial .product-purchase-feedback {
  font-size: 14px;
  margin: 14px 0;
  color: #9dd6b5;
}
.product-editorial .store-detail-policy {
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0 14px;
  color: #92a5bd;
}
.product-editorial .product-share {
  font-size: 13px;
  border-radius: 20px;
  padding: 9px 16px;
}
.product-editorial .product-information {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid #253345;
  max-width: 900px;
}
body.marketplace-page .product-information h2 {
  color: #edf3fb;
  font-family: "DM Sans", sans-serif;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.product-specifications {
  display: grid;
  gap: 0;
  margin: 0 0 40px;
}
.product-specifications > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #1c2735;
}
.product-specifications dt {
  color: #92a5bd;
}
.product-specifications dd {
  margin: 0;
  color: #edf3fb;
  overflow-wrap: anywhere;
}
.product-editorial .product-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.8;
  color: #b8c8da;
}
@media (max-width: 1100px) {
  .product-rail {
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
  }
  .product-overview {
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  }
}
@media (max-width: 760px) {
  .product-overview {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .product-overview > .product-gallery {
    position: static;
    width: 100%;
  }
  .product-purchase {
    width: 100%;
  }
  .product-editorial .product-purchase h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .product-editorial .product-purchase .product-price {
    font-size: 30px;
  }
  .product-editorial .product-information {
    margin-top: 34px;
  }
  .product-rail {
    grid-auto-columns: 44%;
    gap: 18px;
    scrollbar-width: none;
  }
  .shelf-heading {
    gap: 12px;
    margin-bottom: 16px;
  }
  body.marketplace-page .shelf-heading h2 {
    font-size: 24px;
  }
  .shelf-controls {
    display: none;
  }
  .shelf-all {
    font-size: 14px;
  }
  .marketplace-page .product-rail .product-tile h3 {
    font-size: 16px;
  }
  .marketplace-page .product-rail .product-price {
    font-size: 23px;
  }
  .marketplace-page .product-rail .product-tile-link > img {
    border-radius: 18px;
  }
  .product-shelf {
    margin-bottom: 32px;
  }
}
@media (max-width: 480px) {
  .product-rail {
    grid-auto-columns: 72%;
    gap: 16px;
  }
  body.marketplace-page .shelf-heading h2 {
    font-size: 23px;
  }
  .shelf-heading {
    align-items: baseline;
  }
  .product-photo-frame {
    border-radius: 16px;
  }
  .product-editorial .product-thumbnail {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .product-specifications > div {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 16px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-rail {
    scroll-behavior: auto;
  }
}

/* Primary destinations: clear, high-contrast buttons on every screen. */
body.marketplace-page
  #primary-nav
  a:is(
    [href="/tienda"],
    [href="/reservas"],
    [href="/torneos"],
    [href="/promociones"]
  ) {
  justify-content: center;
  min-height: 46px;
  padding: 10px 25px;
  border: 2px solid #58baff;
  border-radius: 999px;
  background: #0068b9;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px #07090c;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
body.marketplace-page
  #primary-nav
  a:is(
    [href="/tienda"],
    [href="/reservas"],
    [href="/torneos"],
    [href="/promociones"]
  ):hover {
  background: #087ed3;
  border-color: #a5ddff;
  color: #fff;
}
body.marketplace-page #primary-nav a[aria-current="page"] {
  background: #087ed3;
  border-color: #a5ddff;
  color: #fff;
}
body.marketplace-page #primary-nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  body.marketplace-page #primary-nav {
    gap: 8px;
  }
  body.marketplace-page
    #primary-nav
    a:is(
      [href="/tienda"],
      [href="/reservas"],
      [href="/torneos"],
      [href="/promociones"]
    ) {
    min-height: 44px;
    padding: 10px 3px;
    font-size: 14px;
    letter-spacing: 0;
  }
  .marketplace-page[data-page="home"] #primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .marketplace-page[data-page="home"] #primary-nav a.service-nav {
    margin-left: 0;
  }
}
@media (max-width: 380px) {
  body.marketplace-page
    #primary-nav
    a:is(
      [href="/tienda"],
      [href="/reservas"],
      [href="/torneos"],
      [href="/promociones"]
    ) {
    padding: 10px 5px;
    font-size: 12px;
  }
  .marketplace-page[data-page="home"] #primary-nav {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.marketplace-page #primary-nav a {
    transition: none;
  }
}

/* Shared quantity controls and profile previews. */
.quantity-control {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #56708d;
  border-radius: 999px;
  background: #0e1a29;
  overflow: hidden;
  vertical-align: middle;
}
.quantity-control .quantity-adjust {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e9f4ff;
  font:
    500 25px/1 "DM Sans",
    sans-serif;
  cursor: pointer;
}
.quantity-control .quantity-adjust:hover:not(:disabled) {
  background: #24435f;
}
.quantity-control .quantity-adjust:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.quantity-control .quantity-adjust:focus-visible {
  outline: 2px solid #8bcaff;
  outline-offset: -4px;
}
body .quantity-control input[type="number"],
body .product-editorial .quantity-control input,
body .cart-item-actions .quantity-control input {
  width: 48px;
  min-width: 36px;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  color: #f0f7ff;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.admin-layout .quantity-control input[type="number"] {
  width: 88px;
}
.checkout-item .quantity-control {
  margin: 2px 0 12px;
}
.cart-select-all {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #c6ddf7;
  margin: 0 0 18px;
  min-height: 44px;
  cursor: pointer;
}
.cart-select-all[hidden] {
  display: none;
}
.cart-select-all input,
.cart-item-select input {
  accent-color: #50a8f4;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.cart-item-card {
  position: relative;
}
.cart-item-select {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #101b2de8;
  z-index: 1;
  cursor: pointer;
}
.cart-item-card.is-unselected {
  border-color: #354252;
}
.cart-item-card.is-unselected .cart-product-photo {
  opacity: 0.6;
}
.favorite-product-card {
  padding: 0;
  overflow: hidden;
}
.favorite-product-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25;
  background: #f1f3f6;
  color: #354a63;
  font-size: 14px;
  overflow: hidden;
}
.favorite-product-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.favorite-product-content {
  padding: 20px;
}
.favorite-product-content h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.favorite-product-content p {
  font-size: 15px;
}
.favorite-product-content .text-link {
  font-size: 14px;
  min-height: 44px;
}
.favorite-product-content button {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  min-height: 44px;
  width: 100%;
}
.account-settings .settings-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  font-size: 32px;
  border: 2px solid #6aace4;
  box-shadow: 0 0 0 5px #102337;
}
.account-settings .profile-photo-controls {
  gap: 16px;
}
.account-settings .settings-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
}
.account-settings .settings-heading h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.4px;
}
.account-settings #account-logout {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  font-size: 14px;
  min-height: 36px;
}
.account-settings .settings-heading form {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}
.account-settings .settings-heading form button {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
}
.account-settings .settings-heading form button::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}
.account-settings .profile-photo-controls {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}
.account-settings .settings-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.account-settings :is(#choose-profile-photo, #remove-profile-photo) {
  grid-column: 2;
  justify-self: start;
}
.account-settings .profile-photo-controls p,
.account-settings :is(#save-profile-photo, #cancel-profile-photo) {
  grid-column: 1/-1;
}
.account-settings .account-form label {
  font-size: 15px;
  line-height: 1.5;
  color: #cfdef0;
}
.account-settings .account-form :is(input, select) {
  font-size: 16px;
  min-height: 48px;
}
.account-settings .account-form :is(.button, .secondary-button) {
  font-size: 15px;
  min-height: 46px;
}
.account-settings .profile-photo-controls p {
  font-size: 14px;
  line-height: 1.5;
}
.account-settings .profile-photo-controls [hidden] {
  display: none !important;
}
.account-settings
  .profile-photo-controls
  :is(.text-link, .button, .secondary-button) {
  font-size: 14px;
  min-height: 44px;
}
.account-gear {
  width: 50px;
  height: 50px;
  border: 1px solid #4f8fca;
  background: linear-gradient(145deg, #233c58, #101e30);
  color: #bce2ff;
  box-shadow:
    inset 0 1px 0 #b5ddff24,
    0 4px 14px #0003;
}
.account-gear svg {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}
.account-gear:hover svg {
  transform: rotate(25deg);
}
@media (prefers-reduced-motion: reduce) {
  .account-gear svg {
    transition: none;
  }
}
@media (max-width: 480px) {
  .favorite-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .favorite-product-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .favorite-product-cover {
    aspect-ratio: 1;
    align-self: start;
    margin-top: 18px;
    border-radius: 10px;
  }
  .favorite-product-content {
    padding: 16px;
  }
  .favorite-product-content h3 {
    font-size: 16px;
  }
  .favorite-product-card {
    padding-left: 14px;
  }
  .account-settings .settings-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }
  .account-settings .profile-photo-controls {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}

/* Photo-led cart and a separate review step. */
.cart-page #nav-toggle {
  display: none;
}
.cart-page
  #primary-nav
  a:is([href="/reservas"], [href="/torneos"], [href="/contacto"]) {
  display: none;
}
.cart-page #primary-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: relative;
  grid-column: 1/-1;
  grid-row: 2;
  gap: 18px;
  padding: 8px 0 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.cart-page .cart-section {
  max-width: 1280px;
  padding-top: 20px;
}
.cart-page .cart-breadcrumb,
.cart-page .footer,
.cart-page .footer .text-link {
  font-size: 14px;
}
.cart-page .footer small {
  font-size: 13px;
}
.cart-page .section-heading h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.cart-page .section-heading .eyebrow {
  display: none;
}
.purchase-steps {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: #9eafc5;
}
.purchase-steps [aria-current] {
  color: #8ecbff;
  font-weight: 700;
}
.cart-page .cart-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  border: 0;
  overflow: visible;
  background: transparent;
}
.cart-page .cart-selection {
  padding: 0;
}
.cart-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.cart-list-heading h2,
.cart-page .cart-summary h2 {
  font:
    700 21px/1.4 "DM Sans",
    sans-serif;
  margin: 0;
  letter-spacing: -0.5px;
}
.cart-list-heading span {
  font-size: 14px;
  color: #abc0d8;
}
.cart-item-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px 22px;
  padding: 24px;
  background: #10151d;
  border: 1px solid #253345;
  border-radius: 16px;
  margin-bottom: 16px;
}
.cart-product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  color: #30445c;
  font-size: 12px;
}
.cart-product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-product-info {
  min-width: 0;
}
.cart-product-name {
  display: block;
  color: #daebff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cart-product-name:hover {
  text-decoration: underline;
}
.cart-unit-price {
  display: block;
  font-size: 22px;
  color: #f2f6fd;
  line-height: 1.4;
}
.cart-condition {
  font-size: 13px;
  color: #aebed3;
  margin: 8px 0 0;
}
.cart-stock-warning {
  font-size: 14px;
  color: #ffb7a3;
  margin: 10px 0 0;
}
.cart-item-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.cart-item-actions label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #b8cbe3;
}
.cart-item-actions input {
  width: 70px;
  min-height: 44px;
  padding: 9px;
  border-radius: 8px;
  font-size: 16px;
  margin: 0;
}
.cart-item-actions .text-link {
  min-height: 44px;
  font-size: 14px;
  color: #99ceff;
}
.cart-line-total {
  grid-column: 1/-1;
  font-size: 15px;
  color: #b8cbe3;
  text-align: right;
}
.cart-page .cart-summary {
  position: sticky;
  top: 22px;
  align-self: start;
  padding: 24px;
  border: 1px solid #30445e;
  border-radius: 16px;
  background: #111d2c;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 12px;
  color: #c6d5e8;
  font-size: 14px;
}
.cart-page .cart-summary #cart-total {
  font-size: 24px;
  color: #f1f6ff;
  font-weight: 700;
  line-height: 1.4;
  padding-top: 16px;
  border-top: 1px solid #34465e;
  margin-bottom: 14px;
}
.cart-page .cart-summary .cart-cost-note {
  font-size: 13px;
  line-height: 1.65;
  color: #b8c9df;
}
.cart-page .cart-summary .button,
.cart-page #order-form .button {
  font-size: 16px;
  min-height: 50px;
  border-radius: 28px;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
}
.cart-keep-shopping {
  display: flex;
  justify-content: center;
  font-size: 14px;
  color: #a9d6ff;
  margin-top: 22px;
}
.cart-page #cart-feedback:not(:empty) {
  padding: 14px;
  border: 1px solid #b68171;
  border-radius: 10px;
  background: #30202a;
  color: #ffe0d3;
  font-size: 14px;
}
.cart-page #order-result:empty {
  display: none;
}
.cart-page #order-result:not(:empty) {
  padding: 18px;
  margin-top: 22px;
  border: 1px solid #466487;
  border-radius: 12px;
  background: #101a29;
  font-size: 15px;
}
.cart-page #order-result h3 {
  font-size: 20px;
}
.cart-page #order-result p {
  font-size: 14px;
  line-height: 1.6;
}
.cart-page #checkout-title {
  font:
    700 28px/1.3 "DM Sans",
    sans-serif;
  margin: 24px 0;
  letter-spacing: -0.6px;
  scroll-margin-top: 120px;
}
.cart-page .checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.checkout-block {
  padding: 22px;
  border: 1px solid #293b50;
  border-radius: 14px;
  background: #10151d;
  margin: 0 0 18px;
  min-width: 0;
}
.checkout-block h3,
.checkout-block legend {
  font:
    700 18px/1.4 "DM Sans",
    sans-serif;
  color: #edf4ff;
  margin: 0 0 16px;
  padding: 0;
}
.checkout-block legend {
  float: left;
  width: 100%;
}
.checkout-block label {
  clear: both;
}
.checkout-block p,
.checkout-discount {
  font-size: 15px;
  line-height: 1.65;
  color: #b9cbe2;
}
.checkout-block p:last-child {
  margin-bottom: 0;
}
.checkout-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #253345;
}
.checkout-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.checkout-item:first-child {
  padding-top: 0;
}
.checkout-item h4 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #e4efff;
}
.checkout-item p {
  margin: 0 0 6px;
  font-size: 13px;
}
.checkout-item strong {
  font-size: 17px;
}
.cart-page #order-form label {
  display: block;
  font-size: 15px;
  color: #d3e2f5;
  margin-bottom: 16px;
}
.cart-page #order-form input {
  display: block;
  width: 100%;
  font-size: 16px;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #435a76;
  border-radius: 9px;
  background: #0c1623;
  color: #f1f6ff;
}
.checkout-discount {
  padding: 18px;
  border: 1px solid #293b50;
  border-radius: 12px;
}
.checkout-discount summary {
  cursor: pointer;
}
.checkout-discount[open] summary {
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .cart-page .cart-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .cart-page .cart-summary {
    position: static;
    grid-row: 1;
  }
  .cart-page[data-purchase-step="checkout"] .cart-summary {
    grid-row: auto;
  }
  .cart-page .section-heading h1 {
    font-size: 28px;
  }
  .cart-page .cart-section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cart-item-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }
  .cart-product-name {
    font-size: 16px;
  }
  .cart-unit-price {
    font-size: 21px;
  }
  .cart-item-actions {
    gap: 6px 16px;
  }
  .cart-page .cart-summary {
    padding: 20px;
  }
  .checkout-block {
    padding: 18px;
  }
}

/* Clear customer access, with readable type and fewer distractions. */
:is(.compact-auth, .identity-layout .auth-card) .feedback:not(:empty) {
  padding: 14px 16px;
  border: 1px solid #3c6c98;
  border-radius: 10px;
  background: #14283b;
  color: #e0efff;
  font-size: 15px;
  line-height: 1.6;
  margin: 16px 0;
}
:is(.compact-auth, .identity-layout .auth-card) .feedback[data-tone="error"] {
  border-color: #d78787;
  background: #351f29;
  color: #ffe0e0;
}
.auth-verification-panel h3 {
  font-size: 22px;
  color: #f1f6ff;
  margin: 18px 0 10px;
}
.auth-verification-panel p {
  font-size: 15px;
  line-height: 1.6;
  color: #c4d5ea;
}
.auth-verification-panel .text-link {
  font-size: 14px;
  margin-top: 18px;
}
body.marketplace-page {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.identity-shell {
  font-size: 16px;
  background: #07090c;
  color: #eef3fa;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.identity-shell .auth-card {
  background: #10151d;
  border-color: #253345;
  color: #edf3fb;
  box-shadow: none;
}
.identity-shell .auth-card input {
  font-size: 16px;
  line-height: 1.45;
  min-height: 48px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 10px;
  background: #101a27;
  color: #f3f7fd;
}
.identity-shell .auth-card .password-input > input {
  padding-right: 78px;
}
.compact-auth {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 30px;
  border-radius: 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #34475e transparent;
}
.compact-auth .dialog-head {
  justify-content: flex-end;
  margin: 0;
}
.compact-auth .dialog-head .close-button {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
}
.compact-auth h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 38px 24px 0;
  color: #f0f5fc;
}
:is(.compact-auth, .identity-layout .auth-card) .auth-intro[hidden] {
  display: none;
}
:is(.compact-auth, .identity-layout .auth-card) .auth-tabs {
  margin: 0 0 24px;
}
:is(.compact-auth, .identity-layout .auth-card) .auth-tabs :is(button, a) {
  font-size: 15px;
  padding: 13px 8px;
  min-height: 48px;
  color: #afc0d5;
}
:is(.compact-auth, .identity-layout .auth-card)
  .auth-tabs
  :is([aria-selected="true"], [aria-current="page"]) {
  color: #fff;
}
:is(.compact-auth, .identity-layout .auth-card) form label {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #d6e2f1;
  margin: 17px 0 0;
  font-weight: 500;
}
body.marketplace-page :is(.compact-auth, .identity-layout .auth-card) input {
  font-size: 16px;
  line-height: 1.45;
  min-height: 48px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 10px;
  background: #101a27;
  color: #f3f7fd;
}
:is(.compact-auth, .identity-layout .auth-card)
  form
  > :is(.button, .full-width) {
  width: 100%;
  font-size: 16px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 11px;
  margin-top: 20px;
}
:is(.compact-auth, .identity-layout .auth-card) .social-button {
  font-size: 16px;
  min-height: 52px;
  border-radius: 11px;
}
:is(.compact-auth, .identity-layout .auth-card)
  :is(
    .privacy-copy,
    .auth-links,
    .auth-footnote,
    .feedback,
    .social-availability
  ) {
  font-size: 14px;
  line-height: 1.6;
  color: #b6c7db;
}
:is(.compact-auth, .identity-layout .auth-card) .auth-links {
  margin-top: 20px;
}
:is(.compact-auth, .identity-layout .auth-card) .identity-separator {
  font-size: 13px;
  margin: 22px 0 8px;
  color: #9fb2ca;
}
:is(.compact-auth, .identity-layout .auth-card) .feedback:empty {
  display: none;
}
.auth-phone {
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 17px 0 0;
}
.auth-phone legend {
  padding: 0;
  font-size: 15px;
  color: #d6e2f1;
  font-weight: 500;
}
.auth-phone .phone-inputs {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
}
:is(.compact-auth, .identity-layout .auth-card) .auth-phone label {
  min-width: 0;
  margin: 0;
}
.auth-phone input {
  width: 100%;
  min-width: 0;
}
.password-input {
  position: relative;
  display: block;
}
body.marketplace-page .password-input > input {
  width: 100%;
  padding-right: 78px;
}
.password-input .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-40%);
  padding: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a8ccf3;
  font-size: 13px;
  cursor: pointer;
}
.password-toggle:focus-visible {
  outline: 2px solid #92c5fa;
  outline-offset: 2px;
}
.password-strength {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: #a6b9d1;
}
.password-strength meter {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  background: #253345;
  border-radius: 6px;
  overflow: hidden;
}
.password-strength meter::-webkit-meter-bar {
  border: 0;
  background: #253345;
  border-radius: 6px;
}
.password-strength meter::-webkit-meter-optimum-value {
  background: #df9b7e;
  border-radius: 6px;
}
.password-strength[data-strength="2"] meter::-webkit-meter-optimum-value {
  background: #e1bc70;
}
.password-strength[data-strength="3"] meter::-webkit-meter-optimum-value,
.password-strength[data-strength="4"] meter::-webkit-meter-optimum-value {
  background: #80d5ad;
}
.password-strength meter::-moz-meter-bar {
  background: #80b8e8;
}
@media (max-width: 480px) {
  .compact-auth {
    padding: 24px 22px;
  }
  .compact-auth h2 {
    font-size: 25px;
  }
  .auth-phone .phone-inputs {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }
}

/* Address and account sections share the storefront surface. */
.address-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.address-editor label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  color: var(--text, #e5edf6);
}
.address-editor input,
.address-editor select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #35485e;
  border-radius: 12px;
  background: #0c1623;
  color: #e5edf6;
}
.address-actions,
.address-editor > p {
  grid-column: 1/-1;
}
.address-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.account-settings > .account-entry {
  padding: 20px 0;
  border-top: 1px solid #29384a;
}
.account-settings summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.checkout-block .check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  min-height: 48px;
}
.checkout-block input[type="radio"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: #52a9fa;
}
@media (max-width: 600px) {
  .address-editor {
    grid-template-columns: 1fr;
  }
  .address-actions .button {
    width: 100%;
  }
}

.saved-address {
  padding: 18px;
  margin-top: 16px;
  background: #101b29;
  border: 1px solid #30455b;
  border-radius: 16px;
}
.saved-address strong {
  font-size: 18px;
}
.saved-address p {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.saved-address .address-actions {
  margin-top: 14px;
}

body.cart-page #order-form .check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
}
body.cart-page #order-form .check-line input[type="radio"] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  padding: 0;
  margin: 0;
  box-shadow: none;
  accent-color: #52a9fa;
}

.address-search {
  grid-column: 1/-1;
  border: 1px solid #344e68;
  border-radius: 14px;
  padding: 16px;
  background: #0b1725;
}
.address-search label {
  font-size: 16px;
  font-weight: 600;
}
.address-search .privacy-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.address-suggestions {
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #3b536c;
  border-radius: 10px;
  background: #101e2d;
}
.address-suggestions button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #293c50;
  border-radius: 0;
  padding: 14px;
  text-align: left;
  background: transparent;
  color: #edf5ff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
}
.address-suggestions button:hover,
.address-suggestions button[aria-selected="true"] {
  background: #24476b;
}
.address-suggestions button:last-child {
  border-bottom: 0;
}
.maps-attribution {
  display: block;
  white-space: nowrap;
  font-family: Roboto, "DM Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  letter-spacing: normal;
  color: #fff;
  margin-top: 12px;
}
.address-provider-credits {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.address-provider-credits a {
  text-decoration: underline;
}

/* Address book: compact selection and a dedicated editor. */
.address-book {
  margin-top: 16px;
}
.address-book-list {
  display: grid;
  gap: 14px;
}
.address-card {
  padding: 20px;
  background: #101b29;
  border: 1px solid #30455b;
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.address-card.is-selected {
  border-color: #62b5ff;
  box-shadow: inset 0 0 0 1px #62b5ff;
}
.address-card p {
  font-size: 16px;
  line-height: 1.5;
  margin: 5px 0;
}
.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.address-card-top strong {
  font-size: 18px;
}
.address-default-badge {
  display: inline-flex;
  padding: 4px 9px;
  background: #173c59;
  color: #b8e5ff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  white-space: nowrap;
}
.address-card-actions,
.address-book-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.address-card-actions .text-link,
.address-book-tools .text-link,
.address-card > .text-link {
  font-size: 15px;
  min-height: 36px;
  color: #9ccfff;
}
.address-delivery-note {
  color: #aabed3;
}
.address-book-empty {
  padding: 22px;
  border: 1px dashed #34506c;
  border-radius: 14px;
  color: #b8cbe0;
}
.address-delete-confirmation {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #745444;
  border-radius: 12px;
}
.address-delete-confirmation button {
  margin: 10px 12px 0 0;
}
.address-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.address-choice input[type="radio"] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  flex: 0 0 22px;
  accent-color: #56acff;
}
.address-book .saved-address {
  margin-top: 0;
}
.address-card h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  margin-bottom: 14px;
  color: #a9c6e4;
}
.address-dialog {
  padding: 0;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid #36516b;
  border-radius: 22px;
  background: #0e151f;
  color: #e7eff9;
  box-shadow: 0 30px 100px #0009;
  overflow: auto;
}
.address-dialog::backdrop {
  background: #02060cb8;
  backdrop-filter: blur(5px);
}
.address-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 26px;
  background: #0e151ff5;
  border-bottom: 1px solid #28394a;
}
.address-dialog-heading h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.4px;
}
.address-dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #22364b;
  color: #d9e9fa;
  font-size: 25px;
  flex: 0 0 40px;
}
.address-dialog .address-book-form {
  padding: 24px 26px 0;
  margin: 0;
  gap: 18px;
}
.address-book-form > label,
.address-book-form > .address-search,
.address-book-form > .address-instructions,
.address-book-form > .feedback,
.address-book-form > .secondary-button {
  grid-column: 1/-1;
}
.address-book-form > label[data-address-field="city"],
.address-book-form > label[data-address-field="region"] {
  grid-column: auto;
}
.address-book-form label {
  font-size: 16px;
  font-weight: 500;
}
.address-dialog .address-book-form input,
.address-dialog .address-book-form select,
.address-dialog .address-book-form textarea {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3b526a;
  border-radius: 11px;
  background: #0b1724;
  color: #ecf4ff;
}
.address-dialog .address-book-form .address-default-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.address-dialog .address-default-check input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  padding: 0;
  accent-color: #55aeff;
}
.address-instructions summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  min-height: 36px;
}
.address-instructions label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.address-instructions textarea {
  resize: vertical;
}
.address-dialog-footer {
  grid-column: 1/-1;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 -26px;
  padding: 18px 26px;
  background: #0e151ff5;
  border-top: 1px solid #2c3e51;
  z-index: 1;
}
.address-dialog-footer .button {
  flex: 1;
  justify-content: center;
  min-height: 50px;
  font-size: 16px;
}
.address-dialog-footer .text-link {
  font-size: 15px;
  min-height: 44px;
}
.address-dialog .feedback {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.address-dialog :focus-visible {
  outline: 2px solid #70c1ff;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .address-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }
  .address-dialog-heading {
    padding: 18px;
  }
  .address-dialog-heading h2 {
    font-size: 22px;
  }
  .address-dialog .address-book-form {
    padding: 20px 18px 0;
  }
  .address-dialog-footer {
    margin: 0 -18px;
    padding: 16px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .address-dialog-footer .button {
    width: 100%;
    flex-basis: 100%;
  }
  .address-dialog-footer .text-link {
    margin: auto;
  }
  .address-card {
    padding: 17px;
  }
  .address-card-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .address-book-tools > .secondary-button {
    width: 100%;
    justify-content: center;
  }
  .address-book-tools > .button {
    width: 100%;
    justify-content: center;
  }
  .address-book-form > label[data-address-field="city"],
  .address-book-form > label[data-address-field="region"] {
    grid-column: 1/-1;
  }
}

.address-book-heading {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.address-dialog-heading,
.address-dialog-footer {
  background: #0e151f;
}
body.cart-page #order-form .address-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  line-height: 1.4;
  min-height: 36px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
body.cart-page #order-form .address-choice strong {
  flex: 1;
}
body.cart-page #order-form .address-choice input[type="radio"] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  padding: 0;
  margin: 0;
  accent-color: #56acff;
  box-shadow: none;
}
.stripe-embedded-frame {
  width: 100%;
  min-height: 400px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
}
.stripe-embedded-frame iframe {
  width: 100%;
  border: 0;
}
.stripe-payment-container {
  max-width: 800px;
  margin: 28px auto;
  padding: 24px;
  border: 1px solid #30445c;
  border-radius: 20px;
  background: #0e151f;
  scroll-margin-top: 24px;
}
@media (max-width: 600px) {
  .stripe-payment-container {
    padding: 0;
    border: 0;
    background: transparent;
  }
}

.order-tracking:not(:empty) {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--line, #304354);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.order-tracking p {
  font-weight: 600;
}
.order-tracking small {
  display: block;
  margin-top: 0.7rem;
  line-height: 1.5;
}
.shipping-boxes {
  display: grid;
  gap: 1rem;
}
.shipping-boxes fieldset {
  border: 1px solid #304354;
  border-radius: 12px;
  padding: 1rem;
}
.shipping-boxes input {
  max-width: 100%;
}
#admin-shipping form {
  margin-block: 1.5rem;
}
#admin-shipping input[type="checkbox"] {
  width: auto;
  margin-right: 0.6rem;
}
#order-result > .text-link {
  display: block;
  margin-block: 0.75rem;
}

.marketplace-page .product-tile-add {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
  min-height: 42px;
  font-size: 13px;
}
.marketplace-page .product-rail .product-tile {
  display: flex;
  flex-direction: column;
}
.marketplace-page .product-rail .product-tile-add {
  margin: 8px 0 0;
  width: 100%;
}

.product-quantity-dialog {
  width: min(420px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid #6274a56b;
  border-radius: 20px;
  background: #0e182b;
  color: #eaf1ff;
  box-shadow: 0 24px 90px #0008;
}
.product-quantity-dialog::backdrop {
  background: #030817b8;
  backdrop-filter: blur(3px);
}
.product-quantity-dialog h2 {
  margin: 0 0 24px;
  font:
    700 21px/1.4 "DM Sans",
    sans-serif;
  overflow-wrap: anywhere;
  color: #eaf1ff;
}
.product-quantity-dialog label {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.product-quantity-dialog p {
  font-size: 13px;
  line-height: 1.6;
}
.product-quantity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.product-quantity-actions button {
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .product-quantity-dialog::backdrop {
    backdrop-filter: none;
  }
}

.marketplace-page .product-tile-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #284879;
  color: #edf5ff;
  border-color: #4f75b477;
}
.marketplace-page .product-tile-add::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  background: currentColor;
  mask: url("/icons/cart.svg") center/contain no-repeat;
}
.marketplace-page .product-tile-add:hover:not(:disabled) {
  background: #31588f;
}
.marketplace-page .product-tile-add:disabled {
  background: #273142;
  color: #91a0b7;
  opacity: 0.75;
}
