/*
   GIFT CERTIFICATES PAGE (gift.html)
   Buy a gift (pick one, who it's for, pay through Stripe) and redeem a code.
   Behaviour is in js/gift.js.
*/

.gift-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-surface-sm, 16px);
}

.gift-step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gift-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary, #ce252a);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* How it works */
.gift-how {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gift-how .nl-icon,
.gift-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 0.625rem;
  font-size: 1.2rem;
  color: #ffffff;
  background: var(--primary, #ce252a);
}

/* Gift choices: radio buttons drawn as cards */
.gift-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.gift-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.gift-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.gift-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid #e3e6ea;
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.gift-option:hover .gift-option__body {
  border-color: #c9ced4;
}

.gift-option input:checked + .gift-option__body {
  border-color: var(--primary, #ce252a);
  background: #fdf2f2;
  box-shadow: 0 4px 14px rgba(206, 37, 42, 0.12);
}

.gift-option input:focus-visible + .gift-option__body {
  outline: 3px solid rgba(206, 37, 42, 0.35);
  outline-offset: 2px;
}

.gift-option__tag {
  align-self: flex-start;
  margin-bottom: 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--primary, #ce252a);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.gift-option__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark, #2c2f33);
}

.gift-option__price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary, #ce252a);
}

.gift-option__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
}

.gift-option__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5f666d;
}

.gift-extra {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f8f9fa;
}

.gift-amount-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gift-amount-picks button {
  padding: 0.35rem 0.9rem;
  border: 1px solid #ced4da;
  border-radius: 999px;
  background: #ffffff;
  color: var(--dark, #2c2f33);
  font-weight: 600;
}

.gift-amount-picks button:hover,
.gift-amount-picks button:focus-visible {
  border-color: var(--primary, #ce252a);
  color: var(--primary, #ce252a);
}

.gift-counter {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: right;
}

/* Price summary next to the pay button */
.gift-summary {
  padding: 1.25rem;
  border-radius: 14px;
  background: #f8f9fa;
}

.gift-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.gift-summary__row--total {
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dee2e6;
  font-weight: 700;
  font-size: 1.1rem;
}

.gift-summary__note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #5f666d;
}

.gift-alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.gift-alert--error {
  background: #fdecea;
  color: #8a1c1c;
}

.gift-alert--info {
  background: #eef4fb;
  color: #1f3b5a;
}

.gift-done {
  text-align: center;
  padding: 2rem 1.5rem;
}

.gift-done .gift-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  background: #1f9d55;
}

.gift-code-input {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gift-faq h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.gift-faq p {
  margin-bottom: 1.25rem;
}
