/* Shared between public UI and the admin preview iframe. No theme-wide selectors. */
.dfpc-entry-custom{box-sizing:border-box;--dfpc-cta-padding:12px 20px;--dfpc-cta-font:16px}
.dfpc-entry-custom[data-button-size=small]{--dfpc-cta-padding:8px 14px;--dfpc-cta-font:14px}
.dfpc-entry-custom[data-button-size=large]{--dfpc-cta-padding:16px 24px;--dfpc-cta-font:18px}
.dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-action{position:static;box-sizing:border-box;flex-wrap:wrap}
.dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-action>.dfpc-open,.dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-action>.dfpc-start{box-sizing:border-box;background:var(--dfpc-cta-bg)!important;color:var(--dfpc-cta-fg)!important;border:var(--dfpc-cta-border) solid currentColor!important;border-radius:var(--dfpc-cta-radius)!important;min-height:48px;font-size:var(--dfpc-cta-font)!important;padding:var(--dfpc-cta-padding)!important;text-decoration:none;max-width:100%;width:auto;flex:0 1 auto;line-height:1.7}
.dfpc-entry-custom[data-shadow="1"] .dfpc-entry-action>.dfpc-open,.dfpc-entry-custom[data-shadow="1"] .dfpc-entry-action>.dfpc-start{box-shadow:0 4px 14px #263b7226}
.dfpc-shopping-entry.dfpc-entry-custom[data-desktop-width=half] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){width:50%;flex:0 0 50%}
.dfpc-shopping-entry.dfpc-entry-custom[data-desktop-width=full] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){width:100%;flex:0 0 100%}
.dfpc-entry-custom .dfpc-entry-price{flex:1;min-width:100px}
.dfpc-entry-custom .dfpc-entry-anchor{height:1px}
.dfpc-entry-custom .dfpc-entry-icon{display:inline-block;margin-inline-start:8px}
.dfpc-entry-custom :is(button,a):focus-visible,.dfpc-ready-carousel :is(a,button,.dfpc-carousel-track):focus-visible{outline:3px solid #c58c00;outline-offset:3px}
.dfpc-entry-custom.is-animating[data-button-animation=pulse] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){animation:dfpc-cta-pulse 1.4s ease var(--dfpc-cta-repeat)}
.dfpc-entry-custom.is-animating[data-button-animation=glow] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){animation:dfpc-cta-glow 1.6s ease var(--dfpc-cta-repeat)}
.dfpc-entry-custom.is-animating[data-button-animation=arrow] .dfpc-entry-icon{animation:dfpc-cta-arrow 1.2s ease var(--dfpc-cta-repeat)}
@keyframes dfpc-cta-pulse{50%{transform:scale(1.025)}}
@keyframes dfpc-cta-glow{50%{box-shadow:0 0 0 5px #ffb70350}}
@keyframes dfpc-cta-arrow{50%{transform:translateX(-5px)}}
@media(max-width:760px){
 .dfpc-shopping-entry.dfpc-entry-custom{margin-bottom:12px}
 .dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-action{padding:0;border:0;box-shadow:none;background:transparent;gap:8px}
 .dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-desktop-label{display:none}
 .dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-mobile-label{display:inline}
 .dfpc-shopping-entry.dfpc-entry-custom .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){width:auto;flex:0 1 auto;max-width:100%}
 .dfpc-shopping-entry.dfpc-entry-custom[data-mobile-width=half] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){width:50%;flex:0 0 50%}
 .dfpc-shopping-entry.dfpc-entry-custom[data-mobile-width=full] .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){width:100%;flex:0 0 100%}
 .dfpc-shopping-entry.dfpc-entry-custom[data-mobile-width=full] .dfpc-entry-price{width:100%;flex:0 0 100%;text-align:center}
 .dfpc-shopping-entry.dfpc-entry-custom.has-mobile-bar.is-sticky .dfpc-entry-action{position:fixed;bottom:var(--dfpc-cta-offset);left:0;right:0;z-index:9989;margin:0;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe3ef;box-shadow:0 -5px 20px #19365f14}
 .dfpc-shopping-entry.dfpc-entry-custom.has-mobile-bar.is-sticky{padding-bottom:var(--dfpc-cta-reserve,140px)}
 .dfpc-preview-body .dfpc-entry-custom.has-mobile-bar.is-sticky{margin-bottom:0}
}
.dfpc-ready-carousel{direction:rtl;color:#1c2c46;font:inherit;line-height:1.8;--dfpc-slide-count:var(--dfpc-slide-desktop,4);margin-block:24px;max-width:100%}
.dfpc-ready-carousel *{box-sizing:border-box}
.dfpc-ready-carousel>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.dfpc-ready-carousel h2{font-size:22px;margin:0}.dfpc-ready-carousel header p{margin:4px 0;color:#53657b;font-size:14px}.dfpc-ready-carousel header>a{white-space:nowrap;color:var(--dfpc-primary,var(--dfpc-theme-primary,#263b72))}
.dfpc-carousel-track{display:flex;gap:var(--dfpc-slide-gap,16px);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:4px 3px 14px;scrollbar-width:thin;align-items:stretch}
.dfpc-carousel-card{flex:0 0 calc((100% - (var(--dfpc-slide-count) - 1) * var(--dfpc-slide-gap,16px)) / var(--dfpc-slide-count));min-width:0;border:1px solid #dce4ef;border-radius:16px;background:#fff;display:flex;flex-direction:column;padding:12px;gap:7px;scroll-snap-align:start;overflow:hidden}
.dfpc-carousel-image{display:block;aspect-ratio:var(--dfpc-slide-ratio,1/1);overflow:hidden;border-radius:10px;background:#f4f6f8}.dfpc-carousel-image img{display:block;width:100%;height:100%;object-fit:cover}
.dfpc-carousel-card h3{font-size:16px;line-height:1.7;margin:4px 0}.dfpc-carousel-card p{margin:0;font-size:13px;overflow-wrap:anywhere}.dfpc-carousel-card small{font-size:12px;color:#596779}.dfpc-carousel-specs{flex:1}.dfpc-carousel-price{font-size:16px;margin-top:auto}.dfpc-carousel-card del{color:#737c89;font-size:12px}.dfpc-carousel-discount{color:#714800;background:#fff1c8;border-radius:7px;padding:1px 7px;align-self:start;font-size:12px}
.dfpc-carousel-buy{display:block;background:var(--dfpc-primary,var(--dfpc-theme-primary,#263b72));color:#fff!important;border-radius:10px;padding:10px;text-align:center;text-decoration:none;font-size:14px;min-height:44px}.dfpc-ready-carousel>nav{display:flex;justify-content:end;gap:8px;margin-top:8px}.dfpc-ready-carousel>nav button{min-width:44px;min-height:44px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:var(--dfpc-primary,var(--dfpc-theme-primary,#263b72));cursor:pointer;font-size:22px}.dfpc-ready-carousel>nav button:disabled{opacity:.35;cursor:default}
@media(max-width:1024px){.dfpc-ready-carousel{--dfpc-slide-count:var(--dfpc-slide-tablet,2)}}
@media(max-width:760px){.dfpc-ready-carousel{--dfpc-slide-count:var(--dfpc-slide-mobile,1.2)}.dfpc-ready-carousel h2{font-size:18px}.dfpc-ready-carousel>header{align-items:start;flex-wrap:wrap}.dfpc-carousel-card{padding:10px}}
@media(prefers-reduced-motion:reduce){.dfpc-entry-custom *{animation:none!important;scroll-behavior:auto!important}.dfpc-carousel-track{scroll-behavior:auto!important}}
/* Admin editing shell; the iframe itself consumes the public styles above. */
.dfpc-commerce-editor{display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,1fr);gap:22px;margin-top:16px;align-items:start}.dfpc-commerce-controls{display:grid;gap:12px}.dfpc-commerce-controls label{display:flex;flex-direction:column;gap:5px}.dfpc-commerce-controls input:not([type=checkbox]),.dfpc-commerce-controls select{width:100%;max-width:none}.dfpc-commerce-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-block:10px}.dfpc-commerce-preview{position:sticky;top:40px;min-width:0}.dfpc-commerce-viewport{width:100%;overflow:auto;background:#edf1f6;padding:8px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px}.dfpc-commerce-viewport iframe{display:block;border:0;background:#fff;margin:auto;height:600px;max-width:none}.dfpc-commerce-status{white-space:pre-wrap;line-height:1.8}.dfpc-commerce-status[data-error="1"]{color:#a12020}.dfpc-commerce-item{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px;border-bottom:1px solid #e3e8ef}.dfpc-commerce-item strong{flex:1;min-width:140px}.dfpc-commerce-picked{padding:0;list-style:none}.dfpc-commerce-picked li{border:1px solid #dce4ef;border-radius:8px;padding:8px;margin:6px 0}.dfpc-commerce-selected-label{display:block;overflow-wrap:anywhere}.dfpc-preview-body{margin:0;padding:16px;font-family:Tahoma,Arial,sans-serif;direction:rtl;box-sizing:border-box;background:#fff}.dfpc-preview-body .dfpc-shopping-entry{font-family:inherit}
@media(max-width:1100px){.dfpc-commerce-editor{grid-template-columns:1fr}.dfpc-commerce-preview{position:static}}

.dfpc-commerce-viewport iframe[hidden]{display:none}

/* Only commerce owns the fixed launcher; preserve configured widths. */
.dfpc-entry-custom .dfpc-entry-action>:is(.dfpc-open,.dfpc-start){font-family:inherit!important}
.dfpc-ready-carousel .dfpc-carousel-buy{background:var(--dfpc-primary,var(--dfpc-theme-primary,#263b72))}
@media(max-width:760px){.dfpc-shopping-entry.dfpc-entry-custom.has-mobile-bar.is-sticky .dfpc-entry-action{bottom:var(--dfpc-cta-offset);}.dfpc-widget:has(>dialog[open]) .dfpc-entry-custom.is-sticky .dfpc-entry-action{visibility:hidden;pointer-events:none}}
