/* Amin's purchase-path fixes, 28.11.2026 (inc/checkout-2911/checkout-2911.php) */

/* P1: Pelecard's frame holds the whole form, with the button */
iframe[src*="pelecard.biz"]{height:1000px!important}
@media (max-width:400px){iframe[src*="pelecard.biz"]{height:1080px!important}}

/* C1: no zoom on iPhone */
@media (max-width:768px){
  .woocommerce-checkout input.input-text,.woocommerce-checkout select,.woocommerce-checkout textarea,
  .woocommerce-checkout .select2-selection__rendered,.woocommerce-cart input.input-text,#cart-panel input{font-size:16px!important}
}

/* C2: one tap must not delete the Black Friday discount */
.woocommerce-remove-coupon[data-coupon="black30"]{display:none!important}

/* C3: the total at the top of the checkout, phones only */
.amox-co-summary{display:none}
@media (max-width:768px){
  .amox-co-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 16px;padding:13px 14px;border:1px solid #e3ded2;border-radius:12px;background:#fff;color:#1e1e1e;font-size:15px;text-decoration:none}
  .amox-co-summary__total{margin-inline-start:auto;color:#2F4332;font-size:17px}
}

/* C4: an empty house number is not green */
#billing_address_2_field.woocommerce-validated.amox-empty:not(.amox-has-error) input{border-color:#d3ced2!important}
#billing_address_2_field.amox-has-error label{color:#a00}
/* an empty optional field (floor, apartment) is not green either */
form.woocommerce-checkout .form-row.woocommerce-validated:not(.amox-has-error) input.input-text:placeholder-shown:not(:focus),
form.woocommerce-checkout .form-row.woocommerce-validated.amox-blank:not(.amox-has-error) input.input-text{border-color:#d3ced2!important}
#billing_address_2_field .amox-req{color:#c62828;text-decoration:none}

/* C6: the payment step */
.amox-pay-sub{display:block;flex-basis:100%;margin-top:2px;color:#5f5f5f;font-size:13px;font-weight:400}
.amox-secure-note{margin:8px 0 0;color:#5f5f5f;font-size:13px;text-align:center}
.woocommerce-checkout #payment #place_order{min-height:54px;font-size:18px}

/* M1: the price and the button on the first screen of a product page (the new product pages 2.6 have their own) */
@media (max-width:768px){
  body.single-product:not(.amox-pp26-page) .woocommerce-product-gallery .woocommerce-product-gallery__image img{max-height:48vh;max-height:48svh;width:100%;object-fit:contain}
}

/* A1: AEROS category, phones: no photo in the banner, a smaller title and short lines above the kits, so the first product
   starts by 450px (Amin's target) */
@media (max-width:767px){
  .aec.a75 section.hero .hero-media,.a75 section.hero .hero-media{display:none!important}
  .a75 section.hero h1{font-size:28px!important;line-height:1.15!important}
  .a75 .tabs-bar .tab small{display:none}
  .a75 .tabs-bar .tab{min-height:44px}
  .a75 .shop .group:first-of-type .g-head p:last-child,.a75 .shop .group:first-of-type .g-sub{display:none}
}

/* A4 + A5: phones: the top strip goes while scrolling, and WhatsApp steps aside on the way down */
@media (max-width:768px){
  #main-header.is-compact .top-header--container{display:none!important}
  .amox-wa-sticky{transition:opacity .2s}
  .amox-wa-sticky.is-away{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
  /* the Black Friday bar waits until the cookie bar is closed, and stays on one line */
  html.amox-cookie-open #amox-bfc{display:none!important}
}

/* Nadine's check, 29.11 */
/* the accessibility button never covers the open side cart's pay button (as on the live site) */
body:has(#cart-panel[aria-hidden="false"]) .userway_buttons_wrapper{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
/* "הסר" of a product in the side cart is always there (it showed on hover only on the cart page) */
#cart-panel a.remove_from_cart_button{opacity:1!important;visibility:visible!important}
/* the minus stays with the amount */
.woocommerce-cart .cart_totals tr.cart-discount td,#cart-panel tr.cart-discount td,#order_review tr.cart-discount td{white-space:nowrap}
/* the jump from the total at the top lands below the header */
#order_review_heading{scroll-margin-top:90px}
