.template-product .customily-modal-preview-only{background:rgb(0 0 0 / 45%)!important}
.template-product .customily-modal-preview-only>.main.cl-use-image{background:#fff!important;width:min(560px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:auto!important;padding:16px!important;border-radius:16px!important;max-height:calc(100dvh - 40px);box-sizing:border-box}
.template-product .customily-modal-preview-only .cl-preview-wrapper{display:grid!important;grid-template-columns:minmax(0,1fr) 72px;gap:12px;width:100%!important;margin:0!important;max-height:calc(100dvh - 72px);overflow-y:auto}
.template-product .customily-modal-preview-only .ph-preview-heading,.template-product .customily-modal-preview-only .ph-preview-review{grid-column:1/-1;text-align:left}
.template-product .customily-modal-preview-only .ph-preview-heading h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 8px;color:#232526}
.template-product .customily-modal-preview-only .ph-preview-heading p{font-size:14px;line-height:20px;margin:0;color:#4b4f52}
.template-product .customily-modal-preview-only .cl-preview-image{grid-column:1/-1;width:100%!important;height:auto!important;max-height:46dvh!important;object-fit:contain;margin:0!important;border-radius:0!important}
.template-product .customily-modal-preview-only .ph-preview-review{display:grid;gap:12px}.template-product .customily-modal-preview-only .ph-preview-review p{display:flex;gap:8px;font-size:14px;line-height:20px;color:#4b4f52;margin:0}.template-product .ph-preview-review span{color:#a65700;font-weight:600}
.template-product .customily-modal-preview-only #customily-cart-btn{grid-column:1;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;border-radius:999px!important;margin:0!important;padding:10px 16px!important;font-size:14px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.template-product .customily-modal-preview-only #customily-cart-btn .t4s-btn-atc_text{font-size:14px!important;line-height:20px!important}
.template-product .customily-modal-preview-only .ph-preview-dismiss{grid-column:2;border:0;border-radius:999px;background:#f6f6f4;color:#232526;font:inherit;font-size:14px;line-height:20px;min-height:44px;padding:10px 12px;cursor:pointer}
.template-product .customily-modal-preview-only .customily-close-button{position:absolute!important;top:-12px!important;right:-12px!important;left:auto!important;bottom:auto!important;width:36px!important;min-width:36px!important;height:36px!important;font-size:18px!important;transform:none!important;background:#fff!important;box-shadow:0 2px 12px #0002;z-index:2}
.template-product .customily-modal-preview-only :focus-visible{outline:2px solid #a65700;outline-offset:2px}
.template-product .customily-modal-preview-only>.main.cl-use-image{position:relative!important}
.template-product .customily-modal-preview-only .ph-preview-heading{grid-row:1}
.template-product .customily-modal-preview-only .cl-preview-image{grid-row:2}
.template-product .customily-modal-preview-only .ph-preview-review{grid-row:3}
.template-product .customily-modal-preview-only #customily-cart-btn,.template-product .customily-modal-preview-only .ph-preview-dismiss{grid-row:4}
.template-product .customily-modal-preview-only>.main.cl-use-image>.customily-close-button{left:auto!important;right:-12px!important;top:-12px!important;bottom:auto!important;float:none!important}
/* Reference proportions: heading, full square preview, assurance rows and pill actions. */
.template-product .customily-modal-preview-only>.main.cl-use-image{border-radius:18px!important;padding:16px!important;max-height:calc(100dvh - 48px)}
.template-product .customily-modal-preview-only .cl-preview-wrapper{grid-template-columns:minmax(0,1fr) 72px;gap:14px;max-height:calc(100dvh - 80px);overscroll-behavior:contain;scrollbar-width:thin}
.template-product .customily-modal-preview-only .ph-preview-heading h2{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:16px;line-height:24px}
.template-product .customily-modal-preview-only .ph-preview-heading h2 svg{width:17px;height:17px;flex-shrink:0}
.template-product .customily-modal-preview-only .ph-preview-heading p{color:#353239;font-size:14px;line-height:20px}
.template-product .customily-modal-preview-only .cl-preview-image{aspect-ratio:1;max-height:none!important;object-fit:contain;display:block!important}
.template-product .customily-modal-preview-only .ph-preview-review{gap:14px}
.template-product .customily-modal-preview-only .ph-preview-review p{gap:9px;align-items:center;font-size:14px;line-height:20px;color:#353239}
.template-product .customily-modal-preview-only .ph-preview-review p>span{color:inherit;font-weight:400}
.template-product .customily-modal-preview-only .ph-preview-review svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#4978ed;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.template-product .customily-modal-preview-only #customily-cart-btn{gap:10px;min-height:44px!important;font-weight:600!important;flex-wrap:nowrap!important}
.template-product .customily-modal-preview-only #customily-cart-btn .ph-preview-cart-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.template-product .customily-modal-preview-only #customily-cart-btn .t4s-btn-atc_text{height:auto!important;min-height:0!important;line-height:20px!important}
.template-product .customily-modal-preview-only .ph-preview-dismiss{background:#f8f7f6!important;color:#353239!important;min-height:44px;font-weight:500}
.template-product .customily-modal-preview-only>.main.cl-use-image>.customily-close-button{width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;line-height:1!important;padding:0!important}
@media(prefers-reduced-motion:reduce){.template-product .customily-modal-preview-only *{scroll-behavior:auto!important}}
.template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn{position:relative!important;background:#676767!important;color:transparent!important;-webkit-text-fill-color:transparent!important;cursor:wait!important;pointer-events:auto!important;opacity:1!important}
.template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn>*{visibility:hidden!important}
.template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn::after{content:'Adding to cart…'!important;position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding-left:26px!important;font:600 14px/20px Poppins,sans-serif!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;opacity:1!important;transform:none!important;width:auto!important;height:auto!important}
.template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn::before{content:''!important;position:absolute!important;left:calc(50% - 76px)!important;top:calc(50% - 9px)!important;right:auto!important;bottom:auto!important;width:18px!important;height:18px!important;border:2px solid #ffffff60!important;border-top-color:#fff!important;border-radius:50%!important;background:none!important;opacity:1!important;animation:ph-preview-spin .75s linear infinite!important;transform:none}
@keyframes ph-preview-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn::before{animation:none!important}}

html:root .template-product .customily-modal-preview-only>.main:has(.cl-preview-wrapper){position:relative!important;background:#fff!important;width:min(560px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:auto!important;padding:20px!important;border-radius:18px!important;max-height:calc(100dvh - 40px)!important;box-sizing:border-box;overflow:hidden}
html:root .template-product .customily-modal-preview-only .cl-preview-wrapper{display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;grid-template-rows:auto auto auto auto;gap:16px 10px!important;max-height:calc(100dvh - 80px)!important;overflow-y:auto!important;overscroll-behavior:contain;align-items:stretch;box-sizing:border-box;padding:0!important}
html:root .template-product .customily-modal-preview-only .ph-preview-heading{display:block!important;grid-column:1/-1;grid-row:1}
html:root .template-product .customily-modal-preview-only .ph-preview-heading h2{font-size:18px!important;line-height:26px!important;margin:0 0 10px!important;padding-right:38px!important;color:#353239!important}
html:root .template-product .customily-modal-preview-only .ph-preview-heading p{font-size:14px!important;line-height:22px!important;color:#353239!important;margin:0!important}
html:root .template-product .customily-modal-preview-only .cl-preview-image{grid-column:1/-1;grid-row:2;object-fit:contain!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;max-height:none!important;margin:0!important}
html:root .template-product .customily-modal-preview-only .ph-preview-review{display:grid!important;grid-column:1/-1;grid-row:3;gap:12px!important}
html:root .template-product .customily-modal-preview-only .ph-preview-review p{font-size:14px!important;line-height:22px!important;align-items:flex-start!important;margin:0!important}
html:root .template-product .customily-modal-preview-only .ph-preview-review svg{margin-top:2px;stroke:#a65700!important}
html:root .template-product .customily-modal-preview-only #customily-cart-btn{grid-column:1;grid-row:4;min-height:48px!important;height:48px!important;background:#f7971e!important;color:#232526!important;border:0!important;box-shadow:none!important;font-size:15px!important;margin:0!important}
html:root .template-product .customily-modal-preview-only #customily-cart-btn .t4s-btn-atc_text{color:inherit!important;font-size:15px!important}
html:root .template-product .customily-modal-preview-only .ph-preview-dismiss{display:flex!important;align-items:center;justify-content:center;grid-column:2;grid-row:4;min-height:48px!important;height:48px!important;padding:10px 14px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#f8f7f6!important;color:#353239!important;font-size:14px!important}
html:root .template-product .customily-modal-preview-only.ph-preview-adding #customily-cart-btn{background:#f8ad4f!important;color:transparent!important}
html:root .template-product .customily-modal-preview-only.ph-preview-adding .ph-preview-dismiss{opacity:.6;cursor:wait}
@media(max-width:380px){html:root .template-product .customily-modal-preview-only>.main:has(.cl-preview-wrapper){padding:16px!important}html:root .template-product .customily-modal-preview-only .cl-preview-wrapper{grid-template-columns:minmax(0,1fr) 76px!important;gap:14px 8px!important}html:root .template-product .customily-modal-preview-only .ph-preview-heading h2{font-size:16px!important}}

html:root .template-product #customily-cart-btn.ph-atc-locked{position:relative!important;cursor:wait!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
html:root .template-product #customily-cart-btn.ph-atc-locked>*{visibility:hidden!important}
html:root .template-product #customily-cart-btn.ph-atc-locked::after{content:'Adding to cart…'!important;position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding-left:26px!important;color:#232526!important;-webkit-text-fill-color:#232526!important;font:600 14px/20px Poppins,sans-serif!important;opacity:1!important;transform:none!important;width:auto!important;height:auto!important;background:none!important}
html:root .template-product #customily-cart-btn.ph-atc-locked::before{content:''!important;position:absolute!important;left:calc(50% - 76px)!important;top:calc(50% - 9px)!important;right:auto!important;bottom:auto!important;width:18px!important;height:18px!important;border:2px solid #23252640!important;border-top-color:#232526!important;border-radius:50%!important;background:none!important;opacity:1!important;animation:ph-preview-spin .75s linear infinite!important}
@media(prefers-reduced-motion:reduce){html:root .template-product #customily-cart-btn.ph-atc-locked::before{animation:none!important}}
