/* INXO UI standard - the same buttons, fields, dropdowns and text on every page.
   Change a value here (or in :root) and the whole site follows.
   Buttons : red pill (primary), outline pill (secondary: .is-style-outline, .button.outline, pagination, form Cancel links; list Cancel; the list buttons Pay / View and address Edit are red). One size everywhere = the donation form's "Next" button
   Fields  : 10px radius, 1px grey border, darker grey on focus (no red ring), 16px Josefin Sans
   Dropdown: same as fields + chevron
   Text    : Josefin Sans, 17px content (set in theme.json) */
:root {
	--inxo-red-dark:#a50f2f;
	--inxo-text:#1d2327;
	--inxo-muted:#7a7a82;
	--inxo-line:#d9d9dc;
	--inxo-soft:#f6f6f7;
	--inxo-field-radius:10px;
	--inxo-btn-pad:.7rem 2rem .5rem; /* every button = the donation form's Next button: no fixed height, a little less padding below (Josefin Sans sits low in its line) */
	--inxo-ring:0 0 0 3px rgba(200, 21, 59, .16);
	--inxo-field-focus:#4a4a4f; /* dark grey focus colour for every field */
}

/* ---------- Fields ---------- */
body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], textarea, select):not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *) {
	box-sizing:border-box; min-height:46px; padding:.7rem 1rem !important; border:1px solid var(--inxo-line) !important; border-radius:var(--inxo-field-radius) !important; background-color:#fff; color:var(--inxo-text);
	font:300 1rem/1.5 var(--inxo-body) !important; letter-spacing:0; box-shadow:none; transition:border-color .15s, box-shadow .15s;
}
body textarea:not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *) { min-height:7rem; }
body :is(input, textarea, select):not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *)::placeholder { color:#9a9aa2; opacity:1; }
body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], textarea, select):not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *):hover { border-color:#b9b9c0 !important; }
body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], textarea, select):not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *):focus { border-color:var(--inxo-field-focus) !important; box-shadow:none; outline:0; }

/* Dropdowns */
body select:not(.inxo-raw):not(.wc-block-components-text-input *):not(.wc-blocks-components-select *):not(.wc-block-components-combobox *):not(.wc-block-components-address-form *):not(.wc-block-components-quantity-selector *) {
	-webkit-appearance:none; appearance:none; padding-right:2.6rem !important; cursor:pointer;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2327' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat:no-repeat !important; background-position:right 1rem center !important; background-size:12px 8px !important;
}
/* Labels */
body :is(.woocommerce form .form-row label, .wpcf7 label, .woocommerce-MyAccount-content label, label.woocommerce-form__label) { display:block; margin:0 0 .35rem; font:500 .95rem/1.5 var(--inxo-body); color:#3c3c43; }
body label.woocommerce-form__label-for-checkbox, body .woocommerce form .form-row label.checkbox { display:inline-block; font-weight:300; }
body :is(input[type="checkbox"], input[type="radio"]) { accent-color:var(--inxo-red); }

/* ---------- Buttons: primary (red pill) ---------- */
body :is(.wp-block-button__link, .wp-element-button, input[type="submit"], button[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .button.alt, a.button, button.button, .single_add_to_cart_button, .wc-block-components-button:not(.wc-block-components-quantity-selector__button):not(.is-link), .wpcf7-submit):not(.inxo-raw):not(.is-style-outline *):not(:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) *) {
	display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:0; width:auto; padding:var(--inxo-btn-pad); border:1px solid var(--inxo-red); border-radius:99px; background:var(--inxo-red); color:#fff !important;
	font:600 .95rem/1.5 var(--inxo-head); letter-spacing:.06em; text-transform:none; text-decoration:none !important; cursor:pointer; box-shadow:none; transition:background-color .15s, border-color .15s, color .15s;
}
body :is(.wp-block-button__link, .wp-element-button, input[type="submit"], button[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .button.alt, a.button, button.button, .single_add_to_cart_button, .wc-block-components-button:not(.wc-block-components-quantity-selector__button):not(.is-link), .wpcf7-submit):not(.inxo-raw):not(.is-style-outline *):not(:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) *):is(:hover, :focus-visible) {
	background:var(--inxo-red-dark); border-color:var(--inxo-red-dark); color:#fff !important; outline:0;
}
body :is(.wp-block-button__link, .wp-element-button, input[type="submit"], button[type="submit"], .single_add_to_cart_button):focus-visible { box-shadow:var(--inxo-ring); }
body :is(.wp-block-button__link, .wp-element-button, input[type="submit"], button[type="submit"], .single_add_to_cart_button):disabled, body .single_add_to_cart_button.disabled { opacity:.45; cursor:not-allowed; }

/* Secondary: outline pill (same size as the primary). The :not(#inxo-secondary) only raises the rule's weight so it always beats the red primary rule above. */
body :is(.is-style-outline > .wp-block-button__link, .is-style-outline > .wp-element-button, .button.outline, .wc-block-components-button.outlined, .wc-block-components-button.wc-block-mini-cart__footer-checkout, .woocommerce-account .woocommerce-MyAccount-content :is(table.shop_table .woocommerce-button.cancel, .woocommerce-pagination .woocommerce-button, a.button.cancel-link)):not(#inxo-secondary) {
	background:transparent !important; color:var(--inxo-red) !important; border:1px solid var(--inxo-red) !important; border-radius:99px; padding:var(--inxo-btn-pad); font:600 .95rem/1.5 var(--inxo-head); letter-spacing:.06em; text-decoration:none !important;
}
body :is(.is-style-outline > .wp-block-button__link, .is-style-outline > .wp-element-button, .button.outline, .wc-block-components-button.outlined, .wc-block-components-button.wc-block-mini-cart__footer-checkout, .woocommerce-account .woocommerce-MyAccount-content :is(table.shop_table .woocommerce-button.cancel, .woocommerce-pagination .woocommerce-button, a.button.cancel-link)):not(#inxo-secondary):is(:hover, :focus-visible) { background:var(--inxo-red) !important; color:#fff !important; }

/* Cart drawer close (x): the red pill rule above turned it into a white x on white; keep it a plain dark x with no border. */
body .wc-block-components-button.wc-block-components-drawer__close:not(#inxo-secondary), body .wc-block-components-button.wc-block-components-drawer__close:not(#inxo-secondary):is(:hover, :focus-visible) { background:transparent !important; border:0 !important; border-radius:0; color:#111 !important; padding:1em !important; min-height:0; }

/* Links inside content */
.inxo-page-content a:not(.wp-block-button__link):not(.button) { text-underline-offset:.2em; }

/* Quantity box */
body .quantity input.qty { width:5rem; text-align:center; padding-left:.5rem !important; padding-right:.5rem !important; }

/* WooCommerce blocks fields (cart / checkout): same radius and border, keep their floating label spacing */
body :is(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-combobox .components-combobox-control input) { border:1px solid var(--inxo-line) !important; border-radius:var(--inxo-field-radius) !important; }
body :is(.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus) { border-color:var(--inxo-field-focus) !important; box-shadow:none !important; }
body .wc-block-components-text-input.is-active input:-webkit-autofill { -webkit-box-shadow:0 0 0 30px #fff inset !important; }

/* Search block (404 / search): field + button joined as two pills */
body .wp-block-search__inside-wrapper { gap:.6rem; }
body .wp-block-search__input { border-radius:99px !important; padding-left:1.3rem !important; }

/* Cart quantity stepper: the input sits inside a bordered control, so it keeps no border of its own */
body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height:0; padding:.4rem 0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
body .wc-block-components-quantity-selector { border-radius:var(--inxo-field-radius); }
body .wc-block-components-quantity-selector:focus-within { border-color:var(--inxo-field-focus); box-shadow:none; }

/* Page titles on cart / checkout: same as every other page */
:is(.woocommerce-cart, .woocommerce-checkout) main h1.wp-block-post-title, :is(.woocommerce-cart, .woocommerce-checkout) .wp-block-post-title:is(h1) { margin:1.5rem 0 2rem; text-align:center; font-family:var(--inxo-head); font-size:clamp(1.8rem, 3.5vw, 2.6rem); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }

/* The original <select> that select2 hides must stay 1px: the field rules above (width, min-width, padding) made it up to 1000px wide and the page scrolled sideways */
body select.select2-hidden-accessible { position:absolute !important; width:1px !important; min-width:0 !important; height:1px !important; min-height:0 !important; margin:-1px !important; padding:0 !important; border:0 !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; }

/* ---------- Modern select (selectWoo / select2): looks exactly like the dropdown above, assets/select.js turns every select into one ---------- */
body .select2-container { display:block; width:100% !important; margin:0; font-family:var(--inxo-body); }
body .select2-container--default .select2-selection--single { box-sizing:border-box; display:flex; align-items:center; height:46px; min-height:46px; padding:0; border:1px solid var(--inxo-line); border-radius:var(--inxo-field-radius); background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2327' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 12px 8px; transition:border-color .15s; outline:0; }
body .select2-container--default .select2-selection--single .select2-selection__rendered { flex:1; display:block; min-width:0; padding:0 2.6rem 0 1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--inxo-text); font:300 1rem/44px var(--inxo-body); }
body .select2-container--default .select2-selection--single .select2-selection__placeholder { color:#9a9aa2; }
body .select2-container--default .select2-selection--single .select2-selection__arrow, body .select2-container--default .select2-selection--single .select2-selection__clear { display:none; }
body .select2-container--default:hover .select2-selection--single { border-color:#b9b9c0; }
body .select2-container--default.select2-container--focus .select2-selection--single, body .select2-container--default.select2-container--open .select2-selection--single { border-color:var(--inxo-field-focus); }
body .select2-container--default.select2-container--open .select2-selection--single { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2327' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body .select2-container--open { z-index:99999; }
body .select2-dropdown { margin-top:4px; border:1px solid var(--inxo-line); border-radius:var(--inxo-field-radius); background:#fff; box-shadow:0 12px 32px rgba(0,0,0,.12); overflow:hidden; }
body .select2-container--default .select2-dropdown--above { margin-top:-4px; }
body .select2-container--default .select2-search--dropdown { padding:.6rem; }
body .select2-container--default .select2-search--dropdown .select2-search__field { min-height:0; padding:.55rem .8rem !important; border:1px solid var(--inxo-line) !important; border-radius:8px !important; font:300 .95rem/1.5 var(--inxo-body) !important; }
body .select2-results__option { padding:.6rem 1rem; font:300 .95rem/1.5 var(--inxo-body); color:var(--inxo-text); }
body .select2-container--default .select2-results__option[aria-selected="true"] { background:#f4f4f6; color:var(--inxo-text); }
body .select2-container--default .select2-results__option--highlighted[aria-selected], body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background:var(--inxo-red); color:#fff; }
body .select2-results__options { max-height:260px; }
/* WooCommerce paints the select green once a field is "validated"; keep the standard border (red only when invalid) */
body .form-row.woocommerce-validated .select2-container .select2-selection--single { border-color:var(--inxo-line) !important; }
body .form-row.woocommerce-validated .select2-container:hover .select2-selection--single { border-color:#b9b9c0 !important; }
body .form-row.woocommerce-validated .select2-container--focus .select2-selection--single, body .form-row.woocommerce-validated .select2-container--open .select2-selection--single { border-color:var(--inxo-field-focus) !important; }
body .form-row.woocommerce-invalid .select2-container .select2-selection--single { border-color:var(--inxo-red) !important; }

/* Text areas can only be pulled taller, never wider than their box */
body textarea:not(.inxo-raw) { max-width:100%; resize:vertical; }

/* Modern select: the box around it is exactly as tall as the select itself (it was shorter, so the row gap below looked smaller and error text overlapped it) */
body :is(.woocommerce-input-wrapper, .inxo-ms-field, .form-row) > .select2-container { height:46px; }
body :is(.woocommerce-input-wrapper, .inxo-ms-field, .form-row) > .select2-container > .selection { display:block; height:46px; }
body :is(.woocommerce-input-wrapper, .inxo-ms-field, .form-row) > .select2-container > .selection > .select2-selection { display:flex; width:100%; }

/* Error lists (e.g. "Billing First name is a required field."): the links are not underlined */
body :is(.woocommerce-error, .woocommerce-info, .woocommerce-message, .wc-block-components-notice-banner) li a { text-decoration:none !important; }

/* Cart drawer: product names are plain links (no underline) */
body :is(.wc-block-mini-cart__drawer, .wp-block-woocommerce-mini-cart-contents) a.wc-block-components-product-name, body :is(.wc-block-mini-cart__drawer, .wp-block-woocommerce-mini-cart-contents) a.wc-block-components-product-name:hover { text-decoration:none !important; }
body :is(.wc-block-mini-cart__drawer, .wp-block-woocommerce-mini-cart-contents) a.wc-block-components-product-name:hover { color:var(--inxo-red-dark); }

/* Same for the cart drawer lines */
.wc-block-mini-cart__drawer :focus:not(:focus-visible), .wc-block-mini-cart__drawer :is(.wc-block-cart-items, .wc-block-cart-items__row):focus-visible { outline:none !important; box-shadow:none !important; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button:focus:not(:focus-visible) { outline:none !important; box-shadow:none !important; }

/* Every field: dark-grey border on focus, never the browser's blue ring */
body :is(input, textarea, select, [contenteditable="true"]):focus, body :is(input, textarea, select, [contenteditable="true"]):focus-visible { outline:none !important; box-shadow:none !important; }
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, select):focus-visible { border-color:var(--inxo-field-focus) !important; }
body .wc-block-components-text-input input:focus, body .wc-blocks-components-select__select:focus, body .wc-block-components-textarea:focus { border-color:var(--inxo-field-focus) !important; box-shadow:none !important; outline:none !important; }

/* Elements that only get focus from a script (tabindex="-1": notices, panels, rows) never show a focus frame */
body [tabindex="-1"]:focus, body [tabindex="-1"]:focus-visible, body :is(.wc-block-components-notices, .wc-block-store-notices, .wc-block-components-notices__snackbar):focus-visible { outline:none !important; box-shadow:none !important; }


/* Snackbar notices (coupon applied / removed ...): a small toast at the bottom RIGHT, not a full-width bar */
body .wc-block-components-notices__snackbar { left:auto !important; right:24px !important; bottom:24px !important; width:auto !important; max-width:min(440px, calc(100vw - 32px)); z-index:100000; outline:none !important; }
body .wc-block-components-notices__snackbar .wc-block-components-notice-snackbar { margin:0 0 .6rem !important; box-shadow:0 8px 28px rgba(0, 0, 0, .16), inset 4px 0 0 var(--n) !important; align-items:center; padding:12px 14px 14px 18px !important; }
body .wc-block-components-notice-snackbar > .wc-block-components-notice-banner__content { align-self:center; margin:0; padding:0; line-height:1.5; }
body .wc-block-components-notice-snackbar > .wc-block-components-notice-banner__dismiss { align-self:center; flex:none; width:24px; height:24px; min-height:0; margin:0 0 0 .4rem; padding:0 !important; }
@media (max-width:600px) { body .wc-block-components-notices__snackbar { right:12px !important; left:12px !important; max-width:none; } }
/* notice close (x): no box when clicked; keyboard users get a soft dark-grey ring */
body .wc-block-components-notice-banner__dismiss:focus, body .wc-block-components-notice-banner__dismiss:active { outline:none !important; box-shadow:none !important; border:0 !important; }
body .wc-block-components-notice-banner__dismiss:focus-visible { outline:2px solid #4a4a4f !important; outline-offset:2px; border-radius:50%; }
body .wc-block-components-notices__snackbar { max-width:min(560px, calc(100vw - 32px)) !important; }
body .wc-block-components-notices__snackbar .wc-block-components-notice-snackbar { width:max-content; max-width:100%; }
/* Josefin Sans sits high in this line box here: nudge the toast text down so it is optically centred beside the icon and the x */
body .wc-block-components-notice-snackbar > .wc-block-components-notice-banner__content { position:relative; top:2px; }
body .wc-block-components-notice-snackbar > .wc-block-components-notice-banner__content { top:3px; }
body .wc-block-components-notice-snackbar > svg.inxo-ok-icon { position:relative; top:2.5px; }
body .wc-block-components-notice-snackbar > .wc-block-components-notice-banner__dismiss { position:relative; top:-1px; }

/* ---- One notice design for the whole site (WooCommerce block banner look): tint + 4px accent bar + outlined round icon ---- */
/* Success banners made by WooCommerce's PHP templates (e.g. My Account > Addresses) carry a bare check mark: draw the same outlined circle-check as everywhere else */
body .wc-block-components-notice-banner.is-success > svg { display:none !important; }
body .wc-block-components-notice-banner.is-success::before { content:""; flex:none; width:24px; height:24px; background-color:var(--n); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.5'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
body .wc-block-components-notice-banner { box-shadow:inset 4px 0 0 var(--n); }
body .wc-block-components-notice-snackbar { box-shadow:0 8px 28px rgba(0, 0, 0, .16), inset 4px 0 0 var(--n) !important; }

/* same text weight in the classic (PHP) notices as in the banners */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { font-weight:400; }
/* notice text: Josefin Sans sits high in its line, so nudge it down to the visual centre of the icon / box */
body .wc-block-components-notice-banner:not(.wc-block-components-notice-snackbar) > .wc-block-components-notice-banner__content { position:relative; top:2px; }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { padding-top:16px; padding-bottom:12px; }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { top:14px; }
