.beautys-cart-drawer {
  --drawer-text: #242124;
  --drawer-muted: #6f686b;
  --drawer-accent: #c34f67;
  --drawer-accent-soft: #f4eaeb;
  --drawer-line: #ead9de;
  position: fixed;
  inset: 0;
  z-index: 10100;
  visibility: hidden;
}

.beautys-cart-drawer.is-open { visibility: visible; }
.beautys-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .22s ease;
}
.beautys-cart-drawer.is-open .beautys-cart-drawer__overlay { opacity: 1; }
.beautys-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(380px, 92vw);
  height: 100%;
  color: var(--drawer-text);
  font-family: "Josefin Sans", sans-serif;
  background: #fff;
  box-shadow: -8px 0 22px rgba(0, 0, 0, .08);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.beautys-cart-drawer.is-open .beautys-cart-drawer__panel { transform: translateX(0); }
.beautys-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 8px 0 18px;
  background: var(--drawer-accent-soft);
  border-bottom: 1px solid var(--drawer-line);
}
.beautys-cart-drawer__header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}
.beautys-cart-drawer__title-mobile { display: none; }
.beautys-cart-drawer__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  color: var(--drawer-text);
  font-size: 0;
  font-weight: 300;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.beautys-cart-drawer__close::before,
.beautys-cart-drawer__close::after {
  position: absolute;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}
.beautys-cart-drawer__close::before { transform: rotate(45deg); }
.beautys-cart-drawer__close::after { transform: rotate(-45deg); }
.beautys-cart-drawer__close:hover,
.beautys-cart-drawer__close:focus-visible { color: var(--drawer-accent); }
.beautys-cart-drawer__empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  text-align: center;
}
.beautys-cart-drawer__empty p { max-width: 300px; margin: 0; color: var(--drawer-muted); line-height: 1.5; }
.beautys-cart-drawer__shopping {
  padding: 12px 22px;
  color: #fff;
  background: var(--drawer-accent);
  border-radius: 22px;
}
.beautys-cart-drawer__inner { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.beautys-cart-drawer__shipping { padding: 13px 20px 7px; }
.beautys-cart-drawer__shipping-track { position: relative; height: 28px; margin: 0 12px 4px; }
.beautys-cart-drawer__shipping-track::before,
.beautys-cart-drawer__shipping-track::after {
  position: absolute;
  top: 50%;
  left: 0;
  height: 5px;
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}
.beautys-cart-drawer__shipping-track::before { right: 0; background: #f1e7ea; }
.beautys-cart-drawer__shipping-track::after { width: var(--shipping-progress, 0%); background: var(--drawer-accent); }
.beautys-cart-drawer__shipping-track > span {
  position: absolute;
  top: 50%;
  left: max(22px, min(var(--shipping-progress, 0%), calc(100% - 22px)));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.beautys-cart-drawer__shipping-track img { display: block; width: 36px; height: 23px; }
.beautys-cart-drawer__shipping-message { color: var(--drawer-muted); font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; }
.beautys-cart-drawer__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  padding: 12px 20px;
  color: #777;
  border-bottom: 1px solid var(--drawer-line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.beautys-cart-drawer__heading span:last-child { justify-self: end; }
.beautys-cart-drawer__products { flex: 1; min-height: 0; padding: 0 16px; overflow-y: auto; }
.beautys-cart-drawer__product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) max-content;
  column-gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--drawer-line);
}
.beautys-cart-drawer__product-image { grid-column: 1; grid-row: 1; width: 100%; }
.beautys-cart-drawer__product-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.beautys-cart-drawer__product-info { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; min-width: 0; }
.beautys-cart-drawer__product-name { color: var(--drawer-text); font-size: 16px; font-weight: 500; line-height: 1.3; }
.beautys-cart-drawer__product-attrs { order: 2; margin-top: 2px; color: var(--drawer-muted); line-height: 1.35; }
.beautys-cart-drawer__product-unit { order: 3; margin-top: 8px; color: var(--drawer-muted); font-size: 13px; line-height: 1.3; }
.beautys-cart-drawer__product-unit span { color: #8f8589; }
.beautys-cart-drawer__product-price { grid-column: 3; grid-row: 1; padding-left: 6px; color: var(--drawer-text); font-size: 16px; font-weight: 700; line-height: 1.3; text-align: right; white-space: nowrap; }
.beautys-cart-drawer__product-actions { display: flex; grid-column: 2 / 4; grid-row: 2; align-items: center; gap: 12px; margin-top: 13px; }
.beautys-cart-drawer__qty { display: inline-grid; grid-template-columns: 38px 42px 38px; width: 118px; height: 42px; overflow: hidden; border: 1px solid #d9cdd1; border-radius: 21px; }
.beautys-cart-drawer__qty button,
.beautys-cart-drawer__qty span { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 100%; padding: 0; color: #222; font: inherit; line-height: 1; background: transparent; border: 0; }
.beautys-cart-drawer__qty button { font-size: 18px; cursor: pointer; }
.beautys-cart-drawer__qty button:hover:not(:disabled), .beautys-cart-drawer__qty button:focus-visible:not(:disabled) { color: #fff; background: var(--drawer-accent); }
.beautys-cart-drawer__qty button:disabled { cursor: not-allowed; opacity: .35; }
.beautys-cart-drawer__remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--drawer-muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.beautys-cart-drawer__remove:hover, .beautys-cart-drawer__remove:focus-visible { color: var(--drawer-accent); }
.beautys-cart-drawer__remove svg { width: 20px; height: 20px; }
.beautys-cart-drawer__footer { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--drawer-line); }
.beautys-cart-drawer__summary { display: grid; grid-template-columns: minmax(0, 1fr) max-content; row-gap: 9px; padding: 16px 18px 0; line-height: 1.2; }
.beautys-cart-drawer__summary strong { font-weight: 700; }
.beautys-cart-drawer__summary-value { text-align: right; }
.beautys-cart-drawer__promo { padding: 14px 18px 13px; text-align: center; }
.beautys-cart-drawer__promo-toggle { padding: 0; color: var(--drawer-text); font: inherit; background: transparent; border: 0; cursor: pointer; }
.beautys-cart-drawer__promo-toggle:hover, .beautys-cart-drawer__promo-toggle:focus-visible { color: var(--drawer-accent); }
.beautys-cart-drawer__promo-form { display: flex; gap: 8px; margin-top: 12px; text-align: left; }
.beautys-cart-drawer__promo-form input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--drawer-line); }
.beautys-cart-drawer__promo-form input:focus,
.beautys-cart-drawer__promo-form input:focus-visible {
  border-color: var(--drawer-accent);
  outline: 0;
  box-shadow: 0 0 0 2px rgb(195 79 103 / 14%);
}
.beautys-cart-drawer__promo-form button { padding: 0 16px; color: #fff; background: var(--drawer-accent); border: 0; cursor: pointer; }
.beautys-cart-drawer__promo-error { margin: 8px 0 0; color: #c0392b; font-size: 13px; }
.beautys-cart-drawer__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 16px 18px 18px; border-top: 1px solid var(--drawer-line); }
.beautys-cart-drawer__buttons a { display: flex; align-items: center; justify-content: center; height: 46px; color: #fff; border-radius: 24px; }
.beautys-cart-drawer__view { background: var(--drawer-accent); }
.beautys-cart-drawer__checkout { background: var(--drawer-accent); }
.beautys-cart-drawer__buttons a:hover, .beautys-cart-drawer__buttons a:focus-visible { color: #fff; opacity: .82; }
.beautys-cart-drawer .is-hidden { display: none !important; }
body.beautys-cart-drawer-open #blockcart-modal,
body.beautys-cart-drawer-open > .modal-backdrop { display: none !important; }

@media (max-width: 767px) {
  .beautys-cart-drawer__panel { width: min(380px, 92vw); }
  .beautys-cart-drawer__title-desktop { display: none; }
  .beautys-cart-drawer__title-mobile { display: inline; }
  .beautys-cart-drawer__heading { display: none; }
  .beautys-cart-drawer__products { padding-left: 14px; padding-right: 14px; }
  .beautys-cart-drawer__product { grid-template-columns: 88px minmax(0, 1fr) max-content; column-gap: 10px; }
  .beautys-cart-drawer__product-price { padding-left: 6px; font-size: 16px; }
  .beautys-cart-drawer__buttons { grid-template-columns: 1fr; gap: 7px; padding-top: 14px; }
  .beautys-cart-drawer__checkout { order: 1; }
  .beautys-cart-drawer__view { order: 2; height: 36px !important; color: var(--drawer-accent) !important; background: transparent; }
  .beautys-cart-drawer__buttons a:hover,
  .beautys-cart-drawer__buttons a:focus-visible { color: #fff; }
  .beautys-cart-drawer__view:hover,
  .beautys-cart-drawer__view:focus-visible { color: #a83f55 !important; background: var(--drawer-accent-soft); }
}
@media (max-width: 360px) {
  .beautys-cart-drawer__product { grid-template-columns: 76px minmax(0, 1fr) max-content; }
  .beautys-cart-drawer__product-actions { gap: 10px; }
  .beautys-cart-drawer__qty { grid-template-columns: 34px 38px 34px; width: 106px; height: 40px; }
  .beautys-cart-drawer__remove { width: 40px; height: 40px; }
}
