.checkout-page {
  --ink: #16212b;
  --muted: #5f6972;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e7ddcf;
  --teal: #0e7774;
  --coral: #e95f47;
  min-height: 68vh;
  background: var(--paper);
  color: var(--ink);
  padding: 42px 20px;
}

.checkout-page,
.checkout-page * {
  box-sizing: border-box;
}

.kc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.kc-header {
  grid-column: 1 / -1;
}

.kc-header p {
  margin: 0 0 6px;
  color: var(--teal);
  font-weight: 850;
}

.kc-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.kc-panel,
.kc-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(22, 33, 43, 0.1);
}

.kc-panel {
  padding: 22px;
}

.kc-line,
.kc-mini-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.kc-line {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.kc-line + .kc-line {
  margin-top: 14px;
}

.kc-mini-line:first-of-type {
  padding-top: 0;
}

.kc-mini-line:last-of-type {
  border-bottom: 0;
}

.kc-line img,
.kc-mini-line img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.kc-line-media {
  width: 128px;
}

.kc-line-main {
  display: grid;
  min-height: 128px;
  gap: 18px;
}

.kc-line-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.kc-line h2,
.kc-form h2,
.kc-summary h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.kc-line .item-title {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.35;
}

.kc-line-total {
  color: var(--coral);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
  white-space: nowrap;
}

.kc-line-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.kc-qty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 180px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.kc-qty input {
  width: 128px;
  min-height: 46px;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 850;
}

.btnRemoveProduct {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.btnRemoveProduct:hover {
  color: var(--coral);
  border-color: rgba(233, 95, 71, 0.32);
  background: #fff8ed;
  text-decoration: none;
}

.kc-summary {
  align-self: start;
  padding: 20px;
  position: sticky;
  top: 18px;
}

.kc-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.kc-summary .kc-summary-head {
  align-items: center;
}

.kc-summary .kc-summary-head h2 {
  margin-bottom: 0;
}

.kc-total strong {
  color: var(--coral);
  font-size: 24px;
}

.kc-primary,
.kc-secondary {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.kc-primary {
  color: #fff;
  background: var(--coral);
}

.kc-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.kc-form label {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kc-form input,
.kc-form select,
.kc-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kc-form input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-form textarea {
  min-height: 118px;
}

.kc-form small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
}

.kc-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
}

.kc-form .select2,
.kc-form .select2-container {
  max-width: 100%;
  min-width: 0;
}

.kc-form .select2-container .select2-selection--single {
  min-height: 44px;
  height: auto;
  border-color: var(--line);
  border-radius: 8px;
}

.kc-form .select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
.kc-form .select2-container .select2-selection--single .select2-selection__rendered {
  min-height: 42px;
  padding: 9px 34px 9px 10px;
  line-height: 1.45;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.kc-form .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,
.kc-form .select2-container .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.kc-payments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.kc-payments label {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.kc-payments label:has(input:checked) {
  background: #fffaf2;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 119, 116, 0.14);
}

.kc-payments input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.kc-payments img {
  width: auto;
  max-width: 112px;
  max-height: 38px;
  object-fit: contain;
}

.kc-mini-line {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  font-size: 14px;
}

.kc-mini-line p {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kc-mini-line span {
  color: var(--muted);
}

.kc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 22px;
}

.kc-empty h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 850;
}

.kc-empty p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.kc-empty .kc-primary {
  max-width: 220px;
  margin: 18px auto 0;
}

.kc-empty-shell {
  grid-template-columns: 1fr;
}

.kc-success-shell {
  display: block;
  max-width: 820px;
}

.kc-success-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.kc-success-icon {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: rgba(14, 119, 116, 0.1);
  border: 1px solid rgba(14, 119, 116, 0.18);
  border-radius: 50%;
  font-size: 44px;
}

.kc-success-eyebrow {
  margin: 0;
  color: var(--teal);
  font-weight: 850;
}

.kc-success-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
}

.kc-success-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.kc-success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 6px 0 0;
}

.kc-success-details div {
  padding: 16px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kc-success-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.kc-success-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.kc-success-items {
  display: grid;
  gap: 10px;
  width: 100%;
}

.kc-success-items article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  font-weight: 850;
}

.kc-success-items strong {
  white-space: nowrap;
}

.kc-success-actions {
  width: min(320px, 100%);
}

.kc-success-completion {
  width: 100%;
}

.kc-success-extra {
  width: 100%;
  padding: 18px 16px;
  text-align: left;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kc-success-extra h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.kc-success-extra p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.kc-success-extra .kc-success-items {
  margin-top: 4px;
}

.kc-license-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.kc-success-completion-waiting {
  text-align: center;
}

.kc-payme-logo {
  max-width: 180px;
  height: auto;
}

.kc-payme-amount {
  margin: 0;
  color: var(--coral);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
}

.kc-payme-qr {
  display: inline-flex;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kc-payme-how {
  width: 100%;
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.kc-payme-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  text-align: left;
}

.kc-payme-steps article {
  padding: 16px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kc-payme-steps .dot {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}

.kc-payme-steps p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.kc-success-actions .kc-primary {
  cursor: pointer;
}

.site-footer {
  margin-top: 0 !important;
  padding: 36px 0 40px !important;
  color: #425263;
  background: #f7efe4 !important;
  border-top: 1px solid #eadfce;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-footer .site-footer-inner {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

.site-footer > .site-footer-inner > .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: flex-start;
  margin: 0;
}

.site-footer-column {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0;
}

.site-footer-column br {
  display: none;
}

.site-footer-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px !important;
  color: #13202b;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}

.site-footer p,
.site-footer span {
  margin-bottom: 0;
  line-height: 1.7;
}

.site-footer p {
  font-size: 14px !important;
}

.site-footer-payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 8px 0 0;
}

.site-footer-payment-logos > div {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-top: 0 !important;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eadfce;
  border-radius: 8px;
}

.site-footer img {
  max-height: 34px;
  object-fit: contain;
}

.site-footer-payment-logos img {
  width: auto;
  max-width: 82px;
  max-height: 26px;
}

.site-footer a {
  color: #0e7774;
  font-weight: 800;
}

@media (max-width: 860px) {
  .checkout-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 30px 14px;
  }

  .kc-shell,
  .kc-order,
  .kc-two,
  .kc-payments {
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
  }

  .kc-header h1 {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .kc-panel,
  .kc-summary {
    max-width: 100%;
    min-width: 0;
  }

  .kc-panel {
    padding: 18px 14px;
  }

  .kc-summary {
    position: static;
  }

  .kc-success-details,
  .kc-payme-steps {
    grid-template-columns: 1fr;
  }

  .kc-success-copy {
    font-size: 16px;
  }

  .kc-line {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .kc-line-media {
    width: 92px;
  }

  .kc-line-main {
    min-height: 92px;
  }

  .kc-line-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kc-line .item-title,
  .kc-line-total {
    font-size: 20px;
  }

  .kc-qty {
    min-width: 132px;
  }

  .kc-qty input {
    width: 112px;
  }

}
