.direct-checkout-grid {
  grid-template-columns: minmax(285px, 0.68fr) minmax(0, 1.32fr);
}

.direct-payment-panel {
  overflow: hidden;
  border: 1px solid rgba(10, 9, 16, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(20, 14, 27, 0.08);
}

.summary-visual img[data-product-image] {
  transition: opacity 160ms ease;
}

.summary-visual img[data-product-image].is-rose {
  mix-blend-mode: normal;
}

.direct-panel-section {
  padding: 31px 33px;
}

.direct-panel-section + .direct-panel-section {
  border-top: 1px solid var(--line);
}

.direct-panel-section h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.035em;
}

.direct-panel-section .payment-title-row p {
  max-width: 580px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.color-picker {
  display: grid;
  margin: 30px 0 22px;
  padding: 0;
  border: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-picker legend,
.quantity-field > span {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.color-picker legend {
  grid-column: 1 / -1;
}

.color-option {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #f7f6f2;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.color-option.is-selected {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 8px 25px rgba(39, 199, 238, 0.12);
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-option:focus-within {
  outline: 3px solid rgba(39, 199, 238, 0.22);
  outline-offset: 2px;
}

.color-swatch {
  width: 31px;
  height: 31px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10, 9, 16, 0.16);
}

.black-swatch { background: #09090b; }
.rose-swatch { background: linear-gradient(145deg, #f0b4bd, #bd7181); }

.quantity-field {
  display: grid;
  position: relative;
}

.quantity-field::after {
  position: absolute;
  right: 20px;
  bottom: 23px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.quantity-field select {
  width: 100%;
  min-height: 55px;
  padding: 0 52px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  appearance: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.direct-price-breakdown {
  display: grid;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.direct-price-breakdown > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 13px;
}

.direct-price-breakdown b {
  color: var(--ink);
}

.direct-price-breakdown .direct-total {
  margin-top: 3px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.direct-total b {
  font-size: 26px;
}

.payment-choice {
  background: #faf9f6;
}

.payment-action-grid {
  position: relative;
  z-index: 0;
  display: grid;
  isolation: isolate;
  margin-top: 18px;
  grid-template-columns: 1fr;
  gap: 10px;
}

.payment-action-grid > * {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  justify-self: stretch;
}

.stripe-checkout-button {
  display: flex;
  width: 100%;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 10px 16px;
  border: 1.5px solid rgba(10, 9, 16, 0.34);
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  grid-column: 1 / -1;
}

.express-checkout-box {
  display: none;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.express-checkout-box.is-ready {
  display: block;
}

.express-checkout-box[data-express-checkout] {
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  clip-path: inset(0 round 24px);
  isolation: isolate;
}

.express-checkout-box #express-checkout-element,
.express-checkout-box #google-pay-element {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
}

.express-checkout-box #express-checkout-element > div,
.express-checkout-box #google-pay-element > div,
.express-checkout-box iframe {
  display: block;
  width: 100% !important;
  max-width: none;
  margin-inline: 0 !important;
}

.express-checkout-box[data-express-checkout] #express-checkout-element,
.express-checkout-box[data-express-checkout] iframe {
  border-radius: 24px;
  background: #000;
}

.checkout-is-busy .express-checkout-box {
  pointer-events: none;
}

.stripe-checkout-button:hover,
.stripe-checkout-button:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.stripe-checkout-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.stripe-checkout-button .card-mark {
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border-width: 1.8px;
  border-radius: 3px;
}

.paypal-payment-box {
  display: block;
  width: 100%;
  height: 48px;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
}

.paypal-payment-box #paypal-button-container {
  width: 100%;
  height: 48px;
  max-width: none;
  min-height: 48px;
}

.paypal-payment-box #paypal-button-container > div,
.paypal-payment-box #paypal-button-container iframe {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.checkout-status {
  margin: 20px 0;
  padding: 17px 18px;
  border-radius: 15px;
  font-size: 13px;
}

.checkout-status p {
  margin: 0 0 13px;
}

.checkout-status.is-warning {
  border: 1px solid rgba(246, 173, 39, 0.24);
  background: rgba(246, 173, 39, 0.1);
}

.checkout-status.is-info {
  margin-top: -18px;
  border: 1px solid rgba(39, 199, 238, 0.2);
  background: rgba(39, 199, 238, 0.09);
  color: #17677b;
}

.checkout-status.is-error {
  border: 1px solid rgba(180, 24, 55, 0.2);
  background: rgba(180, 24, 55, 0.08);
  color: #8f1730;
}

.checkout-processing {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.checkout-processing::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(10, 9, 16, 0.14);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: checkout-spin 700ms linear infinite;
  content: "";
  vertical-align: -2px;
}

.payment-privacy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.order-success-page .checkout-main {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
}

.success-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(38px, 7vw, 80px);
  border: 1px solid rgba(10, 9, 16, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(20, 14, 27, 0.1);
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(145, 239, 85, 0.28);
}

.success-card h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.success-card h1 em {
  color: var(--cyan);
  font-style: normal;
}

.success-card > p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0;
  color: var(--muted);
}

.success-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f3f2ee;
  font-size: 13px;
}

.success-reference strong {
  letter-spacing: 0.04em;
}

.success-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.dark-link {
  color: var(--ink);
}

@media (max-width: 940px) {
  .direct-checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .direct-panel-section { padding: 24px 20px; }
  .color-picker { grid-template-columns: 1fr; }
  .color-picker legend { grid-column: auto; }
  .direct-total b { font-size: 23px; }
  .success-card { padding: 34px 24px; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .success-reference { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-processing::before { animation-duration: 1.8s !important; }
}
