.kk-checkout {
  --orange: #ff961f;
  --orange-dark: #e77b00;
  --ink: #202936;
  --muted: #6f7b8a;
  --border: #e5e9ef;
  --soft: #f7f8fa;
  --green: #27a35a;
  width: 100%;
  max-width: none;
  margin: 0 auto 45px;
  color: var(--ink);
}

.kk-checkout *, .kk-checkout *::before, .kk-checkout *::after { box-sizing: border-box; }

/* Override the theme even when kk.css is loaded after this stylesheet. */
.wrapper .main-panel > .content { overflow: visible; }

.kk-checkout__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
.kk-checkout[data-cart-empty] .kk-checkout__layout { display: block; }
.kk-checkout-card, .kk-order-summary__card {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(35, 47, 62, .06);
}
.kk-checkout-card__header { display: flex; align-items: center; min-height: 78px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.kk-checkout-card__title { display: flex; align-items: center; gap: 13px; }
.kk-checkout-card__number {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff1df;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 800;
}
.kk-checkout-card__title h2, .kk-order-summary h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.3; }
.kk-checkout-card__title span:not(.kk-checkout-card__number) { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.kk-checkout-card__body { padding: 22px; }

.kk-cart-list { margin: 0; padding: 0; list-style: none; }
.kk-cart-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.kk-cart-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
}
.kk-cart-item__image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.kk-cart-item__image--part { background: var(--soft); color: #a0a9b5; font-size: 46px; }
.kk-cart-item__content { min-width: 0; }
.kk-cart-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.kk-cart-item__name { display: inline-block; max-width: 680px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.35; }
.kk-cart-item__name:hover { color: var(--orange-dark); text-decoration: none; }
.kk-cart-item__stock { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--green); font-size: 13px; font-weight: 400; line-height: 1.35; }
.kk-cart-item__remove {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #a6afba;
  font-size: 14px;
  transition: background-color .2s, color .2s;
}
.kk-cart-item__remove:hover { background: #fff0ee; color: #df5147; text-decoration: none; }
.kk-checkout[aria-busy="true"] .kk-cart-item__remove { opacity: .4; cursor: wait; }
.kk-cart-status { margin-bottom: 16px; padding: 12px 16px; border-radius: 9px; background: #edf8f1; color: #21633d; font-size: 14px; }
.kk-cart-status--error { background: #fff0ee; color: #a9322b; }
.kk-cart-status[hidden], .kk-checkout [hidden] { display: none !important; }
.kk-cart-empty { padding: 36px 22px; text-align: center; }
.kk-cart-empty > i { margin-bottom: 16px; color: var(--orange); font-size: 36px; }
.kk-cart-empty h2 { font-size: 24px; }
.kk-cart-empty p { color: var(--muted); font-size: 16px; }
.kk-cart-empty .kk-order-summary__submit { display: inline-flex; width: auto; padding: 0 24px; text-decoration: none; }
.kk-cart-item__delivery { display: flex; align-items: center; gap: 9px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.kk-cart-item__delivery-icon { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff4e7; color: var(--orange-dark); }
.kk-cart-item__delivery strong, .kk-cart-item__delivery span { display: block; }
.kk-cart-item__delivery span.kk-cart-item__delivery-icon { display: inline-flex; }
.kk-cart-item__delivery-icon i { display: block; line-height: 1; }
.kk-cart-item__delivery strong { color: #4c5867; font-weight: 500; }
.kk-cart-alert { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: #fff0ee; color: #bb3e35; font-size: 14px; line-height: 1.45; }
.kk-cart-alert i { margin-top: 2px; }

.kk-cart-item__buyline { display: grid; grid-template-columns: minmax(110px, 1fr) 120px minmax(130px, 1fr); align-items: end; gap: 15px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed #dfe4e9; }
.kk-cart-item__price > span, .kk-cart-item__quantity > label, .kk-cart-item__quantity--static > span, .kk-cart-item__sum > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.3; }
.kk-cart-item__price strong, .kk-cart-item__quantity--static strong, .kk-cart-item__sum strong { color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.kk-cart-item__sum { text-align: right; }
.kk-cart-item__sum strong { font-size: 16px; }
.kk-quantity-select { position: relative; }
.kk-quantity-select::after { content: "шт."; position: absolute; top: 50%; right: 30px; color: var(--muted); font-size: 13px; pointer-events: none; transform: translateY(-50%); }
.kk-quantity-select .form-control { height: 36px; padding: 5px 48px 5px 10px; border-color: #dbe0e6; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 400; }
.kk-cart-note { display: flex; align-items: flex-start; gap: 9px; padding: 15px 22px; background: #fffaf4; color: #7a654e; font-size: 14px; line-height: 1.5; }
.kk-cart-note i { margin-top: 2px; color: var(--orange-dark); }

.kk-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kk-option-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  min-height: 142px;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  background: #fffaf4;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.kk-option-card:hover { box-shadow: 0 5px 16px rgba(35, 47, 62, .07); }
.kk-option-card input { position: absolute; opacity: 0; pointer-events: none; }
.kk-option-card__control { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #c7ced7; border-radius: 50%; background: #fff; }
.kk-option-card input:checked + .kk-option-card__control { border-color: var(--orange); }
.kk-option-card input:checked + .kk-option-card__control::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.kk-option-card input:focus + .kk-option-card__control { box-shadow: 0 0 0 3px rgba(255, 150, 31, .2); }
.kk-option-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #fff0de; color: var(--orange-dark); font-size: 16px; }
.kk-option-card__content strong, .kk-option-card__content span, .kk-option-card__content small { display: block; }
.kk-option-card__content strong { margin: 1px 0 5px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.4; }
.kk-option-card__content span { color: #53606e; font-size: 14px; font-weight: 500; line-height: 1.5; }
.kk-option-card__content small { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }

.kk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kk-field--full { grid-column: 1 / -1; }
.kk-field > label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #46515f; font-size: 14px; font-weight: 700; }
.kk-field > label > span { color: #df5147; }
.kk-field > label small { color: #9aa3ae; font-size: 12px; font-weight: 500; }
.kk-field__control { position: relative; }
.kk-field__control > i { position: absolute; z-index: 2; top: 50%; left: 14px; color: #9ba5b0; font-size: 13px; transform: translateY(-50%); }
.kk-field .form-control { height: 46px; border: 1px solid #dce2e8; border-radius: 10px; color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.kk-field__control .form-control { padding-left: 40px; }
.kk-field textarea.form-control { height: auto; min-height: 105px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.kk-field .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 150, 31, .12); }
.kk-field .form-control::placeholder { color: #adb5bf; }

.kk-order-summary { position: relative; align-self: stretch; }
.kk-order-summary__card { position: sticky; top: 84px; padding: 24px; }
.kk-order-summary h2 { margin-bottom: 22px; font-size: 20px; }
.kk-order-summary__row { display: flex; justify-content: space-between; gap: 15px; margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.kk-order-summary__row strong { color: #47525f; font-weight: 700; white-space: nowrap; }
.kk-order-summary__row .kk-order-summary__free { color: var(--green); }
.kk-order-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink); font-size: 16px; font-weight: 800; }
.kk-order-summary__total strong { color: var(--ink); font-size: 25px; font-weight: 900; white-space: nowrap; }
.kk-order-summary__submit, .kk-checkout__mobile-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffa126 0%, #f18408 100%);
  box-shadow: 0 8px 18px rgba(241, 132, 8, .24);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.kk-order-summary__submit:hover, .kk-checkout__mobile-submit:hover { background: linear-gradient(135deg, #f89518 0%, #df7400 100%); box-shadow: 0 10px 22px rgba(241, 132, 8, .3); color: #fff; transform: translateY(-1px); }
.kk-order-summary__submit:focus, .kk-checkout__mobile-submit:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 150, 31, .2), 0 8px 18px rgba(241, 132, 8, .24); }
.kk-order-summary__caption { margin: 12px 6px 0; color: #8d97a3; font-size: 12px; line-height: 1.5; text-align: center; }
.kk-checkout__mobile-submit { display: none; }
.kk-checkout-security-error { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 13px 16px; border: 1px solid #efb6b0; border-radius: 10px; background: #fff0ee; color: #9e3028; font-size: 14px; line-height: 1.5; }
.kk-checkout-security-error i { margin-top: 3px; }
.kk-form-trap { position: fixed !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 1100px) {
  .kk-checkout__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .kk-cart-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .kk-cart-item__image { width: 96px; height: 96px; }
}

@media (max-width: 900px) {
  .kk-checkout__layout { display: flex; flex-direction: column; }
  .kk-checkout__main, .kk-order-summary { width: 100%; }
  .kk-order-summary { position: static; align-self: auto; order: -1; }
  .kk-order-summary__card { position: static; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 30px; }
  .kk-order-summary h2, .kk-order-summary__caption { display: none; }
  .kk-order-summary__row { grid-column: 1; margin: 0; }
  .kk-order-summary__total { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid var(--border); }
  .kk-order-summary__submit { display: none; }
  .kk-checkout__mobile-submit { display: flex; margin: 4px 0 22px; }
}

@media (max-width: 640px) {
  .kk-checkout { margin-bottom: 20px; }
  .kk-checkout-card, .kk-order-summary__card { margin-bottom: 14px; border-radius: 12px; }
  .kk-checkout-card__header { min-height: 68px; padding: 14px 16px; }
  .kk-checkout-card__number { flex-basis: 32px; width: 32px; height: 32px; }
  .kk-checkout-card__title h2 { font-size: 16px; }
  .kk-checkout-card__body { padding: 16px; }
  .kk-cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 11px; padding: 13px 14px; }
  .kk-cart-item__image { width: 72px; height: 72px; border-radius: 9px; }
  .kk-cart-item__image--part { font-size: 32px; }
  .kk-cart-item__name { padding-right: 2px; font-size: 13px; line-height: 1.4; }
  .kk-cart-item__stock { font-size: 12px; }
  .kk-cart-item__remove { flex-basis: 30px; width: 30px; height: 30px; }
  .kk-cart-item__delivery { margin-left: -83px; padding-top: 6px; font-size: 12px; }
  .kk-cart-alert { margin-left: -83px; font-size: 12px; }
  .kk-cart-item__buyline { grid-template-columns: 1fr 92px; gap: 10px; margin-left: -83px; }
  .kk-cart-item__price { display: block; grid-column: 1; grid-row: 1; }
  .kk-cart-item__sum { grid-column: 1; grid-row: 2; text-align: left; }
  .kk-cart-item__quantity { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .kk-cart-item__sum strong { font-size: 16px; }
  .kk-cart-note { padding: 13px 16px; font-size: 12px; }
  .kk-option-grid, .kk-form-grid { grid-template-columns: 1fr; }
  .kk-option-card { min-height: auto; padding: 14px; }
  .kk-field--full { grid-column: auto; }
  .kk-order-summary__card { display: block; padding: 17px; }
  .kk-order-summary__row { display: none; }
  .kk-order-summary__total { display: flex; margin: 0; padding: 0; border: 0; }
  .kk-order-summary__total strong { font-size: 21px; }
}

@media (max-width: 380px) {
  .kk-cart-item { grid-template-columns: 64px minmax(0, 1fr); }
  .kk-cart-item__image { width: 64px; height: 64px; }
  .kk-cart-item__delivery, .kk-cart-alert, .kk-cart-item__buyline { margin-left: -75px; }
}

/* Order completed */
.kk-order-success {
  --success-orange: #ff961f;
  --success-orange-dark: #e77b00;
  --success-green: #25a55f;
  --success-ink: #202936;
  --success-muted: #6f7b8a;
  --success-border: #e4e9ef;
  width: 100%;
  max-width: 920px;
  margin: 12px auto 48px;
  color: var(--success-ink);
}
.kk-order-success *, .kk-order-success *::before, .kk-order-success *::after { box-sizing: border-box; }
.kk-order-success__card {
  overflow: hidden;
  border: 1px solid var(--success-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 41, 54, .09);
}
.kk-order-success__hero { padding: 42px 38px 32px; text-align: center; }
.kk-order-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eaf8f0;
  box-shadow: 0 0 0 10px #f5fbf7;
  color: var(--success-green);
  font-size: 27px;
}
.kk-order-success__eyebrow { margin: 0 0 7px; color: var(--success-green); font-size: 14px; font-weight: 800; }
.kk-order-success__hero h1 { margin: 0; color: var(--success-ink); font-size: 31px; font-weight: 900; line-height: 1.2; }
.kk-order-success__lead { max-width: 570px; margin: 13px auto 0; color: var(--success-muted); font-size: 16px; line-height: 1.55; }
.kk-order-success__tracking { padding: 27px 32px 31px; border-top: 1px solid var(--success-border); background: #f8f9fb; }
.kk-order-success__section-title { margin-bottom: 17px; }
.kk-order-success__section-title span, .kk-order-success__section-title small { display: block; }
.kk-order-success__section-title span { font-size: 18px; font-weight: 850; }
.kk-order-success__section-title small { margin-top: 3px; color: var(--success-muted); font-size: 13px; }
.kk-order-success__channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kk-order-success__channel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #dfe5ec;
  border-radius: 13px;
  background: #fff;
  color: var(--success-ink);
}
.kk-order-success__channel--link { transition: border-color .2s, box-shadow .2s, transform .2s; }
.kk-order-success__channel--link:hover { border-color: #ffc175; box-shadow: 0 8px 22px rgba(32, 41, 54, .08); color: var(--success-ink); text-decoration: none; transform: translateY(-1px); }
.kk-order-success__channel-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #fff0de; color: var(--success-orange-dark); font-size: 18px; }
.kk-order-success__channel-icon--max { background: #eaf1ff; color: #466fd5; }
.kk-order-success__channel-copy strong, .kk-order-success__channel-copy span { display: block; }
.kk-order-success__channel-copy strong { margin-bottom: 3px; font-size: 15px; font-weight: 850; }
.kk-order-success__channel-copy span { color: var(--success-muted); font-size: 13px; line-height: 1.4; }
.kk-order-success__arrow { color: var(--success-orange-dark); font-size: 13px; }
.kk-order-success__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 29px 32px; border-top: 1px solid var(--success-border); }
.kk-order-success__step { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; }
.kk-order-success__step:not(:last-child)::after { content: ""; position: absolute; top: 18px; right: 18px; left: calc(100% - 40px); height: 1px; background: #dfe4ea; }
.kk-order-success__step > span { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #edf0f4; color: #87919d; font-size: 13px; font-weight: 850; }
.kk-order-success__step--active > span { background: #eaf8f0; color: var(--success-green); }
.kk-order-success__step strong, .kk-order-success__step small { display: block; }
.kk-order-success__step strong { font-size: 14px; font-weight: 800; }
.kk-order-success__step small { margin-top: 2px; color: var(--success-muted); font-size: 12px; line-height: 1.35; }
.kk-order-success__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; border-top: 1px solid var(--success-border); background: #fffaf4; }
.kk-order-success__footer p { margin: 0; color: #6d604f; font-size: 13px; line-height: 1.5; }
.kk-order-success__footer p i { margin-right: 5px; color: var(--success-orange-dark); }
.kk-order-success__footer p a { color: #564938; font-weight: 800; white-space: nowrap; }
.kk-order-success__catalog { flex: 0 0 auto; color: var(--success-orange-dark); font-size: 13px; font-weight: 800; white-space: nowrap; }
.kk-order-success__catalog:hover { color: #bf6500; }

@media (max-width: 720px) {
  .kk-order-success { margin: 4px auto 24px; }
  .kk-order-success__card { border-radius: 14px; }
  .kk-order-success__hero { padding: 30px 20px 25px; }
  .kk-order-success__icon { width: 58px; height: 58px; margin-bottom: 15px; font-size: 23px; }
  .kk-order-success__hero h1 { font-size: 25px; }
  .kk-order-success__lead { font-size: 14px; }
  .kk-order-success__tracking { padding: 22px 16px 24px; }
  .kk-order-success__channels { grid-template-columns: 1fr; }
  .kk-order-success__steps { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .kk-order-success__step:not(:last-child)::after { top: 31px; bottom: -18px; left: 18px; width: 1px; height: auto; }
  .kk-order-success__footer { display: block; padding: 18px; }
  .kk-order-success__catalog { display: inline-block; margin-top: 13px; }
}
