/* Bee1 Gift Cards - Frontend styles (Apple/NASA-grade clean design) */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600&display=swap');

:root {
  --bee1-primary: #1e3a5f;
  --bee1-primary-hover: #2c5282;
  --bee1-accent: #3182ce;
  --bee1-bg: #ffffff;
  --bee1-card-bg: #f7fafc;
  --bee1-text: #1a202c;
  --bee1-text-muted: #4a5568;
  --bee1-label: #2d3748;
  --bee1-border: #e2e8f0;
  --bee1-border-focus: #3182ce;
  --bee1-success: #38a169;
  --bee1-danger: #e53e3e;
  --bee1-radius: 8px;
  --bee1-radius-sm: 6px;
  --bee1-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --bee1-shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================
   GIFT CARD PRODUCT PAGE - Layout Fix
   Force form to be vertical (fields above button)
   ============================================ */

/* Hide quantity field completely for gift cards */
.single-product.product-type-giftcard .quantity,
.product-type-giftcard .quantity,
body.single-product.product-type-giftcard form.cart .quantity,
body.product-type-giftcard form.cart .quantity,
.single-product.product-type-giftcard form.cart div.quantity,
.product-type-giftcard form.cart div.quantity {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Form layout - vertical stack */
.single-product.product-type-giftcard form.cart,
.product-type-giftcard form.cart {
  display: block !important;
}

/* Gift card fields wrapper */
.single-product.product-type-giftcard form.cart .bee1-gc-fields-wrapper,
.product-type-giftcard form.cart .bee1-gc-fields-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 480px !important;
  margin-bottom: 16px !important;
}

/* Button styling */
.single-product.product-type-giftcard form.cart .single_add_to_cart_button,
.product-type-giftcard form.cart .single_add_to_cart_button {
  display: inline-block !important;
  margin-top: 8px !important;
}

/* ============================================
   GIFT CARD FORM - Compact Table Layout
   ============================================ */
.bee1-gc-fields-wrapper {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bee1-bg);
  border: 1px solid var(--bee1-border);
  border-radius: var(--bee1-radius);
  padding: 16px 20px;
  margin: 12px 0 16px;
  box-shadow: var(--bee1-shadow);
  max-width: 480px;
}

.bee1-gc-fields-wrapper h4 {
  margin: 12px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bee1-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bee1-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bee1-gc-fields-wrapper h4:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Field Groups - Compact Grid */
.bee1-gc-field-group {
  margin-bottom: 10px;
}

.bee1-gc-field-group label,
.bee1-gc-fields-wrapper .form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bee1-label);
  margin-bottom: 4px;
}

/* Form Rows - Tighten spacing */
.bee1-gc-fields-wrapper .form-row {
  margin-bottom: 10px !important;
  padding: 0 !important;
}

.bee1-gc-fields-wrapper .form-row-wide {
  width: 100%;
}

/* Two-column layout for name fields */
.bee1-gc-fields-wrapper .bee1-gc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Input Fields - Compact & Clean */
.bee1-gc-fields-wrapper input[type="text"],
.bee1-gc-fields-wrapper input[type="email"],
.bee1-gc-fields-wrapper input[type="number"],
.bee1-gc-fields-wrapper input[type="date"],
.bee1-gc-fields-wrapper textarea,
.bee1-gc-fields-wrapper select {
  width: 100%;
  background: var(--bee1-card-bg);
  color: var(--bee1-text);
  border: 1px solid var(--bee1-border);
  border-radius: var(--bee1-radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bee1-gc-fields-wrapper input:focus,
.bee1-gc-fields-wrapper textarea:focus,
.bee1-gc-fields-wrapper select:focus {
  border-color: var(--bee1-border-focus);
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.15);
  background: #fff;
}

.bee1-gc-fields-wrapper input::placeholder,
.bee1-gc-fields-wrapper textarea::placeholder {
  color: #a0aec0;
}

/* Select dropdown */
.bee1-gc-amount-select {
  max-width: 200px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
  cursor: pointer;
}

/* ============================================
   AMOUNT BUTTONS (styled radio pill group)
   ============================================ */
.bee1-gc-amount-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Visually hide the radio input while keeping it accessible */
.bee1-gc-amount-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bee1-gc-amount-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--bee1-border);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bee1-text);
  background: var(--bee1-card-bg);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  line-height: 1.4;
  white-space: nowrap;
}

.bee1-gc-amount-btn:hover {
  border-color: var(--bee1-accent);
  color: var(--bee1-accent);
  background: rgba(49, 130, 206, 0.06);
}

.bee1-gc-amount-radio:checked + .bee1-gc-amount-btn {
  background: var(--bee1-primary);
  border-color: var(--bee1-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.25);
}

/* Keyboard focus ring */
.bee1-gc-amount-radio:focus-visible + .bee1-gc-amount-btn {
  outline: 2px solid var(--bee1-border-focus);
  outline-offset: 2px;
}

/* Custom amount input */
.bee1-gc-custom-amount-wrapper {
  margin-top: 8px;
}

.bee1-gc-custom-amount-wrapper label {
  white-space: nowrap;
}

.bee1-gc-custom-amount-wrapper .input-text {
  max-width: 140px;
}

/* Textarea - compact */
.bee1-gc-fields-wrapper textarea {
  min-height: 60px;
  max-height: 80px;
  resize: vertical;
}

/* Date input */
.bee1-gc-fields-wrapper input[type="date"] {
  max-width: 160px;
}

/* Required field indicator */
.bee1-gc-fields-wrapper .required {
  color: var(--bee1-danger);
  margin-left: 2px;
}

/* Description text */
.bee1-gc-fields-wrapper .description {
  font-size: 0.75rem;
  color: var(--bee1-text-muted);
  margin-top: 3px;
}

/* ============================================
   BUTTONS - Clean Apple Style
   ============================================ */
.single-product .cart .button,
.bee1-gc-apply-button,
.bee1-gc-update-amount {
  font-family: 'Rubik', sans-serif;
  background: var(--bee1-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--bee1-radius);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.single-product .cart .button:hover,
.bee1-gc-apply-button:hover,
.bee1-gc-update-amount:hover {
  background: var(--bee1-primary-hover);
  box-shadow: var(--bee1-shadow-hover);
}

.single-product .cart .button:active,
.bee1-gc-apply-button:active,
.bee1-gc-update-amount:active {
  transform: scale(0.98);
}

.single-product .cart .button.disabled,
.single-product .cart .button:disabled {
  background: #cbd5e0;
  color: #718096;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   CART/CHECKOUT FORM
   ============================================ */

.bee1-gc-form-wrapper {
  font-family: 'Rubik', sans-serif;
  background: var(--bee1-card-bg);
  border: 1px solid var(--bee1-border);
  border-radius: var(--bee1-radius);
  padding: 14px 16px;
  margin: 12px 0 16px;
}

.bee1-gc-partial-wrapper {
  margin-top: 4px;
}

.bee1-gc-partial-wrapper p {
  margin-bottom: 8px;
}

/* Remove card link */
.woocommerce-info .bee1-gc-remove-card {
  color: var(--bee1-danger);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 8px;
}
#bee1_gc_amount_initial {
  padding: 10px;
  text-align: start;
}
.woocommerce-info .bee1-gc-remove-card:hover {
  text-decoration: underline;
}

/* ============================================
   NOTICES
   ============================================ */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  font-family: 'Rubik', sans-serif;
  border-radius: var(--bee1-radius-sm);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - Mobile Optimized
   ============================================ */
@media (max-width: 480px) {
  .bee1-gc-fields-wrapper {
    padding: 12px 14px;
    margin: 8px 0 12px;
  }
  
  .bee1-gc-fields-wrapper h4 {
    font-size: 0.8rem;
  }
  
  .bee1-gc-amount-select,
  .bee1-gc-custom-amount-wrapper .input-text,
  .bee1-gc-fields-wrapper input[type="date"] {
    max-width: 100%;
  }

  .bee1-gc-amount-buttons {
    gap: 6px;
  }

  .bee1-gc-amount-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .bee1-gc-fields-wrapper .bee1-gc-two-col {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .bee1-gc-partial-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bee1-gc-partial-wrapper input.small-text {
    width: 100%;
  }
}

/* ============================================
   ACCORDION/SUMMARY (if used)
   ============================================ */
.bee1-gc-summary {
  display: block;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--bee1-primary);
  color: #fff;
  border-radius: var(--bee1-radius-sm);
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bee1-gc-summary:hover {
  background: var(--bee1-primary-hover);
}

.bee1-gc-acc {
  margin-bottom: 10px;
}

/* ============================================
   SHARED FORM BODY
   ============================================ */
.bee1-gc-field-row {
  margin-bottom: 14px;
}

.bee1-gc-field-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--bee1-label);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.bee1-gc-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.bee1-gc-input-group .input-text {
  flex: 1;
  min-width: 0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--bee1-border);
  border-radius: var(--bee1-radius-sm);
  background: #fff;
  color: var(--bee1-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-input-group .input-text:focus {
  border-color: var(--bee1-border-focus);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
}

.bee1-gc-input-group .input-text::placeholder {
  color: #a0aec0;
}

.bee1-gc-amount-row .input-text {
  max-width: 140px;
}

.bee1-gc-amount-row .description {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--bee1-text-muted);
  line-height: 1.45;
}

.bee1-gc-applied-info {
  animation: bee1FadeIn 0.3s ease;
}

.bee1-gc-applied-info .bee1-gc-applied-notice {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 14px 10px 40px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: var(--bee1-radius-sm);
  color: #276749;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 12px;
  position: relative;
}

/* Suppress WooCommerce's default ::before info icon */
.bee1-gc-applied-notice::before,
.bee1-gc-applied-notice.woocommerce-info::before {
  content: none !important;
  display: none !important;
}

/* Our own green checkmark badge */
.bee1-gc-applied-notice::after {
  content: '\2713';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--bee1-success);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
}

.bee1-gc-applied-info .bee1-gc-applied-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Remove the old ::before on applied-code — icon is now on the notice via ::after */
.bee1-gc-applied-info .bee1-gc-applied-code::before {
  content: none;
  display: none;
}

.bee1-gc-remove-form {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.bee1-gc-remove-card {
  background: none;
  border: none;
  padding: 2px 6px;
  color: var(--bee1-danger);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.bee1-gc-remove-card:hover {
  background: #fff5f5;
  color: #c53030;
  text-decoration: none;
}

.bee1-gc-update-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.bee1-gc-update-row label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--bee1-label);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* Joined input + button group */
.bee1-gc-amount-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.bee1-gc-amount-input-group .bee1-gc-amount-field {
  flex: 1;
  min-width: 0;
  max-width: 180px;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1.5px solid var(--bee1-border);
  border-right: none;
  border-radius: var(--bee1-radius-sm) 0 0 var(--bee1-radius-sm);
  background: #fff;
  color: var(--bee1-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: textfield;
  appearance: textfield;
}

.bee1-gc-amount-input-group .bee1-gc-amount-field::-webkit-inner-spin-button,
.bee1-gc-amount-input-group .bee1-gc-amount-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.bee1-gc-amount-input-group .bee1-gc-amount-field:focus {
  border-color: var(--bee1-border-focus);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  background: #fff;
  z-index: 1;
  position: relative;
}

.bee1-gc-amount-input-group .bee1-gc-amount-field::placeholder {
  color: #a0aec0;
}

.bee1-gc-amount-input-group .bee1-gc-update-amount {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bee1-primary);
  color: #fff;
  border: 1.5px solid var(--bee1-primary);
  border-left: none;
  border-radius: 0 var(--bee1-radius-sm) var(--bee1-radius-sm) 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.bee1-gc-amount-input-group .bee1-gc-update-amount:hover {
  background: var(--bee1-primary-hover);
  border-color: var(--bee1-primary-hover);
  box-shadow: none;
}

.bee1-gc-update-row .description {
  font-size: 0.78rem;
  color: var(--bee1-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Standalone amount field (apply section — no button next to it) */
.bee1-gc-amount-row .bee1-gc-amount-field {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1.5px solid var(--bee1-border);
  border-radius: var(--bee1-radius-sm);
  background: #fff;
  color: var(--bee1-text);
  outline: none;
  max-width: 180px;
  width: 100%;
  -webkit-appearance: textfield;
  appearance: textfield;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-amount-row .bee1-gc-amount-field::-webkit-inner-spin-button,
.bee1-gc-amount-row .bee1-gc-amount-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.bee1-gc-amount-row .bee1-gc-amount-field:focus {
  border-color: var(--bee1-border-focus);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.bee1-gc-balance-row {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--bee1-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bee1-gc-balance-row strong {
  color: var(--bee1-label);
}

@keyframes bee1FadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LAYOUT VARIANTS
   ============================================ */

/* Redemption wrapper - consistent on cart & checkout */
.bee1-gc-redemption-wrapper {
  margin-bottom: 20px;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 1. CARD LAYOUT (default) ── */
.bee1-gc-layout--card {
  margin: 14px 0 18px;
}

.bee1-gc-layout--card .bee1-gc-acc {
  border: 1px solid var(--bee1-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 0;
  transition: box-shadow 0.25s ease;
}

.bee1-gc-layout--card .bee1-gc-acc:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
}

.bee1-gc-layout--card .bee1-gc-summary {
  margin: 0;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  list-style: none;
  background: var(--bee1-primary);
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bee1-gc-layout--card .bee1-gc-summary::-webkit-details-marker { display: none; }

.bee1-gc-layout--card .bee1-gc-summary::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='5' width='20' height='14' rx='2'/%3e%3cpath d='M2 10h20'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: 0.85;
}

.bee1-gc-layout--card .bee1-gc-summary::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.bee1-gc-layout--card .bee1-gc-acc[open] .bee1-gc-summary::after {
  transform: rotate(180deg);
}

.bee1-gc-layout--card .bee1-gc-summary:hover {
  background: var(--bee1-primary-hover);
}

.bee1-gc-layout--card .bee1-gc-form-wrapper {
  border: none;
  border-top: 1px solid var(--bee1-border);
  border-radius: 0;
  background: #fafbfc;
  padding: 18px 20px;
  margin: 0;
  animation: bee1SlideDown 0.25s ease;
}

.bee1-gc-layout--card .bee1-gc-apply-button {
  background: var(--bee1-primary);
  border-radius: var(--bee1-radius-sm);
  padding: 10px 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.bee1-gc-layout--card .bee1-gc-apply-button:hover {
  background: var(--bee1-primary-hover);
  box-shadow: 0 3px 10px rgba(30, 58, 95, 0.25);
}

/* ── 2. CLASSIC LAYOUT ── */
.bee1-gc-layout--classic {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-left: 4px solid var(--bee1-primary);
  border-radius: 4px;
  padding: 0;
  margin: 14px 0 18px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}

.bee1-gc-layout--classic .bee1-gc-classic-inner {
  padding: 18px 22px;
}

.bee1-gc-layout--classic .bee1-gc-classic-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f2;
  color: var(--bee1-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bee1-gc-layout--classic .bee1-gc-classic-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='5' width='20' height='14' rx='2'/%3e%3cpath d='M2 10h20'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.bee1-gc-layout--classic .bee1-gc-input-group .input-text {
  border-radius: 3px;
  border: 1px solid #cbd0d5;
  padding: 10px 12px;
}

.bee1-gc-layout--classic .bee1-gc-input-group .input-text:focus {
  border-color: var(--bee1-primary);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.bee1-gc-layout--classic .bee1-gc-apply-button {
  border-radius: 3px;
  background: var(--bee1-primary);
  padding: 10px 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-layout--classic .bee1-gc-apply-button:hover {
  background: var(--bee1-primary-hover);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.bee1-gc-layout--classic .bee1-gc-applied-notice {
  border-color: #b8e6c8;
  background: #edf9f0;
}

/* ── 3. MODERN LAYOUT ── */
.bee1-gc-layout--modern {
  margin: 14px 0 18px;
}

.bee1-gc-layout--modern .bee1-gc-modern-acc {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1), 0 8px 24px rgba(102, 126, 234, 0.08);
  transition: box-shadow 0.25s ease;
}

.bee1-gc-layout--modern .bee1-gc-modern-acc:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15), 0 12px 32px rgba(102, 126, 234, 0.1);
}

.bee1-gc-layout--modern .bee1-gc-modern-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  font-family: 'Rubik', sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  transition: filter 0.2s ease;
  letter-spacing: 0.01em;
}

.bee1-gc-layout--modern .bee1-gc-modern-summary::-webkit-details-marker { display: none; }

.bee1-gc-layout--modern .bee1-gc-modern-summary:hover {
  filter: brightness(1.06);
}

.bee1-gc-layout--modern .bee1-gc-modern-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  flex-shrink: 0;
}

.bee1-gc-layout--modern .bee1-gc-modern-icon svg {
  width: 18px;
  height: 18px;
}

.bee1-gc-layout--modern .bee1-gc-modern-label {
  flex: 1;
}

.bee1-gc-layout--modern .bee1-gc-modern-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.2s ease;
}

.bee1-gc-layout--modern .bee1-gc-modern-chevron:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bee1-gc-layout--modern .bee1-gc-modern-acc[open] .bee1-gc-modern-chevron {
  transform: rotate(180deg);
}

.bee1-gc-layout--modern .bee1-gc-modern-body {
  background: #fff;
  padding: 20px 22px;
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-top: none;
  border-radius: 0 0 12px 12px;
  animation: bee1SlideDown 0.25s ease;
}

.bee1-gc-layout--modern .bee1-gc-input-group .input-text {
  border-radius: 8px;
  border: 1.5px solid #e2e6f0;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-layout--modern .bee1-gc-input-group .input-text:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.bee1-gc-layout--modern .bee1-gc-apply-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.1s ease;
}

.bee1-gc-layout--modern .bee1-gc-apply-button:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.bee1-gc-layout--modern .bee1-gc-applied-notice {
  border-color: rgba(102, 126, 234, 0.2);
  background: #f5f3ff;
  color: #4c3d99;
}

.bee1-gc-layout--modern .bee1-gc-applied-code::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bee1-gc-layout--modern .bee1-gc-remove-card {
  color: #764ba2;
}

.bee1-gc-layout--modern .bee1-gc-remove-card:hover {
  background: #ede9fe;
  color: #553c9a;
}

/* ── 4. MINIMAL LAYOUT ── */
.bee1-gc-layout--minimal {
  margin: 12px 0 16px;
  padding: 0;
}

.bee1-gc-layout--minimal .bee1-gc-minimal-inner {
  padding: 0;
}

.bee1-gc-layout--minimal .bee1-gc-minimal-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bee1-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bee1-gc-layout--minimal .bee1-gc-minimal-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--bee1-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.bee1-gc-layout--minimal .bee1-gc-input-group {
  gap: 0;
}

.bee1-gc-layout--minimal .bee1-gc-input-group .input-text {
  border-radius: var(--bee1-radius-sm) 0 0 var(--bee1-radius-sm);
  background: #f8f9fb;
  border: 1.5px solid #e2e6ea;
  border-right: none;
  padding: 10px 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-layout--minimal .bee1-gc-input-group .input-text:focus {
  background: #fff;
  border-color: var(--bee1-accent);
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.08);
  z-index: 1;
  position: relative;
}

.bee1-gc-layout--minimal .bee1-gc-apply-button {
  background: transparent;
  color: var(--bee1-accent);
  border: 1.5px solid var(--bee1-accent);
  border-radius: 0 var(--bee1-radius-sm) var(--bee1-radius-sm) 0;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bee1-gc-layout--minimal .bee1-gc-apply-button:hover {
  background: var(--bee1-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.bee1-gc-layout--minimal .bee1-gc-amount-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e6ea;
}

.bee1-gc-layout--minimal .bee1-gc-applied-notice {
  background: transparent;
  border: 1px dashed #c6f6d5;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* ── Slide-down animation ── */
@keyframes bee1SlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive for all layouts ── */
@media (max-width: 480px) {
  .bee1-gc-input-group {
    flex-direction: column;
  }

  .bee1-gc-layout--minimal .bee1-gc-input-group {
    flex-direction: row;
  }

  .bee1-gc-amount-row .input-text {
    max-width: 100%;
  }

  .bee1-gc-layout--card .bee1-gc-form-wrapper,
  .bee1-gc-layout--modern .bee1-gc-modern-body {
    padding: 14px 16px;
  }

  .bee1-gc-layout--classic .bee1-gc-classic-inner {
    padding: 14px 16px;
  }
}

.woocommerce-checkout .bee1-gc-redemption-wrapper {
  margin-bottom: 20px;
}

.woocommerce-checkout .bee1-gc-summary {
  display: block;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--bee1-primary);
  color: #fff;
  border-radius: var(--bee1-radius-sm);
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.woocommerce-checkout .bee1-gc-form-wrapper {
  font-family: 'Rubik', sans-serif;
  background: var(--bee1-card-bg);
  border: 1px solid var(--bee1-border);
  border-radius: var(--bee1-radius);
  padding: 14px 16px;
  margin: 12px 0 16px;
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   Override Elementor Pro's flex layout which breaks the gift card
   add-to-cart form. Elementor sets display:flex on .elementor-add-to-cart .cart
   making qty/fields/button all sit on one horizontal row.
   ============================================ */
.elementor-add-to-cart form.cart:has(.bee1-gc-fields-wrapper),
.elementor-widget-woocommerce-product-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

.elementor-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .quantity,
.elementor-widget-woocommerce-product-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .quantity {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.elementor-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .bee1-gc-fields-wrapper,
.elementor-widget-woocommerce-product-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .bee1-gc-fields-wrapper {
  width: 100% !important;
  max-width: 480px !important;
  align-self: stretch !important;
}

.elementor-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .single_add_to_cart_button,
.elementor-widget-woocommerce-product-add-to-cart form.cart:has(.bee1-gc-fields-wrapper) .single_add_to_cart_button {
  margin-top: 8px !important;
  align-self: flex-start !important;
}

/* ============================================
   WOOCOMMERCE OVERRIDES - Keep compact
   ============================================ */
.bee1-gc-fields-wrapper .woocommerce-input-wrapper {
  width: 100%;
}

.bee1-gc-fields-wrapper p.form-row {
  margin: 0 0 10px 0 !important;
}

.bee1-gc-fields-wrapper p.form-row:last-child {
  margin-bottom: 0 !important;
}