body[data-page=checkout] main {max-width:1392px;margin:auto;padding-inline:clamp(14px,4.25vw,64px)}
body[data-page=checkout] .crumb {padding:16px 0 8px;color:#aaa;font-size:12px}
body[data-page=checkout] #routeView {min-height:0;margin:0 0 28px}
.checkout-title {margin:4px 0 18px;font-size:clamp(27px,3vw,42px);letter-spacing:-.05em;line-height:1.12}
.checkout-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,38%);gap:20px;align-items:start}
.checkout-steps {display:grid;gap:12px;min-width:0}
.checkout-panel {min-width:0;margin:0;padding:clamp(13px,1.7vw,23px);background:#1c1c1c;border:1px solid #303030;border-radius:12px}
.checkout-panel h2 {display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:clamp(20px,1.7vw,24px);letter-spacing:-.025em}
.checkout-panel h2 svg {width:23px;height:23px;flex:none}
.checkout-panel label:not(.checkout-options label) {display:block;margin:9px 0 5px;color:#eee;font-size:14px;font-weight:650}
.checkout-panel input:not([type=radio]),.checkout-panel select {width:100%;min-width:0;background:#282828;border:1px solid #454545;border-radius:8px;padding:10px 11px;color:#fff;transition:border-color .2s,box-shadow .2s}
.checkout-panel input:focus,.checkout-panel select:focus {outline:0;border-color:#fff;box-shadow:0 0 0 1px #fff,0 0 10px #ffffff26}
.checkout-panel [aria-invalid=true] {border-color:#ff9d9d}
.checkout-phone {display:flex;align-items:center;gap:6px}
.checkout-phone select {width:clamp(118px,35%,165px);color:#eee;flex:none}
.checkout-phone #phoneOtherCode {width:54px;flex:none}
.checkout-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border:0;padding:0;margin:0;min-width:0}
.checkout-options label {position:relative;display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 10px;border:1px solid #454545;border-radius:9px;background:#232323;font-size:14px;font-weight:650;line-height:1.25;cursor:pointer;transition:border-color .2s,background-color .2s,box-shadow .2s}
.checkout-options label:has(:checked) {border-color:#fff;background:#353535}
.checkout-options label:has(:focus-visible) {outline:2px solid #eee;outline-offset:2px}
.checkout-options input {position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0}
.checkout-options svg {width:28px;height:28px;flex:none}
.checkout-payment {grid-template-columns:repeat(3,minmax(0,1fr))}
.checkout-foreign {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}
.checkout-results {list-style:none;padding:4px;margin:5px 0;background:#151515;border:1px solid #383838;border-radius:8px;max-height:11rem;overflow:auto}
.checkout-results button {display:block;width:100%;padding:7px;text-align:left;border:0;background:transparent;border-radius:5px;font-size:13px}
.checkout-results button:is(:hover,:focus-visible) {background:#303030}
.checkout-muted,.checkout-note,.checkout-error {margin:8px 0 0;font-size:12px;color:#aaa}
.checkout-note {padding:9px 10px;background:#252525;border-radius:7px;color:#ddd}
.checkout-error {color:#ffb5b5}
.checkout-panel.checkout-summary {display:block;position:sticky;top:78px}
.checkout-product {display:grid;grid-template-columns:57px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #333;font-size:13px}
.checkout-product img {width:57px;height:68px;object-fit:cover;border-radius:7px}
.checkout-product small {display:block;color:#aaa;margin-top:4px}
.checkout-product b {white-space:nowrap}
.checkout-summary-row,.checkout-total {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;font-size:13px}
.checkout-summary-row {color:#aaa}
.checkout-total {padding-top:9px;border-top:1px solid #333;font-weight:800}
.checkout-total strong {font-size:clamp(20px,2vw,28px);white-space:nowrap}
#checkoutBtn,.checkout-white {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:9px 13px;border-radius:10px;background:#fff;border:1px solid #fff;color:#111;font-weight:800;text-align:center}
#checkoutBtn {width:100%;margin-top:4px}
#checkoutBtn:disabled {opacity:.5;cursor:not-allowed}
.checkout-feedback {max-width:600px;margin:24px auto;display:grid;justify-items:center;gap:12px;text-align:center}
.checkout-feedback h2,.checkout-feedback p {margin:0}
.checkout-feedback>svg {width:64px;height:64px}
#checkoutSuccess>svg {color:#4ade80;filter:drop-shadow(0 0 8px #4ade8040)}
.checkout-feedback>div {display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
@media(max-width:920px){.checkout-payment {grid-template-columns:1fr}}
@media(max-width:760px){
  .checkout-layout {grid-template-columns:minmax(0,1fr);gap:12px}
  .checkout-panel.checkout-summary {position:static}
  .checkout-options label {font-size:13px;padding-inline:7px;gap:6px}
  .checkout-options svg {width:23px;height:23px}
  .checkout-panel input:not([type=radio]) {font-size:16px}
  .checkout-product {gap:7px}
}
@media(max-width:360px){
  .checkout-options label {gap:5px}
  .checkout-options svg {width:20px;height:20px}
}
@media(prefers-reduced-motion:reduce){
  .checkout-panel :is(input,select),.checkout-options label {transition:none}
}


.checkout-panel [aria-invalid=true],
.checkout-panel [aria-invalid=true]:focus {
  border-color:#f08080;
  box-shadow:0 0 0 2px #f080801c;
}
.checkout-field-error {margin:5px 0 8px;color:#ffabab;font-size:12px;line-height:1.4}
.checkout-server-error {
  display:flex;
  gap:9px;
  margin:8px 0 10px;
  padding:10px;
  border:1px solid #744247;
  border-radius:9px;
  background:#312124;
  color:#ffd2d2;
  font-size:13px;
}
.checkout-server-error svg {width:20px;height:20px;flex:none}
.checkout-server-error p {margin:3px 0 0;color:#eed0d0}

#checkoutSuccess {
  gap:18px;
  max-width:660px;
  margin:clamp(18px,4vw,48px) auto;
  padding:clamp(22px,5vw,52px);
  background:radial-gradient(ellipse at 50% 0%,#22322955,transparent 65%),linear-gradient(140deg,#202020,#181818);
}
#checkoutSuccess .checkout-success-mark {
  display:grid;
  place-items:center;
  width:90px;
  height:90px;
  border-radius:50%;
  border:1px solid #4ade8066;
  color:#4ade80;
  background:#20362a;
  box-shadow:0 0 33px #4ade8033,inset 0 0 18px #4ade8014;
  animation:checkout-confirm .42s ease-out both;
}
.checkout-success-mark svg {width:48px;height:48px}
@keyframes checkout-confirm {
  from {opacity:0;transform:scale(.85)}
  to {opacity:1;transform:scale(1)}
}
#checkoutSuccess .checkout-success-heading {display:grid;justify-items:center;gap:5px}
#checkoutSuccessTitle {font-size:clamp(28px,4vw,43px);line-height:1.08;text-align:center}
.checkout-success-heading p,.checkout-success-next {color:#bdbdbd}
#checkoutSuccess .checkout-success-next {max-width:35ch;font-size:14px}
#checkoutSuccess .checkout-receipt {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  max-width:440px;
  padding:12px 14px;
  border:1px solid #353535;
  border-radius:12px;
  background:#161616;
  text-align:left;
}
.checkout-receipt div {display:grid;gap:3px;font-size:12px;color:#aaa}
#successOrderNumber {color:#eee;font-size:18px;letter-spacing:.035em;font-variant-numeric:tabular-nums}
.checkout-order-status {padding:5px 8px;border:1px solid #594c37;border-radius:8px;background:#332a1f;color:#f4d49c;font-size:12px;font-weight:700}
.checkout-outline {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:9px 13px;border:1px solid #555;border-radius:10px;font-weight:750;
  transition:border-color .2s,background-color .2s;
}
.checkout-outline:hover {border-color:#aaa;background:#272727}
#checkoutSuccess .checkout-success-actions {gap:8px}
#checkoutSuccessContacts {width:100%}
#checkoutSuccessContacts .footer-messengers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#checkoutSuccessContacts .footer-telegram {--messenger:#229ed9}
#checkoutSuccessContacts .footer-viber {--messenger:#7360f2}
#checkoutSuccessContacts a {
  display:flex;align-items:center;justify-content:center;gap:7px;
  min-width:0;min-height:42px;padding:6px 12px;border:1px solid color-mix(in srgb,var(--messenger) 55%,#191919);
  border-radius:8px;background:#191919;box-shadow:0 0 10px color-mix(in srgb,var(--messenger) 18%,transparent);
  font-size:13px;font-weight:700;transition:box-shadow .2s,border-color .2s;
}
#checkoutSuccessContacts svg {width:18px;height:18px;color:var(--messenger);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover) and (pointer:fine){
  #checkoutSuccessContacts a:hover {border-color:var(--messenger);box-shadow:0 0 15px color-mix(in srgb,var(--messenger) 30%,transparent)}
}
@media(max-width:500px){
  #checkoutSuccess .checkout-success-actions {width:100%;display:grid}
  #checkoutSuccess .checkout-success-mark {width:74px;height:74px}
  .checkout-success-mark svg {width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){
  #checkoutSuccess .checkout-success-mark {animation:none}
  .checkout-outline,#checkoutSuccessContacts a {transition:none}
}

.checkout-panel input::placeholder {color:#b0b0b0;opacity:1}
.checkout-panel input::selection {color:#111;background:#eee}
.checkout-options label::after {
  content:"";
  flex:none;
  width:18px;
  height:18px;
  margin-inline-start:auto;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7.5' stroke='%23929292' stroke-width='1.4'/%3E%3C/svg%3E");
}
.checkout-options label:has(:checked)::after {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='1.45'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3Cpath d='m6.5 10 2.3 2.3 4.7-4.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checkout-country {position:relative;flex:none;margin:0}
.checkout-country summary {
  display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:83px;min-height:42px;padding:8px 9px;list-style:none;
  background:#282828;color:#fff;border:1px solid #454545;border-radius:8px;
  font-weight:750;white-space:nowrap;cursor:pointer;transition:border-color .2s,box-shadow .2s;
}
.checkout-country summary::-webkit-details-marker {display:none}
.checkout-country:is([open]) summary,.checkout-country summary:focus-visible {
  outline:0;border-color:#fff;box-shadow:0 0 0 1px #fff,0 0 10px #ffffff26;
}
.checkout-country svg {display:block;flex:none;width:21px;height:14px;border-radius:2px}
.checkout-country-menu {
  position:absolute;left:0;top:calc(100% + 7px);z-index:8;
  width:min(280px,calc(100vw - 58px));max-height:260px;overflow-y:auto;
  border:1px solid #454545;border-radius:10px;background:#252525;
  box-shadow:0 12px 24px #0008;list-style:none;padding:5px;margin:0;
}
.checkout-country-menu button {
  display:flex;align-items:center;gap:7px;width:100%;min-height:36px;
  padding:7px 8px;border:0;border-radius:6px;background:none;color:#fff;
  text-align:left;font-size:13px;transition:background-color .2s;
}
.checkout-country-menu button strong {margin-inline-start:auto;white-space:nowrap;color:#ddd}
.checkout-country-menu button:is(:hover,[aria-pressed=true]) {background:#353535}
.checkout-country-menu button:focus-visible {outline:1px solid #fff;outline-offset:-1px;background:#353535}
@media(prefers-reduced-motion:reduce){
  .checkout-country summary,.checkout-country-menu button {transition:none}
}
