/* Checkout — Shopify-style two column */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #121212;
  background: #fff;
  line-height: 1.5;
}

.checkout {
  min-height: 100vh;
}

.checkout__header {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e6e6e6;
}

.checkout__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #121212;
  text-decoration: none;
}

.checkout__logo:hover {
  opacity: 0.75;
}

.checkout__grid {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout__main {
  flex: 1 1 480px;
  max-width: 100%;
  padding: 1.5rem 1.5rem 3rem;
  order: 2;
}

.checkout__sidebar {
  flex: 0 1 380px;
  max-width: 100%;
  background: #fafafa;
  border-left: 1px solid #e6e6e6;
  padding: 1.5rem;
  order: 1;
}

@media (min-width: 900px) {
  .checkout__grid {
    flex-wrap: nowrap;
  }
  .checkout__main {
    order: 1;
    padding: 2.5rem 3rem 4rem 2rem;
  }
  .checkout__sidebar {
    order: 2;
    min-height: 100vh;
    padding: 2.5rem 2rem;
  }
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section > .checkout-section__title:first-child {
  margin-bottom: 1rem;
}

.checkout-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.checkout-section__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-section__link {
  font-size: 0.875rem;
  color: #1773b0;
  text-decoration: none;
}

.checkout-section__link:hover {
  text-decoration: underline;
}

.checkout-field {
  margin-bottom: 0.875rem;
}

.checkout-field label {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  color: #121212;
}

.checkout-field input[type="text"],
.checkout-field input[type="email"],
.checkout-field input[type="tel"],
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: #1773b0;
  box-shadow: 0 0 0 1px #1773b0;
}

.checkout-field--inline2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkout-checkbox input {
  margin-top: 0.2rem;
}

.checkout-placeholder-box {
  padding: 1rem 1.25rem;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  color: #707070;
  font-size: 0.875rem;
}

.checkout-payment-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #707070;
  line-height: 1.45;
}

.checkout-payment-option {
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.checkout-payment-option--disabled {
  opacity: 0.55;
  background: #fafafa;
  pointer-events: none;
}

.checkout-payment-option__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  cursor: pointer;
}

.checkout-payment-option--disabled .checkout-payment-option__row {
  cursor: not-allowed;
}

.checkout-payment-option input[type="radio"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkout-payment-option__label {
  flex: 1;
  font-size: 0.9375rem;
}

.checkout-payment-option__hint {
  margin: 0 1rem 1rem 2.35rem;
  padding: 0.75rem 1rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #5c5c5c;
  line-height: 1.4;
}

.checkout-billing-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-billing-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.checkout-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 5px;
  background: #121212;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #2c2c2c;
}

.checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-footer-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e6e6;
  font-size: 0.75rem;
  color: #707070;
  text-align: center;
}

.checkout-footer-links a {
  color: #1773b0;
  text-decoration: none;
}

.checkout-footer-links a:hover {
  text-decoration: underline;
}

/* Sidebar */
.checkout-summary__item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e6e6e6;
}

.checkout-summary__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.checkout-summary__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.checkout-summary__qty-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #6b6b6b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
}

.checkout-summary__detail {
  flex: 1;
  min-width: 0;
}

.checkout-summary__name {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.checkout-summary__price {
  margin: 0;
  font-size: 0.8125rem;
  color: #121212;
}

.checkout-discount {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.checkout-discount input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  font-size: 0.875rem;
}

.checkout-discount button {
  padding: 0.5rem 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
}

.checkout-discount button:hover {
  background: #f5f5f5;
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #121212;
}

.checkout-totals__row--total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e6e6;
  font-size: 1.25rem;
  font-weight: 700;
}

.checkout-totals__tax-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #707070;
}

.checkout-empty {
  max-width: 480px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.checkout-empty a {
  color: #1773b0;
}

/* Order success (direct transfer) */
.checkout-success {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.checkout-success__inner {
  text-align: center;
  padding: 2rem 0 1rem;
}

.checkout-success__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1773b0;
}

.checkout-success__order-line {
  margin: 0;
  font-size: 0.9375rem;
  color: #707070;
}

.checkout-success__order-num {
  margin: 0.35rem 0 1.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #121212;
  font-variant-numeric: tabular-nums;
}

.checkout-success__text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
  text-align: left;
}

.checkout-success__phone-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #707070;
}

.checkout-success__phone {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #121212;
  text-decoration: none;
}

.checkout-success__phone:hover {
  text-decoration: underline;
}

.checkout-success__hint {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: #707070;
}

.checkout-success__back {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 5px;
  background: #121212;
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.checkout-success__back:hover {
  background: #2c2c2c;
}
