/* Store detail, order and account pages share the catalogue's blue actions. */
.sc-page,
.sc-dialog {
  --sc-ink: var(--ink, #14243e);
  --sc-blue: var(--blue, #1856c9);
  --sc-muted: var(--muted, #617089);
  --sc-line: var(--line, #dce5ef);
  color: var(--sc-ink);
}
.sc-page {
  padding-block: 1.75rem 4rem;
  min-height: 58vh;
}
.sc-page h1,
.sc-page h2,
.sc-page p,
.sc-dialog h2,
.sc-dialog p {
  margin: 0;
}
.sc-page h1.sc-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.35;
  margin: 1rem 0 1.5rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.sc-page h2,
.sc-dialog h2 {
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 690;
}
.sc-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--sc-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.sc-page a,
.sc-dialog a {
  text-decoration: none;
}
.sc-page a:focus-visible,
.sc-page button:focus-visible,
.sc-page input:focus-visible,
.sc-dialog :focus-visible {
  outline: 3px solid #8ab3ff;
  outline-offset: 3px;
}
.sc-crumb a {
  color: var(--sc-muted);
}
.sc-crumb a:hover,
.sc-cart-item:hover b {
  color: var(--sc-blue);
}
.sc-panel,
.sc-detail-card,
.sc-empty {
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: #fff;
  padding: clamp(1.1rem, 2.7vw, 2rem);
}
.sc-panel + .sc-panel {
  margin-top: 1.2rem;
}
.sc-primary,
.sc-secondary,
.sc-remove,
.sc-modal-head button,
.sc-stepper button {
  font: inherit;
  cursor: pointer;
}
.sc-primary,
.sc-secondary {
  min-height: 42px;
  padding: 0.63rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 620;
  line-height: 1.4;
  text-align: center;
}
.sc-primary,
.sc-page a.sc-primary {
  background: var(--sc-blue);
  color: white;
}
.sc-secondary,
.sc-page a.sc-secondary {
  background: #fff;
  border-color: #c9d8ed;
  color: var(--sc-blue);
}
.sc-primary:hover {
  filter: brightness(0.95);
}
.sc-secondary:hover {
  background: #f0f5ff;
}
.sc-page button:disabled,
.sc-dialog button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sc-dialog svg,
.sc-page svg {
  display: block;
  width: 1.16rem;
  height: 1.16rem;
  flex-shrink: 0;
}
.sc-empty {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.sc-empty-icon,
.sc-section-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: #edf4ff;
  color: var(--sc-blue);
  display: grid;
  place-items: center;
}
.sc-empty-icon svg,
.sc-section-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.sc-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}
.sc-cover {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f5fd;
  align-self: stretch;
  display: grid;
  align-content: center;
}
.sc-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sc-choose {
  min-width: 0;
}
.sc-product-top h2 {
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
  margin: 0.35rem 0;
}
.sc-category,
.sc-meta,
.sc-hint,
.sc-muted,
.sc-switch,
.sc-qtyline label,
.sc-price-line > span,
.sc-subline > span,
.sc-cart-item small,
.sc-summary small,
.sc-order-row small,
.sc-account header small {
  font-size: 0.88rem;
  color: var(--sc-muted);
}
.sc-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.sc-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}
.sc-stock::before {
  content: "";
  width: 0.47rem;
  height: 0.47rem;
  border-radius: 50%;
  background: #2b9a6b;
}
.sc-price-line,
.sc-subline,
.sc-qtyline,
.sc-summary-total,
.sc-recap-row,
.sc-order header,
.sc-account header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sc-price-line {
  margin: 1.3rem 0 1.2rem;
  padding: 0.8rem 1rem;
  background: #f2f7ff;
  border-radius: 9px;
}
.sc-price-line strong {
  color: var(--sc-blue);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}
.sc-choose fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.sc-choose legend {
  padding: 0;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--sc-muted);
}
.sc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sc-option {
  position: relative;
  cursor: pointer;
}
.sc-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sc-option span {
  display: block;
  background: white;
  border: 1px solid var(--sc-line);
  border-radius: 7px;
  padding: 0.48rem 0.8rem;
  font-size: 0.89rem;
  line-height: 1.5;
}
.sc-option input:checked + span {
  color: var(--sc-blue);
  border-color: var(--sc-blue);
  background: #eef4ff;
}
.sc-option input:focus-visible + span {
  outline: 3px solid #9bbfff;
  outline-offset: 2px;
}
.sc-qtyline {
  margin: 1.1rem 0;
}
.sc-stepper {
  display: inline-grid;
  grid-template-columns: 32px 42px 32px;
  align-items: center;
  border: 1px solid var(--sc-line);
  border-radius: 7px;
  overflow: hidden;
  width: max-content;
  background: white;
}
.sc-stepper button {
  height: 33px;
  border: 0;
  background: #f5f8fd;
  color: var(--sc-ink);
  display: grid;
  place-items: center;
}
.sc-stepper button svg {
  width: 0.9rem;
  height: 0.9rem;
}
.sc-stepper input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: #fff;
  color: var(--sc-ink);
  font: inherit;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  border-radius: 0;
  padding: 0;
}
.sc-stepper input::-webkit-inner-spin-button,
.sc-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sc-subline {
  border-top: 1px solid var(--sc-line);
  padding-top: 0.85rem;
  margin-top: 0.55rem;
}
.sc-subline strong {
  font-size: 1.24rem;
}
.sc-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}
.sc-actions > * {
  flex: 1;
}
.sc-description {
  margin-top: 1.25rem;
}
.sc-description p {
  color: var(--sc-muted);
  margin: 0.8rem 0;
  line-height: 1.8;
  white-space: pre-line;
}
.sc-description dl,
.sc-order dl {
  margin: 1rem 0;
}
.sc-description dl div,
.sc-order dl div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.48rem 0;
  font-size: 0.93rem;
}
.sc-description dt,
.sc-order dt {
  color: var(--sc-muted);
  min-width: 5.3rem;
}
.sc-description dd,
.sc-order dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.sc-dialog {
  box-sizing: border-box;
  max-width: min(95vw, 470px);
  width: 470px;
  max-height: 90dvh;
  padding: 1.26rem 1.5rem;
  border: 1px solid var(--sc-line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 22px 80px #0b264d36;
  overflow: auto;
}
.sc-dialog::backdrop {
  background: rgb(13 28 54 / 0.4);
}
.sc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sc-line);
  font-weight: 650;
  padding: 0 0 0.8rem;
  margin-bottom: 1rem;
}
.sc-modal-head button,
.sc-remove {
  width: 33px;
  height: 33px;
  background: #f4f7fb;
  color: var(--sc-muted);
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.sc-dialog .sc-product-top h2 {
  font-size: 1.4rem;
}
.sc-more {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  color: var(--sc-blue);
  font-size: 0.86rem;
}
.sc-toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: #172a4b;
  color: white;
  font-size: 0.92rem;
  box-shadow: 0 4px 18px #15293733;
}
.sc-cart {
  padding: 0;
  overflow: hidden;
}
.sc-cart-head,
.sc-cart-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(70px, 0.23fr) 108px minmax(
      80px,
      0.25fr
    ) 35px;
  gap: clamp(0.55rem, 2vw, 1.5rem);
  align-items: center;
  padding: 1rem 1.3rem;
}
.sc-cart-head {
  font-size: 0.84rem;
  background: #f3f7fe;
  color: var(--sc-muted);
  padding-block: 0.8rem;
}
.sc-cart-row + .sc-cart-row {
  border-top: 1px solid var(--sc-line);
}
.sc-cart-item {
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--sc-ink);
}
.sc-cart-item img {
  width: clamp(64px, 8vw, 106px);
  aspect-ratio: 1.9;
  object-fit: cover;
  border-radius: 6px;
}
.sc-cart-item b,
.sc-cart-item small,
.sc-recap-row b,
.sc-recap-row small,
.sc-order-row b,
.sc-order-row small {
  display: block;
  overflow-wrap: anywhere;
}
.sc-cart-item small,
.sc-recap-row small,
.sc-order-row small {
  margin-top: 0.24rem;
}
.sc-cart-price,
.sc-line-sum,
.sc-order-row strong,
.sc-recap-row span,
.sc-summary-total strong {
  font-variant-numeric: tabular-nums;
}
.sc-cart-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1.3rem 0;
}
.sc-cart-foot > div {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.sc-cart-foot strong,
.sc-summary-total strong {
  font-size: 1.4rem;
  color: var(--sc-blue);
}
.sc-cart-foot > a,
.sc-switch a,
.sc-muted a {
  color: var(--sc-blue);
}
.sc-checkout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
}
.sc-checkout > .sc-panel {
  margin: 0;
}
.sc-form {
  display: grid;
  gap: 1rem;
}
.sc-form > button {
  width: max-content;
}
.sc-narrow {
  max-width: 480px;
  margin: 0 auto;
}
.sc-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 560;
}
.sc-field input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cdd7e5;
  color: var(--sc-ink);
  border-radius: 7px;
  font: inherit;
  background: white;
}
.sc-field input::placeholder {
  color: #8290a2;
  font-weight: 400;
}
.sc-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #eff5ff;
  border-radius: 7px;
  color: #36567c;
  padding: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.sc-note svg {
  margin-top: 0.12rem;
}
.sc-error {
  color: #a92e30;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 0.55rem 0.75rem;
  background: #fff1f0;
  border-radius: 6px;
}
.sc-summary h2,
.sc-orders > h2 {
  margin-bottom: 0.75rem;
}
.sc-recap-row {
  align-items: flex-start;
  padding: 0.8rem 0;
}
.sc-recap-row + .sc-recap-row {
  border-top: 1px solid var(--sc-line);
}
.sc-recap-row span {
  white-space: nowrap;
}
.sc-summary-total {
  border-top: 1px solid var(--sc-line);
  margin-top: 0.8rem;
  padding-top: 1rem;
}
.sc-order header {
  align-items: center;
}
.sc-order .sc-note {
  margin: 1.1rem 0;
}
.sc-id {
  font-family: ui-monospace, monospace;
}
.sc-status {
  border: 1px solid #d1e0fa;
  background: #f0f5ff;
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  color: var(--sc-blue);
  font-size: 0.82rem;
  white-space: nowrap;
}
.sc-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--sc-ink);
  border-top: 1px solid var(--sc-line);
}
.sc-account header h2 {
  overflow-wrap: anywhere;
}
.sc-account header button {
  flex-shrink: 0;
}
.sc-hint,
.sc-muted {
  line-height: 1.7;
}
.sc-form [hidden],
.sc-choose [hidden],
.sc-toast[hidden] {
  display: none;
}
@media (max-width: 740px) {
  .sc-page {
    padding-block: 1.1rem 2.5rem;
  }
  .sc-detail-card,
  .sc-checkout {
    grid-template-columns: 1fr;
  }
  .sc-cover {
    max-height: 250px;
  }
  .sc-cover img {
    max-height: 250px;
  }
  .sc-page h1.sc-title {
    margin: 0.65rem 0 1rem;
  }
  .sc-cart-head {
    display: none;
  }
  .sc-cart-row {
    grid-template-columns: minmax(0, 1fr) 108px 28px;
    padding: 0.8rem;
    gap: 0.65rem;
  }
  .sc-cart-item {
    grid-column: 1/3;
  }
  .sc-cart-price {
    display: none;
  }
  .sc-cart-row .sc-stepper {
    grid-row: 2;
    grid-column: 1;
  }
  .sc-line-sum {
    grid-row: 2;
    grid-column: 2/4;
    text-align: right;
  }
  .sc-remove {
    grid-row: 1;
    grid-column: 3;
    width: 28px;
  }
  .sc-cart-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sc-cart-foot > div {
    margin-left: auto;
  }
  .sc-detail-card {
    gap: 1.2rem;
  }
  .sc-dialog {
    padding: 1rem;
  }
  .sc-order-row {
    gap: 0.5rem;
    font-size: 0.87rem;
  }
  .sc-toast {
    max-width: 90vw;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sc-page *,
  .sc-dialog * {
    scroll-behavior: auto;
  }
}
.sc-detail-card {
  align-items: start;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}
.sc-cover {
  align-self: start;
  aspect-ratio: 1;
  background: #f2f6fc;
  display: grid;
  place-items: center;
}
.sc-cover img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.sc-meta {
  gap: 0.35rem;
  flex-wrap: wrap;
}
.sc-meta > span {
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: #eef3fb;
  font-size: 0.8rem;
  color: #486180;
}
.sc-meta > span:last-child {
  background: #ebf6ef;
  color: #307343;
}
.sc-price-line {
  justify-content: flex-start;
  gap: 2rem;
}
.sc-price-line small,
.sc-price-line strong {
  display: block;
}
.sc-price-line small {
  font-size: 0.8rem;
  color: var(--sc-muted);
  margin-bottom: 0.2rem;
}
.sc-price-line .sc-member {
  font-size: 1.25rem;
}
.sc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sc-option span {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  box-sizing: border-box;
}
.sc-option span small {
  font-size: 0.8rem;
  color: var(--sc-muted);
}
.sc-option b {
  font-weight: 570;
}
.sc-option input:disabled + span {
  background: #f7f8fb;
  color: #657180;
  border-style: dashed;
  cursor: not-allowed;
}
.sc-choice-desc {
  margin: 0.9rem 0 !important;
  line-height: 1.75;
  color: var(--sc-muted);
  font-size: 0.9rem;
  white-space: pre-line;
}
.sc-copylink {
  margin-top: 0.6rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--sc-blue);
  cursor: pointer;
}
.sc-cart-item img {
  width: clamp(55px, 6.5vw, 82px);
  aspect-ratio: 1;
  object-fit: contain;
  background: #f1f5fb;
}
.sc-network-options {
  border: 0;
  padding: 0;
  margin: 1.2rem 0 1rem;
  display: grid;
  gap: 0.45rem;
}
.sc-network-options legend {
  font-weight: 640;
  margin-bottom: 0.55rem;
  padding: 0;
}
.sc-net {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.63rem 0.8rem;
  border: 1px solid var(--sc-line);
  border-radius: 7px;
}
.sc-net:has(input:checked) {
  border-color: var(--sc-blue);
  background: #eff5ff;
}
.sc-net input {
  width: 17px;
  height: 17px;
  accent-color: var(--sc-blue);
  margin: 0;
}
.sc-accountline,
.sc-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.sc-accountline {
  font-size: 0.92rem;
  margin: 0.8rem 0;
}
.sc-accountline span:first-child {
  color: var(--sc-muted);
}
.sc-coupon input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--sc-line);
  border-radius: 7px;
  padding: 0.6rem 0.75rem;
  font: inherit;
}
.sc-full {
  width: 100%;
  margin-top: 1rem;
}
.sc-check-left .sc-recap-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #f1f5fb;
}
.sc-check-left .sc-recap-row {
  align-items: center;
  gap: 0.8rem;
}
.sc-check-left .sc-recap-row > div {
  flex: 1;
}
.sc-checkout .sc-summary {
  min-width: 0;
}
.sc-paybox {
  margin-top: 1rem;
}
.sc-paybox .sc-secondary,
.sc-paybox .sc-primary {
  margin-top: 0.85rem;
}
.sc-payment-fields {
  margin: 1rem 0;
  display: grid;
  gap: 0.65rem;
}
.sc-payment-fields dt {
  color: var(--sc-muted);
  font-size: 0.83rem;
}
.sc-payment-fields dd {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
}
.sc-payment-fields dd .sc-copylink {
  margin: 0 0.2rem;
}
.sc-page .sc-summary .sc-error,
.sc-page .sc-paybox .sc-error {
  margin-top: 0.75rem;
}
@media (max-width: 740px) {
  .sc-detail-card {
    grid-template-columns: 1fr;
  }
  .sc-cover {
    width: 100%;
    max-height: none;
    max-width: 420px;
    justify-self: center;
  }
  .sc-cover img {
    max-height: none;
  }
  .sc-cart-head {
    display: none;
  }
}
.sc-delivery-item {
  padding-top: 0.85rem;
}
.sc-delivery-item + .sc-delivery-item {
  margin-top: 1rem;
  border-top: 1px solid var(--sc-line);
}
.sc-delivery-item h3 {
  margin: 0;
  font-size: 1rem;
}
.sc-delivery-code {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--sc-line);
  border-radius: 7px;
  background: #f5f8fd;
}
.sc-delivery-code code {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sc-delivery-code button {
  flex-shrink: 0;
  margin: 0;
}
