.shop-cart-open {
  overflow: hidden;
}

.shop-cart-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20010;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: #fff;
  background: #18211d;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(18, 31, 24, .28);
  cursor: pointer;
  font: 800 13px/1 Manrope, Arial, sans-serif;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.shop-cart-toggle.has-items {
  background: linear-gradient(135deg, #55bd47, #3ca532);
}

.shop-cart-toggle.is-content-safe-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.86);
}

.shop-cart-toggle__icon {
  font-size: 20px;
}

.shop-cart-toggle__count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: #17201b;
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
}

.shop-cart-toggle:not(.has-items) .shop-cart-toggle__count {
  display: none;
}

.site-scroll-top {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20010;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(24, 33, 29, .9);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(18, 31, 24, .2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
  font: 900 22px/1 Manrope, Arial, sans-serif;
}

.site-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-scroll-top:hover,
.site-scroll-top:focus-visible {
  background: #3fa933;
  transform: translateY(-2px) scale(1.04);
}

.shop-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20020;
  background: rgba(10, 18, 13, .54);
  backdrop-filter: blur(3px);
}

.shop-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20030;
  width: min(100%, 480px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #18211d;
  background: #fff;
  box-shadow: -24px 0 70px rgba(14, 25, 18, .24);
  transform: translateX(105%);
  transition: transform .24s ease;
  font-family: Manrope, Arial, sans-serif;
}

.shop-cart-panel.is-open {
  transform: translateX(0);
}

.shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e7ece9;
}

.shop-cart-header span {
  color: #3fa933;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shop-cart-header h2 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.shop-cart-header button {
  width: 42px;
  height: 42px;
  color: #18211d;
  background: #f2f6f3;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-size: 27px;
}

.shop-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}

.shop-cart-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 34px 4px;
}

.shop-cart-empty strong {
  font-size: 20px;
}

.shop-cart-empty p {
  margin: 0;
  color: #69766f;
  font-size: 13px;
}

.shop-cart-empty a {
  padding: 11px 15px;
  color: #2f8c27;
  background: #eff9ed;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
}

.shop-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  padding: 13px 30px 13px 0;
  border-bottom: 1px solid #edf0ee;
}

.shop-cart-item__image {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0ee;
  border-radius: 14px;
}

.shop-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-cart-item__body {
  min-width: 0;
}

.shop-cart-item__body a {
  color: #18211d;
}

.shop-cart-item__body strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-cart-item__body small {
  display: block;
  margin-top: 5px;
  color: #718079;
  font-size: 11px;
}

.shop-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.shop-cart-item__bottom b {
  font-size: 14px;
}

.shop-cart-qty {
  display: inline-grid;
  grid-template-columns: 28px 28px 28px;
  align-items: center;
  overflow: hidden;
  background: #f2f6f3;
  border-radius: 10px;
  text-align: center;
}

.shop-cart-qty button {
  height: 30px;
  color: #258b1d;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}

.shop-cart-qty span {
  font-size: 12px;
  font-weight: 800;
}

.shop-cart-remove {
  position: absolute;
  top: 11px;
  right: 0;
  width: 27px;
  height: 27px;
  color: #89958f;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 20px;
}

.shop-cart-summary {
  padding: 17px 24px 13px;
  background: #f7faf8;
  border-top: 1px solid #e7ece9;
}

.shop-cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-cart-summary strong {
  font-size: 22px;
}

.shop-cart-summary p {
  margin: 7px 0 0;
  color: #6c7972;
  font-size: 10px;
  line-height: 1.45;
}

.shop-cart-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 15px 24px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid #e7ece9;
}

.shop-cart-form label {
  display: grid;
  gap: 5px;
}

.shop-cart-form label:nth-of-type(3),
.shop-cart-submit,
.shop-cart-consent {
  grid-column: 1 / -1;
}

.shop-cart-form label > span {
  color: #58655e;
  font-size: 10px;
  font-weight: 800;
}

.shop-cart-form input[type="text"],
.shop-cart-form input[type="tel"],
.shop-cart-form textarea:not([hidden]) {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  color: #18211d;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 10px;
  outline: 0;
  font: 500 12px/1.35 Manrope, Arial, sans-serif;
}

.shop-cart-form input:focus,
.shop-cart-form textarea:focus {
  border-color: #47ab38;
  box-shadow: 0 0 0 3px rgba(71, 171, 56, .12);
}

.shop-cart-submit {
  min-height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #55bd47, #3ca532);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font: 900 13px/1 Manrope, Arial, sans-serif;
}

.shop-cart-submit:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.shop-cart-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.shop-cart-consent > span {
  font-size: 9px !important;
  line-height: 1.45;
}

.shop-cart-consent a {
  color: #2d8f24;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .shop-cart-toggle {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 50%;
  }

  .shop-cart-toggle__label {
    display: none;
  }

  .shop-cart-toggle__count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid #48ad3b;
  }

  .site-scroll-top {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  .shop-cart-header,
  .shop-cart-items,
  .shop-cart-summary,
  .shop-cart-form {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shop-cart-form {
    grid-template-columns: 1fr;
  }

  .shop-cart-form label,
  .shop-cart-submit,
  .shop-cart-consent {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cart-panel,
  .shop-cart-toggle,
  .site-scroll-top {
    transition: none;
  }
}
