/**
 * Alfa Discount Popup styles — gold & white
 */

.alfa-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.alfa-popup[hidden] {
  display: none !important;
}

.alfa-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(4px);
  animation: alfaFade .35s ease;
}

.alfa-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 2.25rem 2rem 1.75rem;
  background: #fcfbf9;
  border: 1px solid rgba(198, 164, 106, 0.28);
  box-shadow: 0 30px 80px rgba(28, 25, 23, 0.18);
  text-align: center;
  animation: alfaUp .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.alfa-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #8a837c;
  cursor: pointer;
}

.alfa-popup__close:hover {
  color: #1c1917;
}

.alfa-popup__eyebrow {
  margin: 0 0 0.65rem;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7b45;
}

.alfa-popup__title {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  color: #1c1917;
  letter-spacing: -0.02em;
}

.alfa-popup__discount {
  margin: 0 0 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3f3a36;
}

.alfa-popup__discount span {
  display: inline-block;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #c6a46a;
  vertical-align: middle;
  margin-right: 0.25rem;
  font-family: Georgia, serif;
  font-weight: 500;
}

.alfa-popup__message {
  margin: 0 0 1.35rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: #8a837c;
}

.alfa-popup__code-wrap {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.alfa-popup__code {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px dashed rgba(198, 164, 106, 0.55);
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #1c1917;
}

.alfa-popup__copy {
  padding: 0 1.1rem;
  border: 1px solid #1c1917;
  background: #1c1917;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.alfa-popup__copy:hover,
.alfa-popup__copy.is-copied {
  background: #9a7b45;
  border-color: #9a7b45;
}

.alfa-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  margin-bottom: 0.65rem;
  background: #1c1917;
  color: #fff !important;
  text-decoration: none !important;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.alfa-popup__btn:hover {
  background: #9a7b45;
  color: #fff !important;
}

.alfa-popup__dismiss {
  border: 0;
  background: transparent;
  color: #8a837c;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alfa-popup__dismiss:hover {
  color: #1c1917;
}

@keyframes alfaFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes alfaUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .alfa-popup__dialog {
    padding: 2rem 1.25rem 1.5rem;
  }
  .alfa-popup__discount span {
    font-size: 2.2rem;
  }
}
