.haptelle-cart-success-banner {
  position: fixed;
  inset-block-start: calc(var(--haptelle-cart-banner-header-bottom, 0px) + 16px);
  inset-inline: clamp(16px, 2.1vw, 40px);
  z-index: 1035;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 24px;
  border: 1px solid #e4e2df;
  background: #594423;
  color: #fff1ba;
  font-family: var(--haptelle-font-body, inherit);
  animation: haptelle-cart-banner-in 180ms ease-out;
}

.haptelle-cart-success-banner[hidden] {
  display: none;
}

.haptelle-cart-success-banner .haptelle-cart-success-banner__message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.haptelle-cart-success-banner__check {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #789b22;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.haptelle-cart-success-banner .haptelle-cart-success-banner__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 4px;
  background: #eae8e9;
  color: #3a3a3a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.haptelle-cart-success-banner .haptelle-cart-success-banner__link:hover {
  background: #dddadc;
}

.haptelle-cart-success-banner .haptelle-cart-success-banner__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff1ba;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.haptelle-cart-success-banner :is(a, button):focus-visible {
  outline: 2px solid #fff1ba;
  outline-offset: 2px;
}

@keyframes haptelle-cart-banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .haptelle-cart-success-banner {
    inset-block-start: calc(var(--haptelle-cart-banner-header-bottom, 0px) + 10px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 6px;
    padding: 8px 8px 10px 12px;
  }

  .haptelle-cart-success-banner .haptelle-cart-success-banner__message {
    gap: 8px;
    padding-block: 5px;
    font-size: 14px;
  }

  .haptelle-cart-success-banner__check {
    align-self: start;
  }

  .haptelle-cart-success-banner__link {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: end;
    margin-inline-end: 6px;
  }

  .haptelle-cart-success-banner__close {
    grid-row: 1;
    grid-column: 2;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haptelle-cart-success-banner {
    animation: none;
  }
}
