/* Single product page -- the info column: title, price, options, quantity, buttons.
   Loaded after single-product.css. WooCommerce's own button / form CSS is out-ranked on purpose.

   Look: restrained and premium -- two colours plus neutrals (a deep forest green and a muted brass), generous
   white space, small capitals for the little captions, one strong green call to action. The same rows serve a
   simple product (one chosen weight) and a variable one (weights / sizes to choose between).
   Rhythm: blocks 16px apart, groups 24px, tight pairs 8px -- set once for every child of the column. */

body.single-product div.product { --pp-accent: var(--insaf-btn-buy-bg, #0f3d2e); --pp-brass: var(--insaf-btn-cart-bg, #eaf0e6); --pp-line: #dde2d8; --pp-field: #cdd3c8; --pp-muted: #5d6b63; }

body.single-product div.product div.summary { color: var(--insaf-ink); }
body.single-product div.product div.summary > * { margin: 0; }
body.single-product div.product div.summary > * + * { margin-top: 16px; }
body.single-product div.product div.summary > .product_title + *, body.single-product div.product div.summary > .woocommerce-product-rating + * { margin-top: 8px; }
body.single-product div.product div.summary > .insaf-pp-pricebox { margin-top: 12px; }
body.single-product div.product div.summary > .insaf-pp-divider { margin: 18px 0 22px; }
body.single-product div.product div.summary > .insaf-pp-divider + * { margin-top: 0; }
body.single-product div.product div.summary > .insaf-delivery, body.single-product div.product div.summary > .product_meta { margin-top: 24px; }

body.single-product div.product .product_title { padding: 0; color: #14301f; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
body.single-product div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
body.single-product div.product .woocommerce-product-rating .star-rating { margin: 0; }

/* Price + saving on one line. The price is dark; only a real sale price is red. */
body.single-product .insaf-pp-pricebox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
body.single-product div.product div.summary p.price, body.single-product div.product div.summary span.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin: 0; color: #14301f; font-size: 32px; font-weight: 600; line-height: 1.2; }
body.single-product div.product div.summary p.price ins, body.single-product div.product div.summary span.price ins { order: -1; color: var(--insaf-red); background: none; text-decoration: none; }
body.single-product div.product div.summary p.price del, body.single-product div.product div.summary span.price del { margin: 0; color: #6b6f68; font-size: 20px; font-weight: 400; opacity: 1; }
body.single-product .insaf-pp-save { display: inline-block; padding: 4px 12px; border: 1px solid #e6d6a3; border-radius: 999px; color: #5b420b; background: #f6edd2; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
body.single-product .insaf-pp-save[hidden] { display: none; }
body.single-product .insaf-pp-divider { height: 0; border: 0; border-top: 1px solid var(--pp-line); background: none; }

body.single-product .woocommerce-product-details__short-description { color: #3f4a43; font-size: 15px; line-height: 1.7; }
body.single-product .woocommerce-product-details__short-description p { margin: 0 0 8px; }
/* A long short description is shown after the buy block (see Insaf\SingleProduct::render_excerpt_below). */
body.single-product .insaf-pp-overview-below { margin-top: 28px; }
body.single-product .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
body.single-product .woocommerce-product-details__short-description ul { margin: 0; padding: 0; list-style: none; }
body.single-product .woocommerce-product-details__short-description li { position: relative; margin: 0 0 8px; padding-left: 26px; }
body.single-product .woocommerce-product-details__short-description li::before { content: ""; position: absolute; top: .5em; left: 2px; width: 11px; height: 6px; border-bottom: 2px solid var(--pp-accent); border-left: 2px solid var(--pp-accent); transform: rotate(-45deg); }
body.single-product div.product p.stock { display: flex; align-items: center; gap: 8px; color: var(--insaf-green-deeper); font-size: 14px; font-weight: 600; }
body.single-product div.product p.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--insaf-green-dark); }
body.single-product div.product p.stock.out-of-stock { color: var(--insaf-red); }
body.single-product div.product p.stock.out-of-stock::before { background: var(--insaf-red); }

/* ---- Option rows: small-caps caption "WEIGHT: 500 Gm", then tiles. Identical for a simple product (one chosen tile) and a
   variable one (tiles to choose between). The chosen tile is unmistakable: heavy outline, tint, a check badge. A tile also
   shows its own price when the product has a single option (e.g. only weight). ---- */
body.single-product .insaf-pp-opt__label, body.single-product div.product form.variations_form table.variations th.label label { display: block; margin: 0 0 14px; color: var(--pp-muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
body.single-product .insaf-opt-value { margin-left: 0; color: var(--pp-accent); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.single-product .insaf-opt-value:empty { display: none; }
body.single-product .insaf-opt-value::before { content: ":"; margin-right: 6px; color: #8b948c; font-weight: 400; }
body.single-product .insaf-pp-opt__chips, body.single-product .insaf-pills { display: flex; flex-wrap: wrap; gap: 12px; }
body.single-product .insaf-pills__btn, body.single-product .insaf-pp-pack__chip { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 96px; min-height: 52px; padding: 10px 22px; border: 1.5px solid var(--pp-field); border-radius: 12px; color: var(--insaf-ink); background: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
body.single-product .insaf-pp-pack__chip { cursor: default; }
body.single-product .insaf-pills__price { color: var(--pp-muted); font-size: 13px; font-weight: 500; }
body.single-product .insaf-pills__price del { margin-right: 5px; color: #6b6f68; font-weight: 400; }
body.single-product .insaf-pills__btn:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--pp-accent); }
body.single-product .insaf-pills__btn[aria-pressed="true"], body.single-product .insaf-pp-pack__chip { border-color: var(--pp-accent); color: var(--pp-accent); background: #f2f6f1; box-shadow: 0 0 0 1px var(--pp-accent); }
body.single-product .insaf-pills__btn[aria-pressed="true"] .insaf-pills__price { color: var(--pp-accent); }
body.single-product .insaf-pills__btn[aria-pressed="true"]::after, body.single-product .insaf-pp-pack__chip::after { content: ""; position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--pp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 2px #fff; }
body.single-product .insaf-pills__btn:disabled, body.single-product .insaf-pills__btn.is-unavailable { opacity: .5; cursor: not-allowed; }
/* Shown when every size is sold out. */
body.single-product .insaf-pills__allsold { margin: 10px 0 0; color: var(--insaf-red, #c63625); font-size: 14px; font-weight: 600; }
body.single-product .insaf-pills__btn:disabled .insaf-pills__name, body.single-product .insaf-pills__btn.is-unavailable .insaf-pills__name { text-decoration: line-through; }
body.single-product .insaf-pills__select, body.single-product .insaf-pills ~ select { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.single-product div.product form.variations_form table.variations { width: 100%; margin: 0 0 20px; border: 0; border-collapse: collapse; }
body.single-product div.product form.variations_form table.variations th, body.single-product div.product form.variations_form table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
body.single-product div.product form.variations_form table.variations tr { display: block; margin: 0; }
body.single-product div.product form.variations_form table.variations tr + tr { margin-top: 20px; }
body.single-product div.product .woocommerce-variation { margin: 0; grid-column: 1 / -1; }
/* The chosen variation's price is shown up in the main price (see single-product.js), so this copy is hidden. */
body.single-product div.product .woocommerce-variation-price { display: none; }
body.single-product div.product .woocommerce-variation-description:not(:empty), body.single-product div.product .woocommerce-variation-availability:not(:empty) { margin: 0 0 16px; }
body.single-product div.product .woocommerce-variation:empty { display: none; }
body.single-product div.product .woocommerce-variation-description p { margin: 0 0 8px; color: #3f4a43; font-size: 14px; }
/* "In this pack" list for a combo option: what is in the box and how much, in the option's description (<p class="insaf-var-title"> and <ul class="insaf-var-items">). */
body.single-product div.product .woocommerce-variation-description p.insaf-var-title { margin: 0 0 6px; color: #5a655e; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
body.single-product div.product .woocommerce-variation-description ul.insaf-var-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: #1f2a24; font-size: 15px; }
body.single-product div.product .woocommerce-variation-description ul.insaf-var-items li { margin: 0; padding-left: 16px; position: relative; }
body.single-product div.product .woocommerce-variation-description ul.insaf-var-items li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--insaf-green, #03a65a); }
body.single-product div.product .woocommerce-variation-description ul.insaf-var-items strong { font-weight: 600; }
/* A gift that comes with a pack: its own line with the same gift-box drawing the cart uses, so a shopper cannot mistake it for part of the price. Written in the option's description as <p class="insaf-var-gift">. */
body.single-product div.product .woocommerce-variation-description p.insaf-var-gift, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift { position: relative; overflow: hidden; display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center; margin: 12px 0 0; padding: 12px 14px; border: 1px solid #cfe8db; background: #f4faf7; border: 1px solid color-mix(in srgb, var(--insaf-green, #03a65a) 20%, #fff); border-radius: 12px; background: color-mix(in srgb, var(--insaf-green, #03a65a) 5%, #fff); color: #1f2a24; font-size: 14px; line-height: 1.35; animation: insaf-gift-in .35s ease both; }
body.single-product div.product .woocommerce-variation-description p.insaf-var-gift::before, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift::before { content: ""; grid-row: 1 / span 2; width: 24px; height: 24px; background: var(--insaf-green-dark, #02864a); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8'/%3E%3Cpath d='M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5'/%3E%3Crect x='3' y='7' width='18' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8'/%3E%3Cpath d='M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5'/%3E%3Crect x='3' y='7' width='18' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
body.single-product div.product .woocommerce-variation-description p.insaf-var-gift strong, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift strong { grid-column: 2; font-weight: 600; }
body.single-product div.product .woocommerce-variation-description p.insaf-var-gift span, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift span { grid-column: 2; color: #4b5563; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { body.single-product div.product .woocommerce-variation-description p.insaf-var-gift, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift { animation: none; } }
/* Desktop: the gift box sits to the right of the option tiles, on their row, instead of below them. If the row is too narrow it simply drops under the tiles, as on a phone. */
@media (min-width: 992px) {
	body.single-product div.product form.variations_form { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 16px; }
	body.single-product div.product form.variations_form > table.variations { flex: 0 1 auto; width: auto; max-width: 100%; }
	body.single-product div.product form.variations_form > .single_variation_wrap, body.single-product div.product form.variations_form .single_variation_wrap > .woocommerce-variation, body.single-product div.product form.variations_form .woocommerce-variation-description { display: contents; }
	body.single-product div.product form.variations_form .woocommerce-variation-description > p.insaf-var-gift { order: 1; align-content: center; min-height: 59px; box-sizing: border-box; flex: 0 1 auto; min-width: 230px; max-width: 340px; margin: 0 0 20px; }
	body.single-product div.product form.variations_form .woocommerce-variation-description > :not(p.insaf-var-gift), body.single-product div.product form.variations_form .woocommerce-variation-availability { order: 2; flex: 0 0 100%; }
	/* The wrapper has no box here (display: contents), so its bottom margin is lost: the list and any other text keep their own space above the quantity. */
	body.single-product div.product form.variations_form .woocommerce-variation-description > ul.insaf-var-items, body.single-product div.product form.variations_form .woocommerce-variation-description > p:not(.insaf-var-gift):not(.insaf-var-title) { margin-bottom: 16px; }
	body.single-product div.product form.variations_form .woocommerce-variation-add-to-cart { order: 3; flex: 0 0 100%; }
}
/* A one-line hint towards another option that gives more ("Take 2 kg (Combo): delivery is free + save 9%" and a Choose button). Added by single-product.js just above the quantity row. */
body.single-product .insaf-pp-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid #cfe8db; border-radius: 12px; background: #f4faf7; color: #1f2a24; font-size: 14px; line-height: 1.4; }
body.single-product .insaf-pp-hint[hidden] { display: none; }
body.single-product .insaf-pp-hint__text { min-width: 0; font-weight: 600; }
body.single-product .insaf-pp-hint__btn { flex: 0 0 auto; padding: 6px 16px; border: 1.5px solid var(--pp-accent); border-radius: 999px; background: #fff; color: var(--pp-accent); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background .2s ease, color .2s ease; }
body.single-product .insaf-pp-hint__btn:hover { background: var(--pp-accent); color: #fff; }
body.single-product .insaf-pp-hint__btn:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
@media (min-width: 992px) { body.single-product div.product form.variations_form .insaf-pp-hint { order: 2; flex: 0 0 100%; box-sizing: border-box; } }
/* The "Clear" link is not shown: tapping the chosen option again clears it (the tiles are toggles, aria-pressed). Hiding it also keeps the spacing the same for products with and without a pre-selected option. */
body.single-product div.product form.variations_form .reset_variations { display: none !important; }

/* ---- Quantity row, then add to cart | buy now side by side. ---- */
body.single-product div.product form.cart:not(.variations_form), body.single-product div.product form.cart .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
body.single-product div.product form.cart .woocommerce-variation-add-to-cart { margin: 0; }
body.single-product div.product form.cart::before, body.single-product div.product form.cart::after { content: none; }
/* The "Quantity" caption and the box are laid out in CSS (not built by JS) so the row looks the same before and after the
   script runs; the caption text comes from PHP through --insaf-qty-label so it can be translated. */
body.single-product div.product form.cart:not(.grouped_form) .quantity:not(.hidden) { display: flex; align-items: center; gap: 20px; float: none; margin: 0; grid-column: 1 / -1; }
body.single-product div.product form.cart:not(.grouped_form) .quantity:not(.hidden)::before { content: var(--insaf-qty-label, "Quantity:"); color: var(--pp-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.single-product div.product form.cart .quantity:not(.insaf-qty) input.qty { box-sizing: border-box; width: 148px; height: 52px; margin: 0; padding: 0 40px; border: 1.5px solid var(--pp-field); border-radius: 12px; color: var(--insaf-ink); background: #fff; font: inherit; font-size: 16px; font-weight: 600; text-align: center; }
body.single-product div.product form.cart .insaf-qty__box { display: flex; align-items: center; box-sizing: border-box; width: 148px; height: 52px; border: 1.5px solid var(--pp-field); border-radius: 12px; background: #fff; }
body.single-product div.product form.cart .insaf-qty__btn { display: grid; flex: none; width: 30px; height: 30px; margin: 0 8px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--insaf-ink); background: #f1f3ee; cursor: pointer; transition: background .2s ease, color .2s ease; }
body.single-product div.product form.cart .insaf-qty__btn svg { width: 14px; height: 14px; }
body.single-product div.product form.cart .insaf-qty__btn:hover { color: #fff; background: var(--pp-accent); }
body.single-product div.product form.cart .insaf-qty input.qty { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; color: var(--insaf-ink); background: transparent; font: inherit; font-size: 16px; font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
body.single-product div.product form.cart .insaf-qty input.qty::-webkit-outer-spin-button, body.single-product div.product form.cart .insaf-qty input.qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* One strong action: Buy now is the only filled, deep-green button. Add to cart sits beside it as a soft green tint, the same height,
   flat (no shadow, no outline). WhatsApp / Call are not buttons at all: a hairline, then two small icon links. */
body.single-product div.product form.cart button.single_add_to_cart_button.button, body.single-product div.product form.cart button.insaf-pp-buynow.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; float: none; width: 100%; min-height: 52px; margin: 0; padding: 12px 18px; border: 0; border-radius: var(--insaf-btn-radius, 14px); box-shadow: none; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-transform: none; cursor: pointer; transition: filter .2s ease, transform .1s ease; }
body.single-product div.product form.cart button.single_add_to_cart_button.button { color: var(--insaf-btn-cart-text, #0f3d2e); background: var(--pp-brass); }
body.single-product div.product form.cart button.single_add_to_cart_button.button::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat; }
body.single-product div.product form.cart button.insaf-pp-buynow.button { color: var(--insaf-btn-buy-text, #fff); background: var(--pp-accent); }
body.single-product div.product form.cart button.single_add_to_cart_button.button:hover:not(.disabled):not(:disabled) { filter: brightness(.94); }
body.single-product div.product form.cart button.insaf-pp-buynow.button:hover:not(.disabled) { filter: brightness(1.25); }
body.single-product div.product form.cart button.single_add_to_cart_button.button:active:not(.disabled):not(:disabled), body.single-product div.product form.cart button.insaf-pp-buynow.button:active:not(.disabled) { transform: translateY(1px); }
body.single-product div.product form.cart button.single_add_to_cart_button.button.disabled, body.single-product div.product form.cart button.single_add_to_cart_button.button:disabled, body.single-product div.product form.cart button.insaf-pp-buynow.button.disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* A disabled button keeps the theme's own colours. WooCommerce paints any disabled button its default purple (#7f54b3), which flashed on the
   Add to cart button for the moment it said "Adding...". While it is adding, the button stays at nearly full colour and shows a busy cursor;
   "choose an option first" (the .disabled class) stays the plain faded look above. */
body.single-product div.product form.cart button.single_add_to_cart_button.button.disabled, body.single-product div.product form.cart button.single_add_to_cart_button.button:disabled[disabled] { color: var(--insaf-btn-cart-text, #0f3d2e); background: var(--pp-brass); }
body.single-product div.product form.cart button.insaf-pp-buynow.button.disabled, body.single-product div.product form.cart button.insaf-pp-buynow.button:disabled[disabled] { color: var(--insaf-btn-buy-text, #fff); background: var(--pp-accent); }
body.single-product div.product form.cart button.single_add_to_cart_button.button:disabled[disabled]:not(.disabled) { opacity: .75; cursor: progress; }
body.single-product div.product form.cart button:focus-visible, body.single-product .insaf-pp-order__btn:focus-visible, body.single-product .insaf-pills__btn:focus-visible, body.single-product .insaf-qty__btn:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 3px; }

/* ---- WhatsApp | Call: quiet links, not buttons. A hairline above, a small icon and a label for each. ---- */
body.single-product div.product div.summary > .insaf-pp-order { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--pp-line); }
body.single-product .insaf-pp-order { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
body.single-product .insaf-pp-order__btn { --pp-fill: var(--insaf-btn-call, #0f3d2e); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 4px; border: 0; border-radius: 8px; color: var(--insaf-ink); background: transparent; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
body.single-product .insaf-pp-order__btn--whatsapp { --pp-fill: var(--insaf-btn-wa, #12803f); }
body.single-product .insaf-pp-order__btn svg { flex: none; width: 20px; height: 20px; padding: 0; color: var(--pp-fill); background: none; }
/* The label is always underlined; on hover the line turns the icon's colour and thickens a hair, and the icon lifts one pixel. */
body.single-product .insaf-pp-order__btn span { text-decoration: underline; text-decoration-color: rgba(27, 42, 34, .4); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease, text-decoration-thickness .2s ease; }
body.single-product .insaf-pp-order__btn svg { transition: transform .2s ease; }
body.single-product .insaf-pp-order__btn:hover span, body.single-product .insaf-pp-order__btn:focus-visible span { text-decoration-color: var(--pp-fill); text-decoration-thickness: 2px; }
body.single-product .insaf-pp-order__btn:hover svg, body.single-product .insaf-pp-order__btn:focus-visible svg { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { body.single-product .insaf-pp-order__btn span, body.single-product .insaf-pp-order__btn svg { transition: none; } }
body.single-product .insaf-pp-status { min-height: 20px; color: var(--insaf-green-deeper); font-size: 14px; font-weight: 600; }
body.single-product div.product div.summary > .insaf-pp-status { margin-top: 8px; }
body.single-product div.product div.summary > .insaf-pp-status:empty { min-height: 0; margin-top: 0; }
body.single-product .insaf-pp-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

body.single-product div.product .product_meta { display: grid; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--pp-line); color: var(--pp-muted); font-size: 14px; }
body.single-product div.product .product_meta a { display: inline-block; padding: 4px 0; color: var(--pp-accent); }

/* Product types without a quantity row: an external product's lone button and a grouped product's table span the full width. */
body.single-product div.product form.cart > .single_add_to_cart_button:only-child, body.single-product div.product form.cart > .group_table, body.single-product div.product form.cart.grouped_form > .single_add_to_cart_button { grid-column: 1 / -1; }
body.single-product div.product form.cart.grouped_form { display: flow-root; }
body.single-product div.product form.cart.grouped_form > .group_table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; }
body.single-product div.product form.cart.grouped_form .group_table td { padding: 8px 8px 8px 0; vertical-align: middle; }

/* Live total beside the quantity once more than one is chosen. */
body.single-product div.product form.cart .insaf-qty__total { margin-left: auto; color: var(--pp-accent); font-size: 16px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
body.single-product div.product form.cart .insaf-qty__total[hidden] { display: none; }

/* Phones keep the two-up button rows, just a little tighter. */
@media (max-width: 575px) {
	body.single-product div.product .product_title { font-size: 21px; }
	body.single-product div.product div.summary p.price, body.single-product div.product div.summary span.price { font-size: 26px; }
	body.single-product div.product div.summary p.price del, body.single-product div.product div.summary span.price del { font-size: 17px; }
	body.single-product .insaf-pills__btn, body.single-product .insaf-pp-pack__chip { min-width: 84px; padding: 9px 16px; }
	body.single-product .insaf-pp-opt__chips, body.single-product .insaf-pills { gap: 10px; }
	body.single-product div.product form.cart button.single_add_to_cart_button.button, body.single-product div.product form.cart button.insaf-pp-buynow.button { min-height: 50px; padding: 8px; font-size: 14px; gap: 8px; }
	body.single-product .insaf-pp-order { gap: 0 22px; }
	body.single-product div.product form.cart:not(.variations_form), body.single-product div.product form.cart .woocommerce-variation-add-to-cart { gap: 18px 10px; }
}
@media (prefers-reduced-motion: reduce) { body.single-product div.product * { transition: none !important; } }

/* A product with only ONE option (one weight, say) has nothing to choose: the label above already says which, so the lone, already-selected tile is hidden. */
body.single-product .insaf-pills:has(> .insaf-pills__btn:only-child[aria-pressed="true"]) { display: none; }

/* "Order on WhatsApp / Call to order": the quickest route to a sale for many shoppers, so a little larger than body text. */
body.single-product .insaf-pp-order__btn { font-size: 15.5px; gap: 9px; }
body.single-product .insaf-pp-order__btn svg { width: 22px; height: 22px; }

/* WhatsApp / Call: the same two equal columns (and the same gap) as Add to cart / Buy now above, each link centred under its own
   button, with a hairline between them. Beside the icon: the link text and, centred right under it, the number. */
body.single-product .insaf-pp-order { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; justify-content: stretch; }
body.single-product .insaf-pp-order > :only-child { grid-column: 1 / -1; }
body.single-product .insaf-pp-order:has(> :nth-child(2))::before { content: ""; position: absolute; top: 20%; bottom: 14%; left: 50%; width: 1px; background: var(--pp-line, #e2e8df); }
body.single-product .insaf-pp-order__btn { justify-self: center; display: inline-grid; grid-template-columns: auto auto; gap: 0 8px; align-items: center; justify-items: center; font-size: 14.5px; white-space: normal; text-align: center; }
body.single-product .insaf-pp-order__btn svg { grid-row: 1 / span 2; align-self: center; }
body.single-product .insaf-pp-order__btn span { grid-column: 2; }
body.single-product .insaf-pp-order__num { grid-column: 2; margin-top: 3px; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: center; color: #3f4a44; }
@media (max-width: 575px) { body.single-product .insaf-pp-order { gap: 0 10px; } body.single-product .insaf-pp-order__btn { gap: 0 6px; font-size: 13px; } body.single-product .insaf-pp-order__btn svg { width: 20px; height: 20px; } body.single-product .insaf-pp-order__num { font-size: 13.5px; } }

/* Breathing room between the stacked blocks of the buy box: buttons, WhatsApp / Call, reviews, the delivery notes. */
body.single-product.single-product div.product div.summary > .insaf-pp-order { margin-top: 24px; }
body.single-product.single-product div.product div.summary > .insaf-fbr { margin-top: 40px; }
body.single-product.single-product div.product div.summary > .insaf-trust { margin-top: 34px; }
body.single-product.single-product div.product div.summary > .insaf-delivery { margin-top: 28px; }
body.single-product.single-product div.product div.summary > .product_meta { margin-top: 28px; }body.single-product.single-product div.product div.summary > .insaf-fbr + .insaf-trust { margin-top: 34px; }

/* A line that only says delivery is free (no gift): the same line, with the delivery van instead of the gift box. */
body.single-product div.product .woocommerce-variation-description p.insaf-var-gift--free::before, body.single-product .woocommerce-product-details__short-description p.insaf-var-gift--free::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }

/* The "In this pack" list of a simple product (written in its short description) looks exactly like the one of a pack option: small title, plain green dots, bold amounts. */
body.single-product .woocommerce-product-details__short-description p.insaf-var-title { margin: 0 0 6px; color: #5a655e; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
body.single-product .woocommerce-product-details__short-description ul.insaf-var-items { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: #1f2a24; font-size: 15px; }
body.single-product .woocommerce-product-details__short-description ul.insaf-var-items li { margin: 0; padding-left: 16px; }
body.single-product .woocommerce-product-details__short-description ul.insaf-var-items li::before { top: .6em; left: 2px; width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--insaf-green, #03a65a); transform: none; }
body.single-product .woocommerce-product-details__short-description ul.insaf-var-items strong { font-weight: 600; }
body.single-product .woocommerce-product-details__short-description ul.insaf-var-items + p.insaf-var-gift { margin-top: 14px; }

/* The round +/- buttons stay 30px to the eye; the area that answers a tap now fills the whole 52px box height (44px minimum for fingers). */
body.single-product div.product form.cart .insaf-qty__btn { position: relative; }
body.single-product div.product form.cart .insaf-qty__btn::after { content: ""; position: absolute; inset: -11px -4px; }
