/*
 * yolanda-core: functional CSS only (visibility rules that business logic
 * depends on). Look and feel belongs to the theme; restyle freely there.
 * Sources: custom-css-js items 29397, 29915, 30281, 36574, 13862, 11096,
 * 23478, 24490, 28627 and woodmart-child/style.css.
 */

/* ---------- Checkout ---------- */

/* Shipping section is always on (see woocommerce_ship_to_different_address_checked). */
#ship-to-different-address-checkbox { display: none; }

/* No account creation at checkout; Klaviyo checkbox hidden (as before). */
.woocommerce-checkout .woocommerce-account-fields,
p#kl_newsletter_checkbox_field { display: none; }

/* Coupon + gift card forms always open under "Your order" (toggle hidden). */
.woocommerce-checkout .woocommerce-form-coupon-toggle { display: none; }
.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon,
.woocommerce-checkout form.checkout_pw_gift_card.woocommerce-form-coupon { display: flex !important; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.woocommerce-checkout form.checkout_coupon p:not(.form-row),
.woocommerce-checkout form.checkout_pw_gift_card p:not(.form-row) { display: none; }
.wt_coupon_wrapper { display: none !important; }

/* Coupons only at checkout, not on the cart page. */
div.coupon:not(.under-proceed) { display: none !important; }

/* ACS pickup: only the selected city's pickup-point list is visible. */
.acs_pickup-location { display: none; }
.acs_pickup-location.is-active { display: block; }

/* "Sent as Gift" tooltip. */
p#its_a_gift_field { position: relative; display: inline-block; }
.giftWrapper { display: inline-block; margin-left: 10px; position: relative; }
.giftPoint { display: inline-block; border-radius: 50%; padding: 0 7px; font-weight: 700; font-size: 11px; line-height: 18px; cursor: pointer; background: #caa862; color: #fff; }
.giftNote { display: none; position: absolute; left: 0; top: 100%; z-index: 5; width: max-content; max-width: 260px; padding: 6px 10px; background: #fff; color: #2b1b14; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); font-size: 13px; }
.giftWrapper:hover .giftNote,
.giftPoint:focus + .giftNote { display: block; }

.checkout_footnote { display: block; font-size: .85em; margin-top: 4px; }

/* Summer ice-pack notice. */
.y-icepack-notice { background: #c6a55c; color: #fff; text-align: center; padding: 14px 20px; margin: 0 0 24px; font-size: 16px; line-height: 1.4; border-radius: 6px; }

/* ORDDD date note visible; datepicker button pane hidden. */
#e_deliverydate_0_field small.orddd_field_note { display: block !important; }
.ui-datepicker .ui-datepicker-buttonpane { display: none !important; }

/* ---------- Country-specific product add-ons (body classes from inc/geo.php) ---------- */

.availableUS-ul, .availableUS-div { display: none !important; }
.geoip-country-US .availableUS-ul, .geoip-country-US .availableUS-div { display: block !important; }
.geoip-country-US .availableEverywhere-ul, .geoip-country-US .availableEverywhere-div { display: none !important; }

.availableCYOnly-div, .availableCY-div, .availableCYOnly { display: none !important; }
.geoip-country-CY .availableCYOnly-div, .geoip-country-CY .availableCY-div, .geoip-country-CY .availableCYOnly { display: block !important; }

/* Product 12785 is not sold to the US. */
.geoip-country-US .post-12785 { display: none; }

/* Product 13870 (corporate / complimentary gift) is not purchasable on its own. */
.postid-13870 p.price, .postid-13870 form.cart, .postid-13870 p.stock.in-stock { display: none; }

/* ---------- TM Extra Product Options (no-ops without EPO) ---------- */

.tc-extra-product-options .complimentaryCard-ul .tmcp-field-wrap .price.tc-price .amount { display: none !important; }
.choosecategory-div .tm-qty,
.tm-extra-product-options-textarea input.tm-qty,
#bags-style .tm-quantity { display: none !important; }
.tm-extra-product-options-checkbox:not(.tm-limit) { display: none; }
span.tm-epo-reset-radio { display: none; }

/* ---------- Content helpers ---------- */

.display-none-div, ul.content-important { display: none; }
p.btn-important { cursor: pointer; }
form.wpcf7-form.sent .row, form.wpcf7-form.sent p { display: none; }

/* WebToffee print view. */
.wfte_invoice-header { margin-left: 0 !important; }
