
.bm-gc{
  --bm-orange:#ff720d;
  --bm-orange-soft:#ff9a4d;
  --bm-ink:#0a0a0a;
  --bm-bg:#060606;
  --bm-field:#050505;
  --bm-panel:#0c0c0c;
  --bm-cream:#f4f1ea;
  --bm-text:#e8e4dc;
  --bm-muted:#b9b4aa;
  --bm-line:rgba(255,255,255,.14);
  --bm-line-field:rgba(255,255,255,.2);
}

/* ---------- 1. FORM LAYOUT ---------- */
.bm-gc .gift-cards_form{
  display:block !important;
  font-family:inherit;
  color:var(--bm-text);
}
.bm-gc .gift-cards_form .clearfix::before,
.bm-gc .gift-cards_form .clearfix::after{display:none;}

/* ---------- 2. SHARED "STEP" HEADINGS ----------*/
.bm-gc .ywgc_select_amount_title,
.bm-gc .ywgc_recipient_info_title,
.bm-gc .ywgc-sender-info-title{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0 0 18px;
  padding:0;
  font-size:0 !important;
  line-height:0;
  border:0;
}
.bm-gc .ywgc_select_amount_title::before,
.bm-gc .ywgc_recipient_info_title::before,
.bm-gc .ywgc-sender-info-title::before{
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.25em;
  color:var(--bm-orange);
}
.bm-gc .ywgc_select_amount_title::after,
.bm-gc .ywgc_recipient_info_title::after,
.bm-gc .ywgc-sender-info-title::after{
  font-family:'Poppins',sans-serif;
  font-size:2rem;
  line-height:1.2;
  font-weight:500;
  letter-spacing:0;
  color:#fff;
}
.bm-gc .ywgc_select_amount_title::before{content:"STEP 1";}
.bm-gc .ywgc_select_amount_title::after{content:"Choose Your Amount";}
.bm-gc .ywgc_recipient_info_title::before{content:"STEP 2";}
.bm-gc .ywgc_recipient_info_title::after{content:"Who Is It For?";}
.bm-gc .ywgc-sender-info-title::before{content:"STEP 3";}
.bm-gc .ywgc-sender-info-title::after{content:"Add Your Christmas Message";}

/* "Voucher Info" is replaced by the step headings above */
.bm-gc .ywgc_delivery_info_title{display:none !important;}

/* ---------- 3. AMOUNT PILLS ---------- */
.bm-gc .gift-cards-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
}
.bm-gc .gift-cards-list .ywgc_select_amount_title{grid-column:1 / -1;}

/* target only the <button>, not the hidden inputs that share the class */
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons{
  all:unset;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 16px;
  border-radius:999px;
  border:2px solid var(--bm-orange);
  background:transparent;
  color:var(--bm-orange-soft);
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1;
  text-align:center;
  cursor:pointer;
  transition:background .2s,color .2s,transform .2s,border-color .2s;
}
/* hide WooCommerce's "50.00 €" and show "€50" instead */
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons .woocommerce-Price-amount{
  display:none !important;
}
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons::after{
  content:"€" attr(value);
  color:inherit;
  font:inherit;
}
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons:hover{
  background:rgba(255,114,13,.14);
  color:#fff;
  transform:translateY(-2px);
}
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons.selected_button{
  background:var(--bm-cream) !important;
  border-color:var(--bm-cream) !important;
  color:var(--bm-ink) !important;
  box-shadow:0 0 0 4px rgba(255,114,13,.35);
}
.bm-gc .gift-cards_form .gift-cards-list button.ywgc-amount-buttons:focus-visible{
  outline:2px solid var(--bm-cream);
  outline-offset:3px;
}

/* ---------- 4. RECIPIENT + SENDER FIELDS ---------- */
.bm-gc .gift-card-content-editor{
  display:flow-root !important;
  padding-top:40px !important;
}

/* Box 1: recipient name + email */
.bm-gc .ywgc-single-recipient{
  display:block !important;
  padding:24px;
  border:1px solid var(--bm-line);
  border-radius:12px;
  background:var(--bm-panel);
}

/* STEP 3 heading spacing */
.bm-gc .ywgc-sender-info-title{padding-top:40px !important;}

/* Box 2: sender name (top) + message (bottom) joined as one panel */
.bm-gc .ywgc-sender-name,
.bm-gc .ywgc-message{
  margin:0 !important;
  padding:24px;
  background:var(--bm-panel);
  border:1px solid var(--bm-line);
}
.bm-gc .ywgc-sender-name{
  border-bottom:0;
  border-radius:12px 12px 0 0;
  padding-bottom:9px;
}
.bm-gc .ywgc-message{
  border-top:0;
  border-radius:0 0 12px 12px;
  padding-top:9px;
}

/* labels */
.bm-gc .ywgc-recipient-name,
.bm-gc .ywgc-recipient-email,
.bm-gc .ywgc-sender-name,
.bm-gc .ywgc-message{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  margin:0 !important;
  text-align:left;
}
.bm-gc .ywgc-recipient-name{margin-bottom:18px !important;}
.bm-gc .gift-card-content-editor label{
  float:none;
  width:auto;
  margin:0;
  display:block;
  text-align:left !important;
  font-size:13px;
  font-weight:600;
  color:var(--bm-text);
}

/* inputs */
.bm-gc .gift-card-content-editor input[type="text"],
.bm-gc .gift-card-content-editor input[type="email"],
.bm-gc .gift-card-content-editor textarea{
  width:100% !important;
  box-sizing:border-box;
  height:50px;
  padding:0 16px;
  border:1px solid var(--bm-line-field) !important;
  border-radius:8px !important;
  background:var(--bm-field) !important;
  color:#fff !important;
  font-family:inherit;
  font-size:15px;
  box-shadow:none !important;
  transition:border-color .2s,box-shadow .2s;
}
.bm-gc .gift-card-content-editor textarea{
  height:auto;
  min-height:130px;
  padding:14px 16px;
  resize:vertical;
}
.bm-gc .gift-card-content-editor input[type="text"]:focus,
.bm-gc .gift-card-content-editor input[type="email"]:focus,
.bm-gc .gift-card-content-editor textarea:focus{
  outline:none;
  border-color:var(--bm-orange) !important;
  box-shadow:0 0 0 3px rgba(255,114,13,.3) !important;
}
.bm-gc .gift-card-content-editor ::placeholder{color:#7d786f;}

/* ---------- 5. "EMAIL ME WHEN SENT" CHECKBOX ---------- */
.bm-gc .ywgc-delivery-notification-checkbox-container{
  float:none;
  clear:both;
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-height:44px;
  margin-top:22px;
}
.bm-gc .ywgc-delivery-notification-checkbox-container input[type="checkbox"]{
  width:20px;
  height:20px;
  margin:2px 0 0 !important;
  flex:none;
  accent-color:var(--bm-orange);
}
.bm-gc .gift-card-content-editor .ywgc-delivery-notification-checkbox-container label{
  flex:1;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  font-size:14px;
  font-weight:400;
  line-height:1.5 !important;
  color:#d8d3c9;
}

/* ---------- 6. ADD TO CART BUTTON ---------- */
.bm-gc .gift_card_template_button{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:20px;
  float:none !important;
  clear:both;
  width:100% !important;
  margin:0 !important;
  padding-top:32px;
}
.bm-gc .gift_card_template_button .gift_card_add_to_cart_button{
  flex:none;
  white-space:nowrap;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 44px !important;
  border:0 !important;
  border-radius:999px !important;
  background:var(--bm-orange) !important;
  color:#ffffff !important;
  font-family:inherit;
  font-size:0 !important;           /* hides "Add to cart" so the new label below shows */
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(255,114,13,.3);
  transition:filter .2s,transform .2s;
}
.bm-gc .gift_card_template_button .gift_card_add_to_cart_button::after{
      white-space:nowrap;
  content:"Add Gift Card to Cart";
  font-size:16px;
  line-height:1;
  color:var(--bm-ink);
}
.bm-gc .gift_card_template_button .gift_card_add_to_cart_button:hover{
  filter:brightness(1.1);
  transform:translateY(-2px);
}
.bm-gc .gift_card_template_button .gift_card_add_to_cart_button:focus-visible{
  outline:2px solid var(--bm-cream);
  outline-offset:3px;
}
/* small note next to the button. Replace the text or delete this block */
.bm-gc .gift_card_template_button::after{
      white-space:nowrap;
  content:"Secure checkout";
  font-size:13px;
  color:var(--bm-muted);
}

/* ---------- 7. SELECTED AMOUNT SUMMARY (above the button) ---------- */
.bm-gc .gift_card_template_button::before{
  flex-basis:100%;
  order:-1;
  font-family:'Poppins',sans-serif;
  font-size:15px;
  font-weight:500;
  line-height:1.4;
  color:var(--bm-text);
}
.bm-gc .gift-cards_form:has(button.selected_button[value="50"])   .gift_card_template_button::before{content:"Your gift card: €50";}
.bm-gc .gift-cards_form:has(button.selected_button[value="100"])  .gift_card_template_button::before{content:"Your gift card: €100";}
.bm-gc .gift-cards_form:has(button.selected_button[value="200"])  .gift_card_template_button::before{content:"Your gift card: €200";}
.bm-gc .gift-cards_form:has(button.selected_button[value="500"])  .gift_card_template_button::before{content:"Your gift card: €500";}
.bm-gc .gift-cards_form:has(button.selected_button[value="1000"]) .gift_card_template_button::before{content:"Your gift card: €1000";}
.bm-gc .gift-cards_form:has(button.selected_button[value="2000"]) .gift_card_template_button::before{content:"Your gift card: €2000";}
.bm-gc .gift-cards_form:has(button.selected_button[value="3000"]) .gift_card_template_button::before{content:"Your gift card: €3000";}
.bm-gc .gift-cards_form:has(button.selected_button[value="4000"]) .gift_card_template_button::before{content:"Your gift card: €4000";}
.bm-gc .gift-cards_form:has(button.selected_button[value="5000"]) .gift_card_template_button::before{content:"Your gift card: €5000";}
@media (max-width:1024px){
  .bm-gc .ywgc_select_amount_title::after,
  .bm-gc .ywgc_recipient_info_title::after,
  .bm-gc .ywgc-sender-info-title::after{font-size:1.5rem;}
}
@media (max-width:640px){
  .bm-gc .gift-cards-list{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bm-gc .gift-card-content-editor{padding-top:32px !important;}
  .bm-gc .ywgc-sender-info-title{padding-top:32px !important;}
  .bm-gc .ywgc-single-recipient{padding:18px;}
  .bm-gc .ywgc-sender-name{padding:18px 18px 9px;}
  .bm-gc .ywgc-message{padding:9px 18px 18px;}
  .bm-gc .gift_card_template_button .gift_card_add_to_cart_button{width:100%;}
}