/* ── Gift Voucher for WooCommerce — style.css ── */

.gvw-wrapper {
  max-width: 520px;
  margin: 0 auto;
  font-family: inherit;
}

/* Header */
.gvw-header { text-align: center; margin-bottom: 28px; }
.gvw-icon   { font-size: 40px; display: block; margin-bottom: 8px; }
.gvw-title  { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: #1a1a2e; }
.gvw-subtitle { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }

/* Fields */
.gvw-field { margin-bottom: 20px; }
.gvw-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.gvw-field input[type="text"],
.gvw-field input[type="email"],
.gvw-field input[type="number"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -moz-appearance: textfield;
}
.gvw-field input::-webkit-inner-spin-button,
.gvw-field input::-webkit-outer-spin-button { -webkit-appearance: none; }
.gvw-field input:focus {
  border-color: #4a3fbf;
  box-shadow: 0 0 0 3px rgba(74,63,191,.12);
}
.gvw-field input.gvw-input-error { border-color: #e24b4a; }

/* Error text */
.gvw-error { display: block; font-size: 12px; color: #e24b4a; margin-top: 4px; min-height: 16px; }

/* Preset buttons */
.gvw-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gvw-preset {
  padding: 8px 18px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.gvw-preset:hover  { border-color: #4a3fbf; color: #4a3fbf; }
.gvw-preset.active { border-color: #4a3fbf; background: #4a3fbf; color: #fff; }

/* Custom amount input */
.gvw-custom-wrap { position: relative; }
.gvw-currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #888;
  pointer-events: none;
}
.gvw-custom-wrap input { padding-left: 28px; }

/* Message bar */
.gvw-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.gvw-msg.success { background: #eaf3de; color: #3b6d11; border: 1px solid #c0dd97; }
.gvw-msg.error   { background: #fcebeb; color: #a32d2d; border: 1px solid #f7c1c1; }

/* Submit button */
.gvw-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #4a3fbf;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .1s;
  margin-bottom: 10px;
}
.gvw-btn:hover   { background: #3b31a8; color: #fff; }
.gvw-btn:active  { transform: scale(.98); }
.gvw-btn:disabled { opacity: .6; cursor: not-allowed; }

.gvw-btn-outline {
  background: transparent;
  color: #4a3fbf;
  border: 1.5px solid #4a3fbf;
}
.gvw-btn-outline:hover { background: #f0eeff; color: #4a3fbf; }

/* Cart success step */
.gvw-success-icon {
  width: 56px;
  height: 56px;
  background: #4a3fbf;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 56px;
  text-align: center;
  margin: 0 auto 16px;
}

.gvw-cart-summary {
  background: #f9f8ff;
  border: 1px solid #e0daf7;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.gvw-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #ede9f9;
}
.gvw-summary-row:last-child { border-bottom: none; }
.gvw-summary-row span:first-child { color: #888; }
.gvw-summary-total { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.gvw-summary-total span:first-child { color: #1a1a2e; }

.gvw-cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* Responsive */
@media (max-width: 480px) {
  .gvw-preset { flex: 1 1 calc(33% - 8px); text-align: center; }
}
