#blockcart-modal.mf-cart-confirmation {
  margin: 0;
}

.mf-cart-dialog {
  --bs-modal-width: 32rem;
}

#blockcart-modal .mf-cart-card {
  --mf-cart-muted: #665865;
  border: 1px solid #e4d5c1;
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at 4% -6%, #f3dfb998, transparent 58%),
    radial-gradient(ellipse at 108% 5%, #e8dcec96, transparent 61%), #fffdfa;
  box-shadow: 0 24px 68px #251a2d45;
  color: #443047;
}

#blockcart-modal .mf-cart-card__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.15rem .45rem;
  border: 0;
}

.mf-cart-card__title {
  min-width: 0;
  font-size: clamp(1.06rem, 4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
}

.mf-cart-card__check {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  justify-self: center;
  place-items: center;
  border: 1px solid #c6e4d0;
  border-radius: 50%;
  background: #eaf6ee;
  color: #217446;
  font-size: 1.35rem;
}

#blockcart-modal .mf-cart-card__close {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  opacity: .7;
}

#blockcart-modal .mf-cart-card__close:hover {
  background-color: #ffffff8c;
  opacity: 1;
}

#blockcart-modal .mf-cart-card__body {
  padding: .45rem 1.15rem .35rem;
}

.mf-cart-card__product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  padding: .6rem;
  border: 1px solid #eadfce;
  border-radius: 1rem;
  background: #fff;
}

.mf-cart-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: .7rem;
  background: #fff;
  object-fit: contain;
}

.mf-cart-card__name {
  margin: 0 0 .32rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mf-cart-card__product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .65rem;
}

.mf-cart-card__product-price span,
.mf-cart-card__attribute,
.mf-cart-card__count {
  color: var(--mf-cart-muted);
  font-size: .82rem;
}

.mf-cart-card__attribute {
  margin: .18rem 0 0;
  overflow-wrap: anywhere;
}

.mf-cart-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .62rem;
  padding: .52rem .75rem;
  border: 1px solid #eadfce;
  border-radius: .8rem;
  background: #fff;
}

.mf-cart-card__total-label,
.mf-cart-card__count {
  margin: 0;
  line-height: 1.28;
}

.mf-cart-card__total-label {
  font-size: .95rem;
  font-weight: 650;
}

.mf-cart-card__total {
  flex: none;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#blockcart-modal .mf-cart-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .55rem 1.15rem 1.05rem;
  border: 0;
}

#blockcart-modal .mf-cart-card__actions > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: .45rem .7rem;
  border-radius: .7rem;
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
}

#blockcart-modal .cart-footer-actions > a.btn-primary,
#blockcart-modal .mf-cart-card__primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #22395c;
  --bs-btn-border-color: #22395c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1a2f4d;
  --bs-btn-hover-border-color: #1a2f4d;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #14263f;
  --bs-btn-active-border-color: #14263f;
}

#blockcart-modal .mf-cart-card__secondary {
  --bs-btn-color: #513652;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #d8c6cd;
  --bs-btn-hover-color: #513652;
  --bs-btn-hover-bg: #f5edf2;
  --bs-btn-hover-border-color: #c6aebd;
  --bs-btn-active-color: #513652;
  --bs-btn-active-bg: #ede0e9;
  --bs-btn-active-border-color: #c6aebd;
}

#blockcart-modal :is(.mf-cart-card__actions > .btn, .mf-cart-card__close):focus-visible {
  outline: 2px solid #89612f;
  outline-offset: 2px;
  box-shadow: none;
}

body:has(#blockcart-modal.mf-cart-confirmation.show) :is(#gkpopup-teaser, #avis-widget) {
  visibility: hidden;
}

@media (max-width: 575.98px) {
  .mf-cart-dialog {
    --bs-modal-margin: .75rem;
  }

  #blockcart-modal .mf-cart-card__actions {
    grid-template-columns: 1fr;
    padding-bottom: calc(.8rem + env(safe-area-inset-bottom, 0px));
  }

  .mf-cart-card__product {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .65rem;
  }
}

:is(#_desktop_cart, #_mobile_cart) .header-block__action-btn:has(> .mf-cart-sparkles) {
  position: relative;
  overflow: visible;
}

.mf-cart-sparkles {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: .25rem;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.mf-cart-sparkles > span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  background: #be985b;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: mf-cart-sparkle 1.2s ease-out both, mf-cart-twinkle 1.2s ease-in-out both;
}

.mf-cart-sparkles > :first-child {
  --spark-x: -19px;
  --spark-y: -20px;
}

.mf-cart-sparkles > :nth-child(2) {
  --spark-x: 13px;
  --spark-y: -19px;
  width: 11px;
  height: 11px;
  background: #d9ba81;
  animation-delay: .12s;
}

.mf-cart-sparkles > :nth-child(3) {
  --spark-x: 9px;
  --spark-y: 12px;
  width: 10px;
  height: 10px;
  animation-delay: .22s;
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles {
  filter: drop-shadow(0 0 2px #c3a16370);
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles > :first-child {
  --spark-x: -29px;
  --spark-y: -24px;
  width: 16px;
  height: 16px;
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles > :nth-child(2) {
  --spark-x: 17px;
  --spark-y: -23px;
  width: 12px;
  height: 12px;
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles > :nth-child(3) {
  --spark-x: 14px;
  --spark-y: 21px;
  width: 11px;
  height: 11px;
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles > :nth-child(4) {
  --spark-x: -23px;
  --spark-y: 18px;
  animation-delay: .17s;
}

:is(#_desktop_cart, #_mobile_cart) .mf-cart-sparkles > :nth-child(5) {
  --spark-x: -4px;
  --spark-y: -32px;
  width: 10px;
  height: 10px;
  background: #d9ba81;
  animation-delay: .29s;
}

.blockcart-modal .modal-content > .mf-cart-sparkles {
  z-index: 2;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  transform: none;
}

.blockcart-modal .modal-content > .mf-cart-sparkles::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top left, #f3cb7426, transparent 30%),
    radial-gradient(ellipse at bottom right, #f3cb741c, transparent 26%);
  box-shadow: inset 0 0 0 1px #d7bb8b, inset 0 0 12px #deb36960;
  animation: mf-cart-glow 1.65s ease-out both;
  content: '';
}

.blockcart-modal .mf-cart-sparkles > span {
  width: 14px;
  height: 14px;
  background: none;
  clip-path: none;
  animation: mf-cart-shooting-star 1.25s ease-out both;
}

.blockcart-modal .mf-cart-sparkles > span::before,
.blockcart-modal .mf-cart-sparkles > span::after {
  position: absolute;
  content: '';
}

.blockcart-modal .mf-cart-sparkles > span::before {
  inset-block-start: 50%;
  inset-inline-end: 48%;
  width: 170%;
  height: 2px;
  border-radius: 50px;
  background: linear-gradient(to right, #e6bd7800, #ddb36a83 65%, #c79651cc);
  transform: translateY(-50%);
}

.blockcart-modal .mf-cart-sparkles > span::after {
  inset: 0;
  background: linear-gradient(145deg, #f6e0ab 8%, #cba15d 50%, #a77942 92%);
  clip-path: polygon(50% 0, 65% 36%, 100% 50%, 65% 64%, 50% 100%, 35% 64%, 0 50%, 35% 36%);
}

.blockcart-modal .mf-cart-sparkles > :first-child {
  inset: 1rem auto auto 1.2rem;
  width: 19px;
  height: 19px;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(2) {
  inset: 1.2rem 3.2rem auto auto;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(3) {
  inset: auto 2.15rem .65rem auto;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(4) {
  inset: auto auto .7rem 1.25rem;
  width: 17px;
  height: 17px;
  animation-delay: .28s;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(5) {
  inset: 48% auto auto 1.2rem;
  width: 11px;
  height: 11px;
  animation-delay: .18s;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(6) {
  inset: 60% 2.15rem auto auto;
  width: 15px;
  height: 15px;
  animation-delay: .36s;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(7) {
  inset: 43% auto auto 44%;
  width: 12px;
  height: 12px;
  animation-delay: .24s;
}

.blockcart-modal .mf-cart-sparkles > :nth-child(8) {
  inset: 57% auto auto 55%;
  width: 10px;
  height: 10px;
  animation-delay: .39s;
}

@keyframes mf-cart-glow {
  0%, 100% { opacity: 0; }
  22% { opacity: 1; }
  64% { opacity: .72; }
}

@keyframes mf-cart-sparkle {
  0% { transform: translate(-50%, -50%) scale(.45) rotate(-14deg); }
  45% { transform: translate(calc(var(--spark-x) * .75), calc(var(--spark-y) * .75)) rotate(7deg); }
  100% { transform: translate(var(--spark-x), var(--spark-y)) scale(.75) rotate(16deg); }
}

@keyframes mf-cart-shooting-star {
  0% { opacity: 0; transform: translate(-13px, 7px) rotate(-28deg) scale(.64); }
  24% { opacity: .92; }
  63% { opacity: .66; }
  100% { opacity: 0; transform: translate(23px, -12px) rotate(-28deg) scale(.9); }
}

@keyframes mf-cart-twinkle {
  0%, 100% { opacity: 0; }
  23% { opacity: .94; }
  42% { opacity: .32; }
  63% { opacity: .83; }
  82% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-cart-sparkles {
    display: none;
  }
}
