@automattic/newspack-blocks 4.12.3 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/carousel/view.asset.php +1 -1
  3. package/dist/carousel/view.js +3 -3
  4. package/dist/editor.asset.php +1 -1
  5. package/dist/editor.js +3 -3
  6. package/dist/modal.asset.php +1 -1
  7. package/dist/modal.js +1 -1
  8. package/dist/modalCheckout-rtl.css +1 -1
  9. package/dist/modalCheckout.asset.php +1 -1
  10. package/dist/modalCheckout.css +1 -1
  11. package/dist/modalCheckout.js +1 -1
  12. package/includes/class-modal-checkout.php +32 -106
  13. package/includes/class-newspack-blocks.php +4 -0
  14. package/includes/modal-checkout/class-checkout-data.php +287 -0
  15. package/includes/tracking/class-data-events.php +5 -140
  16. package/newspack-blocks.php +3 -2
  17. package/package.json +5 -5
  18. package/src/blocks/checkout-button/view.php +8 -42
  19. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-base.php +2 -2
  20. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-frequency-based.php +4 -28
  21. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-tiers-based.php +5 -17
  22. package/src/modal-checkout/analytics/ga4/checkout-attempt.js +3 -2
  23. package/src/modal-checkout/analytics/ga4/checkout-success.js +3 -3
  24. package/src/modal-checkout/analytics/ga4/dismissed.js +3 -3
  25. package/src/modal-checkout/analytics/ga4/loaded.js +3 -3
  26. package/src/modal-checkout/analytics/ga4/pagination.js +3 -2
  27. package/src/modal-checkout/analytics/ga4/utils/index.js +31 -17
  28. package/src/modal-checkout/analytics/index.js +1 -1
  29. package/src/modal-checkout/checkout.scss +2 -1
  30. package/src/modal-checkout/index.js +1 -1
  31. package/src/modal-checkout/modal.js +232 -253
  32. package/src/modal-checkout/templates/thankyou.php +3 -6
  33. package/src/modal-checkout/utils.js +126 -0
  34. package/vendor/autoload.php +1 -1
  35. package/vendor/composer/autoload_real.php +4 -4
  36. package/vendor/composer/autoload_static.php +2 -2
  37. package/vendor/composer/installed.php +2 -2
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => 'b5f530bd0370ec7ca0ff');
1
+ <?php return array('dependencies' => array(), 'version' => '5bc94fd3fd4b0c571977');
package/dist/modal.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";function e(e,t=!1){const n=e.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return!1;const o=n?.[0];let c;o.focus(),t?(document.addEventListener("keydown",(function(e){if(("Tab"===e.key||9===e.keyCode)&&e.shiftKey&&document.activeElement===o){const n=t.contentWindow.document,o=n.getElementById("customer_details"),a=n.getElementById("after_customer_details"),r=n.getElementById("checkout-after-success");null!==r?c=r:null!==o.offsetParent?c=n.getElementById("checkout_continue"):null!==a.offsetParent&&(c=n.getElementById("checkout_back")),c.focus(),e.preventDefault()}})),document.getElementById("newspack-a11y-last-element").addEventListener("focus",(()=>{o.focus()}))):(c=n[n.length-1],document.addEventListener("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===o&&(c.focus(),e.preventDefault()):document.activeElement===c&&(o.focus(),e.preventDefault()))})))}const t=(e,t={})=>({...t,action:e}),n=(e,t="np_modal_checkout_interaction")=>{"function"==typeof window.gtag&&e&&window.gtag("event",t,e)},o=e=>{const t=document.getElementById(e),n=!!t&&t.getAttribute("data-order-details");return!!n&&JSON.parse(n)||{}},c=e=>{if("function"!=typeof window.gtag)return;let o="opened";const{amount:c="",is_variable:a="",price:r="",variation_id:i=""}=e,s={...e};(c||r)&&(s.amount=c||r),a&&!i&&(o="opened_variations");const l=t(o,s);n(l)},a=e=>{if("function"!=typeof window.gtag)return;e=e||o("newspack_modal_checkout");const c=t("dismissed",e);n(c)};function r(e,t=null){const n=document.createElement("input");return n.type="hidden",n.name=e,t&&(n.value=t),n}const i=newspackBlocksModal.newspack_class_prefix,s="newspack_modal_checkout_iframe",l="newspack_modal_checkout_container",d="newspack_modal_checkout",u=`${i}__modal`,p="newspack-blocks__modal-variation";let m={},_=!1;const w=e=>{e.overlayId&&window.newspackReaderActivation?.overlays&&window.newspackReaderActivation?.overlays.remove(e.overlayId),e.setAttribute("data-state","closed"),document.body.style.overflow="auto"};var h;window.onpageshow=e=>{e.persisted&&(document.querySelectorAll(".modal-processing").forEach((e=>e.classList.remove("modal-processing"))),document.querySelectorAll(".non-modal-checkout-loading").forEach((e=>e.classList.remove("non-modal-checkout-loading"))),document.querySelectorAll(`.${u}-container`).forEach((e=>w(e))))},h=()=>{const t=document.querySelector(`#${d}`);if(!t)return;const n=t.querySelector(`.${u}__content`),h=r("modal_checkout","1"),y=n.querySelector(`.${i}__spinner`);let f=document.querySelector(".newspack-reader__account-link")?.[0];const k="600px",g=document.createElement("iframe");function v(){const n=g.contentWindow?.location;if(window.newspackReaderActivation&&n?.href?.includes("order-received")){const e=window.newspackReaderActivation,t=new Proxy(new URLSearchParams(n.search),{get:(e,t)=>e.get(t)});t.email&&(e.setReaderEmail(t.email),e.setAuthenticated(!0))}const c=g?.contentDocument?.querySelector(`#${l}`),a=()=>{q.observe(c),"none"!==y.style.display&&(y.style.display="none"),"visible"!==g.style.visibility&&(g.style.visibility="visible"),g._ready=!0};if(c){if(c.checkoutComplete){const n=o(d);window.newspackRAS=window.newspackRAS||[],window.newspackRAS.push((function(e){e.dispatchActivity("checkout_completed",n)})),window?.newspackReaderActivation?.refreshNewslettersSignupModal&&window?.newspackReaderActivation?.getReader()?.email&&window.newspackReaderActivation.refreshNewslettersSignupModal(window.newspackReaderActivation.getReader().email),B("small"),M(newspackBlocksModal.labels.thankyou_modal_title),a(),e(t.querySelector(`.${u}`))}else B(),M(newspackBlocksModal.labels.checkout_modal_title),g.contentWindow?.newspackBlocksModalCheckout?.checkout_nonce&&(t.checkout_nonce=g.contentWindow.newspackBlocksModalCheckout.checkout_nonce);c.checkoutReady?a():c.addEventListener("checkout-ready",a)}}g.name=s,g.style.height=k,g.style.visibility="hidden",g.addEventListener("load",v);const b=e=>new Promise(((t,n)=>{const o=new URLSearchParams(e);o.append("action","modal_checkout_request"),fetch(newspackBlocksModal.ajax_url+"?"+o.toString()).then((e=>{e.ok||n(e),e.json().then((e=>{t(e.url)})).catch(n)})).catch(n)})),S=()=>"undefined"!=typeof newspack_ras_config&&!newspack_ras_config?.is_logged_in&&!window?.newspackReaderActivation?.getReader?.()?.authenticated&&newspackBlocksModal?.is_registration_required&&window?.newspackReaderActivation?.openAuthModal,A=t=>{const n=!newspackBlocksModal.has_unsupported_payment_gateway;n||t.preventDefault();const o=t.target;o.classList.add("modal-processing");const l=o.dataset.product;if(l){const e=JSON.parse(l);Object.keys(e).forEach((t=>{0===o.querySelectorAll('input[name="'+t+'"]').length&&o.appendChild(r(t,e[t]))}))}const d=new FormData(o);d.get("variation_id")||(f=t.submitter);const u=document.querySelectorAll(`.${p}`);if(u.forEach((e=>{(S()||n)&&w(e)})),d.get("is_variable")&&!d.get("variation_id")){const n=[...u].find((e=>e.dataset.productId===d.get("product_id")));if(n){n.querySelectorAll(`form[target="${s}"]`).forEach((e=>{["after_success_behavior","after_success_url","after_success_button_label"].forEach((t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.appendChild(r(t,d.get(t)))}));const t=e.dataset.product;if(t){const n=JSON.parse(t);Object.keys(n).forEach((t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.appendChild(r(t,n[t]))}))}})),t.preventDefault(),o.classList.remove("modal-processing"),L(n),e(n,!1);const a=o.getAttribute("data-product");return m=a?JSON.parse(a):{},_||c(m),void document.getElementById("newspack_modal_checkout").setAttribute("data-order-details",JSON.stringify(m))}}if(!n&&!S())return b(d).then((e=>{window.location.href=e})),void((!d.get("is_variable")||d.get("variation_id"))&&o.querySelectorAll("button[type=submit]:focus").forEach((e=>{e.classList.add("non-modal-checkout-loading");const t=e.innerHTML;e.innerHTML="<span>"+t+"</span>"})));o.classList.remove("modal-processing");const h=d.get("newspack_donate"),y=d.get("newspack_checkout");if(y){const e=o.getAttribute("data-product");m=e?JSON.parse(e):{}}else if(h){const e=d.get("donation_frequency");let t="",n="";for(const n of d.keys())n.indexOf("donation_value_"+e)>=0&&"other"!==d.get(n)&&""!==d.get(n)&&(t=d.get(n));const o=JSON.parse(d.get("frequency_ids"));for(const t in o)t===e&&(n=o[t].toString());m={amount:t,action_type:"donation",currency:d.get("donation_currency"),product_id:n,product_type:"donation",recurrence:e,referrer:d.get("_wp_http_referer")}}const k=d.get("memberships_content_gate");k&&(m.gate_post_id=k);const g=d.get("newspack_popup_id");if(g&&(m.newspack_popup_id=g),_||c(m),_=!0,S()){t.preventDefault();let e="",c="0",r="";if(h){const e=d.get("donation_frequency"),t=o.querySelectorAll(`.donation-tier__${e}, .donation-frequency__${e}`);if(t?.length){const n=d.get("donation_tier_index");if(n){const o=JSON.parse(t?.[n].dataset.product);o.hasOwnProperty(`donation_price_summary_${e}`)&&(r=o[`donation_price_summary_${e}`])}else{const n=o.querySelectorAll(`input[name="donation_value_${e}"], input[name="donation_value_${e}_untiered"]`);n?.length&&(n.forEach((e=>{e.checked&&"other"!==e.value&&(c=e.value)})),t.forEach((t=>{const n=JSON.parse(t.dataset.product);if(n.hasOwnProperty(`donation_price_summary_${e}`)){const t=n[`donation_price_summary_${e}`];new RegExp(`(?<=\\D)${c}(?=\\D)`).test(t)&&(r=t)}if("0"===c&&r){let t=d.get(`donation_value_${e}_other`);t||(t=d.get(`donation_value_${e}_untiered`)),t&&(r=r.replace("0",t))}})))}}}else if(y){const e=o.querySelector('input[name="product_price_summary"]');e&&(r=e.value)}r&&(e=`<div class="order-details-summary ${i}__box ${i}__box--text-center"><p><strong>${r}</strong></p></div>`);const s=b(d);s.then((e=>{window.newspackReaderActivation?.setPendingCheckout?.(e)})),window.newspackReaderActivation.openAuthModal({title:newspackBlocksModal.labels.auth_modal_title,onSuccess:(e,t)=>{s.then((e=>{if(t?.registered&&n&&(e+=`&${newspackBlocksModal.checkout_registration_flag}=1`),n){const t=E(e);O(t)}else b(d).then(window.location.href=e)})).catch((e=>{console.warn("Unable to generate cart:",e),$()}))},onError:()=>{$()},onDismiss:()=>{a(m),_=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-order-details")},skipSuccess:!0,skipNewslettersSignup:!0,labels:{signin:{title:newspackBlocksModal.labels.signin_modal_title},register:{title:newspackBlocksModal.labels.register_modal_title}},content:e,trigger:t.submitter,closeOnSuccess:n})}else R(),document.getElementById("newspack_modal_checkout").setAttribute("data-order-details",JSON.stringify(m))},E=e=>{const t=document.createElement("form");t.method="POST",t.action=e,t.target=s,t.style.display="none";const n=document.createElement("button");return n.setAttribute("type","submit"),t.appendChild(n),document.body.appendChild(t),t.addEventListener("submit",A),t},q=new ResizeObserver((e=>{if(!e||!e.length)return;if(!g.contentDocument)return;const o=e[0].contentRect;if(o){const e=.01*Math.max(document.documentElement.clientHeight,window.innerHeight||0)*90-(t.querySelector(`.${u}__header`)?.offsetHeight||0),c=o.top+o.bottom,a=Math.min(c,e);if(0===a)return void(g.style.visibility="hidden");n.style.height=a+"px",g.style.height=a+"px"}})),$=()=>{const e=g?.contentDocument?.querySelector(`#${l}`),o=e?.querySelector('input[name="after_success_url"]'),c=e?.querySelector('input[name="after_success_behavior"]'),r=document?.querySelector(".newspack-newsletters-signup-modal");e?.checkoutComplete||(()=>{const e=new FormData;newspackBlocksModal.has_unsupported_payment_gateway||e.append("modal_checkout","1"),e.append("action","abandon_modal_checkout"),e.append("_wpnonce",t.checkout_nonce),t.checkout_nonce=null,fetch(newspackBlocksModal.ajax_url,{method:"POST",body:e})})();const i=!(g.contentDocument&&o&&c&&e?.checkoutComplete);if((i||r)&&(y.style.display="flex",g&&n.contains(g)&&(g._ready=!1,g.src="about:blank",g.style.height=k,g.style.visibility="hidden",n.style.height=k,n.removeChild(g)),q&&q.disconnect(),document.querySelectorAll(`.${u}-container`).forEach((e=>w(e))),f&&f.focus()),e?.checkoutComplete){const e=()=>{if(o&&c){const e=o.getAttribute("value"),t=c.getAttribute("value");"custom"===t?window.location.href=e:"referrer"===t&&window.history.back()}window?.newspackReaderActivation?.setPendingCheckout?.(),_=!1};window?.newspackReaderActivation?.openNewslettersSignupModal?window.newspackReaderActivation.openNewslettersSignupModal({onSuccess:e,onError:e,closeOnSuccess:i}):e(),i&&(B(),M(newspackBlocksModal.labels.checkout_modal_title))}else window?.newspackReaderActivation?.setPendingCheckout?.(),a(),_=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-order-details")},R=()=>{y.style.display="flex",L(t),n.appendChild(g),t.addEventListener("click",(e=>{e.target===t&&$()})),e(t,g),function(e){g._readyTimer&&clearTimeout(g._readyTimer);let t=!1;function n(){t||(t=!0,clearTimeout(g._readyTimer),e.call(this))}function o(){"complete"===this.readyState&&n.call(this)}!function e(){if(g._ready)return void clearTimeout(g._readyTimer);const t=g.contentDocument||g.contentWindow?.document;t&&0!==t.URL.indexOf("about:")?"complete"===t?.readyState?n.call(t):(t.addEventListener("DOMContentLoaded",n),t.addEventListener("readystatechange",o)):g._readyTimer=setTimeout(e,10)}()}(v)},L=e=>{window.newspackReaderActivation?.overlays&&(e.overlayId=window.newspackReaderActivation?.overlays.add()),e.setAttribute("data-state","open"),document.body.style.overflow="hidden"},M=e=>{const n=t.querySelector(`.${u}__header h2`);n&&(n.innerText=e)},B=(e="default")=>{const n=t.querySelector(`.${u}`);n&&("small"===e?n.classList.add(`${u}--small`):n.classList.remove(`${u}--small`))};window.newspackCloseModalCheckout=$,t.querySelectorAll(`.${u}__close`).forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),$()}))})),document.querySelectorAll(".newspack-blocks__modal-variation").forEach((e=>{e.addEventListener("click",(t=>{t.target===e&&$()})),e.querySelectorAll(`.${u}__close`).forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),$()}))}))})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&$()})),document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc, .wp-block-newspack-blocks-checkout-button, .newspack-blocks__modal-variation").forEach((e=>{e.querySelectorAll("form").forEach((e=>{newspackBlocksModal.has_unsupported_payment_gateway||e.appendChild(h.cloneNode()),e.target=s,e.addEventListener("submit",A)}))}));const O=e=>{e.requestSubmit(e.querySelector('button[type="submit"]'))};(()=>{const e=new URLSearchParams(window.location.search);if(!e.has("checkout"))return;const t=e.get("type");if("donate"===t){const t=e.get("layout"),n=e.get("frequency"),o=e.get("amount"),c=e.get("other");t&&n&&o&&((e,t,n,o=null)=>{let c;document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc form").forEach((a=>{const r=a.querySelector(`input[name="donation_frequency"][value="${t}"]`);if(r)if("tiered"===e){const e=document.querySelector(`button[data-frequency-slug="${t}"]`);if(!e)return;e.click();const o=a.querySelector(`button[type="submit"][name="donation_value_${t}"][value="${n}"]`);if(!o)return;o.click()}else{const i="untiered"===e?a.querySelector(`input[name="donation_value_${t}_untiered"]`):a.querySelector(`input[name="donation_value_${t}"][value="${n}"]`);if(r&&i){if(r.checked=!0,"untiered"===e)i.value=n;else if("other"===n){i.click();const e=a.querySelector(`input[name="donation_value_${t}_other"]`);e&&o&&(e.value=o)}else i.checked=!0;c=a}}})),c&&O(c)})(t,n,o,c)}else if("checkout_button"===t){const t=e.get("product_id"),n=e.get("variation_id");t&&((e,t=null)=>{let n;if(t&&t!==e){const o=[...document.querySelectorAll(`.${p}`)].find((t=>t.dataset.productId===e));o&&o.querySelectorAll(`form[target="${s}"]`).forEach((e=>{const o=JSON.parse(e.dataset.product);o?.variation_id===Number(t)&&(n=e)}))}else document.querySelectorAll(".wp-block-newspack-blocks-checkout-button").forEach((t=>{const o=t.querySelector("form");if(!o)return;const c=JSON.parse(o.dataset.product);c?.product_id===e&&(n=o)}));n&&O(n)})(t,n)}else{const e=window.newspackReaderActivation?.getPendingCheckout?.();if(e){const t=E(e);O(t)}}window.history.replaceState(null,null,window.location.pathname)})()},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",h):h())})();
1
+ (()=>{"use strict";function e(e,t=!1){const n=e.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return!1;const o=n?.[0];let c;o.focus(),t?(document.addEventListener("keydown",(function(e){if(("Tab"===e.key||9===e.keyCode)&&e.shiftKey&&document.activeElement===o){const n=t.contentWindow.document,o=n.getElementById("customer_details"),a=n.getElementById("after_customer_details"),r=n.getElementById("checkout-after-success");null!==r?c=r:null!==o.offsetParent?c=n.getElementById("checkout_continue"):null!==a.offsetParent&&(c=n.getElementById("checkout_back")),c.focus(),e.preventDefault()}})),document.getElementById("newspack-a11y-last-element").addEventListener("focus",(()=>{o.focus()}))):(c=n[n.length-1],document.addEventListener("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===o&&(c.focus(),e.preventDefault()):document.activeElement===c&&(o.focus(),e.preventDefault()))})))}const t=(e,t={})=>({...t,action:e}),n=["action","action_type","amount","currency","product_id","product_type","variation_id","price_summary","newspack_popup_id","gate_post_id","recurrence","referrer"],o=(e,t="np_modal_checkout_interaction")=>{if("function"==typeof window.gtag&&e){const o={};for(const t of n)e[t]&&(o[t]=e[t].toString());window.gtag("event",t,o)}},c=e=>{if("function"!=typeof window.gtag)return;let n="opened";const{amount:c="",is_variable:a="",price:r="",variation_id:s=""}=e,i={...e};(c||r)&&(i.amount=c||r),a&&!s&&(n="opened_variations");const l=t(n,i);o(l)};function a(e,t=null){const n=document.createElement("input");return n.type="hidden",n.name=e,t&&(n.value=t),n}function r(e){e.requestSubmit(e.querySelector('button[type="submit"]'))}function s(e){const t="string"==typeof e?document.getElementById(e):e;if(!t)return console.warn("No container found for checkout data"),{};let n={};if("FORM"===t.tagName){const e=new FormData(t);n=Object.fromEntries(e)}const o=t.dataset.checkout;if(!o)return console.warn("No checkout data found"),n;try{n={...n,...JSON.parse(o)}}catch(e){console.warn("Error parsing checkout data")}const c=new URL(t.ownerDocument.defaultView.location.href);return c.searchParams.get("action_type")&&(n.action_type=c.searchParams.get("action_type")),n.memberships_content_gate&&(n.gate_post_id=n.memberships_content_gate,delete n.memberships_content_gate),n}const i=e=>{if("function"!=typeof window.gtag)return;e=e||s("newspack_modal_checkout");const n=t("dismissed",e);o(n)},l=newspackBlocksModal.newspack_class_prefix,d="newspack_modal_checkout_iframe",u="newspack_modal_checkout_container",m=`${l}__modal`,p="newspack-blocks__modal-variation";let h=!1,_=newspackBlocksModal.labels.checkout_modal_title;const w=e=>{e.overlayId&&window.newspackReaderActivation?.overlays&&window.newspackReaderActivation?.overlays.remove(e.overlayId),e.setAttribute("data-state","closed"),document.body.style.overflow="auto"};window.onpageshow=e=>{e.persisted&&(document.querySelectorAll(".modal-processing").forEach((e=>e.classList.remove("modal-processing"))),document.querySelectorAll(".non-modal-checkout-loading").forEach((e=>e.classList.remove("non-modal-checkout-loading"))),document.querySelectorAll(`.${m}-container`).forEach((e=>w(e))))};const k=new CustomEvent("checkout-closed");var y;window.newspackRAS=window.newspackRAS||[],y=()=>{const t=document.querySelector("#newspack_modal_checkout");if(!t)return;const n=t.querySelector(`.${m}__content`),o=a("modal_checkout","1"),y=n.querySelector(`.${l}__spinner`);let f=document.querySelector(".newspack-reader__account-link")?.[0];const v="600px",g=document.createElement("iframe");function b(){const n=g.contentWindow?.location;if(window.newspackReaderActivation&&n?.href?.includes("order-received")){const e=window.newspackReaderActivation,t=new Proxy(new URLSearchParams(n.search),{get:(e,t)=>e.get(t)});t.email&&(e.setReaderEmail(t.email),e.setAuthenticated(!0))}const o=g?.contentDocument?.querySelector(`#${u}`);if(!o)return;const c=()=>{L.observe(o),"none"!==y.style.display&&(y.style.display="none"),"visible"!==g.style.visibility&&(g.style.visibility="visible"),g._ready=!0},a=o.querySelector("#modal-checkout-product-details"),r=s(a);if(o.checkoutComplete)window.newspackRAS.push(["checkout_completed",r]),window?.newspackReaderActivation?.refreshNewslettersSignupModal&&window?.newspackReaderActivation?.getReader()?.email&&window.newspackReaderActivation.refreshNewslettersSignupModal(window.newspackReaderActivation.getReader().email),B("small"),C(newspackBlocksModal.labels.thankyou_modal_title),c(),e(t.querySelector(`.${m}`));else{const e=a?.querySelector("strong");e&&(e.textContent=r.price_summary),B(),C(_),g.contentWindow?.newspackBlocksModalCheckout?.checkout_nonce&&(t.checkout_nonce=g.contentWindow.newspackBlocksModalCheckout.checkout_nonce)}o.checkoutReady?c():o.addEventListener("checkout-ready",c)}g.name=d,g.style.height=v,g.style.visibility="hidden",g.addEventListener("load",b);const S=e=>new Promise(((t,n)=>{const o=new URLSearchParams(e);o.append("action","modal_checkout_request"),fetch(newspackBlocksModal.ajax_url+"?"+o.toString()).then((e=>{e.ok||n(e),e.json().then((e=>{t(e.url)})).catch(n)})).catch(n)})),E=()=>"undefined"!=typeof newspack_ras_config&&!newspack_ras_config?.is_logged_in&&!window?.newspackReaderActivation?.getReader?.()?.authenticated&&newspackBlocksModal?.is_registration_required&&window?.newspackReaderActivation?.openAuthModal,A=t=>{const n=!newspackBlocksModal.has_unsupported_payment_gateway;n||t.preventDefault();const o=t.target;o.classList.add("modal-processing");const u=s(o);if(u.newspack_donate){const e=u.donation_frequency,t=[...o.querySelectorAll(`.donation-tier__${e}, .donation-frequency__${e}`)],n=u.donation_tier_index;let c,a;n?(c=t[n],a=u[`donation_value_${e}`]):(c=t[0],a=u[`donation_value_${e}_untiered`]);const r=s(c);for(const e in r)u[e]=r[e];u.amount=a,u.price_summary=u.summary_template.replace("{{PRICE}}",function(e,t="USD"){return parseFloat(e).toLocaleString(document.documentElement.lang,{style:"currency",currency:t,currencyDisplay:"narrowSymbol"})}(u.amount,u.currency))}u&&Object.keys(u).forEach((e=>{0===o.querySelectorAll('input[name="'+e+'"]').length&&o.appendChild(a(e,u[e]))})),u.variation_id||(f=t.submitter);const m=document.querySelectorAll(`.${p}`);if(m.forEach((e=>{(E()||n)&&w(e)})),u.is_variable&&!u.variation_id){const n=[...m].find((e=>e.dataset.productId===u.product_id));if(n)return n.querySelectorAll(`form[target="${d}"]`).forEach((e=>{["after_success_behavior","after_success_url","after_success_button_label"].forEach((t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.appendChild(a(t,u[t]))}));const t=e.dataset.checkout;if(t){const n=JSON.parse(t);Object.keys(n).forEach((t=>{0===e.querySelectorAll('input[name="'+t+'"]').length&&e.appendChild(a(t,n[t]))}))}})),t.preventDefault(),o.classList.remove("modal-processing"),M(n),e(n,!1),h||c(u),void document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u))}if(n||E())if(o.classList.remove("modal-processing"),h||c(u),h=!0,E()){t.preventDefault();const e=u.price_summary,o=e?`<div class="order-details-summary ${l}__box ${l}__box--text-center"><p><strong>${e}</strong></p></div>`:"",c=S(u);c.then((e=>{window.newspackReaderActivation?.setPendingCheckout?.(e)})),window.newspackReaderActivation.openAuthModal({title:newspackBlocksModal.labels.auth_modal_title,onSuccess:(e,t)=>{c.then((e=>{t?.registered&&n&&(e+=`&${newspackBlocksModal.checkout_registration_flag}=1`),n?r(q(e)):S(u).then(window.location.href=e)})).catch((e=>{console.warn("Unable to generate cart:",e),R()}))},onError:()=>{R()},onDismiss:()=>{i(u),h=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout")},skipSuccess:!0,skipNewslettersSignup:!0,labels:{signin:{title:newspackBlocksModal.labels.signin_modal_title},register:{title:newspackBlocksModal.labels.register_modal_title}},content:o,trigger:t.submitter,closeOnSuccess:n})}else $(),document.getElementById("newspack_modal_checkout").setAttribute("data-checkout",JSON.stringify(u));else S(u).then((e=>{window.location.href=e})),(!u.is_variable||u.variation_id)&&o.querySelectorAll("button[type=submit]:focus").forEach((e=>{e.classList.add("non-modal-checkout-loading");const t=e.innerHTML;e.innerHTML="<span>"+t+"</span>"}))},q=e=>{const t=document.createElement("form");t.method="POST",t.action=e,t.target=d,t.style.display="none";const n=document.createElement("button");return n.setAttribute("type","submit"),t.appendChild(n),document.body.appendChild(t),t.addEventListener("submit",A),t},L=new ResizeObserver((e=>{if(!e||!e.length)return;if(!g.contentDocument)return;const o=e[0].contentRect;if(o){const e=.01*Math.max(document.documentElement.clientHeight,window.innerHeight||0)*90-(t.querySelector(`.${m}__header`)?.offsetHeight||0),c=o.top+o.bottom,a=Math.min(c,e);if(0===a)return void(g.style.visibility="hidden");n.style.height=a+"px",g.style.height=a+"px"}})),R=()=>{const e=g?.contentDocument?.querySelector(`#${u}`),o=e?.querySelector('input[name="after_success_url"]'),c=e?.querySelector('input[name="after_success_behavior"]'),a=document?.querySelector(".newspack-newsletters-signup-modal");e?.checkoutComplete||(async()=>{const e=new FormData;newspackBlocksModal.has_unsupported_payment_gateway||e.append("modal_checkout","1"),e.append("action","abandon_modal_checkout"),e.append("_wpnonce",t.checkout_nonce),t.checkout_nonce=null;try{await fetch(newspackBlocksModal.ajax_url,{method:"POST",body:e})}catch(e){console.warn("Unable to empty cart:",e)}})();const r=!(g.contentDocument&&o&&c&&e?.checkoutComplete);if((r||a)&&(y.style.display="flex",g&&n.contains(g)&&(g._ready=!1,g.src="about:blank",g.style.height=v,g.style.visibility="hidden",n.style.height=v,n.removeChild(g)),L&&L.disconnect(),document.querySelectorAll(`.${m}-container`).forEach((e=>w(e))),f&&f.focus(),document.dispatchEvent(k)),e?.checkoutComplete){const e=()=>{if(o&&c){const e=o.getAttribute("value"),t=c.getAttribute("value");"custom"===t?window.location.href=e:"referrer"===t&&window.history.back()}window?.newspackReaderActivation?.setPendingCheckout?.(),h=!1};window?.newspackReaderActivation?.openNewslettersSignupModal?window.newspackReaderActivation.openNewslettersSignupModal({onSuccess:e,onError:e,closeOnSuccess:r}):e(),r&&(_=newspackBlocksModal.labels.checkout_modal_title,B(),C(_))}else window?.newspackReaderActivation?.setPendingCheckout?.(),i(),h=!1,document.getElementById("newspack_modal_checkout").removeAttribute("data-checkout");document.removeEventListener("keydown",D)},$=o=>{o&&(g.src=o),y.style.display="flex",M(t),n.appendChild(g),t.addEventListener("click",(e=>{e.target===t&&R()})),e(t,g),function(e,t){e._readyTimer&&clearTimeout(e._readyTimer);let n=!1;function o(){n||(n=!0,clearTimeout(e._readyTimer),t.call(this))}function c(){"complete"===this.readyState&&o.call(this)}!function t(){if(e._ready)return void clearTimeout(e._readyTimer);const n=e.contentDocument||e.contentWindow?.document;n&&0!==n.URL.indexOf("about:")?"complete"===n?.readyState?o.call(n):(n.addEventListener("DOMContentLoaded",o),n.addEventListener("readystatechange",c)):e._readyTimer=setTimeout(t,10)}()}(b),document.addEventListener("keydown",D)},M=e=>{window.newspackReaderActivation?.overlays&&(e.overlayId=window.newspackReaderActivation?.overlays.add()),e.setAttribute("data-state","open"),document.body.style.overflow="hidden"},C=e=>{const n=t.querySelector(`.${m}__header h2`);n&&(n.innerText=e)},B=(e="default")=>{const n=t.querySelector(`.${m}`);n&&("small"===e?n.classList.add(`${m}--small`):n.classList.remove(`${m}--small`))};t.querySelectorAll(`.${m}__close`).forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),R()}))})),document.querySelectorAll(".newspack-blocks__modal-variation").forEach((e=>{e.addEventListener("click",(t=>{t.target===e&&R()})),e.querySelectorAll(`.${m}__close`).forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),R()}))}))}));const D=e=>{"Escape"===e.key&&R()};document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc, .wp-block-newspack-blocks-checkout-button, .newspack-blocks__modal-variation").forEach((e=>{e.querySelectorAll("form").forEach((e=>{newspackBlocksModal.has_unsupported_payment_gateway||e.appendChild(o.cloneNode()),e.target=d,e.addEventListener("submit",A)}))})),(()=>{const e=new URLSearchParams(window.location.search);if(!e.has("checkout"))return;const t=e.get("type");if("donate"===t){const t=e.get("layout"),n=e.get("frequency"),o=e.get("amount"),c=e.get("other");t&&n&&o&&((e,t,n,o=null)=>{let c;document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc form").forEach((a=>{const r=a.querySelector(`input[name="donation_frequency"][value="${t}"]`);if(r)if("tiered"===e){const e=document.querySelector(`button[data-frequency-slug="${t}"]`);if(!e)return;e.click();const o=a.querySelector(`button[type="submit"][name="donation_value_${t}"][value="${n}"]`);if(!o)return;o.click()}else{const s="untiered"===e?a.querySelector(`input[name="donation_value_${t}_untiered"]`):a.querySelector(`input[name="donation_value_${t}"][value="${n}"]`);if(r&&s){if(r.checked=!0,"untiered"===e)s.value=n;else if("other"===n){s.click();const e=a.querySelector(`input[name="donation_value_${t}_other"]`);e&&o&&(e.value=o)}else s.checked=!0;c=a}}})),c&&r(c)})(t,n,o,c)}else if("checkout_button"===t){const t=e.get("product_id"),n=e.get("variation_id");t&&((e,t=null)=>{let n;if(t&&t!==e){const o=[...document.querySelectorAll(`.${p}`)].find((t=>t.dataset.productId===e));o&&o.querySelectorAll(`form[target="${d}"]`).forEach((e=>{const o=JSON.parse(e.dataset.checkout);o?.variation_id===Number(t)&&(n=e)}))}else document.querySelectorAll(".wp-block-newspack-blocks-checkout-button").forEach((t=>{const o=t.querySelector("form");if(!o)return;const c=JSON.parse(o.dataset.checkout);c?.product_id===e&&(n=o)}));n&&r(n)})(t,n)}else{const e=window.newspackReaderActivation?.getPendingCheckout?.();e&&r(q(e))}window.history.replaceState(null,null,window.location.pathname)})(),window.newspackOpenModalCheckout=({title:e=null,actionType:t=null,afterSuccess:n={},onCheckoutComplete:o=null,onClose:c=null})=>{_=e||newspackBlocksModal.labels.checkout_modal_title,C(_);const a=new URL(newspackBlocksModal.checkout_url);if(t&&a.searchParams.set("action_type",t),n?.url&&a.searchParams.set("after_success_url",n.url),(n?.behavior||n?.url)&&a.searchParams.set("after_success_behavior",n.behavior||"custom"),n?.buttonLabel&&a.searchParams.set("after_success_button_label",n.buttonLabel),o){const e=({detail:{action:e,data:t}})=>{"checkout_completed"===e&&o(t)};window.newspackRAS.push((t=>{t.on("activity",e);const n=()=>{t.off("activity",e),document.removeEventListener("checkout-closed",n)};document.addEventListener("checkout-closed",n)}))}if(c){const e=()=>{c(),document.removeEventListener("checkout-closed",e)};document.addEventListener("checkout-closed",e)}$(a.toString())},window.newspackCloseModalCheckout=R},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",y):y())})();
@@ -1 +1 @@
1
- #newspack_modal_checkout_container{background:var(--newspack-ui-color-neutral-0,#fff);outline:none;padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p.form-row-first:has(+.form-row-last:last-child),#newspack_modal_checkout_container form p:last-child{margin-bottom:0}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.order-total>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.recurring-totals>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table thead>tr>th{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table td.product-name{padding-left:1em}#newspack_modal_checkout_container .order-review-wrapper.hidden,#newspack_modal_checkout_container .woocommerce-form-login-toggle{display:none}#newspack_modal_checkout_container .woocommerce form .form-row .required{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce form .form-row-first:not(:has(+.form-row-last)),#newspack_modal_checkout_container .woocommerce form .form-row-last+.form-row-last,#newspack_modal_checkout_container .woocommerce form .form-row-wide+.form-row-last{clear:both;float:none;width:100%}#newspack_modal_checkout_container .woocommerce-checkout h3{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields h3{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details h3{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-applepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-googlepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading{border-radius:0;min-height:0;padding:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:hover{background:transparent;color:var(--newspack-ui-color-neutral-60)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:focus-visible{outline:0;text-decoration:underline}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading svg{transition:rotate 125ms ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review{margin:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content{display:grid;grid-template-rows:0fr;margin-bottom:var(--newspack-ui-spacer-2,12px);transition:grid-template-rows .25s ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content-inner{overflow:hidden}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded #order_review_heading svg{rotate:180deg}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded .transaction-details-content{grid-template-rows:1fr;margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields label{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields:not(:has(>*)){display:none}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper:after{clear:both;content:"";display:table}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper~.form-row{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields h3{display:none}#newspack_modal_checkout_container #checkout_details{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container #checkout_details h3{margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .billing-details:not(:last-child),#newspack_modal_checkout_container .gift-details:not(:last-child),#newspack_modal_checkout_container .shipping-details:not(:last-child){margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .billing-details p,#newspack_modal_checkout_container .gift-details p,#newspack_modal_checkout_container .shipping-details p{margin:0}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) .required,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) .required{display:none}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) strong,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) strong{font-weight:400}#newspack_modal_checkout_container #ship-to-different-address{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #ship-to-different-address label{display:flex;font-weight:600;margin:0}#newspack_modal_checkout_container #ship-to-different-address label input[type=checkbox]{display:grid}#newspack_modal_checkout_container #ship-to-different-address span{font-weight:unset}#newspack_modal_checkout_container #ship-to-different-address span:after,#newspack_modal_checkout_container #ship-to-different-address span:before{display:none}#newspack_modal_checkout_container .shipping_address{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .newspack-wcsg--wrapper{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle{align-items:center;display:flex;font-weight:700;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle label{display:flex!important;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle .woocommerce-input-wrapper{line-height:.5;margin-left:.25rem}#newspack_modal_checkout_container .newspack-wcsg--gift-email{max-height:0;overflow:hidden;transition:max-height .25s ease-in-out;visibility:hidden}#newspack_modal_checkout_container .newspack-wcsg--gift-email.visible{margin:var(--newspack-ui-spacer-5,24px) 0 0;max-height:none;visibility:visible}#newspack_modal_checkout_container .woocommerce-account-fields{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields h3:has(+.create-account){display:none}#newspack_modal_checkout_container .woocommerce-account-fields .create-account label:has(input[type=checkbox]){display:grid;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr;margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:var(--newspack-ui-spacer-base,8px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.bad,#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.short{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.good{color:var(--newspack-ui-color-warning-40,#bd8600)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.strong{color:var(--newspack-ui-color-success-50,#008a20)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-hint{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account>p.form-row:last-of-type{margin-bottom:0}#newspack_modal_checkout_container .name-your-price{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .modal_checkout_nyp h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .modal_checkout_nyp .input-price{align-items:center;display:flex;flex-wrap:nowrap;gap:.5em;margin:0 0 8px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label{align-items:center;display:flex;margin:0;position:relative;width:100%}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label span.currency{right:0;padding-right:16px;position:absolute}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label input{padding-right:32px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price button{margin-top:0}#newspack_modal_checkout_container .woocommerce-form-coupon{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-form-coupon h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type{align-items:center;display:flex;gap:var(--newspack-ui-spacer-base,#1e1e1e)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type button,#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type input{margin:0!important}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type+.newspack-ui__helper-text{margin-top:calc(var(--newspack-ui-spacer-3, 16px)*-1)}#newspack_modal_checkout_container .modal_checkout_coupon.modal-processing,#newspack_modal_checkout_container .modal_checkout_nyp.modal-processing{opacity:.5}#newspack_modal_checkout_container .woocommerce .order-details-summary h2{margin-top:0}#newspack_modal_checkout_container .wc_payment_methods{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .wc_payment_methods label[for=payment_method_stripe].newspack-ui__input-card{padding:var(--newspack-ui-spacer-3,16px)!important}#newspack_modal_checkout_container .wc_payment_method+.wc_payment_method{margin-top:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method span{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type{margin:unset}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type img{float:left}#newspack_modal_checkout_container .wc_payment_method .payment_box{background:transparent;font-weight:400;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box p{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li{display:flex}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li:not(:last-child){margin-bottom:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li label{font-size:var(--newspack-ui-font-size-xs,14px);font-weight:400;line-height:inherit;margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li input{margin-left:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0!important}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset.wc-payment-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row{align-items:flex-start;display:flex;gap:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row input{margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row label{font-weight:400;margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees label,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew label{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees:before,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew:before{display:none}#newspack_modal_checkout_container .wc_payment_method input.input-radio[name=payment_method]{display:inherit}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card{gap:0;grid-template-columns:0}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card input.input-radio[name=payment_method]{display:none}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments .testmode-info{margin-bottom:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments #wc-woocommerce_payments-upe-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label){align-items:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label img{margin:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label .payment-method-title{margin-right:-.25em;vertical-align:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) span>img{display:none}#newspack_modal_checkout_container .wc-credit-card-form .form-row-wide{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-iban-element-field{border:1px solid var(--newspack-ui-color-input-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:block;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);padding:calc(var(--newspack-ui-spacer-2, 12px) - 1px) calc(var(--newspack-ui-spacer-3, 16px) - 1px)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-iban-element-field{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .woocommerce_error{background:transparent;color:var(--newspack-ui-color-error-50,#d63638);font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0}@media(max-width:440px){#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-first,#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-last{float:none;width:100%}}#newspack_modal_checkout_container #stripe-payment-data~fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0}#newspack_modal_checkout_container fieldset:has(.woocommerce-SavedPaymentMethods-saveNew[style*="display: none"]){display:none}#newspack_modal_checkout_container #wcpay-upe-element,#newspack_modal_checkout_container .wcpay-upe-element{margin:0;padding:0}#newspack_modal_checkout_container #wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew),#newspack_modal_checkout_container .wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew){margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number{font-size:inherit;font-style:inherit;font-weight:400;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0;vertical-align:unset}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:focus,#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:hover{color:inherit;filter:none}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number i{height:1em;width:1em}#newspack_modal_checkout_container .payment_method_woocommerce_payments .testmode-info a{text-decoration:underline}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger){display:block;position:relative}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger) .stripe-gateway-stripelink-modal-trigger{inset:calc(50% - 24px) 20px auto auto!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-card-icons,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-card-icons{float:left}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card>p.form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal>p.form-row{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:before,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:before{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row input[type=radio]+label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row input[type=radio]+label{display:inline-block}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row{display:block;margin:var(--newspack-ui-spacer-base,8px) 0;padding:0!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row label{font-size:var(--newspack-ui-font-size-s,16px);font-weight:600;line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]){margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]){display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method){display:grid!important;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label{font-weight:600;margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:last-child label{margin:0}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table small,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table td,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table th{font-size:var(--newspack-ui-font-size-xs,14px)!important;line-height:var(--newspack-ui-line-height-xs,1.4286)!important}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .recurring-totals th,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table thead th{background:transparent}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method li{margin:0}#newspack_modal_checkout_container .woocommerce .first-payment-date{font-family:var(--newspack-ui-font-family,system-ui)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single,#newspack_modal_checkout_container .woocommerce-invalid input,#newspack_modal_checkout_container .woocommerce-invalid textarea{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single:focus,#newspack_modal_checkout_container .woocommerce-invalid input:focus,#newspack_modal_checkout_container .woocommerce-invalid textarea:focus{outline-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper{margin-bottom:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text{color:var(--newspack-ui-color-neutral-60,#6c6c6c)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions :first-child{margin-top:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row{background:var(--newspack-ui-color-neutral-5,#f7f7f7);border-color:var(--newspack-ui-color-border,#ddd);box-shadow:none;font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:var(--newspack-ui-spacer-5,24px);padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label{align-items:center;display:flex!important;gap:0;height:20px;justify-content:flex-start;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label input{margin:0 0 0 var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label .woocommerce-terms-and-conditions-checkbox-text{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container form .automatewoo-optin,#newspack_modal_checkout_container form .newspack-subscription-confirmation-checkbox{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #place-order{margin-bottom:0}#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator{display:none!important}#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider{display:none}#newspack_modal_checkout_container #checkout_back{margin-top:0}#newspack_modal_checkout_container #checkout_error_back{margin-bottom:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup{scroll-margin-top:var(--newspack-ui-spacer-10,64px)}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper li div,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup li div{display:block}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message{background:none;color:inherit;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);list-style-type:none;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message li{width:100%}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper{margin-bottom:var(--newspack-ui-spacer-5,24px);margin-top:0}#newspack_modal_checkout_container .modal-processing{opacity:.5}#newspack_modal_checkout_container #address_rdi_field{display:none}
1
+ #newspack_modal_checkout_container{background:var(--newspack-ui-color-neutral-0,#fff);outline:none;padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p.form-row-first:has(+.form-row-last:last-child),#newspack_modal_checkout_container form p:last-child{margin-bottom:0}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.order-total>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.recurring-totals>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table thead>tr>th{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table td.product-name{padding-left:1em}#newspack_modal_checkout_container .order-review-wrapper.hidden,#newspack_modal_checkout_container .woocommerce-form-login-toggle{display:none}#newspack_modal_checkout_container .woocommerce form .form-row .required{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce form .form-row-first:not(:has(+.form-row-last)),#newspack_modal_checkout_container .woocommerce form .form-row-last+.form-row-last,#newspack_modal_checkout_container .woocommerce form .form-row-wide+.form-row-last{clear:both;float:none;width:100%}#newspack_modal_checkout_container .woocommerce-checkout h3{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields h3{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details h3{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-applepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-googlepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading{border-radius:0;min-height:0;padding:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:hover{background:transparent;color:var(--newspack-ui-color-neutral-60)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:focus-visible{outline:0;text-decoration:underline}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading svg{transition:rotate 125ms ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review{margin:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content{display:grid;grid-template-rows:0fr;margin-bottom:var(--newspack-ui-spacer-2,12px);transition:grid-template-rows .25s ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content-inner{overflow:hidden}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded #order_review_heading svg{rotate:180deg}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded .transaction-details-content{grid-template-rows:1fr;margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields label{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields:not(:has(>*)){display:none}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper:after{clear:both;content:"";display:table}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper~.form-row{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields h3{display:none}#newspack_modal_checkout_container #checkout_details{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container #checkout_details h3{margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .billing-details:not(:last-child),#newspack_modal_checkout_container .gift-details:not(:last-child),#newspack_modal_checkout_container .shipping-details:not(:last-child){margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .billing-details p,#newspack_modal_checkout_container .gift-details p,#newspack_modal_checkout_container .shipping-details p{margin:0}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) .required,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) .required{display:none}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) strong,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) strong{font-weight:400}#newspack_modal_checkout_container #ship-to-different-address{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #ship-to-different-address label{display:flex;font-weight:600;margin:0}#newspack_modal_checkout_container #ship-to-different-address label input[type=checkbox]{display:grid}#newspack_modal_checkout_container #ship-to-different-address span{font-weight:unset}#newspack_modal_checkout_container #ship-to-different-address span:after,#newspack_modal_checkout_container #ship-to-different-address span:before{display:none}#newspack_modal_checkout_container .shipping_address{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .newspack-wcsg--wrapper{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle{align-items:center;display:flex;font-weight:700;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle label{display:flex!important;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle .woocommerce-input-wrapper{line-height:.5;margin-left:.25rem}#newspack_modal_checkout_container .newspack-wcsg--gift-email{max-height:0;overflow:hidden;transition:max-height .25s ease-in-out;visibility:hidden}#newspack_modal_checkout_container .newspack-wcsg--gift-email.visible{margin:var(--newspack-ui-spacer-5,24px) 0 0;max-height:none;visibility:visible}#newspack_modal_checkout_container .woocommerce-account-fields{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields h3:has(+.create-account){display:none}#newspack_modal_checkout_container .woocommerce-account-fields .create-account label:has(input[type=checkbox]){display:grid;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr;margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:var(--newspack-ui-spacer-base,8px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.bad,#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.short{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.good{color:var(--newspack-ui-color-warning-40,#bd8600)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.strong{color:var(--newspack-ui-color-success-50,#008a20)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-hint{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account>p.form-row:last-of-type{margin-bottom:0}#newspack_modal_checkout_container .name-your-price{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .modal_checkout_nyp h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .modal_checkout_nyp .input-price{align-items:center;display:flex;flex-wrap:nowrap;gap:.5em;margin:0 0 8px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label{align-items:center;display:flex;margin:0;position:relative;width:100%}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label span.currency{right:0;padding-right:16px;position:absolute}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label input{padding-right:32px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price button{margin-top:0}#newspack_modal_checkout_container .woocommerce-form-coupon{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-form-coupon h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type{align-items:center;display:flex;gap:var(--newspack-ui-spacer-base,#1e1e1e)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type button,#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type input{margin:0!important}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type+.newspack-ui__helper-text{margin-top:calc(var(--newspack-ui-spacer-3, 16px)*-1)}#newspack_modal_checkout_container .modal_checkout_coupon.modal-processing,#newspack_modal_checkout_container .modal_checkout_nyp.modal-processing{opacity:.5}#newspack_modal_checkout_container .woocommerce .order-details-summary h2{margin-top:0}#newspack_modal_checkout_container .wc_payment_methods{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .wc_payment_methods label[for=payment_method_stripe].newspack-ui__input-card{padding:var(--newspack-ui-spacer-3,16px)!important}#newspack_modal_checkout_container .wc_payment_method+.wc_payment_method{margin-top:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method span{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type{margin:unset}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type img{float:left}#newspack_modal_checkout_container .wc_payment_method .payment_box{background:transparent;font-weight:400;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box p{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li{display:flex}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li:not(:last-child){margin-bottom:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li label{font-size:var(--newspack-ui-font-size-xs,14px);font-weight:400;line-height:inherit;margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li input{margin-left:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0!important}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset.wc-payment-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row{align-items:flex-start;display:flex;gap:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row input{margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row label{font-weight:400;margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees label,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew label{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees:before,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew:before{display:none}#newspack_modal_checkout_container .wc_payment_method input.input-radio[name=payment_method]{display:inherit}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card{gap:0;grid-template-columns:0}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card input.input-radio[name=payment_method]{display:none}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments .testmode-info{margin-bottom:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments #wc-woocommerce_payments-upe-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label){align-items:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label img{margin:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label .payment-method-title{margin-right:-.25em;vertical-align:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) span>img{display:none}#newspack_modal_checkout_container .wc-credit-card-form .form-row-wide{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-iban-element-field{border:1px solid var(--newspack-ui-color-input-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:block;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);padding:calc(var(--newspack-ui-spacer-2, 12px) - 1px) calc(var(--newspack-ui-spacer-3, 16px) - 1px)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-iban-element-field{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .woocommerce_error{background:transparent;color:var(--newspack-ui-color-error-50,#d63638);font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0}@media(max-width:440px){#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-first,#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-last{float:none;width:100%}}#newspack_modal_checkout_container #stripe-payment-data~fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0}#newspack_modal_checkout_container fieldset:has(.woocommerce-SavedPaymentMethods-saveNew[style*="display: none"]){display:none}#newspack_modal_checkout_container #wcpay-upe-element,#newspack_modal_checkout_container .wcpay-upe-element{margin:0;padding:0}#newspack_modal_checkout_container #wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew),#newspack_modal_checkout_container .wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew){margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number{font-size:inherit;font-style:inherit;font-weight:400;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0;vertical-align:unset}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:focus,#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:hover{color:inherit;filter:none}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number i{height:1em;width:1em}#newspack_modal_checkout_container .payment_method_woocommerce_payments .testmode-info a{text-decoration:underline}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger){display:block;position:relative}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger) .stripe-gateway-stripelink-modal-trigger{inset:calc(50% - 24px) 20px auto auto!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-card-icons,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-card-icons{float:left}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card>p.form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal>p.form-row{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:before,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:before{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row input[type=radio]+label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row input[type=radio]+label{display:inline-block}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row{display:block;margin:var(--newspack-ui-spacer-base,8px) 0;padding:0!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row label{font-size:var(--newspack-ui-font-size-s,16px);font-weight:600;line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]){margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]){display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method){display:grid!important;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label{font-weight:600;margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:last-child label{margin:0}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table small,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table td,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table th{font-size:var(--newspack-ui-font-size-xs,14px)!important;line-height:var(--newspack-ui-line-height-xs,1.4286)!important}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .recurring-totals th,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table thead th{background:transparent}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method li{margin:0}#newspack_modal_checkout_container .woocommerce .first-payment-date{font-family:var(--newspack-ui-font-family,system-ui)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single,#newspack_modal_checkout_container .woocommerce-invalid input,#newspack_modal_checkout_container .woocommerce-invalid textarea{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single:focus,#newspack_modal_checkout_container .woocommerce-invalid input:focus,#newspack_modal_checkout_container .woocommerce-invalid textarea:focus{outline-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper{margin-bottom:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text{color:var(--newspack-ui-color-neutral-60,#6c6c6c)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions :first-child{margin-top:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row{background:var(--newspack-ui-color-neutral-5,#f7f7f7);border-color:var(--newspack-ui-color-border,#ddd);box-shadow:none;font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:var(--newspack-ui-spacer-5,24px);padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label{align-items:center;display:flex!important;gap:0;height:20px;justify-content:flex-start;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label input{margin:0 0 0 var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label .woocommerce-terms-and-conditions-checkbox-text{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container form .automatewoo-optin,#newspack_modal_checkout_container form .newspack-subscription-confirmation-checkbox{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #place-order{margin-bottom:0}#newspack_modal_checkout_container #wc-stripe-express-checkout-button-separator,#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator{display:none!important}#newspack_modal_checkout_container #wc-stripe-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider{display:none}#newspack_modal_checkout_container #checkout_back{margin-top:0}#newspack_modal_checkout_container #checkout_error_back{margin-bottom:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup{scroll-margin-top:var(--newspack-ui-spacer-10,64px)}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper li div,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup li div{display:block}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message{background:none;color:inherit;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);list-style-type:none;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message li{width:100%}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper{margin-bottom:var(--newspack-ui-spacer-5,24px);margin-top:0}#newspack_modal_checkout_container .modal-processing{opacity:.5}#newspack_modal_checkout_container #address_rdi_field{display:none}
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => '8ab776450c215042f14f');
1
+ <?php return array('dependencies' => array(), 'version' => 'b23a1b10b319ece1276d');
@@ -1 +1 @@
1
- #newspack_modal_checkout_container{background:var(--newspack-ui-color-neutral-0,#fff);outline:none;padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p.form-row-first:has(+.form-row-last:last-child),#newspack_modal_checkout_container form p:last-child{margin-bottom:0}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.order-total>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.recurring-totals>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table thead>tr>th{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table td.product-name{padding-right:1em}#newspack_modal_checkout_container .order-review-wrapper.hidden,#newspack_modal_checkout_container .woocommerce-form-login-toggle{display:none}#newspack_modal_checkout_container .woocommerce form .form-row .required{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce form .form-row-first:not(:has(+.form-row-last)),#newspack_modal_checkout_container .woocommerce form .form-row-last+.form-row-last,#newspack_modal_checkout_container .woocommerce form .form-row-wide+.form-row-last{clear:both;float:none;width:100%}#newspack_modal_checkout_container .woocommerce-checkout h3{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields h3{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details h3{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-applepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-googlepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading{border-radius:0;min-height:0;padding:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:hover{background:transparent;color:var(--newspack-ui-color-neutral-60)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:focus-visible{outline:0;text-decoration:underline}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading svg{transition:rotate 125ms ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review{margin:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content{display:grid;grid-template-rows:0fr;margin-bottom:var(--newspack-ui-spacer-2,12px);transition:grid-template-rows .25s ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content-inner{overflow:hidden}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded #order_review_heading svg{rotate:180deg}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded .transaction-details-content{grid-template-rows:1fr;margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields label{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields:not(:has(>*)){display:none}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper:after{clear:both;content:"";display:table}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper~.form-row{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields h3{display:none}#newspack_modal_checkout_container #checkout_details{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container #checkout_details h3{margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .billing-details:not(:last-child),#newspack_modal_checkout_container .gift-details:not(:last-child),#newspack_modal_checkout_container .shipping-details:not(:last-child){margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .billing-details p,#newspack_modal_checkout_container .gift-details p,#newspack_modal_checkout_container .shipping-details p{margin:0}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) .required,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) .required{display:none}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) strong,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) strong{font-weight:400}#newspack_modal_checkout_container #ship-to-different-address{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #ship-to-different-address label{display:flex;font-weight:600;margin:0}#newspack_modal_checkout_container #ship-to-different-address label input[type=checkbox]{display:grid}#newspack_modal_checkout_container #ship-to-different-address span{font-weight:unset}#newspack_modal_checkout_container #ship-to-different-address span:after,#newspack_modal_checkout_container #ship-to-different-address span:before{display:none}#newspack_modal_checkout_container .shipping_address{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .newspack-wcsg--wrapper{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle{align-items:center;display:flex;font-weight:700;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle label{display:flex!important;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle .woocommerce-input-wrapper{line-height:.5;margin-right:.25rem}#newspack_modal_checkout_container .newspack-wcsg--gift-email{max-height:0;overflow:hidden;transition:max-height .25s ease-in-out;visibility:hidden}#newspack_modal_checkout_container .newspack-wcsg--gift-email.visible{margin:var(--newspack-ui-spacer-5,24px) 0 0;max-height:none;visibility:visible}#newspack_modal_checkout_container .woocommerce-account-fields{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields h3:has(+.create-account){display:none}#newspack_modal_checkout_container .woocommerce-account-fields .create-account label:has(input[type=checkbox]){display:grid;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr;margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:var(--newspack-ui-spacer-base,8px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.bad,#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.short{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.good{color:var(--newspack-ui-color-warning-40,#bd8600)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.strong{color:var(--newspack-ui-color-success-50,#008a20)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-hint{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account>p.form-row:last-of-type{margin-bottom:0}#newspack_modal_checkout_container .name-your-price{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .modal_checkout_nyp h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .modal_checkout_nyp .input-price{align-items:center;display:flex;flex-wrap:nowrap;gap:.5em;margin:0 0 8px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label{align-items:center;display:flex;margin:0;position:relative;width:100%}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label span.currency{left:0;padding-left:16px;position:absolute}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label input{padding-left:32px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price button{margin-top:0}#newspack_modal_checkout_container .woocommerce-form-coupon{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-form-coupon h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type{align-items:center;display:flex;gap:var(--newspack-ui-spacer-base,#1e1e1e)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type button,#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type input{margin:0!important}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type+.newspack-ui__helper-text{margin-top:calc(var(--newspack-ui-spacer-3, 16px)*-1)}#newspack_modal_checkout_container .modal_checkout_coupon.modal-processing,#newspack_modal_checkout_container .modal_checkout_nyp.modal-processing{opacity:.5}#newspack_modal_checkout_container .woocommerce .order-details-summary h2{margin-top:0}#newspack_modal_checkout_container .wc_payment_methods{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .wc_payment_methods label[for=payment_method_stripe].newspack-ui__input-card{padding:var(--newspack-ui-spacer-3,16px)!important}#newspack_modal_checkout_container .wc_payment_method+.wc_payment_method{margin-top:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method span{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type{margin:unset}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type img{float:right}#newspack_modal_checkout_container .wc_payment_method .payment_box{background:transparent;font-weight:400;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box p{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li{display:flex}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li:not(:last-child){margin-bottom:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li label{font-size:var(--newspack-ui-font-size-xs,14px);font-weight:400;line-height:inherit;margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li input{margin-right:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0!important}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset.wc-payment-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row{align-items:flex-start;display:flex;gap:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row input{margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row label{font-weight:400;margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees label,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew label{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees:before,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew:before{display:none}#newspack_modal_checkout_container .wc_payment_method input.input-radio[name=payment_method]{display:inherit}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card{gap:0;grid-template-columns:0}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card input.input-radio[name=payment_method]{display:none}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments .testmode-info{margin-bottom:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments #wc-woocommerce_payments-upe-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label){align-items:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label img{margin:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label .payment-method-title{margin-left:-.25em;vertical-align:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) span>img{display:none}#newspack_modal_checkout_container .wc-credit-card-form .form-row-wide{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-iban-element-field{border:1px solid var(--newspack-ui-color-input-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:block;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);padding:calc(var(--newspack-ui-spacer-2, 12px) - 1px) calc(var(--newspack-ui-spacer-3, 16px) - 1px)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-iban-element-field{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .woocommerce_error{background:transparent;color:var(--newspack-ui-color-error-50,#d63638);font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0}@media(max-width:440px){#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-first,#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-last{float:none;width:100%}}#newspack_modal_checkout_container #stripe-payment-data~fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0}#newspack_modal_checkout_container fieldset:has(.woocommerce-SavedPaymentMethods-saveNew[style*="display: none"]){display:none}#newspack_modal_checkout_container #wcpay-upe-element,#newspack_modal_checkout_container .wcpay-upe-element{margin:0;padding:0}#newspack_modal_checkout_container #wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew),#newspack_modal_checkout_container .wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew){margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number{font-size:inherit;font-style:inherit;font-weight:400;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0;vertical-align:unset}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:focus,#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:hover{color:inherit;filter:none}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number i{height:1em;width:1em}#newspack_modal_checkout_container .payment_method_woocommerce_payments .testmode-info a{text-decoration:underline}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger){display:block;position:relative}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger) .stripe-gateway-stripelink-modal-trigger{inset:calc(50% - 24px) 20px auto auto!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-card-icons,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-card-icons{float:right}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card>p.form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal>p.form-row{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:before,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:before{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row input[type=radio]+label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row input[type=radio]+label{display:inline-block}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row{display:block;margin:var(--newspack-ui-spacer-base,8px) 0;padding:0!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row label{font-size:var(--newspack-ui-font-size-s,16px);font-weight:600;line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]){margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]){display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method){display:grid!important;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label{font-weight:600;margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:last-child label{margin:0}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table small,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table td,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table th{font-size:var(--newspack-ui-font-size-xs,14px)!important;line-height:var(--newspack-ui-line-height-xs,1.4286)!important}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .recurring-totals th,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table thead th{background:transparent}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method li{margin:0}#newspack_modal_checkout_container .woocommerce .first-payment-date{font-family:var(--newspack-ui-font-family,system-ui)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single,#newspack_modal_checkout_container .woocommerce-invalid input,#newspack_modal_checkout_container .woocommerce-invalid textarea{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single:focus,#newspack_modal_checkout_container .woocommerce-invalid input:focus,#newspack_modal_checkout_container .woocommerce-invalid textarea:focus{outline-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper{margin-bottom:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text{color:var(--newspack-ui-color-neutral-60,#6c6c6c)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions :first-child{margin-top:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row{background:var(--newspack-ui-color-neutral-5,#f7f7f7);border-color:var(--newspack-ui-color-border,#ddd);box-shadow:none;font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:var(--newspack-ui-spacer-5,24px);padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label{align-items:center;display:flex!important;gap:0;height:20px;justify-content:flex-start;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label input{margin:0 var(--newspack-ui-spacer-2,12px) 0 0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label .woocommerce-terms-and-conditions-checkbox-text{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container form .automatewoo-optin,#newspack_modal_checkout_container form .newspack-subscription-confirmation-checkbox{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #place-order{margin-bottom:0}#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator{display:none!important}#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider{display:none}#newspack_modal_checkout_container #checkout_back{margin-top:0}#newspack_modal_checkout_container #checkout_error_back{margin-bottom:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup{scroll-margin-top:var(--newspack-ui-spacer-10,64px)}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper li div,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup li div{display:block}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message{background:none;color:inherit;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);list-style-type:none;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message li{width:100%}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper{margin-bottom:var(--newspack-ui-spacer-5,24px);margin-top:0}#newspack_modal_checkout_container .modal-processing{opacity:.5}#newspack_modal_checkout_container #address_rdi_field{display:none}
1
+ #newspack_modal_checkout_container{background:var(--newspack-ui-color-neutral-0,#fff);outline:none;padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container form p.form-row-first:has(+.form-row-last:last-child),#newspack_modal_checkout_container form p:last-child{margin-bottom:0}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.order-total>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table tfoot>tr.recurring-totals>th,#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table thead>tr>th{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container table.woocommerce-checkout-review-order-table td.product-name{padding-right:1em}#newspack_modal_checkout_container .order-review-wrapper.hidden,#newspack_modal_checkout_container .woocommerce-form-login-toggle{display:none}#newspack_modal_checkout_container .woocommerce form .form-row .required{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce form .form-row-first:not(:has(+.form-row-last)),#newspack_modal_checkout_container .woocommerce form .form-row-last+.form-row-last,#newspack_modal_checkout_container .woocommerce form .form-row-wide+.form-row-last{clear:both;float:none;width:100%}#newspack_modal_checkout_container .woocommerce-checkout h3{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields h3{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details h3{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-applepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-googlepay-container,#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details #ppc-button-ppcp-gateway{margin-bottom:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading{border-radius:0;min-height:0;padding:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:hover{background:transparent;color:var(--newspack-ui-color-neutral-60)}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading:focus-visible{outline:0;text-decoration:underline}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review_heading svg{transition:rotate 125ms ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper #order_review{margin:0}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content{display:grid;grid-template-rows:0fr;margin-bottom:var(--newspack-ui-spacer-2,12px);transition:grid-template-rows .25s ease-in-out}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details .order-review-wrapper .transaction-details-content-inner{overflow:hidden}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded #order_review_heading svg{rotate:180deg}#newspack_modal_checkout_container .woocommerce-checkout #after_customer_details.transaction-details-expanded .transaction-details-content{grid-template-rows:1fr;margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields label,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields label{font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5)}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-account-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields:not(:has(>*)),#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-shipping-fields:not(:has(>*)){display:none}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper:after{clear:both;content:"";display:table}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields,#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-billing-fields__field-wrapper~.form-row{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-checkout .woocommerce-additional-fields h3{display:none}#newspack_modal_checkout_container #checkout_details{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container #checkout_details h3{margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .billing-details:not(:last-child),#newspack_modal_checkout_container .gift-details:not(:last-child),#newspack_modal_checkout_container .shipping-details:not(:last-child){margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .billing-details p,#newspack_modal_checkout_container .gift-details p,#newspack_modal_checkout_container .shipping-details p{margin:0}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) .required,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) .required{display:none}#newspack_modal_checkout_container #billing_country_field:has(input[readonly][autocomplete=country]) strong,#newspack_modal_checkout_container #shipping_country_field:has(input[readonly][autocomplete=country]) strong{font-weight:400}#newspack_modal_checkout_container #ship-to-different-address{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #ship-to-different-address label{display:flex;font-weight:600;margin:0}#newspack_modal_checkout_container #ship-to-different-address label input[type=checkbox]{display:grid}#newspack_modal_checkout_container #ship-to-different-address span{font-weight:unset}#newspack_modal_checkout_container #ship-to-different-address span:after,#newspack_modal_checkout_container #ship-to-different-address span:before{display:none}#newspack_modal_checkout_container .shipping_address{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .newspack-wcsg--wrapper{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle{align-items:center;display:flex;font-weight:700;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle label{display:flex!important;margin-bottom:0}#newspack_modal_checkout_container .newspack-wcsg--gift-toggle .woocommerce-input-wrapper{line-height:.5;margin-right:.25rem}#newspack_modal_checkout_container .newspack-wcsg--gift-email{max-height:0;overflow:hidden;transition:max-height .25s ease-in-out;visibility:hidden}#newspack_modal_checkout_container .newspack-wcsg--gift-email.visible{margin:var(--newspack-ui-spacer-5,24px) 0 0;max-height:none;visibility:visible}#newspack_modal_checkout_container .woocommerce-account-fields{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields h3:has(+.create-account){display:none}#newspack_modal_checkout_container .woocommerce-account-fields .create-account label:has(input[type=checkbox]){display:grid;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr;margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:var(--newspack-ui-spacer-base,8px) 0 0}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.bad,#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.short{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.good{color:var(--newspack-ui-color-warning-40,#bd8600)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-strength.strong{color:var(--newspack-ui-color-success-50,#008a20)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account .woocommerce-password-hint{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .woocommerce-account-fields .create-account>p.form-row:last-of-type{margin-bottom:0}#newspack_modal_checkout_container .name-your-price{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .modal_checkout_nyp h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .modal_checkout_nyp .input-price{align-items:center;display:flex;flex-wrap:nowrap;gap:.5em;margin:0 0 8px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label{align-items:center;display:flex;margin:0;position:relative;width:100%}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label span.currency{left:0;padding-left:16px;position:absolute}#newspack_modal_checkout_container .modal_checkout_nyp .input-price label input{padding-left:32px}#newspack_modal_checkout_container .modal_checkout_nyp .input-price button{margin-top:0}#newspack_modal_checkout_container .woocommerce-form-coupon{margin-bottom:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-form-coupon h3{color:var(--newspack-ui-label-color,inherit);margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type{align-items:center;display:flex;gap:var(--newspack-ui-spacer-base,#1e1e1e)}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type button,#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type input{margin:0!important}#newspack_modal_checkout_container .woocommerce-form-coupon p:first-of-type+.newspack-ui__helper-text{margin-top:calc(var(--newspack-ui-spacer-3, 16px)*-1)}#newspack_modal_checkout_container .modal_checkout_coupon.modal-processing,#newspack_modal_checkout_container .modal_checkout_nyp.modal-processing{opacity:.5}#newspack_modal_checkout_container .woocommerce .order-details-summary h2{margin-top:0}#newspack_modal_checkout_container .wc_payment_methods{margin:0 0 var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .wc_payment_methods label[for=payment_method_stripe].newspack-ui__input-card{padding:var(--newspack-ui-spacer-3,16px)!important}#newspack_modal_checkout_container .wc_payment_method+.wc_payment_method{margin-top:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method span{font-weight:var(--newspack-ui-font-weight-strong,600)}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type{margin:unset}#newspack_modal_checkout_container .wc_payment_method>label:first-of-type img{float:right}#newspack_modal_checkout_container .wc_payment_method .payment_box{background:transparent;font-weight:400;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box p{color:var(--newspack-ui-color-neutral-60,#6c6c6c);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li{display:flex}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li:not(:last-child){margin-bottom:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li label{font-size:var(--newspack-ui-font-size-xs,14px);font-weight:400;line-height:inherit;margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box ul.wc-saved-payment-methods li input{margin-right:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0;padding:0!important}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset.wc-payment-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row{align-items:flex-start;display:flex;gap:var(--newspack-ui-spacer-2,12px)}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row input{margin:0}#newspack_modal_checkout_container .wc_payment_method .payment_box fieldset p.form-row label{font-weight:400;margin-bottom:0}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees label,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew label{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286)}#newspack_modal_checkout_container .wc_payment_method .payment_box .newspack-cover-fees:before,#newspack_modal_checkout_container .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew:before{display:none}#newspack_modal_checkout_container .wc_payment_method input.input-radio[name=payment_method]{display:inherit}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card{gap:0;grid-template-columns:0}#newspack_modal_checkout_container .wc_payment_method:first-child:last-child .newspack-ui__input-card input.input-radio[name=payment_method]{display:none}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments .testmode-info{margin-bottom:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments #wc-woocommerce_payments-upe-form{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label){align-items:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label img{margin:0}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) .woopayments-rich-payment-method-label .payment-method-title{margin-left:-.25em;vertical-align:unset}#newspack_modal_checkout_container #payment .payment_method_woocommerce_payments label:has(.woopayments-rich-payment-method-label) span>img{display:none}#newspack_modal_checkout_container .wc-credit-card-form .form-row-wide{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form .wc-stripe-iban-element-field{border:1px solid var(--newspack-ui-color-input-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:block;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-s,16px);line-height:var(--newspack-ui-line-height-s,1.5);padding:calc(var(--newspack-ui-spacer-2, 12px) - 1px) calc(var(--newspack-ui-spacer-3, 16px) - 1px)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-elements-field,#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .wc-stripe-iban-element-field{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .wc-credit-card-form:has(div.stripe-source-errors[role=alert]:not(:empty)) .woocommerce_error{background:transparent;color:var(--newspack-ui-color-error-50,#d63638);font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0}@media(max-width:440px){#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-first,#newspack_modal_checkout_container .wc-credit-card-form#wc-stripe-cc-form .form-row-last{float:none;width:100%}}#newspack_modal_checkout_container #stripe-payment-data~fieldset{margin:var(--newspack-ui-spacer-3,16px) 0 0}#newspack_modal_checkout_container fieldset:has(.woocommerce-SavedPaymentMethods-saveNew[style*="display: none"]){display:none}#newspack_modal_checkout_container #wcpay-upe-element,#newspack_modal_checkout_container .wcpay-upe-element{margin:0;padding:0}#newspack_modal_checkout_container #wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew),#newspack_modal_checkout_container .wcpay-upe-element+div:has(.woocommerce-SavedPaymentMethods-saveNew){margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number{font-size:inherit;font-style:inherit;font-weight:400;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:0;vertical-align:unset}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:focus,#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number:hover{color:inherit;filter:none}#newspack_modal_checkout_container .payment_method_woocommerce_payments .js-woopayments-copy-test-number i{height:1em;width:1em}#newspack_modal_checkout_container .payment_method_woocommerce_payments .testmode-info a{text-decoration:underline}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger){display:block;position:relative}#newspack_modal_checkout_container .woocommerce-input-wrapper:has(.stripe-gateway-stripelink-modal-trigger) .stripe-gateway-stripelink-modal-trigger{inset:calc(50% - 24px) 20px auto auto!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-card-icons,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-card-icons{float:right}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card>p.form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal>p.form-row{margin-top:var(--newspack-ui-spacer-3,16px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row:before,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:after,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row:before{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .form-row input[type=radio]+label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .form-row input[type=radio]+label{display:inline-block}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row{display:block;margin:var(--newspack-ui-spacer-base,8px) 0;padding:0!important}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row label{font-size:var(--newspack-ui-font-size-s,16px);font-weight:600;line-height:var(--newspack-ui-line-height-s,1.5);margin:0 0 var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .wc-braintree-hosted-field-card-number,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .wc-braintree-hosted-field-card-number{margin-bottom:var(--newspack-ui-spacer-base,8px)}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-context-hosted]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-context-hosted]){margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(label[for=wc-braintree-paypal-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-credit-card-test-amount]),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(label[for=wc-braintree-paypal-test-amount]){display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row .sv-wc-payment-gateway-payment-form-manage-payment-methods{display:none}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method),#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method){display:grid!important;gap:0 var(--newspack-ui-spacer-base,8px);grid-template-columns:var(--newspack-ui-spacer-4,20px) 1fr}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-credit-card-tokenize-payment-method) label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:has(#wc-braintree-paypal-tokenize-payment-method) label{font-weight:600;margin:0}#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_credit_card .payment_method_braintree_paypal .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_credit_card .form-row:last-child label,#newspack_modal_checkout_container li.payment_method_braintree_paypal .payment_method_braintree_paypal .form-row:last-child label{margin:0}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table small,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table td,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table th{font-size:var(--newspack-ui-font-size-xs,14px)!important;line-height:var(--newspack-ui-line-height-xs,1.4286)!important}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .recurring-totals th,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table thead th{background:transparent}#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method label,#newspack_modal_checkout_container .woocommerce-checkout-review-order-table .woocommerce-shipping-totals #shipping_method li{margin:0}#newspack_modal_checkout_container .woocommerce .first-payment-date{font-family:var(--newspack-ui-font-family,system-ui)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single,#newspack_modal_checkout_container .woocommerce-invalid input,#newspack_modal_checkout_container .woocommerce-invalid textarea{border-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid .select2-container--default .select2-selection--single:focus,#newspack_modal_checkout_container .woocommerce-invalid input:focus,#newspack_modal_checkout_container .woocommerce-invalid textarea:focus{outline-color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-invalid label{color:var(--newspack-ui-color-error-50,#d63638)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper{margin-bottom:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text{color:var(--newspack-ui-color-neutral-60,#6c6c6c)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions{margin-top:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions :first-child{margin-top:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row{background:var(--newspack-ui-color-neutral-5,#f7f7f7);border-color:var(--newspack-ui-color-border,#ddd);box-shadow:none;font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:var(--newspack-ui-spacer-5,24px);padding:var(--newspack-ui-spacer-5,24px)}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label{align-items:center;display:flex!important;gap:0;height:20px;justify-content:flex-start;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label input{margin:0 var(--newspack-ui-spacer-2,12px) 0 0}#newspack_modal_checkout_container .woocommerce-terms-and-conditions-wrapper p.form-row label .woocommerce-terms-and-conditions-checkbox-text{font-size:var(--newspack-ui-font-size-xs,14px);line-height:var(--newspack-ui-line-height-xs,1.4286);margin-bottom:0}#newspack_modal_checkout_container form .automatewoo-optin,#newspack_modal_checkout_container form .newspack-subscription-confirmation-checkbox{margin:var(--newspack-ui-spacer-5,24px) 0 0}#newspack_modal_checkout_container #place-order{margin-bottom:0}#newspack_modal_checkout_container #wc-stripe-express-checkout-button-separator,#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator{display:none!important}#newspack_modal_checkout_container #wc-stripe-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wc-stripe-payment-request-button-separator[style*="display:none"]+.newspack-ui__word-divider,#newspack_modal_checkout_container #wcpay-express-checkout-button-separator[style*="display:none"]+.newspack-ui__word-divider{display:none}#newspack_modal_checkout_container #checkout_back{margin-top:0}#newspack_modal_checkout_container #checkout_error_back{margin-bottom:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup{scroll-margin-top:var(--newspack-ui-spacer-10,64px)}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper li div,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup li div{display:block}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message{background:none;color:inherit;font-family:var(--newspack-ui-font-family,system-ui);font-size:var(--newspack-ui-font-size-xs,14px);list-style-type:none;margin:0;padding:0}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-error li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-info li,#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper .woocommerce-message li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-error li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-info li,#newspack_modal_checkout_container form.checkout .woocommerce-NoticeGroup .woocommerce-message li{width:100%}#newspack_modal_checkout_container .woocommerce .woocommerce-notices-wrapper{margin-bottom:var(--newspack-ui-spacer-5,24px);margin-top:0}#newspack_modal_checkout_container .modal-processing{opacity:.5}#newspack_modal_checkout_container #address_rdi_field{display:none}
@@ -1 +1 @@
1
- (()=>{"use strict";const e=(e,t={})=>({...t,action:e}),t=(e,t="np_modal_checkout_interaction")=>{"function"==typeof window.gtag&&e&&window.gtag("event",t,e)},o=e=>{const t=document.getElementById(e),o=!!t&&t.getAttribute("data-order-details");return!!o&&JSON.parse(o)||{}};function c(e){"undefined"!=typeof document&&"function"==typeof e&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}const n=(c="continue")=>{if("function"!=typeof window.gtag)return;const{action_type:n,amount:i,currency:a,product_id:s,product_type:r,recurrence:d,referrer:l,variation_id:u="",gate_post_id:p="",newspack_popup_id:_=""}=o("modal-checkout-product-details"),m={action_type:n,amount:i,currency:a,product_id:s,product_type:r,recurrence:d,referrer:l};u&&(m.variation_id=u),p&&(m.gate_post_id=p),_&&(m.newspack_popup_id=_);const h=e(c,m);t(h)};var i;i=jQuery,c((()=>{if(!i)return void console.warn("jQuery is not available.");const a=newspackBlocksModalCheckout.newspack_class_prefix,s=new CustomEvent("checkout-ready");function r(){i(`.woocommerce-NoticeGroup-checkout, .${a}__inline-error, .woocommerce-error, .woocommerce-message, .wc-block-components-notice-banner, .woocommerce-notices-wrapper`).remove()}function d(n=!0){const i=document.querySelector("#newspack_modal_checkout_container");i.checkoutReady=!0,i.dispatchEvent(s),n&&c((function(){if("function"!=typeof window.gtag)return;const c=o("modal-checkout-product-details"),n=e("loaded",c);t(n)}))}if(newspackBlocksModalCheckout.is_checkout_complete){(()=>{if("function"!=typeof window.gtag)return;const c=o("modal-checkout-product-details"),n=e("form_submission_success",c);t(n)})();const u=document.querySelector("#newspack_modal_checkout_container");u&&(u.checkoutComplete=!0)}else{function p(){i("#wcpay-express-checkout-button-separator, #wc-stripe-payment-request-button-separator").after('<div class="newspack-ui__word-divider">'+newspackBlocksModalCheckout.divider_text+"</div>");let c=[];const s=i("form.checkout");if(!s.length)return void console.warn("Form is not available");const u=i("form.modal_checkout_coupon"),p=i("form.modal_checkout_nyp"),_=i("#checkout_continue"),m=i("#customer_details"),h=i("#after_customer_details"),f=i(".newspack-wcsg--wrapper");function g(){const e=i('input[name="payment_method"]:checked').val();i(".wc_payment_method").removeClass("selected"),i(".wc_payment_method.payment_method_"+e).addClass("selected")}function k(){let e;if(i.ajax({url:newspackBlocksModalCheckout.ajax_url,method:"POST",async:!1,data:{action:"get_cart_total"},success:t=>{e=t}}),e)return e}if(i('input[name="payment_method"]').change(g),i(document).on("payment_method_selected",g),i(document).on("updated_checkout",g),g(),i(document).on("updated_checkout",(function(){i("#payment .wc_payment_methods").length?i("#after_customer_details > h3").show():i("#after_customer_details > h3").hide()})),i(document).on("updated_checkout",(function(){const e=i("#after_customer_details > .order-review-wrapper");if(!e.length)return;const t=e.clone();i("#after_customer_details").hasClass("transaction-details-expanded")&&i('[id="order_review_heading"]',t).attr("aria-expanded","true"),i("#payment .order-review-wrapper").remove();const o=t.find("table");o.is(".empty")?t.addClass("hidden"):(o.unblock(),t.removeClass("hidden")),i(".payment_methods").after(t)})),i(document).on("click","#order_review_heading",(function(){i(this).attr("aria-expanded",(function(e,t){return"false"===t?"true":"false"})),i("#after_customer_details").toggleClass("transaction-details-expanded")})),i(document).on("updated_checkout",(function(){let e=newspackBlocksModalCheckout.labels.complete_button;if(e){if(i("#place_order").has(i("span.cart-price"))){const t=i("<div>"+e+"</div>");t.find(".cart-price").html(k,(function(){return this.childNodes})),e=t.html()}i("#place_order").html(e),i("#place_order_clone").html(e)}})),f.length){const e=f.find(".newspack-wcsg--gift-toggle input"),t=f.find(".newspack-wcsg--gift-email");e.on("change",(function(){e.is(":checked")?t.addClass("visible"):t.removeClass("visible")}))}function w(e){s.find(".input-text, select, input:checkbox").trigger("validate").trigger("blur");let t=!1;const o=[],c=e=>{const c=i("#"+e.data("id")+"_field");if(c?.length){t||(t=c);const o=c.find(".woocommerce-error");o.length&&o.remove(),c.addClass("woocommerce-invalid").removeClass("woocommerce-valid"),c.append(`<span class="${a}__inline-error">`+e.text()+"</span>"),e.remove()}else e.is("li")||(e=i("<li />").append(e)),o.push(e)};if(r(),0!==e.trimStart().indexOf("<")?c(i("<li />").append(e)):e.includes("<li")?i(e).find("li").each((function(){c(i(this))})):c(i(e)),o.length){t=!1;const e=i('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout"/>').append(i('<ul class="woocommerce-error" role="alert" />').append(o));s.prepend(e),e.get(0).scrollIntoView({behavior:"smooth"})}t?.length&&(window.scroll({top:t.offset().top-100,left:0,behavior:"smooth"}),t.find("input.input-text, select, input:checkbox").trigger("focus")),x(s),i(document.body).trigger("update_checkout"),i(document.body).trigger("checkout_error",[e])}function b(e){e.preventDefault(),e.stopImmediatePropagation(),y(),n("continue")}function v(e){const t=window.newspack_grecaptcha||{};if(r(),i("#checkout_details").remove(),e)s.attr("data-skip-recaptcha","1"),s.append('<input name="is_validation_only" type="hidden" value="1" />'),"v3"===t?.version&&t.destroy(s.get()),u.length&&u.hide(),p.length&&p.hide(),m.show(),h.hide(),m.find("input").first().focus(),c=function(e,t){const o=i._data(e,"events");return o?t?i._data(e,"events")[t]:o:[]}(s[0],"submit").slice(0),c.forEach((e=>{s.off("submit",e.handler)})),s.on("submit",b);else{s.removeAttr("data-skip-recaptcha");const e=s.find('[name="is_validation_only"]');if(e.length&&e.remove(),t?.render){s.data("newspack-recaptcha","newspack_modal_checkout");const e=()=>{r(),s.get(0).scrollIntoView({behavior:"smooth"})},o=e=>w(e);t.render(s.get(),e,o),i(document).on("updated_checkout",(()=>t.render(s.get(),e,o))),i(document.body).on("checkout_error",(()=>t.render(s.get(),e,o)))}u.length&&u.show(),p.length&&p.show(),m.hide(),h.show(),function(){i("#checkout_details").remove();const e={};s.serializeArray().forEach((t=>{e[t.name]=t.value}));const t=`${newspackBlocksModalCheckout.newspack_class_prefix}__font--xs`,o=[];o.push('<div class="billing-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.billing_details+"</h3>"),(e.billing_first_name||e.billing_last_name)&&o.push(`<p class="${t}">`+e.billing_first_name+" "+e.billing_last_name+"</p>"),e.billing_company&&o.push(`<p class="${t}">`+e.billing_company+"</p>");let c="";if((e.billing_address_1||e.billing_address_2)&&(c=`<p class="${t}">`,e.billing_address_1&&(c+=e.billing_address_1),e.billing_address_2&&(c+=" "+e.billing_address_2),c+="<br>",e.billing_city&&(c+=e.billing_city),e.billing_state&&(c+=", "+e.billing_state),e.billing_postcode&&(c+=" "+e.billing_postcode),c+="<br>",e.billing_country&&(c+=e.billing_country)),o.push(c),e.billing_email&&o.push(`<p class="${t}">`+e.billing_email+"</p>"),o.push("</div>"),e.hasOwnProperty("shipping_address_1")){o.push('<div class="shipping-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.shipping_details+"</h3>");let n="";e.ship_to_different_address?(n=`<p class="${t}">`,e.shipping_address_1&&(n+=e.shipping_address_1),e.shipping_address_2&&(n+=" "+e.shipping_address_2),n+="<br>",e.shipping_city&&(n+=e.shipping_city),e.shipping_state&&(n+=", "+e.shipping_state),e.shipping_postcode&&(n+=" "+e.shipping_postcode),n+="<br>",e.shipping_country&&(n+=e.shipping_country)):n=c,o.push(n),o.push("</div>")}e.hasOwnProperty("newspack_wcsg_is_gift")&&e.hasOwnProperty("wcsg_gift_recipients_email")&&e.newspack_wcsg_is_gift&&e.wcsg_gift_recipients_email&&(o.push('<div class="gift-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.gift_recipient+"</h3>"),o.push(`<p class="${t}">`+e.wcsg_gift_recipients_email+"</p>")),i(".order-details-summary").after('<div id="checkout_details">'+o.join("")+"</div>")}(),s.off("submit",b),c.forEach((e=>{s.on("submit",e.handler)})),l()}s.triggerHandler("editing_details",[e]),window.scroll({top:0,left:0,behavior:"smooth"})}function y(e=!1,t=(()=>{})){if(!C(s))return console.warn("Unable to block the form"),t(),!1;r();const o=s.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");o.length&&o.remove();const c=["save_user_in_woopay"],d=s.serializeArray().filter((e=>!c.includes(e.name)));d.push({name:"woocommerce_checkout_update_totals",value:"1"}),i.ajax({type:"POST",url:wc_checkout_params.checkout_url,data:d,dataType:"html",success:o=>{let c;try{c=JSON.parse(o)}catch(e){c={messages:'<div class="woocommerce-error">'+wc_checkout_params.i18n_checkout_error+"</div>"}}e||!0!==c.reload?(x(s),c.messages?e||(c.messages?w(c.messages):w(`<div class="${a}__inline-error">`+wc_checkout_params.i18n_checkout_error+"</div>")):(v(!1),i._data(s[0],"events")?.click?.some((e=>"#checkout_back"===e.selector))||s.on("click","#checkout_back",(function(e){e.preventDefault(),v(!0),n("back")}))),t(c)):window.location.reload()},error:(o,c,n)=>{let i="";e||(i='<div class="woocommerce-error">'+(n||wc_checkout_params.i18n_checkout_error)+"</div>",w(i)),t({messages:i})}})}function C(e){return!e.is(".modal-processing")&&(e.find("button[type=submit]").each(((e,t)=>{i(t).attr("disabled",!0)})),e.addClass("modal-processing"),!0)}function x(e){return!!e.is(".modal-processing")&&(e.find("button[type=submit]").each(((e,t)=>{i(t).attr("disabled",!1)})),e.removeClass("modal-processing"),!0)}_.length?(v(!0),f.length?d():y(!0,d)):d(),u.length&&(u.on("submit",(function(e){if(e.preventDefault(),!C(u))return!1;const t={security:wc_checkout_params.apply_coupon_nonce,coupon_code:u.find('input[name="coupon_code"]').val()};i.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:t,dataType:"html",success:e=>{if(r(),u.find(".result").remove(),e){const o=e.includes("error");u.append(`<p class="result ${a}__helper-text ${o?a+"__inline-error":""}">`+i(e).text()+"</p>"),o?(u.find('input[name="coupon_code"]').focus(),u.find('h3, input[name="coupon_code"]').addClass("newspack-ui__field-error")):(u.find('input[name="coupon_code"]').focus(),u.find('h3, input[name="coupon_code"]').removeClass("newspack-ui__field-error")),i(document.body).trigger("applied_coupon_in_checkout",[t.coupon_code]),i(document.body).trigger("update_checkout",{update_shipping_method:!1})}},complete:()=>{x(u)}})})),i(document.body).on("removed_coupon_in_checkout",(()=>{r(),u.find(".result").remove(),u.find('input[name="coupon_code"]').val("").focus()}))),p.length&&p.on("submit",(function(e){if(e.preventDefault(),!C(p))return!1;const t=p.find('input[name="price"]');t.attr("disabled",!0);const o={_ajax_nonce:newspackBlocksModalCheckout.nyp_nonce,action:"process_name_your_price_request",price:p.find('input[name="price"]').val(),product_id:p.find('input[name="product_id"]').val(),newspack_checkout_name_your_price:p.find('input[name="newspack_checkout_name_your_price"]').val()};i.ajax({type:"POST",url:newspackBlocksModalCheckout.ajax_url,data:o,success:({success:e,data:t})=>{r(),p.find(".result").remove(),p.append(`<p class="result ${a}__helper-text ${e?"":a+"__inline-error"}">`+t.message+"</p>"),e?p.find('h3, input[name="price"]').removeClass("newspack-ui__field-error"):(p.find('input[name="price"]').focus(),p.find('h3, input[name="price"]').addClass("newspack-ui__field-error")),i(document.body).trigger("update_checkout",{update_shipping_method:!1})},complete:()=>{x(p),t.attr("disabled",!1),t.focus()}})})),s.on("click","#place_order",(function(){(()=>{if("function"!=typeof window.gtag)return;const c=o("modal-checkout-product-details"),n=e("form_submission",c);t(n)})()}))}p()}function l(){const e=i("#newspack_subscription_terms_confirmation, #newspack_subscription_confirmation");if(e.length){const t=i("form.checkout"),o=t.find("button#place_order, button#place_order_clone");function c(){const t=e.is(":checked");o.each(((e,o)=>{i(o).attr("disabled",!t)}))}c(),e.on("change",c),t.on("submit",(function(t){if(!e.is(":checked"))return t.preventDefault(),t.stopPropagation(),!1}))}}i(document.body).on("updated_checkout payment_method_selected checkout_error",l),i(document).ready(l),i(document.body).on("checkout_error",(function(){const e=i(".woocommerce-NoticeGroup-checkout, .woocommerce-notices-wrapper");e.length&&e.each(((e,t)=>i(t).addClass(`${a}__notice ${a}__notice--error`)));const t=i("#checkout_error_back");t.length&&t.on("click",(e=>{e.preventDefault(),parent.newspackCloseModalCheckout()})),d(!1)})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&parent.newspackCloseModalCheckout()})),newspackBlocksModalCheckout.is_error&&i(document.body).trigger("checkout_error")}))})();
1
+ (()=>{"use strict";const e=(e,t={})=>({...t,action:e}),t=["action","action_type","amount","currency","product_id","product_type","variation_id","price_summary","newspack_popup_id","gate_post_id","recurrence","referrer"],o=(e,o="np_modal_checkout_interaction")=>{if("function"==typeof window.gtag&&e){const n={};for(const o of t)e[o]&&(n[o]=e[o].toString());window.gtag("event",o,n)}};function n(e){"undefined"!=typeof document&&"function"==typeof e&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}function c(e){const t="string"==typeof e?document.getElementById(e):e;if(!t)return console.warn("No container found for checkout data"),{};let o={};if("FORM"===t.tagName){const e=new FormData(t);o=Object.fromEntries(e)}const n=t.dataset.checkout;if(!n)return console.warn("No checkout data found"),o;try{o={...o,...JSON.parse(n)}}catch(e){console.warn("Error parsing checkout data")}const c=new URL(t.ownerDocument.defaultView.location.href);return c.searchParams.get("action_type")&&(o.action_type=c.searchParams.get("action_type")),o.memberships_content_gate&&(o.gate_post_id=o.memberships_content_gate,delete o.memberships_content_gate),o}const i=(t="continue")=>{if("function"!=typeof window.gtag)return;const{action_type:n,amount:i,currency:a,product_id:r,product_type:s,recurrence:d,referrer:p,variation_id:u="",gate_post_id:l="",newspack_popup_id:_=""}=c("modal-checkout-product-details"),m={action_type:n,amount:i,currency:a,product_id:r,product_type:s,recurrence:d,referrer:p};u&&(m.variation_id=u),l&&(m.gate_post_id=l),_&&(m.newspack_popup_id=_);const h=e(t,m);o(h)};var a;a=jQuery,n((()=>{if(!a)return void console.warn("jQuery is not available.");const t=newspackBlocksModalCheckout.newspack_class_prefix,r=new CustomEvent("checkout-ready");function s(){a(`.woocommerce-NoticeGroup-checkout, .${t}__inline-error, .woocommerce-error, .woocommerce-message, .wc-block-components-notice-banner, .woocommerce-notices-wrapper`).remove()}function d(t=!0){const i=document.querySelector("#newspack_modal_checkout_container");i.checkoutReady=!0,i.dispatchEvent(r),t&&n((function(){if("function"!=typeof window.gtag)return;const t=c("modal-checkout-product-details"),n=e("loaded",t);o(n)}))}if(newspackBlocksModalCheckout.is_checkout_complete){(()=>{if("function"!=typeof window.gtag)return;const t=c("modal-checkout-product-details"),n=e("form_submission_success",t);o(n)})();const u=document.querySelector("#newspack_modal_checkout_container");u&&(u.checkoutComplete=!0)}else{function l(){a("#wcpay-express-checkout-button-separator, #wc-stripe-payment-request-button-separator, #wc-stripe-express-checkout-button-separator").after('<div class="newspack-ui__word-divider">'+newspackBlocksModalCheckout.divider_text+"</div>");let n=[];const r=a("form.checkout");if(!r.length)return void console.warn("Form is not available");const u=a("form.modal_checkout_coupon"),l=a("form.modal_checkout_nyp"),_=a("#checkout_continue"),m=a("#customer_details"),h=a("#after_customer_details"),f=a(".newspack-wcsg--wrapper");function g(){const e=a('input[name="payment_method"]:checked').val();a(".wc_payment_method").removeClass("selected"),a(".wc_payment_method.payment_method_"+e).addClass("selected")}function k(){let e;if(a.ajax({url:newspackBlocksModalCheckout.ajax_url,method:"POST",async:!1,data:{action:"get_cart_total"},success:t=>{e=t}}),e)return e}if(a('input[name="payment_method"]').change(g),a(document).on("payment_method_selected",g),a(document).on("updated_checkout",g),g(),a(document).on("updated_checkout",(function(){a("#payment .wc_payment_methods").length?a("#after_customer_details > h3").show():a("#after_customer_details > h3").hide()})),a(document).on("updated_checkout",(function(){const e=a("#after_customer_details > .order-review-wrapper");if(!e.length)return;const t=e.clone();a("#after_customer_details").hasClass("transaction-details-expanded")&&a('[id="order_review_heading"]',t).attr("aria-expanded","true"),a("#payment .order-review-wrapper").remove();const o=t.find("table");o.is(".empty")?t.addClass("hidden"):(o.unblock(),t.removeClass("hidden")),a(".payment_methods").after(t)})),a(document).on("click","#order_review_heading",(function(){a(this).attr("aria-expanded",(function(e,t){return"false"===t?"true":"false"})),a("#after_customer_details").toggleClass("transaction-details-expanded")})),a(document).on("updated_checkout",(function(){let e=newspackBlocksModalCheckout.labels.complete_button;if(e){if(a("#place_order").has(a("span.cart-price"))){const t=a("<div>"+e+"</div>");t.find(".cart-price").html(k,(function(){return this.childNodes})),e=t.html()}a("#place_order").html(e),a("#place_order_clone").html(e)}})),f.length){const e=f.find(".newspack-wcsg--gift-toggle input"),t=f.find(".newspack-wcsg--gift-email");e.on("change",(function(){e.is(":checked")?t.addClass("visible"):t.removeClass("visible")}))}function w(e){r.find(".input-text, select, input:checkbox").trigger("validate").trigger("blur");let o=!1;const n=[],c=e=>{const c=a("#"+e.data("id")+"_field");if(c?.length){o||(o=c);const n=c.find(".woocommerce-error");n.length&&n.remove(),c.addClass("woocommerce-invalid").removeClass("woocommerce-valid"),c.append(`<span class="${t}__inline-error">`+e.text()+"</span>"),e.remove()}else e.is("li")||(e=a("<li />").append(e)),n.push(e)};if(s(),0!==e.trimStart().indexOf("<")?c(a("<li />").append(e)):e.includes("<li")?a(e).find("li").each((function(){c(a(this))})):c(a(e)),n.length){o=!1;const e=a('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout"/>').append(a('<ul class="woocommerce-error" role="alert" />').append(n));r.prepend(e),e.get(0).scrollIntoView({behavior:"smooth"})}o?.length&&(window.scroll({top:o.offset().top-100,left:0,behavior:"smooth"}),o.find("input.input-text, select, input:checkbox").trigger("focus")),x(r),a(document.body).trigger("update_checkout"),a(document.body).trigger("checkout_error",[e])}function y(e){e.preventDefault(),e.stopImmediatePropagation(),v(),i("continue")}function b(e){const t=window.newspack_grecaptcha||{};if(s(),a("#checkout_details").remove(),e)r.attr("data-skip-recaptcha","1"),r.append('<input name="is_validation_only" type="hidden" value="1" />'),"v3"===t?.version&&t.destroy(r.get()),u.length&&u.hide(),l.length&&l.hide(),m.show(),h.hide(),m.find("input").first().focus(),n=function(e,t){const o=a._data(e,"events");return o?t?a._data(e,"events")[t]:o:[]}(r[0],"submit").slice(0),n.forEach((e=>{r.off("submit",e.handler)})),r.on("submit",y);else{r.removeAttr("data-skip-recaptcha");const e=r.find('[name="is_validation_only"]');if(e.length&&e.remove(),t?.render){r.data("newspack-recaptcha","newspack_modal_checkout");const e=()=>{s(),r.get(0).scrollIntoView({behavior:"smooth"})},o=e=>w(e);t.render(r.get(),e,o),a(document).on("updated_checkout",(()=>t.render(r.get(),e,o))),a(document.body).on("checkout_error",(()=>t.render(r.get(),e,o)))}u.length&&u.show(),l.length&&l.show(),m.hide(),h.show(),function(){a("#checkout_details").remove();const e={};r.serializeArray().forEach((t=>{e[t.name]=t.value}));const t=`${newspackBlocksModalCheckout.newspack_class_prefix}__font--xs`,o=[];o.push('<div class="billing-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.billing_details+"</h3>"),(e.billing_first_name||e.billing_last_name)&&o.push(`<p class="${t}">`+e.billing_first_name+" "+e.billing_last_name+"</p>"),e.billing_company&&o.push(`<p class="${t}">`+e.billing_company+"</p>");let n="";if((e.billing_address_1||e.billing_address_2)&&(n=`<p class="${t}">`,e.billing_address_1&&(n+=e.billing_address_1),e.billing_address_2&&(n+=" "+e.billing_address_2),n+="<br>",e.billing_city&&(n+=e.billing_city),e.billing_state&&(n+=", "+e.billing_state),e.billing_postcode&&(n+=" "+e.billing_postcode),n+="<br>",e.billing_country&&(n+=e.billing_country)),o.push(n),e.billing_email&&o.push(`<p class="${t}">`+e.billing_email+"</p>"),o.push("</div>"),e.hasOwnProperty("shipping_address_1")){o.push('<div class="shipping-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.shipping_details+"</h3>");let c="";e.ship_to_different_address?(c=`<p class="${t}">`,e.shipping_address_1&&(c+=e.shipping_address_1),e.shipping_address_2&&(c+=" "+e.shipping_address_2),c+="<br>",e.shipping_city&&(c+=e.shipping_city),e.shipping_state&&(c+=", "+e.shipping_state),e.shipping_postcode&&(c+=" "+e.shipping_postcode),c+="<br>",e.shipping_country&&(c+=e.shipping_country)):c=n,o.push(c),o.push("</div>")}e.hasOwnProperty("newspack_wcsg_is_gift")&&e.hasOwnProperty("wcsg_gift_recipients_email")&&e.newspack_wcsg_is_gift&&e.wcsg_gift_recipients_email&&(o.push('<div class="gift-details">'),o.push("<h3>"+newspackBlocksModalCheckout.labels.gift_recipient+"</h3>"),o.push(`<p class="${t}">`+e.wcsg_gift_recipients_email+"</p>")),a(".order-details-summary").after('<div id="checkout_details">'+o.join("")+"</div>")}(),r.off("submit",y),n.forEach((e=>{r.on("submit",e.handler)})),p()}r.triggerHandler("editing_details",[e]),window.scroll({top:0,left:0,behavior:"smooth"})}function v(e=!1,o=(()=>{})){if(!C(r))return console.warn("Unable to block the form"),o(),!1;s();const n=r.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");n.length&&n.remove();const c=["save_user_in_woopay"],d=r.serializeArray().filter((e=>!c.includes(e.name)));d.push({name:"woocommerce_checkout_update_totals",value:"1"}),a.ajax({type:"POST",url:wc_checkout_params.checkout_url,data:d,dataType:"html",success:n=>{let c;try{c=JSON.parse(n)}catch(e){c={messages:'<div class="woocommerce-error">'+wc_checkout_params.i18n_checkout_error+"</div>"}}e||!0!==c.reload?(x(r),c.messages?e||(c.messages?w(c.messages):w(`<div class="${t}__inline-error">`+wc_checkout_params.i18n_checkout_error+"</div>")):(b(!1),a._data(r[0],"events")?.click?.some((e=>"#checkout_back"===e.selector))||r.on("click","#checkout_back",(function(e){e.preventDefault(),b(!0),i("back")}))),o(c)):window.location.reload()},error:(t,n,c)=>{let i="";e||(i='<div class="woocommerce-error">'+(c||wc_checkout_params.i18n_checkout_error)+"</div>",w(i)),o({messages:i})}})}function C(e){return!e.is(".modal-processing")&&(e.find("button[type=submit]").each(((e,t)=>{a(t).attr("disabled",!0)})),e.addClass("modal-processing"),!0)}function x(e){return!!e.is(".modal-processing")&&(e.find("button[type=submit]").each(((e,t)=>{a(t).attr("disabled",!1)})),e.removeClass("modal-processing"),!0)}_.length?(b(!0),f.length?d():v(!0,d)):d(),u.length&&(u.on("submit",(function(e){if(e.preventDefault(),!C(u))return!1;const o={security:wc_checkout_params.apply_coupon_nonce,coupon_code:u.find('input[name="coupon_code"]').val()};a.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:o,dataType:"html",success:e=>{if(s(),u.find(".result").remove(),e){const n=e.includes("error");u.append(`<p class="result ${t}__helper-text ${n?t+"__inline-error":""}">`+a(e).text()+"</p>"),n?(u.find('input[name="coupon_code"]').focus(),u.find('h3, input[name="coupon_code"]').addClass("newspack-ui__field-error")):(u.find('input[name="coupon_code"]').focus(),u.find('h3, input[name="coupon_code"]').removeClass("newspack-ui__field-error")),a(document.body).trigger("applied_coupon_in_checkout",[o.coupon_code]),a(document.body).trigger("update_checkout",{update_shipping_method:!1})}},complete:()=>{x(u)}})})),a(document.body).on("removed_coupon_in_checkout",(()=>{s(),u.find(".result").remove(),u.find('input[name="coupon_code"]').val("").focus()}))),l.length&&l.on("submit",(function(e){if(e.preventDefault(),!C(l))return!1;const o=l.find('input[name="price"]');o.attr("disabled",!0);const n={_ajax_nonce:newspackBlocksModalCheckout.nyp_nonce,action:"process_name_your_price_request",price:l.find('input[name="price"]').val(),product_id:l.find('input[name="product_id"]').val(),newspack_checkout_name_your_price:l.find('input[name="newspack_checkout_name_your_price"]').val()};a.ajax({type:"POST",url:newspackBlocksModalCheckout.ajax_url,data:n,success:({success:e,data:o})=>{s(),l.find(".result").remove(),l.append(`<p class="result ${t}__helper-text ${e?"":t+"__inline-error"}">`+o.message+"</p>"),e?l.find('h3, input[name="price"]').removeClass("newspack-ui__field-error"):(l.find('input[name="price"]').focus(),l.find('h3, input[name="price"]').addClass("newspack-ui__field-error")),a(document.body).trigger("update_checkout",{update_shipping_method:!1})},complete:()=>{x(l),o.attr("disabled",!1),o.focus()}})})),r.on("click","#place_order",(function(){(()=>{if("function"!=typeof window.gtag)return;const t=c("modal-checkout-product-details"),n=e("form_submission",t);o(n)})()}))}l()}function p(){const e=a("#newspack_subscription_terms_confirmation, #newspack_subscription_confirmation");if(e.length){const t=a("form.checkout"),o=t.find("button#place_order, button#place_order_clone");function n(){const t=e.is(":checked");o.each(((e,o)=>{a(o).attr("disabled",!t)}))}n(),e.on("change",n),t.on("submit",(function(t){if(!e.is(":checked"))return t.preventDefault(),t.stopPropagation(),!1}))}}a(document.body).on("updated_checkout payment_method_selected checkout_error",p),a(document).ready(p),a(document.body).on("checkout_error",(function(){const e=a(".woocommerce-NoticeGroup-checkout, .woocommerce-notices-wrapper");e.length&&e.each(((e,o)=>a(o).addClass(`${t}__notice ${t}__notice--error`)));const o=a("#checkout_error_back");o.length&&o.on("click",(e=>{e.preventDefault(),parent.newspackCloseModalCheckout()})),d(!1)})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&parent.newspackCloseModalCheckout()})),newspackBlocksModalCheckout.is_error&&a(document.body).trigger("checkout_error")}))})();