.storefront-confirm {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.storefront-confirm[hidden] {
  display: none !important;
}

.storefront-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.46);
  backdrop-filter: blur(3px);
}

.storefront-confirm__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  padding: 36px 28px 28px;
  border: 1px solid #f3d5dc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 33, 36, 0.16);
  color: #202124;
}

.storefront-confirm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff7f8;
  color: #202124;
  cursor: pointer;
}

.storefront-confirm__close:hover {
  background: #fdf0f3;
  color: #7a1834;
}

.storefront-confirm__close:focus-visible,
.storefront-confirm__btn:focus-visible {
  outline: 2px solid #7a1834;
  outline-offset: 2px;
}

.storefront-confirm__dialog--centered {
  text-align: center;
}

.storefront-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff1f5;
  color: #7a1834;
}

.storefront-confirm__icon[hidden] {
  display: none !important;
}

.storefront-confirm__icon .icon {
  font-size: 20px;
  line-height: 1;
}

.storefront-confirm__title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #202124;
}

.storefront-confirm__text {
  margin: 0 auto;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.6;
  color: #68707a;
}

.storefront-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.storefront-confirm__dialog--centered .storefront-confirm__actions {
  justify-content: center;
}

.storefront-confirm__btn {
  min-height: 44px;
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.storefront-confirm__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.storefront-confirm__btn--cancel {
  background: #fff;
  border-color: #e4e4e7;
  color: #202124;
}

.storefront-confirm__btn--cancel:hover:not(:disabled) {
  background: #fafafa;
}

.storefront-confirm__btn--danger,
.storefront-confirm__btn--primary {
  background: #7a1834;
  border-color: #7a1834;
  color: #fff;
}

.storefront-confirm__btn--danger:hover:not(:disabled),
.storefront-confirm__btn--primary:hover:not(:disabled) {
  background: #5e1028;
  border-color: #5e1028;
}

@media (max-width: 575px) {
  .storefront-confirm {
    padding: 16px;
  }

  .storefront-confirm__dialog {
    padding: 40px 18px 20px;
  }

  .storefront-confirm__title {
    font-size: 24px;
  }

  .storefront-confirm__actions {
    flex-direction: column-reverse;
  }

  .storefront-confirm__btn {
    width: 100%;
  }
}
