/* Шторка «Вариант покупки». Стили макета figma/add-to-cart, только внутри #atc_fuzz. */
#atc_fuzz {
  --atc-text: #09034b;
  --atc-muted: #72798c;
  --atc-white: #fff;
  --atc-brand: #ed1d51;
  --atc-dark: #09034b;
  --atc-page: #f5f6fa;
  --atc-line: #d9e1e7;
  --atc-chip: #d9e1e7;
  --atc-success: #059669;
  --atc-yellow: #ffd632;
  --atc-orange: #ff6002;
  --atc-thumb: #c5ccd2;
  font-family: "TT Prosto Sans", "Prosto", sans-serif;
}

#atc_fuzz.fuzz.slideup .popup {
  height: auto;
  max-height: 100%;
  bottom: -100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#atc_fuzz.fuzz.slideup .popup.active {
  bottom: 0;
}

/* Android app: system buttons. iPhone app and the mobile site keep the sheet at the screen edge. */
body.app_android #atc_fuzz.fuzz.slideup .popup.active {
  bottom: 65px;
}

#atc_fuzz .atc-grab {
  position: absolute;
  top: 0;
  left: 0;
  right: 48px;
  z-index: 3;
  height: 28px;
  padding: 0;
  background: transparent;
}

#atc_fuzz .sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--atc-page);
  border-radius: 24px 24px 0 0;
  padding: 32px 20px 20px;
  height: auto;
  min-height: 0;
  max-height: 100vh;
  max-height: 100dvh;
}

#atc_fuzz .sheet__handle {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 62px;
  height: 4px;
  margin-left: -31px;
  background: var(--atc-muted);
  border-radius: 2px;
  pointer-events: none;
}

#atc_fuzz .sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

#atc_fuzz .sheet__close img {
  display: block;
  width: 20px;
  height: 20px;
}

#atc_fuzz .sheet__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#atc_fuzz .sheet__title {
  margin: 0;
  color: var(--atc-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

#atc_fuzz .sheet__content--atc {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

#atc_fuzz .sheet-product {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  min-height: 156px;
  padding: 20px;
  border-radius: 16px;
  background: var(--atc-white);
  box-sizing: border-box;
}

#atc_fuzz .cart-item__thumb {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 76px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--atc-thumb);
}

#atc_fuzz .cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#atc_fuzz .sheet-product__info {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: flex-start;
}

#atc_fuzz .badge-package {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 4px;
  border-radius: 8px;
  background: #ecf1f5;
  color: var(--atc-text);
}

#atc_fuzz .badge-package img {
  display: block;
  width: 16px;
  height: 16px;
}

#atc_fuzz .badge-package__text {
  padding: 3px 0 1px;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
}

#atc_fuzz .cart-item__name {
  margin: 0;
  width: 100%;
  color: var(--atc-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

#atc_fuzz .cart-item__statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  width: 100%;
}

#atc_fuzz .status-item {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

#atc_fuzz .status-item img {
  display: block;
  width: 16px;
  height: 16px;
}

#atc_fuzz .status-item__text {
  color: var(--atc-text);
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
}

#atc_fuzz .status-item--location .status-item__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

#atc_fuzz .age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid #09034b;
  border-radius: 10px;
  font-size: 10px;
  line-height: 12px;
}

#atc_fuzz .cart-chips__header {
  margin: 0;
  padding: 16px 0 0;
  color: var(--atc-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

#atc_fuzz .cart-chips__sub {
  margin: 0;
  padding: 4px 0 0;
  color: var(--atc-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

#atc_fuzz .cart-chips__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

#atc_fuzz button.cart-chip {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  min-width: 0;
  height: 80px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

#atc_fuzz .cart-chip__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  height: 80px;
  padding: 8px 12px 4px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--atc-line);
  border-radius: 16px;
  background: var(--atc-white);
  color: var(--atc-text);
}

#atc_fuzz .cart-chip--selected .cart-chip__tab {
  border-color: var(--atc-dark);
  background: var(--atc-dark);
  color: var(--atc-white);
}

#atc_fuzz .cart-chip__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  white-space: nowrap;
}

#atc_fuzz .cart-chip__price {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

#atc_fuzz .cart-chip__delivery {
  max-width: 100%;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
}

#atc_fuzz .cart-chip__delivery--muted { color: var(--atc-muted); }
#atc_fuzz .cart-chip__delivery--success { color: var(--atc-success); }
#atc_fuzz .cart-chip--selected .cart-chip__delivery { color: var(--atc-white); }

#atc_fuzz .badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
}

#atc_fuzz .badge-promo span {
  position: relative;
  top: 1px;
}

#atc_fuzz .badge-promo img {
  display: block;
  width: 12px;
  height: 12px;
}

#atc_fuzz .badge-promo--profit {
  background: var(--atc-yellow);
  color: var(--atc-text);
}

#atc_fuzz .badge-promo--hit {
  background: var(--atc-orange);
  color: var(--atc-white);
}

#atc_fuzz .cart-counter {
  position: absolute;
  top: -4px;
  right: -2px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 10px;
  background: var(--atc-brand);
}

#atc_fuzz .cart-counter__num {
  color: #fff;
  font-family: "TT Prosto Sans", "Prosto", sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 8px;
}

#atc_fuzz .sheet-price-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  background: var(--atc-page);
}

#atc_fuzz .sheet-price-bar__price {
  flex: 1 0 0;
  margin: 0;
  color: var(--atc-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

#atc_fuzz .btn-big {
  display: flex;
  flex: 0 0 176px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 176px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: var(--atc-brand);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#atc_fuzz .btn-big:disabled {
  opacity: 0.7;
}

#atc_fuzz .btn-big img {
  display: block;
  width: 20px;
  height: 20px;
}

#atc_fuzz .btn-big__text {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

/* Вьюпорт width=480: макет 393, масштаб 480/393. Панель визуально от края до края. */
#atc_fuzz.atc-wide {
  overflow: hidden;
}

#atc_fuzz.atc-wide .popup {
  left: 0;
  width: 100%;
  overflow: visible;
}

#atc_fuzz.atc-wide .sheet {
  width: calc(100% * 393 / 480);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  -webkit-transform: scale(1.2213740458);
  transform: scale(1.2213740458);
  -webkit-transform-origin: bottom center;
  transform-origin: bottom center;
}
