.sm-bag-added {
  --sm-modal-primary: var(--e-global-color-accent, #9f2d4f);
  --sm-modal-secondary: var(--e-global-color-secondary, #e8758a);
  --sm-modal-pink: var(--e-global-color-primary, #f8a8c5);
  --sm-modal-cream: var(--e-global-color-ea7034e, #faf9f1);
  --sm-modal-ink: var(--e-global-color-text, #472f29);
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100000;
}

.sm-bag-added[hidden] {
  display: none;
}

.sm-bag-added__backdrop {
  background: rgba(71, 47, 41, .54);
  inset: 0;
  position: absolute;
}

.sm-bag-added__dialog {
  background: var(--sm-modal-cream);
  border: 1px solid color-mix(in srgb, var(--sm-modal-secondary) 45%, transparent);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(71, 47, 41, .25);
  color: var(--sm-modal-ink);
  max-width: 500px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  text-align: center;
  width: 100%;
}

.sm-bag-added__dialog::before {
  background: var(--sm-modal-pink);
  content: "";
  height: 7px;
  inset: 0 0 auto;
  position: absolute;
}

.sm-bag-added__close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--sm-modal-primary) 32%, transparent);
  border-radius: 50%;
  color: var(--sm-modal-primary);
  cursor: pointer;
  display: flex;
  font: 300 1.7rem/1 Arial, sans-serif;
  height: 40px;
  justify-content: center;
  padding: 0 0 3px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  z-index: 2;
}

.sm-bag-added__close:hover,
.sm-bag-added__close:focus-visible {
  background: var(--sm-modal-primary);
  color: #fff;
}

.sm-bag-added__lottie {
  height: 150px;
  margin: -10px auto 2px;
  max-width: 190px;
}

.sm-bag-added__eyebrow {
  color: var(--sm-modal-secondary);
  font-family: var(--e-global-typography-text-font-family, Arial), Arial, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sm-bag-added h2 {
  color: var(--sm-modal-primary);
  font-family: var(--e-global-typography-secondary-font-family, Bogart), Georgia, serif;
  font-size: clamp(2.35rem, 7vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: .95;
  margin: 0;
}

.sm-bag-added__dialog > p:last-of-type {
  font-family: var(--e-global-typography-text-font-family, Arial), Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  margin: 18px auto 0;
  max-width: 350px;
}

.sm-bag-added__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.sm-bag-added__primary,
.sm-bag-added__secondary {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font-family: var(--e-global-typography-text-font-family, Arial), Arial, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .08em;
  min-height: 52px;
  padding: 13px 20px;
  text-decoration: none !important;
  text-transform: uppercase;
}

.sm-bag-added__primary {
  background: var(--sm-modal-primary);
  border: 1px solid var(--sm-modal-primary);
  color: #fff !important;
  gap: 12px;
}

.sm-bag-added__primary span {
  font-size: 1.25rem;
}

.sm-bag-added__secondary {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--sm-modal-primary) 55%, transparent);
  color: var(--sm-modal-primary);
}

.sm-bag-added__primary:hover,
.sm-bag-added__primary:focus-visible {
  background: color-mix(in srgb, var(--sm-modal-primary) 87%, black);
}

.sm-bag-added__secondary:hover,
.sm-bag-added__secondary:focus-visible {
  border-color: var(--sm-modal-primary);
}

body.sm-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .sm-bag-added {
    align-items: flex-end;
    padding: 10px;
  }

  .sm-bag-added__dialog {
    border-radius: 26px;
    padding: 30px 22px 24px;
  }

  .sm-bag-added__lottie {
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-bag-added__lottie {
    display: none;
  }
}
