:root {
  color-scheme: light;
  --checkout-desktop-top: max(48px, calc(50vh - 600px));
  --ink: rgba(26, 26, 26, 0.9);
  --muted: rgba(26, 26, 26, 0.7);
  --placeholder: rgba(26, 26, 26, 0.6);
  --line: #e0e0e0;
  --radius: 6px;
  --field-shadow: 0 0 0 1px #e0e0e0, 0 2px 4px rgba(0, 0, 0, 0.07), 0 1px 1.5px rgba(0, 0, 0, 0.05);
  --field-hover-shadow: 0 0 0 1px #ccc, 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 1.5px rgba(0, 0, 0, 0.06);
  --field-focus-shadow: 0 0 0 1px rgba(50, 151, 211, 0.7), 0 1px 1px rgba(0, 0, 0, 0.07), 0 0 0 4px rgba(50, 151, 211, 0.5);
  --field-error-shadow: 0 0 0 1px #ef9896, 0 2px 4px rgba(0, 0, 0, 0.07), 0 1px 1.5px rgba(0, 0, 0, 0.05);
  --button-shadow: inset 0 0 0 1px rgba(50, 50, 93, 0.1), 0 2px 5px rgba(50, 50, 93, 0.1), 0 1px 1px rgba(0, 0, 0, 0.07);
  --button-hover-shadow: inset 0 0 0 1px rgba(50, 50, 93, 0.1), 0 6px 15px rgba(50, 50, 93, 0.2), 0 2px 2px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.checkout-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Order summary */

.order-panel {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: flex-end;
  background: #000;
  color: #fff;
}

.order-desktop {
  position: sticky;
  top: 0;
  width: 380px;
  height: max-content;
  margin-right: 80px;
  padding: var(--checkout-desktop-top) 0 48px;
}

.order-mobile {
  display: none;
}

.merchant-header {
  display: flex;
  height: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.merchant-logo {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.back-button {
  display: grid;
  width: 20px;
  height: 28px;
  flex: 0 0 20px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  padding: 0;
  transition: color 80ms ease-in, transform 150ms ease;
}

.order-desktop .back-button {
  margin-left: -28px;
  margin-right: 8px;
}

.back-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.back-button:hover {
  color: rgba(255, 255, 255, 0.72);
}

.back-button:active {
  transform: scale(0.94);
}

.back-button:focus-visible,
.details-button:focus-visible,
.product-summary:focus-visible,
.info-button:focus-visible,
.details-sheet button:focus-visible,
.checkout-footer a:focus-visible {
  outline: 2px solid rgba(50, 151, 211, 0.8);
  outline-offset: 3px;
}

.purchase-heading p,
.mobile-purchase-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
}

.price-line {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.price-line strong,
.mobile-purchase-heading strong {
  color: #fff;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 46.8px;
}

.price-line span {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  line-height: 18.2px;
}

.product-card {
  width: 412px;
  margin: 32px 0 32px -16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #000;
}

.product-summary {
  display: grid;
  width: 100%;
  min-height: 104px;
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
  align-items: start;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 16px;
  text-align: left;
  transition: background-color 80ms ease-in;
}

.product-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.product-summary:active {
  background: rgba(255, 255, 255, 0.045);
}

.product-art {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: contain;
}

.product-copy {
  display: block;
  min-width: 0;
}

.product-copy > strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description {
  display: -webkit-box;
  max-height: 32px;
  overflow: hidden;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 16px;
  transition: max-height 300ms cubic-bezier(0.19, 1, 0.22, 1), opacity 300ms ease-out;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card.is-expanded .product-description {
  max-height: 76px;
  -webkit-line-clamp: 4;
}

.billing-label {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 15.6px;
}

.product-price {
  min-width: 70px;
  color: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 18.2px;
  text-align: right;
  white-space: nowrap;
}

.product-chevron {
  width: 16px;
  height: 16px;
  align-self: center;
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 300ms cubic-bezier(0.19, 1, 0.22, 1), stroke 80ms ease-in;
}

.product-card.is-expanded .product-chevron {
  transform: rotate(180deg);
}

.totals {
  width: 322px;
  margin-left: 58px;
}

.total-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 14px;
  line-height: 18.2px;
}

.total-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.subtotal-row {
  min-height: 51px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3px;
}

.tax-row > span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.tax-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-button {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  transition: color 80ms ease-in, transform 150ms ease;
}

.info-button:hover {
  color: #fff;
}

.info-button:active {
  transform: scale(0.92);
}

.info-button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.tax-popover {
  position: absolute;
  z-index: 5;
  top: 25px;
  left: -12px;
  width: 224px;
  border-radius: 6px;
  background: #30313d;
  color: #fff;
  padding: 10px 12px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22), 0 3px 6px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  line-height: 16px;
  animation: popover-in 150ms ease-out both;
}

.tax-popover::before {
  position: absolute;
  top: -4px;
  left: 44px;
  width: 8px;
  height: 8px;
  background: #30313d;
  content: "";
  transform: rotate(45deg);
}

.due-row {
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  line-height: 20.8px;
}

/* Payment form */

.payment-panel {
  min-width: 0;
  background: #fff;
}

.payment-inner {
  width: 380px;
  margin-left: 80px;
  padding-top: var(--checkout-desktop-top);
}

.express-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 55px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  padding: 0;
  box-shadow: var(--button-shadow);
  font-size: 19px;
  font-weight: 500;
  line-height: 22px;
  transition: transform 150ms ease, box-shadow 80ms ease-in;
  transform: scale(1);
}

.express-buttons {
  display: grid;
  height: 55px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.express-button:hover:not(:disabled) {
  box-shadow: var(--button-hover-shadow);
}

.express-button:active:not(:disabled) {
  transform: scale(0.99);
}

.express-button:focus,
.express-button:focus-visible {
  outline: none;
  box-shadow: var(--button-shadow), 0 0 0 4px rgba(50, 151, 211, 0.5);
}

.express-button:hover:not(:disabled):focus {
  box-shadow: var(--button-hover-shadow), 0 0 0 4px rgba(50, 151, 211, 0.5);
}

.express-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.express-loader {
  position: absolute;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.express-loader::after {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  transform: rotate(0deg);
}

.link-pay-button .express-loader::after {
  border-color: rgba(17, 17, 17, 0.28);
  border-top-color: #111;
}

.express-button.is-processing {
  cursor: wait;
}

.express-button.is-processing .express-label {
  opacity: 0;
  transform: translateY(-8px);
}

.express-button.is-processing .express-loader {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.express-button.is-processing .express-loader::after {
  animation: express-loader-spin 500ms linear infinite;
  will-change: transform;
}

.express-button:disabled:not(.is-processing) {
  cursor: default;
  opacity: 0.55;
}

.apple-mark {
  width: 18px;
  height: 22px;
  fill: currentColor;
}

.link-pay-button {
  gap: 4px;
  background: #00d66f;
  color: #111;
}

.link-pay-button:hover {
  background: #00d66f;
}

.link-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1;
}

.divider {
  display: grid;
  width: 100%;
  height: 49px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.divider span {
  height: 1px;
  background: #e6e6e6;
}

.divider p {
  margin: 0;
  color: rgba(26, 26, 26, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.express-block {
  height: 116px;
}

.payment-form h2 {
  margin: 0;
  color: rgba(26, 26, 26, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-field {
  position: relative;
  display: block;
  width: 100%;
  height: 50.2px;
  border-radius: var(--radius);
}

.contact-field input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: #f7f7f7;
  color: var(--ink);
  padding: 16px;
  box-shadow: var(--field-shadow);
  font-size: 14px;
  line-height: 18.2px;
  transition: box-shadow 80ms ease-in, color 80ms ease-in, background-color 80ms ease-in, filter 50000s;
}

.contact-field input::placeholder,
.joined-field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.contact-field input:hover:not(:focus),
.joined-field input:hover:not(:focus),
.joined-field select:hover:not(:focus) {
  box-shadow: var(--field-hover-shadow);
}

.contact-field input:focus,
.joined-field input:focus,
.joined-field select:focus {
  position: relative;
  z-index: 3;
  outline: 0;
  background: #fff;
  box-shadow: var(--field-focus-shadow);
}

.contact-field input[aria-invalid="true"],
.joined-field input[aria-invalid="true"],
.joined-field select[aria-invalid="true"] {
  position: relative;
  z-index: 2;
  color: #dc2727;
  box-shadow: var(--field-error-shadow);
}

.contact-field input[aria-invalid="true"]:focus,
.joined-field input[aria-invalid="true"]:focus,
.joined-field select[aria-invalid="true"]:focus {
  box-shadow: var(--field-focus-shadow);
}

.payment-method-section {
  margin-top: 28px;
}

.payment-method-section > h2 {
  margin-bottom: 16px;
}

.method-card {
  width: 100%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--field-shadow);
}

.method-head {
  display: flex;
  width: 100%;
  height: 50.2px;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px;
  color: rgba(26, 26, 26, 0.9);
  font-size: 14px;
  line-height: 18.2px;
}

.method-head img {
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
}

.method-body {
  padding: 0 16px 16px;
  transform-origin: top;
  animation: accordion-reveal 300ms ease-out both;
}

.form-field-group + .form-field-group {
  margin-top: 16px;
}

.group-label-row {
  display: flex;
  width: 100%;
  height: 20.8px;
  align-items: flex-start;
  justify-content: space-between;
}

.group-label-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.9px;
}

.joined-fieldset {
  display: grid;
  width: 100%;
  margin: 4px 0 0;
  border: 0;
  padding: 0;
}

.card-fields,
.address-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-fields {
  height: 72px;
}

.address-fields {
  height: 180px;
}

.single-field {
  height: 36px;
}

.joined-field {
  position: relative;
  display: block;
  min-width: 0;
  height: 36px;
}

.joined-field:focus-within {
  z-index: 3;
}

.joined-field input,
.joined-field select {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  box-shadow: var(--field-shadow);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 21px;
  transition: box-shadow 80ms ease-in, color 80ms ease-in, filter 50000s;
}

.joined-field select {
  appearance: none;
  color: var(--placeholder);
  padding-right: 32px;
  cursor: pointer;
}

.joined-field select.has-value {
  color: var(--ink);
}

.joined-field select + svg {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: rgba(26, 26, 26, 0.6);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  pointer-events: none;
}

.card-number-field,
.address-fields > .joined-field:not(.address-half) {
  grid-column: 1 / -1;
}

.card-number-field input,
.address-fields > .joined-field:first-of-type select {
  border-radius: 6px 6px 0 0;
}

.card-expiry-field input {
  border-radius: 0 0 0 6px;
}

.card-cvc-field input {
  border-radius: 0 0 6px;
  padding-right: 42px;
}

.single-field input {
  border-radius: 6px;
}

.address-fields > .joined-field:last-of-type select,
.address-fields > .joined-field:last-of-type input {
  border-radius: 0 0 6px 6px;
}

.region-field > .region-chevron {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: rgba(26, 26, 26, 0.6);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  pointer-events: none;
}

.region-field.is-text > .region-chevron {
  display: none;
}

.address-half {
  grid-column: auto;
}

.card-number-field input {
  padding-right: 132px;
}

.brand-icons {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 12px;
  display: flex;
  height: 16px;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.brand-icon {
  --brand-index: 0;

  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    width 320ms cubic-bezier(0.25, 1, 0.5, 1),
    margin 320ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 240ms ease-out,
    transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-icon:nth-child(2) { --brand-index: 1; }
.brand-icon:nth-child(3) { --brand-index: 2; }
.brand-icon:nth-child(4) { --brand-index: 3; }

.brand-icons:not(.has-selection) .brand-icon {
  transition-delay: calc(var(--brand-index) * 35ms);
}

.brand-icons.has-selection .brand-icon {
  transition-delay: 0ms;
}

.brand-icon img {
  display: block;
  width: 24px;
  height: 16px;
}

.brand-icon.is-muted {
  width: 0;
  margin-left: -4px;
  opacity: 0;
  transform: translateY(2px) scale(0.72);
}

.brand-icon.is-selected {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cvc-icon {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 20px;
  fill: none;
  stroke: rgba(26, 26, 26, 0.6);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  pointer-events: none;
}

.error-presence:has(.field-error[hidden]) {
  height: 0;
}

.field-error {
  margin: 8px 0 0;
  color: #dc2727;
  font-size: 14px;
  line-height: 18.2px;
  animation: error-in 300ms cubic-bezier(0.3, 0.3, 0.3, 1) both;
}

.submit-button {
  position: relative;
  display: block;
  width: 100%;
  height: 55px;
  overflow: hidden;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  padding: 0;
  box-shadow: var(--button-shadow);
  font-size: 16px;
  font-weight: 500;
  line-height: 18.4px;
  text-align: center;
  transition: transform 150ms ease, box-shadow 80ms ease-in;
  transform: scale(1);
  -webkit-tap-highlight-color: transparent;
}

.submit-button:hover:not(:disabled) {
  box-shadow: var(--button-hover-shadow);
}

.submit-button:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-button:focus,
.submit-button:focus-visible {
  outline: 0;
  box-shadow: var(--button-shadow), 0 0 0 4px rgba(50, 151, 211, 0.5);
}

.submit-button:hover:focus {
  box-shadow: var(--button-hover-shadow), 0 0 0 4px rgba(50, 151, 211, 0.5);
}

.submit-button:disabled {
  cursor: default;
}

.submit-shimmer {
  position: absolute;
  inset: 0 auto 0 -150%;
  width: 150%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.11) 50%, transparent 65%);
  animation: submit-shimmer 3s infinite ease;
  pointer-events: none;
}

.submit-current,
.submit-processing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease, transform 300ms ease;
}

.submit-current {
  opacity: 1;
  transform: translateY(0);
}

.submit-processing {
  opacity: 0;
  transform: translateY(16px);
}

.submit-button.is-processing .submit-current {
  opacity: 0;
  transform: translateY(-16px);
}

.submit-button.is-processing .submit-processing {
  opacity: 1;
  transform: translateY(0);
}

.spinner {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  transform: rotate(0deg);
}

.submit-button.is-processing .spinner {
  animation: spin 600ms linear infinite;
  will-change: transform;
}

.terms-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  text-align: center;
}

.checkout-footer {
  display: flex;
  min-height: 86px;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 48px;
  color: rgba(26, 26, 26, 0.4);
  font-size: 12px;
  line-height: 15.6px;
}

/* Express-payment error */

.wallet-error-dialog {
  width: min(356px, calc(100vw - 32px));
  max-width: none;
  overflow: hidden;
  margin: auto;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wallet-error-dialog[open] {
  animation: wallet-dialog-in 220ms cubic-bezier(0.25, 1, 0.5, 1) both;
}

.wallet-error-dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
  animation: wallet-backdrop-in 180ms ease-out both;
}

.wallet-error-content {
  padding: 24px;
  text-align: center;
}

.wallet-error-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #dc2727;
}

.wallet-error-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.wallet-error-dialog h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 23.4px;
  text-wrap: balance;
}

.wallet-error-dialog p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-wrap: pretty;
}

.wallet-error-action {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  padding: 10px 16px;
  box-shadow: var(--button-shadow);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: transform 150ms ease, box-shadow 80ms ease-in;
}

.wallet-error-action:hover {
  box-shadow: var(--button-hover-shadow);
}

.wallet-error-action:active {
  transform: scale(0.99);
}

.wallet-error-action:focus-visible {
  outline: 0;
  box-shadow: var(--button-shadow), 0 0 0 4px rgba(50, 151, 211, 0.5);
}

.checkout-footer a {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  transition: color 80ms ease-in;
}

.checkout-footer a:hover {
  color: rgba(26, 26, 26, 0.7);
}

.stripe-wordmark {
  width: 33px;
  height: 15px;
  fill: currentColor;
}

.footer-divider {
  width: 1px;
  height: 18px;
  background: #e6e6e6;
}

/* Mobile order details */

.mobile-details {
  display: none;
}

.details-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
  animation: backdrop-in 180ms ease-out both;
}

.details-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  animation: sheet-in 300ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.details-sheet header {
  display: flex;
  height: 61px;
  align-items: center;
  justify-content: space-between;
}

.details-sheet header img {
  width: 28px;
  height: 28px;
}

.details-sheet header button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
  font-size: 13px;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.details-sheet header svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.details-product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
}

.details-product > img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
}

.details-product > div {
  min-width: 0;
}

.details-product strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 18.2px;
}

.details-product p {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.details-product span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 15.6px;
}

.details-product > strong {
  white-space: nowrap;
}

.details-totals {
  margin-left: 54px;
}

.details-totals > div {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 18.2px;
}

.details-totals strong {
  font-weight: 600;
}

.details-totals > div:nth-child(2) > span:last-child {
  color: rgba(255, 255, 255, 0.55);
}

.details-due {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px !important;
}

@keyframes accordion-reveal {
  from { opacity: 0; transform: translateY(-4px) scaleY(0.98); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popover-in {
  from { opacity: 0; transform: translateY(-3px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes submit-shimmer {
  0% { transform: translateX(0); }
  52%, 100% { transform: translateX(200%); }
}

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

@keyframes express-loader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-in {
  from { opacity: 0.65; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wallet-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wallet-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 991.98px) {
  .checkout-shell {
    display: block;
  }

  .order-panel {
    display: block;
    min-height: 0;
  }

  .order-desktop {
    display: none;
  }

  .order-mobile {
    display: block;
    min-height: calc(162px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }

  .order-mobile > * {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }

  .mobile-header {
    display: flex;
    height: 61px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .mobile-merchant {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-header .back-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    margin-left: -14px;
    margin-right: -12px;
  }

  .details-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    min-height: 44px;
    margin-right: -8px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 17px;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
  }

  .details-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    transition: transform 300ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .details-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .mobile-purchase-heading > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
  }

  .mobile-purchase-heading span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 600;
    line-height: 18.2px;
  }

  .payment-panel {
    position: relative;
    box-shadow: 0 -15px 15px rgba(0, 0, 0, 0.02);
  }

  .payment-inner {
    width: 100%;
    margin: 0;
    padding: 24px max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }

  .payment-inner > * {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }

  .contact-section h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .contact-field {
    height: 50.2px;
  }

  .contact-field input {
    font-size: 16px;
    line-height: 24px;
  }

  .payment-method-section {
    margin-top: 28px;
  }

  .method-head {
    height: 50.2px;
  }

  .joined-field,
  .joined-field input,
  .joined-field select,
  .single-field {
    height: 44px;
  }

  .joined-field input,
  .joined-field select {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .joined-field select {
    padding-right: 34px;
  }

  .joined-field select + svg {
    top: 16px;
  }

  .region-field > .region-chevron {
    top: 16px;
  }

  .card-fields {
    height: 88px;
  }

  .address-fields {
    height: 220px;
  }

  .card-number-field input {
    padding-right: 132px;
  }

  .card-cvc-field input {
    padding-right: 42px;
  }

  .brand-icons {
    top: 14px;
  }

  .cvc-icon {
    top: 12px;
  }

  .submit-button {
    margin-top: 24px;
  }

  .checkout-footer {
    min-height: 38px;
    padding: 16px 0 0;
  }

  .mobile-details {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .details-backdrop {
    position: fixed;
  }

  .details-sheet {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .wallet-error-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }

  .wallet-error-content {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
    padding: 24px max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  }

  body.details-open {
    overflow: hidden;
  }
}

@media (max-width: 300px) {
  .order-mobile {
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  .mobile-header .back-button {
    margin-left: -10px;
    margin-right: -16px;
  }

  .payment-inner {
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  .method-head {
    padding-right: 12px;
    padding-left: 12px;
  }

  .method-body {
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
  }

  .brand-overflow {
    display: none;
  }

  .card-number-field input {
    padding-right: 100px;
  }

  .brand-icons {
    right: 10px;
  }
}

@media (max-width: 420px) {
  .checkout-footer {
    gap: 12px;
  }

  .checkout-footer a:first-child span {
    display: none;
  }

  .brand-icon {
    width: 22px;
  }

  .brand-icon img {
    width: 22px;
  }

  .brand-icon.is-muted {
    width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .express-button.is-processing .express-loader::after {
    animation: express-loader-spin 1200ms linear infinite !important;
  }

  .submit-button.is-processing .spinner {
    animation: spin 1200ms linear infinite !important;
    animation-play-state: running !important;
  }

  .brand-icons .brand-icon {
    transform: none;
    transition: width 180ms ease-out, margin 180ms ease-out, opacity 180ms ease-out !important;
  }
}
