/* PeakSMP layout refinements */
.hero h1 {
  font-size: clamp(48px, 5.6vw, 78px);
}

.account-panel {
  align-items: start;
}

.account-panel .currency {
  align-self: start;
}

.username-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.username-confirm .primary {
  height: 46px;
  margin-top: 8px;
  padding-inline: 20px;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: .42;
  box-shadow: none;
  filter: grayscale(.3);
  transform: none;
}

@media (max-width: 480px) {
  .username-confirm {
    grid-template-columns: 1fr;
  }

  .username-confirm .primary {
    width: 100%;
    margin-top: 0;
  }
}

/* Keep checkout controls themed even when an older cached stylesheet is present. */
.checkout-form {
  display: grid !important;
  gap: 10px;
}

.checkout-form label {
  display: grid !important;
  gap: 8px;
}

.checkout-form input#coupon {
  display: block !important;
  width: 100%;
  height: 46px;
  margin: 0 !important;
  border: 1px solid #2d6081;
  border-radius: 7px;
  background: #071321 !important;
  color: #f5f8ff !important;
  color-scheme: dark;
  padding: 0 13px;
  outline: none;
  font: 500 13px "DM Sans", sans-serif;
}

.checkout-form input#coupon:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2cc5ff1d;
}

.checkout-form .coupon-hint {
  display: block;
  min-height: 16px;
  margin: -2px 0 0;
  color: #7894ab;
  font-size: 11px;
}

.checkout-form .coupon-hint.valid {
  color: #8de5ae;
}

.cart-remove {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #ff9cab;
  padding: 0;
  cursor: pointer;
  font: 600 11px "DM Sans", sans-serif;
}

.cart-remove:hover {
  color: #fff;
  text-decoration: underline;
}

.product-image {
  width: min(72%, 170px);
  height: 135px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px #0008);
}

.view-modes {
  width: 100%;
  margin: 16px 0 12px;
  padding: 10px 12px;
  border: 1px solid #2d6081;
  border-radius: 8px;
  background: #0a1b2b;
  color: #ccecff;
  cursor: pointer;
  font: 700 11px "DM Sans", sans-serif;
  text-align: left;
}

.view-modes span {
  float: right;
  color: var(--gold);
}

.mode-view[hidden] {
  display: none;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mode-tabs button {
  padding: 8px;
  border: 1px solid #27465f;
  border-radius: 7px;
  background: #071321;
  color: #8fa7bf;
  cursor: pointer;
  font: 700 10px "DM Sans", sans-serif;
}

.mode-tabs button.active {
  border-color: var(--blue);
  background: #123552;
  color: #fff;
}

.mode-view ul {
  min-height: 0;
  margin-bottom: 16px;
}

.footer-policy { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.footer-policy:hover { color: #fff; }
.policy-modal { position: fixed; inset: 0; z-index: 30; visibility: hidden; }
.policy-modal.open { visibility: visible; }
.policy-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: #000b; opacity: 0; transition: opacity .2s; cursor: pointer; }
.policy-modal.open .policy-backdrop { opacity: 1; }
.policy-panel { position: relative; width: min(640px, calc(100% - 28px)); max-height: min(720px, calc(100vh - 40px)); overflow: auto; margin: 20px auto; padding: 32px; border: 1px solid #2b6385; border-radius: 16px; background: #081422; box-shadow: 0 25px 90px #000b; transform: translateY(14px); transition: transform .2s; }
.policy-modal.open .policy-panel { transform: none; }
.policy-panel h2 { margin: 12px 0 22px; font: 700 38px/1 "Space Grotesk"; letter-spacing: -.07em; }
.policy-tabs { display: flex; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid #ffffff18; }
.policy-tabs button { border: 1px solid #27465f; border-radius: 999px; padding: 9px 13px; background: #091827; color: #92a9bd; cursor: pointer; font: 600 11px "DM Sans"; }
.policy-tabs button.active { border-color: var(--blue); background: var(--blue); color: #05121f; }
.policy-copy { color: #a9bfd1; font-size: 13px; line-height: 1.7; }
.policy-copy h3 { margin: 22px 0 8px; color: #f5f8ff; font: 700 20px "Space Grotesk"; }
.policy-copy p { margin: 0 0 14px; }
.policy-updated { display: block; margin-top: 24px; color: #7190a8; font-size: 10px; }
.policy-email { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) { .policy-panel { padding: 25px 21px; } .policy-panel h2 { font-size: 32px; } .policy-tabs { flex-wrap: wrap; } }
