/* Copyright (c) 2025-2026 Spwig contributors. Licensed under AGPL-3.0. */

/* Gift card product page — mobile-first, mirrors the digital template's
   two-column collapse. */

.product-layout--gift-card {
  display: grid;
  gap: var(--theme-space-6, 1.5rem);
}

@media (min-width: 768px) {
  .product-layout--gift-card {
    grid-template-columns: 1fr 1fr;
  }
}

.gift-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-2, 0.5rem);
  margin: var(--theme-space-3, 0.75rem) 0;
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-3, 0.75rem);
  border-radius: var(--theme-radius-md, 0.5rem);
  background: var(--theme-color-success-bg, #ecfdf5);
  color: var(--theme-color-success, #059669);
  font-size: var(--theme-font-size-sm, 0.875rem);
}

.gift-card-form {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-4, 1rem);
  margin-top: var(--theme-space-4, 1rem);
}

.gift-card-form__row {
  display: grid;
  gap: var(--theme-space-3, 0.75rem);
}

@media (min-width: 480px) {
  .gift-card-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.gift-card-form__label {
  display: block;
  margin-bottom: var(--theme-space-1, 0.25rem);
  font-weight: 600;
  font-size: var(--theme-font-size-sm, 0.875rem);
}

.gift-card-form__label .required {
  color: var(--theme-color-error, #dc2626);
}

.gift-card-form__sublabel {
  display: block;
  margin: var(--theme-space-2, 0.5rem) 0 var(--theme-space-1, 0.25rem);
  font-size: var(--theme-font-size-sm, 0.875rem);
  color: var(--theme-color-text-light, #6b7280);
}

.gift-card-form__input {
  width: 100%;
  padding: var(--theme-space-3, 0.75rem);
  border: 1px solid var(--theme-color-border, #e5e7eb);
  border-radius: var(--theme-radius-md, 0.5rem);
  font-size: var(--theme-font-size-base, 1rem);
}

.gift-card-form__denominations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
}

.gift-card-denom {
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
  border: 2px solid var(--theme-color-border, #e5e7eb);
  border-radius: var(--theme-radius-md, 0.5rem);
  background: var(--theme-color-surface, #fff);
  font-size: var(--theme-font-size-base, 1rem);
  font-weight: 600;
  cursor: pointer;
}

.gift-card-denom--selected {
  border-color: var(--theme-color-primary, #2563eb);
  background: var(--theme-color-primary-bg, #eff6ff);
  color: var(--theme-color-primary, #2563eb);
}

.gift-card-form__hint {
  margin: var(--theme-space-1, 0.25rem) 0 0;
  font-size: var(--theme-font-size-xs, 0.75rem);
  color: var(--theme-color-text-light, #6b7280);
}

.gift-card-form__error {
  color: var(--theme-color-error, #dc2626);
  font-size: var(--theme-font-size-sm, 0.875rem);
}

.gift-card-form__submit {
  width: 100%;
}

.gift-card-form__expiry {
  margin-top: var(--theme-space-3, 0.75rem);
}
