*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; color: #000; font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: #0b2545; }
img { max-width: 100%; }

.checkout-page { min-height: 100dvh; background: #fff; }
.checkout-header { border-bottom: 1px solid #e6e6e6; background: #fff; }
.checkout-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 18px 20px 16px;
}
.checkout-header-side { min-height: 22px; }
.checkout-header-side-right { display: flex; justify-content: flex-end; }
.checkout-logo img { display: block; height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.checkout-bag-link { color: #0b2545; display: inline-flex; }

.checkout-summary-bar { border-bottom: 1px solid #e6e6e6; }
.checkout-summary-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: left;
  color: #0b2545;
  font-size: 14px;
}
.checkout-summary-toggle-left { display: inline-flex; align-items: center; gap: 8px; }
.checkout-summary-total { color: #000; font-size: 18px; font-weight: 600; }
.checkout-summary-panel { display: none; max-width: 580px; margin: 0 auto; padding: 0 20px 18px; }
.checkout-summary-panel.is-open { display: block; }
.checkout-summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; }
.checkout-summary-item + .checkout-summary-item { margin-top: 12px; }
.checkout-product-thumb { position: relative; display: flex; align-items: center; justify-content: center; }
.checkout-summary-thumb.checkout-product-thumb { width: 56px; height: 72px; }
.checkout-product-thumb-frame {
  display: flex; height: 100%; width: 100%; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 8px; border: 1px solid #e6e6e6; background: #f5f5f5;
}
.checkout-product-thumb-image { display: block; height: 100%; width: 100%; object-fit: contain; }
.checkout-summary-qty {
  position: absolute; top: -6px; right: -6px; z-index: 1;
  display: inline-flex; height: 20px; min-width: 20px; align-items: center; justify-content: center;
  border-radius: 999px; background: #737373; padding: 0 5px; font-size: 11px; font-weight: 600; color: #fff;
}
.checkout-summary-item-title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.checkout-summary-item-sub { margin-top: 4px; font-size: 12px; line-height: 1.4; color: #737373; }
.checkout-summary-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 500; }
.checkout-summary-old-price { font-size: 12px; color: #737373; text-decoration: line-through; }
.checkout-summary-lines { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e6e6e6; }
.checkout-summary-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #545454; }
.checkout-summary-line + .checkout-summary-line { margin-top: 10px; }
.checkout-summary-line-discount { color: #0b2545; }
.checkout-summary-line-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6e6e6; color: #000; font-size: 16px; font-weight: 600; }

.checkout-main { max-width: 580px; margin: 0 auto; padding: 20px 20px 40px; }
.checkout-express-label { text-align: center; font-size: 13px; color: #737373; }
.checkout-express-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.checkout-express-btn {
  display: flex; height: 48px; align-items: center; justify-content: center;
  border-radius: 8px; background: #000;
}
.checkout-express-btn.is-light { background: #fff; border: 1px solid #d1d5db; }
.checkout-express-btn img { height: 22px; width: auto; display: block; }
.checkout-or-divider { position: relative; margin: 24px 0 28px; text-align: center; }
.checkout-or-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e6e6e6; }
.checkout-or-divider span { position: relative; z-index: 1; display: inline-block; padding: 0 14px; background: #fff; font-size: 12px; color: #737373; }

.checkout-section + .checkout-section { margin-top: 28px; }
.checkout-section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.checkout-section-title { font-size: 18px; font-weight: 600; line-height: 1.2; color: #000; }
.checkout-section:not(:has(.checkout-section-heading-row)) .checkout-section-title { margin-bottom: 14px; }
.checkout-link-btn { font-size: 14px; color: #0b2545; text-decoration: underline; text-underline-offset: 2px; }

.checkout-field-stack { display: flex; flex-direction: column; gap: 10px; }
.checkout-field {
  position: relative; display: block; min-height: 52px; overflow: hidden;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
}
.checkout-field:focus-within { border-color: #0b2545; box-shadow: #0b2545 0 0 0 1px; }
.checkout-field.is-error { border-color: #b42318; }
.checkout-field-label {
  position: absolute; left: 13px; z-index: 1; max-width: calc(100% - 52px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #707070; pointer-events: none;
}
.checkout-field:not(.is-floated) .checkout-field-label { top: 50%; transform: translateY(-50%); font-size: 14px; }
.checkout-field.is-floated .checkout-field-label { top: 8px; font-size: 11px; }
.checkout-field-input { width: 100%; border: 0; background: transparent; font-size: 16px; color: #000; outline: none; }
.checkout-field:not(.is-floated) .checkout-field-input { height: 52px; padding: 0 40px 0 13px; }
.checkout-field.is-floated .checkout-field-input { min-height: 52px; padding: 24px 40px 10px 13px; }
.checkout-field-select-wrap .checkout-field-select { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.checkout-field-select-wrap .checkout-field-value { display: block; min-height: 52px; padding: 24px 40px 10px 13px; font-size: 16px; }
.checkout-field-suffix { position: absolute; top: 50%; right: 13px; z-index: 3; transform: translateY(-50%); display: inline-flex; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.checkout-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; }
.checkout-checkbox-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.checkout-checkbox-box {
  display: inline-flex; height: 18px; width: 18px; flex-shrink: 0; align-items: center; justify-content: center;
  margin-top: 1px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff;
}
.checkout-checkbox-input:checked + .checkout-checkbox-box { border-color: #0b2545; background: #0b2545; }
.checkout-checkbox-label { font-size: 14px; line-height: 1.45; color: #545454; }

.checkout-info-box {
  padding: 14px 13px; border-radius: 8px; background: #f3f3f3;
  font-size: 14px; line-height: 1.5; color: #545454;
}
.checkout-shipping-list { overflow: hidden; border: 1px solid #d1d5db; border-radius: 8px; }
.checkout-shipping-list .checkout-shipping-row + .checkout-shipping-row { border-top: 1px solid #d1d5db; }
.checkout-shipping-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px 12px; cursor: pointer; background: #fff;
}
.checkout-shipping-row.is-selected { background: #f0f5ff; }
.checkout-shipping-row.is-selected .checkout-radio-dot { border-color: #0b2545; }
.checkout-shipping-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 13px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; color: #545454;
}
.checkout-shipping-spinner {
  display: inline-block; height: 16px; width: 16px;
  border: 2px solid #d1d5db; border-top-color: #0b2545; border-radius: 999px;
  animation: checkout-shipping-spin .8s linear infinite;
}
@keyframes checkout-shipping-spin { to { transform: rotate(360deg); } }
.checkout-shipping-copy { display: flex; flex-direction: column; gap: 2px; }
.checkout-shipping-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.checkout-shipping-name-text { min-width: 0; }
.checkout-shipping-carrier-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.checkout-shipping-carrier-logo { display: block; height: 16px; width: auto; flex-shrink: 0; border-radius: 3px; }
.checkout-shipping-meta { font-size: 12px; color: #737373; }
.checkout-shipping-price { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.checkout-shipping-price.is-free { font-size: 12px; letter-spacing: .02em; }

.checkout-payment-shell { display: flex; flex-direction: column; }
.checkout-paysera-provider-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px;
  align-items: center; padding: 14px 0 12px;
}
.checkout-paysera-provider-copy { font-size: 14px; line-height: 1.35; }
.checkout-paysera-provider-logo-wrap { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 28px; }
.checkout-paysera-provider-logo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.checkout-paysera-panel { border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #f3f3f3; }
.checkout-paysera-country { padding: 12px; border-bottom: 1px solid #d1d5db; background: #fff; }
.checkout-paysera-country-value {
  display: block; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
  border-radius: 6px; background: #fff; font-size: 14px;
}
.checkout-paysera-panel .checkout-shipping-list { border: 0; border-radius: 0; }
.checkout-payment-methods .checkout-payment-group-label {
  padding: 10px 12px 8px; border-bottom: 1px solid #d1d5db; background: #fafafa;
  font-size: 12px; font-weight: 600; color: #545454;
}
.checkout-payment-methods .checkout-payment-group-label:not(:first-child) { border-top: 1px solid #d1d5db; }
.checkout-payment-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.checkout-payment-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 34px; padding: 5px 8px; border: 1px solid #e6e6e6;
  border-radius: 6px; background: #fff;
}
.checkout-paysera-method-logo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.checkout-payment-methods [data-group="cards"] .checkout-paysera-method-logo { transform: scale(1.15); }

.checkout-radio-input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-radio-dot {
  display: inline-flex; height: 18px; width: 18px; align-items: center; justify-content: center;
  border: 2px solid #cfcfcf; border-radius: 999px;
}
.checkout-radio-input:checked + .checkout-radio-dot { border-color: #0b2545; }
.checkout-radio-dot-inner { display: none; height: 8px; width: 8px; border-radius: 999px; background: #0b2545; }
.checkout-radio-input:checked + .checkout-radio-dot .checkout-radio-dot-inner { display: block; }

.checkout-discount-toggle {
  display: flex; width: 100%; align-items: center; margin-top: 16px; padding: 14px 13px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 14px; color: #0b2545;
}
.checkout-discount-form { display: none; margin-top: 16px; }
.checkout-discount-form.is-open { display: block; }
.checkout-discount-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.checkout-discount-input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 14px 13px; font-size: 16px; outline: none; }
.checkout-discount-input:focus { border-color: #0b2545; box-shadow: #0b2545 0 0 0 1px; }
.checkout-discount-apply { border: 1px solid #d1d5db; border-radius: 8px; background: #f3f3f3; padding: 0 16px; font-size: 14px; font-weight: 500; }
.checkout-discount-error { margin-top: 8px; font-size: 13px; color: #b42318; }

.checkout-bottom-summary { margin-top: 20px; border-top: 1px solid #e6e6e6; padding-top: 16px; }
.checkout-bottom-summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.checkout-bottom-summary-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.checkout-bottom-summary-thumb.checkout-product-thumb { width: 44px; height: 56px; }
.checkout-bottom-summary-title { font-size: 14px; font-weight: 600; }
.checkout-bottom-summary-sub { font-size: 12px; color: #737373; }
.checkout-bottom-summary-right { display: inline-flex; align-items: center; gap: 8px; }
.checkout-bottom-summary-price { font-size: 14px; font-weight: 600; }
.checkout-bottom-summary-panel { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6e6e6; }
.checkout-bottom-summary-panel.is-open { display: block; }

.checkout-privacy-note { margin-top: 20px; font-size: 12px; line-height: 1.55; color: #545454; }
.checkout-privacy-note a { color: #0b2545; text-decoration: underline; }
.checkout-terms-block { margin-top: 16px; }
.checkout-terms-row { display: flex; align-items: flex-start; gap: 12px; }
.checkout-terms-native-input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: #0b2545; cursor: pointer; }
.checkout-terms-label { margin: 0; font-size: 13px; line-height: 1.45; color: #333; }
.checkout-terms-label a { color: #0b2545; text-decoration: underline; }
.checkout-terms-required { color: #b42318; margin-right: 2px; }
.checkout-terms-hint { margin: 8px 0 0 32px; font-size: 12px; line-height: 1.4; color: #737373; }

.checkout-submit {
  width: 100%; margin-top: 16px; border: 0; border-radius: 999px;
  background: #ff7a1a; padding: 18px 16px; font-size: 16px; font-weight: 600; color: #fff;
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.32);
}
.checkout-submit:disabled { opacity: .45; cursor: not-allowed; }
.checkout-pay-error { margin-top: 12px; text-align: center; font-size: 13px; color: #b42318; }

.checkout-policy-footer { display: flex; flex-direction: column; margin-top: 16px; margin-inline: -8px; padding-bottom: 10px; }
.checkout-policy-row { display: flex; justify-content: space-between; align-items: center; }
.checkout-policy-row + .checkout-policy-row { margin-top: 1.15em; }
.checkout-policy-link {
  flex: 1 1 0; min-width: 0; font-size: 11px; line-height: 1.15; letter-spacing: -.03em;
  color: #0b2545; text-decoration: underline; text-align: center; white-space: nowrap; padding: 0 1px;
}

.site-legal-footer-checkout { margin-top: 20px; padding: 16px 0 24px; border-top: 1px solid #e6e6e6; }
.site-legal-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.site-legal-footer-link { font-size: 12px; color: #0b2545; text-decoration: underline; }
.site-legal-footer-meta { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #737373; text-align: center; }
.site-legal-footer-meta a { color: inherit; text-decoration: underline; }

.checkout-result { max-width: 580px; margin: 0 auto; padding: 48px 20px 64px; text-align: center; }
.checkout-result-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 999px; font-size: 24px; font-weight: 700;
}
.checkout-result-icon--success { background: #ecfdf3; color: #027a48; }
.checkout-result h1 { margin: 0 0 10px; font-size: 24px; }
.checkout-result p { margin: 0; font-size: 15px; line-height: 1.5; color: #545454; }
.checkout-result .checkout-submit { margin-top: 28px; text-decoration: none; display: block; }

@media (max-width: 420px) {
  .checkout-field-row { grid-template-columns: 1fr; }
  .checkout-express-buttons { grid-template-columns: 1fr; }
}
