/* Oliver Message Studio — self-contained public styling. */
.opms-notice{--opms-bg:#fff8e8;--opms-fg:#322512;--opms-ac:#b07b1e;--opms-bd:#d6af5d;--opms-fs:16px;--opms-radius:13px;--opms-pad:14px;--opms-w:850px;--opms-int:.55;box-sizing:border-box;isolation:isolate;position:relative;clear:both;max-width:min(100%,var(--opms-w));width:100%;margin:15px auto;padding:var(--opms-pad);border:1px solid var(--opms-bd);border-radius:var(--opms-radius);color:var(--opms-fg);background:var(--opms-bg);font-family:inherit;font-size:var(--opms-fs);font-weight:700;line-height:1.7;direction:rtl;box-shadow:0 8px 26px rgba(56,36,8,.12),inset 0 1px 0 rgba(255,255,255,.2);overflow:hidden;}
.opms-notice:not(.opms-badge){font-size:var(--opms-fs);font-weight:700;}
.opms-notice::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(145deg,rgba(255,255,255,.21),transparent 43%,rgba(255,255,255,.08));}
.opms-inner{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;}
.opms-copy{max-width:100%;overflow-wrap:anywhere}
.opms-copy p{margin:0!important;line-height:1.65!important;color:inherit!important;font:inherit!important;}
.opms-copy p+p{margin-top:6px!important}
.opms-copy strong,.opms-copy b{color:var(--opms-ac);font-weight:900}
.opms-icon{font-size:1.25em;flex:0 0 auto}
.opms-cta{display:inline-block;padding:6px 13px;text-decoration:none!important;border-radius:999px;color:var(--opms-bg)!important;background:var(--opms-ac);font-size:.85em;line-height:1.5;white-space:nowrap;transition:transform .2s;}
.opms-cta:hover{transform:translateY(-2px);filter:brightness(1.05);}
.opms-notice.opms-fx-shine::after{content:"";position:absolute;z-index:1;pointer-events:none;top:-50%;bottom:-50%;left:-160%;width:45%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),rgba(255,255,255,calc(.18 + .24*var(--opms-int))),transparent);animation:opms-shine 4.7s ease-in-out infinite;}
.opms-notice.opms-fx-glow{animation:opms-glow 3.8s ease-in-out infinite}
.opms-notice.opms-fx-float{animation:opms-float 5s ease-in-out infinite}
.opms-notice.opms-fx-fade{animation:opms-fade .65s ease-out both}
@keyframes opms-shine{0%,17%{left:-160%}55%,100%{left:180%}}
@keyframes opms-glow{0%,100%{box-shadow:0 8px 20px rgba(56,36,8,.1),0 0 4px rgba(221,169,57,.15)}50%{box-shadow:0 8px 24px rgba(56,36,8,.16),0 0 23px rgba(221,169,57,.4)}}
@keyframes opms-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes opms-fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.opms-timer{display:inline-flex;direction:ltr;align-items:center;gap:4px;flex-wrap:wrap;padding:2px 6px;line-height:1.3}
.opms-timer [data-days],.opms-timer [data-hours],.opms-timer [data-minutes],.opms-timer [data-seconds]{font-family:inherit;font-size:1.1em;font-weight:800;line-height:1.5;padding:3px 6px;border:1px solid currentColor;border-radius:6px;}
.opms-timer small{font-size:.66em;margin-right:3px;font-weight:500}
/* Overlaid badges sit in WooCommerce/WoodMart product tiles without blocking clicks. */
.woocommerce ul.products li.product,.woocommerce .products .product,.wd-products .product-grid-item,.wd-products .wd-product{position:relative}
.opms-notice.opms-badge{width:auto;min-width:64px;max-width:115px;min-height:55px;display:inline-flex;vertical-align:top;justify-content:center;align-items:center;text-align:center!important;border:2px solid var(--opms-bd);border-radius:999px;padding:7px!important;font-size:13px!important;line-height:1.2!important;box-shadow:0 3px 12px rgba(0,0,0,.18);margin:0;}
.opms-badge .opms-inner{gap:2px;flex-direction:column}.opms-badge .opms-copy p{line-height:1.15!important}
/* In the hook before shop image, position it inside the product tile. */
.woocommerce ul.products li.product .opms-badge,.wd-products .product-grid-item .opms-badge,.wd-products .wd-product .opms-badge{z-index:6;pointer-events:none;}
/* position absolute only when directly from pre-image hook; other standalone badges remain inline. */
.opms-notice.opms-over-image{position:absolute;z-index:8!important;top:9px;left:9px;right:auto;pointer-events:none}
.opms-sticky{position:fixed!important;bottom:14px;left:50%;transform:translateX(-50%);z-index:99970!important;width:calc(100% - 32px);max-width:1100px;margin:0!important;box-shadow:0 8px 40px rgba(0,0,0,.26);padding-left:30px;}
.opms-sticky.opms-fx-float,.opms-sticky.opms-fx-fade{animation:none}
.opms-close{position:absolute;left:7px;top:5px;width:28px;height:28px;border:0;background:transparent;color:var(--opms-fg);font-size:25px;line-height:1;cursor:pointer;z-index:10;opacity:.8}
.opms-close:hover{opacity:1}
@media(max-width:767px){.opms-notice:not(.opms-badge){font-size:clamp(12px,3.5vw,var(--opms-fs))!important;max-width:calc(100% - 10px)}.opms-inner{gap:6px}.opms-sticky{bottom:8px;width:calc(100% - 16px);max-width:none}.opms-notice.opms-badge{min-width:56px;max-width:84px;min-height:45px;font-size:11px!important}.opms-notice.opms-over-image{top:6px;left:6px}}
@media(max-width:767px){.opms-device-desktop{display:none!important}}
@media(min-width:768px){.opms-device-mobile{display:none!important}}
@media(prefers-reduced-motion:reduce){.opms-notice,.opms-notice::after,.opms-cta{animation:none!important;transition:none!important;transform:none!important}.opms-sticky{transform:translateX(-50%)!important}}
/* 1.1.0: reference-inspired, purpose-built image badges. */
.opms-image-anchor{position:relative!important;isolation:isolate}
.opms-image-badge{box-sizing:border-box;position:absolute!important;z-index:24!important;top:11px;pointer-events:none!important;font-family:Tahoma,Arial,sans-serif!important;direction:rtl!important;text-align:center!important;white-space:nowrap;user-select:none}
.opms-image-badge.opms-royal-discount{left:11px;right:auto;width:82px;height:82px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;line-height:1!important;border-radius:50%;border:3px solid #d6ac4c;background:radial-gradient(circle at 30% 22%,#bc3649 0%,#870b28 55%,#490015 100%);color:#ffe27c!important;box-shadow:0 0 0 2px #fff1c9,0 0 0 5px rgba(157,113,30,.16),0 5px 14px rgba(105,61,28,.35),inset 0 2px 7px rgba(255,255,255,.22);text-shadow:0 1px 2px #46191a}
.opms-image-badge.opms-royal-discount .opms-crown{width:22px;height:17px;color:#ffe184;flex:none;margin-bottom:1px}
.opms-image-badge .opms-discount-word{display:block;font-size:13px!important;font-weight:900;line-height:1.14!important;color:#ffe9a5!important}
.opms-image-badge .opms-discount-number{display:block;font-size:24px!important;font-weight:900;line-height:1.1!important;direction:ltr!important;color:#ffdf65!important;letter-spacing:-.4px}
.opms-image-badge.opms-free-shipping{right:10px;left:auto;top:13px;display:inline-flex;align-items:center;gap:6px;padding:10px 13px;max-width:calc(100% - 16px);border:0;border-radius:999px;background:linear-gradient(110deg,#f72e73 0%,#fb1a59 45%,#e7074b 100%);color:#fff!important;box-shadow:0 0 10px rgba(246,27,92,.65),0 0 22px rgba(251,18,89,.48),inset 0 1px rgba(255,255,255,.25);font-size:14px!important;font-weight:850!important;line-height:1.15!important;text-shadow:0 1px 3px rgba(117,1,38,.25)}
.opms-image-badge .opms-ship-spark{font-size:11px;opacity:.96;line-height:1}.opms-image-badge .opms-truck{width:21px;height:19px;color:#fff;flex:none}
/* These overrides prevent old WooCommerce badge selectors from hijacking the new layout. */
.woocommerce ul.products li.product .opms-image-badge,.wd-products .product-grid-item .opms-image-badge{pointer-events:none!important}
@media(max-width:767px){.opms-image-badge.opms-royal-discount{width:64px;height:64px;top:7px;left:7px;border-width:2px}.opms-image-badge.opms-royal-discount .opms-crown{height:13px;width:18px}.opms-image-badge .opms-discount-word{font-size:10px!important}.opms-image-badge .opms-discount-number{font-size:19px!important}.opms-image-badge.opms-free-shipping{top:8px;right:7px;padding:7px 9px;gap:4px;font-size:11px!important}.opms-image-badge .opms-truck{width:16px;height:15px}}
@media(max-width:340px){.opms-image-badge.opms-free-shipping{font-size:10px!important}.opms-image-badge.opms-royal-discount{width:58px;height:58px}}
@media(min-width:768px){.opms-image-badge.opms-device-mobile{display:none!important}}
@media(max-width:767px){.opms-image-badge.opms-device-desktop{display:none!important}}
.opms-image-badge[hidden],.opms-notice[hidden]{display:none!important}
/* If both badges target a narrow mobile card, keep both readable without overlap. */
@media(max-width:767px){.opms-image-anchor:has(.opms-royal-discount):has(.opms-free-shipping) .opms-royal-discount{top:48px}}
