.sp-checkout [hidden] {
  display: none !important;
}

.sp-checkout__heading .sp-checkout__login--mobile {
  display: none;
}

.sp-checkout__sidebar {
  position: sticky;
  top: 152px;
  display: block;
  align-self: start;
  min-width: 0;
}

.sp-checkout__sidebar .sp-checkout__login {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  left: 0;
  margin: 0 4px;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 6px;
  color: rgba(55, 55, 55, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

.sp-checkout__login--guest a {
  display: inline-block;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
}

.sp-checkout__sidebar .sp-checkout__login--guest {
  isolation: isolate;
}

.sp-checkout__sidebar .sp-checkout__login--guest a {
  background: linear-gradient(100deg, var(--sp-wine) 0 38%, #d98689 50%, var(--sp-wine) 62% 100%);
  background-position: 100% 0;
  background-size: 260% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sp-checkout-login-link-reminder 5.6s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}

.sp-checkout__sidebar .sp-checkout__login--guest::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(155, 45, 48, 0.04) 37%,
    rgba(155, 45, 48, 0.16) 50%,
    rgba(155, 45, 48, 0.04) 63%,
    transparent 82%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-130%);
  animation: sp-checkout-login-reminder 5.6s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}

.sp-checkout__sidebar .sp-checkout__summary {
  position: static;
}

.sp-checkout__extras {
  align-items: start;
}

@keyframes sp-checkout-login-reminder {
  0% {
    transform: translateX(-130%);
  }

  22%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes sp-checkout-login-link-reminder {
  0% {
    background-position: 100% 0;
  }

  22%,
  100% {
    background-position: -100% 0;
  }
}

.sp-checkout__map {
  background: #e8e4de;
  background-image: none;
}

.sp-checkout__map-canvas {
  position: absolute;
  inset: 0;
}

.sp-checkout__map-label,
.sp-checkout__map > a {
  z-index: 2;
}

.sp-checkout__partner-logo,
.sp-checkout__partner-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 104px;
  height: 36px;
}

.sp-checkout__partner-logo img,
.sp-checkout__payment-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sp-checkout__partner-logo--cdek {
  width: 74px;
  height: 28px;
}

.sp-checkout__partner-logo--russian_post {
  width: 112px;
  height: 24px;
}

.sp-checkout__choice {
  position: relative;
}

.sp-checkout__choice:not(.is-disabled) {
  cursor: pointer;
}

.sp-checkout__choice.is-selected {
  border-color: #9b2d30;
  background: rgba(155, 45, 48, 0.045);
}

.sp-checkout__choice.is-selected .sp-checkout__radio {
  border-color: #9b2d30;
}

.sp-checkout__choice.is-selected .sp-checkout__radio::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #9b2d30;
  content: "";
}

.sp-checkout__choice.is-disabled,
.sp-checkout__payment.is-disabled {
  cursor: help;
}

.sp-checkout__choice.is-disabled > :not(.sp-checkout__availability) {
  opacity: 0.52;
}

.sp-checkout__choice.is-disabled .sp-checkout__partner-logo img {
  filter: grayscale(1);
}

.sp-checkout__manager-mark,
.sp-checkout__partner-text--manager {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  color: #9b2d30;
  font-size: 11px;
  font-weight: 700;
}

.sp-checkout__manager-mark svg,
.sp-checkout__partner-text--manager svg {
  width: 21px;
  height: 21px;
  fill: none;
}

.sp-checkout__floating-availability {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 11px;
  border-radius: 5px;
  background: #373737;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  visibility: hidden;
  transition: opacity 0.16s, transform 0.16s;
}

.sp-checkout__floating-availability.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.sp-checkout__delivery-address {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
}

.sp-checkout__delivery-address h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.35;
}

.sp-checkout__delivery-address > p {
  margin: 0 0 16px;
  color: rgba(55, 55, 55, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.sp-checkout__pending {
  color: #9b2d30;
  font-weight: 700;
}

.sp-checkout__partner-text--cash {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
}

.sp-checkout__payment-icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.sp-checkout__payment-logo {
  width: 94px;
  height: 34px;
}

.sp-checkout__payment-logo--sbp {
  width: 76px;
  height: 38px;
}

.sp-checkout__payment-logo--otp {
  width: 42px;
  height: 34px;
}

.sp-checkout__payment-logo--vsegda-da,
.sp-checkout__payment-logo--yandex-split {
  width: 98px;
}

@media (max-width: 767px) {
  .sp-checkout__heading .sp-checkout__login--mobile {
    display: block;
    font-size: 13px;
    line-height: 1.45;
  }

  .sp-checkout__sidebar {
    display: none;
  }

  .sp-checkout__partner-logo,
  .sp-checkout__partner-text,
  .sp-checkout__payment-logo {
    max-width: 76px;
    max-height: 30px;
  }

  .sp-checkout__partner-logo--cdek {
    max-width: 60px;
  }

  .sp-checkout__partner-logo--russian_post {
    max-width: 78px;
  }

  .sp-checkout__delivery-address {
    padding: 16px;
  }

  .sp-checkout__floating-availability {
    max-width: calc(100vw - 24px);
  }
}

@media (min-width: 768px) and (max-height: 900px) {
  .sp-checkout__sidebar {
    top: 144px;
  }

  .sp-checkout__sidebar .sp-checkout__login {
    bottom: calc(100% + 9px);
    font-size: 14px;
    line-height: 1.35;
  }

  .sp-checkout__summary {
    padding: 20px 22px;
  }

  .sp-checkout__summary-title {
    margin-bottom: 14px;
  }

  .sp-checkout__product {
    grid-template-columns: 70px 1fr;
    gap: 13px;
    padding-bottom: 14px;
  }

  .sp-checkout__product-image {
    width: 70px;
    height: 70px;
  }

  .sp-checkout__product-footer {
    margin-top: 10px;
  }

  .sp-checkout__totals {
    gap: 10px;
    padding: 14px 0;
  }

  .sp-checkout__grand-total {
    padding: 14px 0;
  }

  .sp-checkout__button {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-checkout__sidebar .sp-checkout__login--guest::before,
  .sp-checkout__sidebar .sp-checkout__login--guest a {
    animation: none;
  }

  .sp-checkout__floating-availability {
    transition: none;
  }
}
