.lp-store-floating-cart[hidden],
.lp-store-floating-cart.is-empty,
.lp-store-floating-cart-toast[hidden] {
  display: none !important;
}

.lp-store-floating-cart {
  position: fixed;
  z-index: 99990;
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  display: flex;
  width: min(920px, calc(100vw - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  padding: 11px 58px 11px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--gds-radius-card, 12px);
  background:
    radial-gradient(105% 180% at 8% -22%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.66) 34%, transparent 72%),
    radial-gradient(70% 150% at 100% 115%, rgba(185, 205, 228, 0.38) 0%, rgba(224, 232, 242, 0.16) 48%, transparent 78%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 249, 253, 0.48) 52%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-backdrop-filter: saturate(210%) blur(36px);
  backdrop-filter: saturate(210%) blur(36px);
  box-shadow: 0 18px 48px rgba(17, 19, 22, 0.18), 0 4px 14px rgba(17, 19, 22, 0.08), inset 0 1.5px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(255, 255, 255, 0.54), inset 1px 0 0 rgba(255, 255, 255, 0.42);
  color: var(--gds-color-text, #111316);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lp-store-cart-drawer-open .lp-store-floating-cart {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.lp-store-floating-cart__summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.lp-store-floating-cart__thumbnails {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-left: 1px;
}

.lp-store-floating-cart__thumbnail,
.lp-store-floating-cart__more {
  position: relative;
  display: grid;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--gds-color-surface, #fff);
  border-radius: var(--gds-radius-media, 8px);
  background: #f5f3f0;
}

.lp-store-floating-cart__thumbnail + .lp-store-floating-cart__thumbnail,
.lp-store-floating-cart__more {
  margin-left: -13px;
}

.lp-store-floating-cart__thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lp-store-floating-cart__more {
  background: #f2f1ef;
  color: var(--gds-color-text-muted, #60646c);
  font-size: 11px;
  font-weight: 700;
}

.lp-store-floating-cart__details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lp-store-floating-cart__count {
  overflow: hidden;
  color: var(--gds-color-text-muted, #60646c);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-store-floating-cart__subtotal {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  line-height: 1.2;
}

.lp-store-floating-cart__subtotal > span {
  color: var(--gds-color-text-muted, #60646c);
  font-size: 12px;
}

.lp-store-floating-cart__subtotal strong {
  color: var(--gds-color-text, #111316);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lp-store-floating-cart__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.lp-store-floating-cart__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--gds-radius-control, 8px);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lp-store-floating-cart__button:hover {
  transform: translateY(-1px);
}

.lp-store-floating-cart__button--secondary {
  border-color: rgba(17, 19, 22, 0.16);
  background: var(--gds-color-surface, #fff);
  color: var(--gds-color-text, #111316);
}

.lp-store-floating-cart__button--secondary:hover {
  border-color: rgba(17, 19, 22, 0.34);
  background: #f8f8f7;
  color: var(--gds-color-text, #111316);
}

.lp-store-floating-cart__button--primary {
  min-width: 190px;
  background: var(--gds-color-primary, #111316);
  color: var(--gds-color-on-primary, #fff);
}

.lp-store-floating-cart__button--primary:hover {
  background: #292b2e;
  color: #fff;
}

.lp-store-floating-cart__button--primary svg {
  width: 17px;
  height: 17px;
}

.lp-store-floating-cart__close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777b82;
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease, color 160ms ease;
}

.lp-store-floating-cart__close:hover,
.lp-store-floating-cart__close:focus-visible {
  background: #f2f1ef;
  color: var(--gds-color-text, #111316);
}

.lp-store-floating-cart__close:focus-visible,
.lp-store-floating-cart__whatsapp:focus-visible {
  outline: 3px solid rgba(17, 19, 22, 0.35);
  outline-offset: 3px;
}

.lp-store-floating-cart__close span {
  display: block;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.lp-store-floating-cart.is-empty {
  min-height: 112px;
  justify-content: flex-start;
  gap: 20px;
  padding-right: 58px;
}

.lp-store-floating-cart__empty {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.lp-store-floating-cart__empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f5f3f0;
  color: var(--gds-color-text, #111316);
}

.lp-store-floating-cart__empty-icon svg {
  width: 30px;
  height: 30px;
}

.lp-store-floating-cart__empty-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lp-store-floating-cart__empty-copy p,
.lp-store-floating-cart__empty-copy h2 {
  margin: 0;
}

.lp-store-floating-cart__empty-kicker {
  color: var(--gds-color-text-muted, #60646c);
  font-size: 12px;
  line-height: 1.2;
}

.lp-store-floating-cart__empty-copy h2 {
  color: var(--gds-color-text, #111316);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lp-store-floating-cart__empty-description {
  color: var(--gds-color-text-muted, #60646c);
  font-size: 13px;
  line-height: 1.3;
}

.lp-store-floating-cart__whatsapp {
  justify-self: end;
  min-width: 190px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.lp-store-floating-cart__whatsapp:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.lp-store-floating-cart-toast {
  position: fixed;
  z-index: 99991;
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  display: flex;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  min-height: 48px;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 9px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--gds-radius-control, 8px);
  background: var(--gds-color-primary, #111316);
  box-shadow: 0 8px 26px rgba(17, 19, 22, 0.2);
  color: var(--gds-color-on-primary, #fff);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  pointer-events: none;
}

.lp-store-floating-cart-toast__check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--gds-color-success, #00a650);
  color: #fff;
}

.lp-store-floating-cart-toast__check svg {
  width: 15px;
  height: 15px;
}

body.lp-store-has-floating-cart:not(.lp-store-cart-drawer-open) {
  padding-bottom: 112px;
}

body.lp-store-cart-empty:not(.lp-store-cart-drawer-open) {
  padding-bottom: 148px;
}

@media (max-width: 767px) {
  .lp-store-floating-cart {
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    display: grid;
    width: calc(100vw - 20px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 48px 10px 10px;
    border-radius: var(--gds-radius-card, 12px);
  }

  .lp-store-floating-cart__summary {
    gap: 9px;
  }

  .lp-store-floating-cart__thumbnail,
  .lp-store-floating-cart__more {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }

  .lp-store-floating-cart__thumbnail + .lp-store-floating-cart__thumbnail,
  .lp-store-floating-cart__more {
    margin-left: -11px;
  }

  .lp-store-floating-cart__count {
    font-size: 12px;
  }

  .lp-store-floating-cart__subtotal {
    gap: 6px;
  }

  .lp-store-floating-cart__subtotal strong {
    font-size: 15px;
  }

  .lp-store-floating-cart__actions {
    width: 100%;
    gap: 8px;
  }

  .lp-store-floating-cart__button {
    min-width: 0;
    min-height: 42px;
    flex: 1 1 50%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .lp-store-floating-cart__button--primary {
    min-width: 0;
  }

  .lp-store-floating-cart.is-empty {
    gap: 12px;
    padding: 14px 48px 12px 13px;
  }

  .lp-store-floating-cart__empty {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .lp-store-floating-cart__empty-icon {
    width: 40px;
    height: 40px;
  }

  .lp-store-floating-cart__empty-icon svg {
    width: 26px;
    height: 26px;
  }

  .lp-store-floating-cart__empty-copy h2 {
    font-size: 15px;
  }

  .lp-store-floating-cart__empty-description {
    font-size: 12px;
  }

  .lp-store-floating-cart__whatsapp {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .lp-store-floating-cart__close {
    top: 3px;
    right: 3px;
    width: 44px;
    height: 44px;
  }

  .lp-store-floating-cart-toast {
    bottom: calc(126px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 28px);
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
  }

  body.lp-store-has-floating-cart:not(.lp-store-cart-drawer-open) {
    padding-bottom: calc(142px + env(safe-area-inset-bottom, 0px));
  }

  body.lp-store-cart-empty:not(.lp-store-cart-drawer-open) {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-store-floating-cart,
  .lp-store-floating-cart__button {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lp-store-floating-cart {
    background: var(--gds-color-surface, #fff);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* Make each successful arrival visible even if the product image has no flight target. */
.lp-store-floating-cart.is-receiving-item {
  transform-origin: center center;
  animation: lp-store-cart-arrival 360ms cubic-bezier(.2, .9, .35, 1) both;
}

@keyframes lp-store-cart-arrival {
  0% {
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 10px 38px rgba(17, 19, 22, .18), 0 2px 8px rgba(17, 19, 22, .08);
  }
  16% {
    transform: translate(-50%, -12px) scale(1.06);
    box-shadow: 0 20px 48px rgba(17, 19, 22, .3), 0 0 0 5px rgba(17, 19, 22, .12);
  }
  38% {
    transform: translate(-50%, 3px) scale(.985);
    box-shadow: 0 7px 24px rgba(17, 19, 22, .18), 0 0 0 1px rgba(17, 19, 22, .04);
  }
  58% {
    transform: translate(-50%, -4px) scale(1.02);
    box-shadow: 0 14px 38px rgba(17, 19, 22, .22), 0 0 0 3px rgba(17, 19, 22, .07);
  }
  78% {
    transform: translate(-50%, 1px) scale(.995);
    box-shadow: 0 9px 32px rgba(17, 19, 22, .18), 0 0 0 1px rgba(17, 19, 22, .03);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 10px 38px rgba(17, 19, 22, .18), 0 2px 8px rgba(17, 19, 22, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-store-floating-cart.is-receiving-item {
    animation: none !important;
  }
}

/* Acción principal de la tienda: violeta, radio 12, 44 px o más (2026-11-06). */
.lp-store-floating-cart__button {
  border-radius: 12px;
}

.lp-store-floating-cart__button--primary {
  background: #0b0c10;
  color: #fff;
}

.lp-store-floating-cart__button--primary:hover {
  background: #000000;
  color: #fff;
}

@media (max-width: 767px) {
  .lp-store-floating-cart__button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .lp-store-floating-cart__button--secondary {
    flex: 0 0 auto;
  }

  .lp-store-floating-cart__button--primary {
    flex: 1 1 auto;
  }
}
