body.mqf-cart-open {
  overflow: hidden;
}

.mqf-cart-layer {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  justify-items: end;
}

.mqf-cart-layer[hidden] {
  display: none;
}

.mqf-cart-layer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(17, 19, 22, 0.42);
  border: 0;
  cursor: default;
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity 240ms ease-out;
}

.mqf-cart-drawer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(460px, 100vw);
  height: 100dvh;
  color: #17191c;
  background: #ffffff;
  border: 0;
  outline: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mqf-cart-layer.is-open .mqf-cart-layer__backdrop {
  opacity: 1;
}

.mqf-cart-layer.is-open .mqf-cart-drawer {
  transform: translate3d(0, 0, 0);
}

.mqf-cart-drawer__header {
  display: flex;
  min-height: 92px;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e5e8;
}

.mqf-cart-drawer__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.mqf-cart-drawer__heading-icon,
.mqf-cart-empty__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #e20917;
  background: #f4f6f7;
  border-radius: 50%;
}

.mqf-cart-drawer__heading-icon {
  width: 42px;
  height: 42px;
}

.mqf-cart-drawer__heading-icon svg,
.mqf-cart-empty__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mqf-cart-drawer__heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0;
}

.mqf-cart-drawer__heading p {
  margin: 5px 0 0;
  color: #626970;
  font-size: 13px;
  font-weight: 470;
  line-height: 1.3;
  letter-spacing: 0;
}

.mqf-cart-drawer__close,
.mqf-cart-item__remove,
.mqf-cart-item__quantity button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #30343a;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mqf-cart-drawer__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: color 160ms ease, background-color 160ms ease;
}

.mqf-cart-drawer__close:hover,
.mqf-cart-item__remove:hover {
  color: #e20917;
  background: #f4f6f7;
}

.mqf-cart-drawer__close svg,
.mqf-cart-item__remove svg,
.mqf-cart-item__quantity svg,
.mqf-cart-drawer__quote svg,
.mqf-cart-empty a svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mqf-cart-drawer__content {
  min-height: 0;
  padding: 8px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9ced3 transparent;
}

.mqf-cart-drawer__warning {
  margin: 0;
  padding: 10px 24px;
  color: #5c4a15;
  background: #fff7d9;
  border-bottom: 1px solid #eadcaa;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.mqf-cart-drawer__warning[hidden] {
  display: none;
}

.mqf-cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #e2e5e8;
}

.mqf-cart-item__image-link {
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa1a8;
  background: #f4f6f7;
  border: 1px solid #e2e5e8;
  border-radius: 6px;
  text-decoration: none;
}

.mqf-cart-item__image-link.has-image-error::before {
  content: "Imagen no disponible";
  max-width: 7ch;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.mqf-cart-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mqf-cart-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mqf-cart-item__topline {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mqf-cart-item__topline > div {
  min-width: 0;
  flex: 1 1 auto;
}

.mqf-cart-item__sku {
  margin: 0 0 5px;
  color: #7d858d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mqf-cart-item h3 {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: 0;
}

.mqf-cart-item h3 a {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-decoration: none;
}

.mqf-cart-item h3 a:hover {
  color: #e20917;
}

.mqf-cart-item__remove {
  width: 34px;
  height: 34px;
  margin-top: -7px;
  margin-right: -7px;
  border-radius: 50%;
  transition: color 160ms ease, background-color 160ms ease;
}

.mqf-cart-item__remove svg {
  width: 17px;
  height: 17px;
}

.mqf-cart-item__quantity {
  display: grid;
  grid-template-columns: 34px 42px 34px;
  width: max-content;
  height: 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7dce0;
  border-radius: 5px;
}

.mqf-cart-item__quantity button {
  width: 34px;
  height: 32px;
  transition: color 150ms ease, background-color 150ms ease;
}

.mqf-cart-item__quantity button:hover:not(:disabled) {
  color: #e20917;
  background: #f4f6f7;
}

.mqf-cart-item__quantity button:disabled {
  color: #b8bec4;
  cursor: not-allowed;
}

.mqf-cart-item__quantity svg {
  width: 15px;
  height: 15px;
}

.mqf-cart-item__quantity output {
  display: flex;
  width: 42px;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid #e2e5e8;
  border-left: 1px solid #e2e5e8;
}

.mqf-cart-drawer__footer {
  padding: 20px 24px 24px;
  background: #f4f6f7;
  border-top: 1px solid #e2e5e8;
}

.mqf-cart-drawer__footer[hidden] {
  display: none;
}

.mqf-cart-drawer__footer p {
  margin: 0 0 14px;
  color: #626970;
  font-size: 13px;
  font-weight: 470;
  line-height: 1.45;
  letter-spacing: 0;
}

.mqf-cart-drawer__quote {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: #e20917;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.mqf-cart-drawer__quote:hover {
  background: #bd0712;
}

.mqf-cart-drawer__quote svg,
.mqf-cart-empty a svg {
  flex: 0 0 auto;
}

.mqf-cart-empty {
  display: flex;
  min-height: 100%;
  padding: 56px 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.mqf-cart-empty__icon {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
}

.mqf-cart-empty__icon svg {
  width: 30px;
  height: 30px;
}

.mqf-cart-empty h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.mqf-cart-empty p {
  max-width: 31ch;
  margin: 10px 0 22px;
  color: #626970;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
}

.mqf-cart-empty a {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  color: #17191c;
  background: #ffffff;
  border: 1px solid #cfd5da;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.mqf-cart-empty a:hover {
  color: #e20917;
  border-color: #e20917;
}

.mqf-cart-drawer button:focus-visible,
.mqf-cart-drawer a:focus-visible {
  outline: 3px solid rgba(226, 9, 23, 0.38);
  outline-offset: 3px;
}

[data-mqf-action="add-to-cart"][data-mqf-limit-reached="true"] {
  opacity: 0.62;
  cursor: not-allowed;
}

.mqf-commerce-toast {
  position: fixed;
  z-index: 2300;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #ffffff;
  background: #30343a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(17, 19, 22, 0.18);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mqf-commerce-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mqf-commerce-toast[data-tone="error"] {
  background: #9f1019;
}

@media (max-width: 520px) {
  .mqf-cart-drawer {
    width: 100vw;
  }

  .mqf-cart-drawer__header {
    min-height: 82px;
    padding: 18px 18px;
  }

  .mqf-cart-drawer__heading-icon {
    width: 38px;
    height: 38px;
  }

  .mqf-cart-drawer__heading h2 {
    font-size: 20px;
  }

  .mqf-cart-drawer__content {
    padding: 4px 18px 20px;
  }

  .mqf-cart-drawer__warning {
    padding-inline: 18px;
  }

  .mqf-cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 0;
  }

  .mqf-cart-item__image-link {
    width: 80px;
    height: 80px;
  }

  .mqf-cart-item h3 {
    font-size: 15px;
  }

  .mqf-cart-drawer__footer {
    padding: 17px 18px calc(18px + env(safe-area-inset-bottom));
  }


  .mqf-commerce-toast {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mqf-cart-layer__backdrop,
  .mqf-cart-drawer,
  .mqf-cart-drawer__close,
  .mqf-cart-item__remove,
  .mqf-cart-item__quantity button,
  .mqf-cart-drawer__quote,
  .mqf-cart-empty a {
    transition: none;
  }


  .mqf-commerce-toast {
    transition: none;
  }
}
