/* ecom-guide.com/assets/css/purchase.css
   Purchase modal styles — match the landing's editorial / minimal aesthetic.
   The landing already uses a serif display (--serif) and a clean sans for body. */

.buy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.buy-overlay.open { opacity: 1; pointer-events: auto; }

.buy-modal {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 18px;
  width: min(440px, 100%);
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.97);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.buy-overlay.open .buy-modal { transform: translateY(0) scale(1); }

.buy-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7a5c;
  margin: 0 0 8px;
}
.buy-title {
  font-family: var(--serif, Georgia), Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.buy-title em { font-style: italic; color: #4b4030; }
.buy-sub {
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.55;
  margin: 0 0 22px;
}

.buy-field { margin-bottom: 14px; }
.buy-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin-bottom: 5px;
}
.buy-field input {
  width: 100%;
  border: 1px solid #d8cfbe;
  background: #fbfaf7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: #1a1a1a;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.buy-field input:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #ffffff;
}
.buy-field input::placeholder { color: #b6ad99; }

.buy-error {
  font-size: 13px;
  color: #b91c1c;
  margin: 0 0 14px;
  min-height: 18px;
  display: none;
}
.buy-error.show { display: block; }

.buy-submit {
  width: 100%;
  background: #1a1a1a;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .15s;
}
.buy-submit:hover:not(:disabled) { background: #2b2b2b; }
.buy-submit:active:not(:disabled) { transform: translateY(1px); }
.buy-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.buy-submit .price {
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.buy-trust {
  margin: 14px 0 0;
  font-size: 12px;
  color: #8a8a8a;
  text-align: center;
  line-height: 1.55;
}
.buy-trust strong { color: #4a4a4a; font-weight: 600; }

.buy-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  transition: background .15s, color .15s;
}
.buy-close:hover { background: #f4f1ec; color: #1a1a1a; }
.buy-close svg { width: 16px; height: 16px; }

.buy-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: buy-spin 0.8s linear infinite;
}
@keyframes buy-spin { to { transform: rotate(360deg); } }
