/* Shared cart and checkout, using the storefront palette. */
.header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: end;
  white-space: nowrap;
  min-height: 44px;
  padding: 11px 17px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--paper);
}
.header-cart:hover {
  border-color: var(--brass);
  background: #261519;
}
.cart-count {
  display: grid;
  place-items: center;
  background: var(--brass);
  color: white;
  border-radius: 50%;
  min-width: 21px;
  height: 21px;
  font-size: 11px;
  padding: 0 5px;
}
.cart-toast {
  position: fixed;
  z-index: 120;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  padding: 18px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  box-shadow: 0 12px 50px #0009;
  border-radius: 8px;
  color: var(--paper);
}
.cart-toast a {
  color: var(--brass-hi);
  margin-left: 14px;
  text-decoration: underline;
}
.cart-toast[hidden] {
  display: none;
}
.commerce {
  padding: 48px 0 64px;
  min-height: 65vh;
}
.commerce-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}
.commerce h1 {
  font:
    500 clamp(38px, 5vw, 62px) / 1.1 Fraunces,
    serif;
  margin: 8px 0 0;
}
.commerce h2 {
  font:
    500 27px/1.2 Fraunces,
    serif;
  margin: 0 0 22px;
}
.commerce h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.commerce a.under {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
.commerce p {
  color: var(--paper-dim);
  line-height: 1.6;
}
.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 40px;
  align-items: start;
}
.commerce-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 28px;
}
.order-aside {
  position: sticky;
  top: calc(var(--hd-h) + 35px);
}
.order-aside .btn {
  width: 100%;
  margin-top: 20px;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
  margin: 13px 0;
  color: var(--paper-dim);
}
.cost-row strong {
  color: var(--paper);
  text-align: right;
}
.cost-total {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
  font-size: 18px;
  color: var(--paper);
}
.commerce-note {
  font-size: 12px;
  margin: 16px 0 0;
  line-height: 1.6;
  color: var(--paper-faint);
}
.commerce-notice {
  border: 1px solid #613036;
  background: #26171b;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 22px;
  color: #e7c6c9;
  font-size: 13px;
  line-height: 1.6;
}
.commerce-notice strong {
  color: var(--paper);
}
.cart-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cart-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.cart-item img {
  width: 170px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 7px;
  background: var(--ink-2);
}
.cart-item .item-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.cart-item .item-price {
  font-weight: 650;
  white-space: nowrap;
}
.cart-item p {
  font-size: 13px;
  margin: 8px 0;
}
.item-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.quantity button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 20px;
}
.quantity output {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
}
.text-button {
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--paper-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.commerce button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.item-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass-hi);
  margin-bottom: 9px;
}
.design-details {
  font-size: 12px;
  color: var(--paper-dim);
  margin-top: 12px;
}
.design-details summary {
  cursor: pointer;
}
.design-details dl {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6px 12px;
  padding: 12px 0;
}
.design-details dd {
  margin: 0;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.design-details dt {
  color: var(--paper-faint);
}
.cart-help {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.cart-help p {
  font-size: 13px;
  margin: 0;
}
.cart-help svg {
  flex: none;
  color: var(--brass-hi);
}
.empty-cart {
  text-align: center;
  max-width: 660px;
  margin: 30px auto;
  padding: 65px 32px;
}
.empty-cart svg {
  color: var(--brass-hi);
  margin-bottom: 24px;
}
.empty-cart h1 {
  font-size: 42px;
}
.empty-cart .btn-row {
  justify-content: center;
  margin-top: 26px;
}
.checkout-steps {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.checkout-steps button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--paper-faint);
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 0 0 18px;
  cursor: pointer;
}
.checkout-steps button[aria-current="step"] {
  color: var(--paper);
  border-color: var(--brass);
}
.checkout-steps span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  margin-right: 8px;
}
.checkout-steps button[aria-current="step"] span {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.checkout-field.wide {
  grid-column: 1/-1;
}
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  min-height: 46px;
  background: #111113;
  border: 1px solid #414146;
  border-radius: 5px;
  padding: 12px;
  color: var(--paper);
  font:
    400 15px Archivo,
    sans-serif;
}
.checkout-field textarea {
  resize: vertical;
  min-height: 90px;
}
.checkout-field :focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.checkout-panel[hidden] {
  display: none;
}
.checkout-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.checkout-nav .btn {
  min-width: 160px;
}
.checkout-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.checkout-review section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.checkout-review h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
}
.checkout-review p {
  font-size: 14px;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-dim);
  margin-top: 20px;
}
.terms-check input {
  accent-color: var(--brass);
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.mini-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-bottom: 17px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line-soft);
}
.mini-item img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.mini-item div {
  flex: 1;
  font-size: 12px;
}
.mini-item small {
  display: block;
  color: var(--paper-faint);
  margin-top: 4px;
}
.mini-item strong {
  font-size: 12px;
  white-space: nowrap;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #73313a;
  border-radius: 50%;
  background: #2a181c;
  color: var(--brass-hi);
  margin-bottom: 22px;
  font-size: 30px;
}
.thanks-lead {
  max-width: 660px;
  margin-bottom: 32px;
}
.thanks-lead p {
  font-size: 16px;
}
.thanks-next {
  counter-reset: next;
}
.thanks-next li {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--paper-dim);
  line-height: 1.6;
}
.thanks-next li::before {
  counter-increment: next;
  content: counter(next);
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
}
.thanks-next b {
  display: block;
  color: var(--paper);
}
.commerce-error {
  color: #ff929a;
  font-size: 13px;
  margin-top: 15px;
  white-space: pre-line;
}
.commerce-error:empty {
  display: none;
}
.commerce [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .hd-in {
    grid-template-columns: auto 1fr auto;
  }
  .commerce-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
  }
  .commerce-card {
    padding: 22px;
  }
  .cart-item {
    grid-template-columns: 125px 1fr;
    gap: 18px;
  }
  .cart-item img {
    width: 125px;
  }
}
@media (max-width: 820px) {
  .hd-in {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }
  .header-cart {
    padding: 9px 11px;
    gap: 7px;
  }
  .header-cart-label {
    display: none;
  }
  .header-cart svg {
    width: 19px;
  }
  .commerce {
    padding-top: 30px;
  }
  .commerce-top {
    align-items: flex-start;
    gap: 14px;
  }
  .commerce-top > a {
    margin-top: 12px;
  }
  .commerce-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .order-aside {
    position: static;
  }
  .commerce h1 {
    font-size: 40px;
  }
  .cart-item {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 16px;
  }
  .cart-item img {
    width: 105px;
  }
  .cart-item .item-top {
    display: block;
  }
  .cart-item .item-price {
    display: block;
    margin-top: 8px;
  }
  .cart-item h3 {
    font-size: 15px;
  }
  .checkout-fields {
    gap: 16px;
  }
  .checkout-steps button {
    font-size: 11px;
  }
  .checkout-steps span {
    margin-right: 5px;
  }
  .checkout-review {
    grid-template-columns: 1fr;
  }
  .commerce-card {
    padding: 22px;
  }
  .checkout-nav .btn {
    min-width: 0;
  }
  .empty-cart {
    padding: 38px 12px;
  }
  .commerce-top > a {
    font-size: 11px !important;
    white-space: nowrap;
  }
}
@media print {
  .hd,
  .ft,
  .checkout-steps,
  .btn,
  .cart-toast,
  .commerce-notice {
    display: none !important;
  }
  .commerce {
    padding: 0;
  }
  .commerce-grid {
    display: block;
  }
  .commerce-card {
    break-inside: avoid;
  }
  .order-aside {
    position: static;
  }
}
