/*
Theme Name: Astra Child - ASM
Template: astra
Description: Child theme for Acqua di San Martino di Castrozza product pages
Version: 1.0.0
Text Domain: astra-child-asm
*/

/* Header cart icon ([xoo_wsc_cart] shortcode, added next to the account icon in the
   Elementor header, site-wide). The plugin's default shortcode output also shows a
   price subtotal next to the icon, which doesn't match the plain account-icon look
   and was wide enough to wrap the header's icon row on mobile - hide it and match
   the icon's size/color to the existing account icon (20px, #2e5e82). */
.xoo-wsc-sc-subt{display:none!important}
.xoo-wsc-sc-cont{display:inline-flex;align-items:center}
.xoo-wsc-cart-trigger{display:inline-flex;align-items:center;cursor:pointer}
.xoo-wsc-sc-bki{font-size:20px!important;color:#2e5e82}

/* Cart + checkout pages: the side-cart's floating bubble covered the sticky
   "Procedi al pagamento" button on mobile. The header cart icon stays. */
body.woocommerce-cart .xoo-wsc-basket,
body.woocommerce-checkout .xoo-wsc-basket{display:none!important}

/* Cart page: a 100px Spacer block sits above the cart in the page content */
body.woocommerce-cart .entry-content > .wp-block-spacer:first-child{display:none}
body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart{margin-top:24px}

/* Cart page "Procedi al pagamento": same look as the product-page buttons
   (filled #34597A, white, 600), normal case */
body.woocommerce-cart .wc-block-cart__submit-button{background:#34597A!important;color:#fff!important;border:1.5px solid #34597A!important;border-radius:0!important;min-height:54px!important;height:auto!important;font-size:15px!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus{background:#27445E!important;border-color:#27445E!important;color:#fff!important}

/* Checkout "Procedi" (place order): same look as the cart button above */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button{background:#34597A!important;color:#fff!important;border:1.5px solid #34597A!important;border-radius:0!important;min-height:54px!important;height:auto!important;font-size:15px!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus{background:#27445E!important;border-color:#27445E!important;color:#fff!important}

/* Express checkout: Apple Pay on Apple devices, Google Pay elsewhere, never Link
   (html.asm-applepay is set in functions.php) */
#wc-stripe-express-checkout-element-link{display:none!important}
html.asm-applepay #wc-stripe-express-checkout-element-googlePay{display:none!important}
html:not(.asm-applepay) #wc-stripe-express-checkout-element-applePay{display:none!important}
/* same on the cart / checkout blocks (their wallet containers are named differently) */
html.asm-applepay #express-payment-method-express_checkout_element_googlePay{display:none!important}
html:not(.asm-applepay) #express-payment-method-express_checkout_element_applePay{display:none!important}
#express-payment-method-express_checkout_element_link{display:none!important}
/* Cart / checkout: when no wallet button is left visible, hide the whole "Pagamento
   rapido" box and its "O continua di seguito" divider - never an empty frame */
html.asm-applepay .wc-block-components-express-payment:not(:has(#express-payment-method-express_checkout_element_applePay iframe)),
html.asm-applepay .wc-block-components-express-payment:not(:has(#express-payment-method-express_checkout_element_applePay iframe)) + .wc-block-components-express-payment-continue-rule,
html:not(.asm-applepay) .wc-block-components-express-payment:not(:has(#express-payment-method-express_checkout_element_googlePay iframe)),
html:not(.asm-applepay) .wc-block-components-express-payment:not(:has(#express-payment-method-express_checkout_element_googlePay iframe)) + .wc-block-components-express-payment-continue-rule{display:none!important}

/* Cookie banner: "Rifiuta" exactly as visible as "Accetta" (Garante guidelines), brand colours */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept,
.cmplz-cookiebanner .cmplz-btn.cmplz-deny{background:#34597A!important;border:1px solid #34597A!important;color:#fff!important}
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences{background:#fff!important;border:1px solid #34597A!important;color:#34597A!important}

/* Site-wide text colour: Elementor global "Text" #4E7DA4 (4.14:1) -> #497499 (4.68:1),
   plus the one homepage widget that sets #4E7DA4 directly. */
body.elementor-kit-2486{--e-global-color-text:#497499}
.elementor-1113 .elementor-element.elementor-element-7654920{color:#497499}

/* Main headings promoted to H1 (2026-10-15) keep their previous H2/H4 size */
.elementor-element-a3aab5b .elementor-heading-title{font-size:25px;line-height:1.3}
.elementor-element-5c3a710 .elementor-heading-title,
.elementor-element-3f8fd5a .elementor-heading-title,
.elementor-element-ecb4537 .elementor-heading-title{font-size:18px;line-height:1.2}
@media (max-width:767px){
.elementor-element-a3aab5b .elementor-heading-title{font-size:19px}
.elementor-element-5c3a710 .elementor-heading-title,
.elementor-element-3f8fd5a .elementor-heading-title,
.elementor-element-ecb4537 .elementor-heading-title{font-size:16px}
}

/* Footer copyright: smaller and muted (13px, #5F7386), the footer links are 12px */
.elementor-2493 .elementor-element-e11c634 p{color:#5F7386;font-size:13px;line-height:1.6}

/* Footer Instagram link (2026-10-18): line icon in the same colour (#2E5E82, the widget's
   link-text colour) and size (12px, its font size) as the link text */
.elementor-2493 .elementor-element-264af88{--e-icon-list-icon-size:12px}
.elementor-2493 .elementor-element-264af88 .elementor-icon-list-icon{display:inline-flex;align-items:center;margin-right:0}
.elementor-2493 .elementor-element-264af88 .elementor-icon-list-icon svg{width:12px!important;height:12px!important;fill:#2E5E82!important}
.elementor-2493 .elementor-element-264af88 .elementor-icon-list-icon i{color:#2E5E82!important;font-size:12px!important}

/* Header menu (Elementor #2484): below 1440px the six Italian items didn't fit at 40px
   side padding and "Contatto" wrapped - padding scales with the width instead. */
@media (min-width:1025px) and (max-width:1439px){
.elementor-2484 .elementor-element.elementor-element-809d6e8 .elementor-nav-menu--main .elementor-item{padding-left:2vw!important;padding-right:2vw!important}
}

/* Checkout, mobile: the collapsed "Riepilogo dell'ordine" starts at the white box's
   normal 24px padding (block padding + title margin added ~40px of empty space) */
@media (max-width: 699px){
body.woocommerce-checkout .wp-block-woocommerce-checkout{padding-top:0!important}
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title{margin-top:0!important}
}

/* Promo bar above the header, on every page (inc/site-pages.php; text in the homepage's
   "Barra in alto" fields). Second part hidden on phones. */
.asm-sp-bar{background:#34597A;color:#fff;font-family:'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.03em;text-align:center;padding:10px 16px;line-height:1.5;font-weight:400}
.asm-sp-bar b,.asm-sp-bar strong{font-weight:600;letter-spacing:.06em}
.asm-sp-bar .x[aria-hidden]{opacity:.8;padding:0 10px}
@media (max-width:820px){.asm-sp-bar{font-size:12px}.asm-sp-bar .x{display:none}}
