:root {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --ink: #0a2540;
  --muted: #697386;
  --line: #e6ebf1;
  --accent: #635bff;
  --black: #111111;
  --white: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.checkout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .checkout-summary {
    padding: 0.65rem 1rem 0.75rem;
    gap: 0;
  }

  .checkout-summary .back {
    font-size: 0.75rem;
    margin-bottom: 0.45rem;
  }

  .checkout-summary .product-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0;
    border-radius: 8px;
  }

  .checkout-summary .tee-stage {
    min-height: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    width: auto;
    height: 48px;
    gap: 0.15rem;
  }

  .checkout-summary .tee-svg {
    width: 36px;
    filter: none;
  }

  .checkout-summary .tee-stage[data-color='both'] .tee-svg {
    width: 30px;
  }

  .checkout-summary .summary-line {
    flex: 1;
    align-items: center;
  }

  .checkout-summary .summary-name {
    font-size: 0.85rem;
    margin: 0;
  }

  .checkout-summary .summary-qty {
    font-size: 0.75rem;
  }

  .checkout-summary .summary-price {
    font-size: 0.95rem;
  }

  .checkout-summary .total-block {
    display: none;
  }

  .checkout-form {
    padding: 1.25rem 1.15rem 1.5rem;
    max-width: none;
    justify-content: flex-start;
    min-height: calc(100svh - 110px);
  }

  .checkout-form h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .checkout-form .lead {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
  }

  .checkout-form .field {
    margin-bottom: 1rem;
  }

  .checkout-form .paypal-btn {
    margin-top: 0.75rem;
    height: 52px;
    min-height: 52px;
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
  }

  .checkout-form .secure {
    margin-top: 0.75rem;
  }
}


.checkout-summary {
  background: #0a2540;
  color: #fff;
  padding: 2rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .checkout-summary {
    padding: 2.5rem 4rem 3rem;
    justify-content: center;
  }
}

.back {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  display: inline-block;
}

.back:hover {
  color: #fff;
}

.product-preview {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tee-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 1.25rem;
  transition: background 0.25s ease;
  border-radius: 8px;
  gap: 0.35rem;
}

.tee-svg {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.tee-svg--b {
  display: none;
}

.tee-stage[data-color='both'] .tee-svg {
  width: 112px;
}

.tee-stage[data-color='both'] .tee-svg--b {
  display: block;
}

.tee-stage[data-color='black'] .tee-svg--b,
.tee-stage[data-color='white'] .tee-svg--b {
  display: block;
}

.tee-stage--single .tee-svg--b {
  display: none !important;
}

.tee-stage--single .tee-svg {
  width: 160px;
}

@media (max-width: 900px) {
  .checkout-summary .tee-stage--single .tee-svg {
    width: 40px;
  }
}

.tee-stage[data-color='black'] .tee-svg--a .tee-body,
.tee-stage[data-color='black'] .tee-svg--b .tee-body,
.tee-stage[data-color='both'] .tee-svg--a .tee-body {
  fill: #1a1a1a;
}

.tee-stage[data-color='black'] .tee-svg--a .tee-neck,
.tee-stage[data-color='black'] .tee-svg--b .tee-neck,
.tee-stage[data-color='both'] .tee-svg--a .tee-neck {
  fill: #0a2540;
  stroke: #1a1a1a;
  stroke-width: 3;
}

.tee-stage[data-color='white'] .tee-svg--a .tee-body,
.tee-stage[data-color='white'] .tee-svg--b .tee-body,
.tee-stage[data-color='both'] .tee-svg--b .tee-body {
  fill: #f4f4f4;
}

.tee-stage[data-color='white'] .tee-svg--a .tee-neck,
.tee-stage[data-color='white'] .tee-svg--b .tee-neck,
.tee-stage[data-color='both'] .tee-svg--b .tee-neck {
  fill: #0a2540;
  stroke: #f4f4f4;
  stroke-width: 3;
}

.tee-stage.is-switching .tee-svg {
  transform: scale(0.96);
  opacity: 0.7;
}

.color-options--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .color-options--3 {
    grid-template-columns: 1fr;
  }
}

.swatch-pair {
  display: inline-flex;
  align-items: center;
}

.swatch-pair .swatch-dot + .swatch-dot {
  margin-left: -6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.summary-name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.summary-qty {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.summary-price {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.total-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.total-block .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.total-block .muted {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.total-block .total {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.125rem;
}

.checkout-form {
  background: var(--panel);
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .checkout-form {
    padding: 3rem 4rem;
    max-width: none;
    width: min(480px, 100%);
    margin: 0;
    margin-left: 10%;
  }
}

.checkout-form h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.field {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field > span,
.field legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
}

.color-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.swatch:hover {
  border-color: #c1c9d2;
}

.swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-dot.black {
  background: #111;
}

.swatch-dot.white {
  background: #fff;
  border: 1px solid #d0d5dd;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.qty button {
  width: 44px;
  height: 44px;
  border: none;
  background: #f6f9fc;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.qty button:hover {
  background: #eef2f7;
}

.qty input {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.field input[type='email'] {
  height: 44px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input[type='email']:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.paypal-btn {
  --paypal-gold: #ffc439;
  --paypal-gold-hover: #f2ba36;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0;
  background: var(--paypal-gold);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.15s ease;
}

.paypal-btn:hover:not(:disabled) {
  background: var(--paypal-gold-hover);
}

.paypal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paypal-btn .label {
  width: 123.75px;
  height: 48px;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.paypal-btn .wordmark .pay {
  fill: #003087;
}

.paypal-btn .wordmark .pal {
  fill: #009cde;
}

.paypal-btn__status {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #003087;
}

.paypal-btn.is-processing .label {
  display: none;
}

.paypal-btn.is-processing .paypal-btn__status {
  display: inline;
}

.secure {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
