:root {
	--cpd-runtime-z: 2147480000;
	--cpd-gap: 4px;
	--cpd-safe: 16px;
}
.wordpress-cpd-banner-runtime, .wordpress-cpd-banner-runtime * { box-sizing: border-box; }
.cpd-media, .cpd-media__link, .cpd-media__frame, .cpd-media__image { display: block; min-width: 0; width: 100%; border: 0; padding: 0; margin: 0; background: transparent; }
.cpd-media { overflow: hidden; }
.cpd-media__frame { height: 100%; }
.cpd-media__image { height: 100%; object-fit: contain; }
.cpd-media[data-state="loading"][data-variant="horizontal"] .cpd-media__frame { aspect-ratio: 728 / 90; }
.cpd-media[data-state="loading"][data-variant="square"] .cpd-media__frame { aspect-ratio: auto; }
.cpd-media[data-state="loading"][data-variant="vertical"] .cpd-media__frame { aspect-ratio: 160 / 600; }
.cpd-media[data-state="loading"][data-variant="free"] .cpd-media__frame { aspect-ratio: 1 / 1; }
.cpd-media[data-state="ready"][data-variant="horizontal"] .cpd-media__image,
.cpd-media[data-state="ready"][data-variant="free"] .cpd-media__image { height: auto; }
.cpd-control { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; margin: 0; padding: 6px; border: 0; color: #fff; background: transparent; font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.cpd-close__visual { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 72%); border-radius: 50%; background: rgb(29 35 39 / 88%); color: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / 32%); }
.cpd-close__icon { display: block; width: 16px; height: 16px; }
.cpd-close__text { padding: 0 6px; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 70%); }
.cpd-control:focus-visible, .cpd-media__link:focus-visible, .cpd-popup__cta:focus-visible { outline: 3px solid #72aee6; outline-offset: 2px; }
.cpd-catfish { position: fixed; z-index: calc(var(--cpd-runtime-z) + 20); right: 0; bottom: max(0px, env(safe-area-inset-bottom)); left: 0; width: min(var(--cpd-catfish-width, 1050px), calc(100vw - 32px)); margin: auto; pointer-events: auto; }
.cpd-catfish__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cpd-gap); align-items: start; opacity: 1; box-shadow: 0 -4px 18px rgb(0 0 0 / 18%); transition: opacity 120ms ease; }
.cpd-catfish__grid.is-swapping { opacity: 0; }
.cpd-catfish__item { min-width: 0; }
.cpd-catfish__item.is-span { grid-column: 1 / -1; }
.cpd-catfish__control-row { display: flex; width: 100%; height: 44px; align-items: center; justify-content: flex-end; padding-right: max(0px, env(safe-area-inset-right)); background: transparent; }
.cpd-catfish__close { width: auto; max-width: calc(100% - max(0px, env(safe-area-inset-right))); height: 44px; min-width: 44px; min-height: 44px; padding: 0; background: transparent; font: 700 12px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cpd-catfish__close-face { display: inline-flex; height: 30px; min-width: 44px; max-width: 100%; align-items: center; justify-content: center; gap: 4px; border-radius: 4px; background: var(--cpd-close-color, #c90000); color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 28%); transition: filter 120ms ease, box-shadow 120ms ease; }
.cpd-catfish__close.cpd-control--icon .cpd-catfish__close-face { width: 30px; min-width: 30px; padding: 0; }
.cpd-catfish__close.cpd-control--text .cpd-catfish__close-face { padding: 0 10px; }
.cpd-catfish__close.cpd-control--hybrid .cpd-catfish__close-face { padding: 0 8px; }
.cpd-catfish__close .cpd-close__text { min-width: 0; max-width: 180px; overflow: hidden; padding: 0; color: inherit; text-overflow: ellipsis; text-shadow: none; white-space: nowrap; }
.cpd-catfish__close .cpd-close__visual { width: 14px; height: 14px; flex: 0 0 14px; border: 0; border-radius: 0; background: transparent; color: inherit; box-shadow: none; }
.cpd-catfish__close .cpd-close__icon { width: 14px; height: 14px; }
.cpd-catfish__close:focus-visible { outline: 0; }
.cpd-catfish__close:hover .cpd-catfish__close-face { filter: brightness(1.1); }
.cpd-catfish__close:active .cpd-catfish__close-face { filter: brightness(.9); }
.cpd-catfish__close:focus-visible .cpd-catfish__close-face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1, 0 1px 3px rgb(0 0 0 / 28%); }
.cpd-catfish__reopen { position: fixed; z-index: calc(var(--cpd-runtime-z) + 20); bottom: max(0px, env(safe-area-inset-bottom)); left: 50%; display: none; width: auto; max-width: min(240px, calc(100vw - 32px)); min-width: 44px; min-height: 44px; padding: 0; transform: translateX(-50%); background: transparent; color: #fff; font: 700 12px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cpd-catfish__reopen-face { display: block; width: 100%; height: 30px; min-width: 44px; max-width: 100%; overflow: hidden; padding: 7px 10px; border-radius: 4px; background: var(--cpd-close-color, #c90000); box-shadow: 0 1px 3px rgb(0 0 0 / 28%); color: #fff; text-overflow: ellipsis; white-space: nowrap; transition: filter 120ms ease, box-shadow 120ms ease; }
.cpd-catfish__reopen:hover .cpd-catfish__reopen-face { filter: brightness(1.1); }
.cpd-catfish__reopen:active .cpd-catfish__reopen-face { filter: brightness(.9); }
.cpd-catfish__reopen:focus-visible { outline: 0; }
.cpd-catfish__reopen:focus-visible .cpd-catfish__reopen-face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1, 0 1px 3px rgb(0 0 0 / 28%); }
.cpd-catfish.is-closed .cpd-catfish__grid, .cpd-catfish.is-closed .cpd-catfish__control-row { display: none; }
.cpd-catfish.is-closed .cpd-catfish__reopen { display: inline-flex; }
.cpd-rail { position: fixed; z-index: calc(var(--cpd-runtime-z) + 10); top: var(--cpd-rail-top, 280px); width: var(--cpd-rail-y, 160px); display: grid; row-gap: var(--cpd-rail-gap, var(--cpd-gap)); align-content: start; margin: 0; padding: 0; border: 0; line-height: 0; }
.cpd-rail.is-pending { visibility: hidden; pointer-events: none; }
.cpd-rail--left { left: 8px; } .cpd-rail--right { right: 8px; }
.cpd-rail__squares, .cpd-rail__verticals { display: grid; column-gap: var(--cpd-rail-gap, var(--cpd-gap)); row-gap: var(--cpd-rail-gap, var(--cpd-gap)); min-width: 0; margin: 0; padding: 0; border: 0; align-items: start; line-height: 0; }
.cpd-rail__squares[data-layout="span"], .cpd-rail__squares[data-layout="stack"] { grid-template-columns: minmax(0, var(--cpd-rail-y)); }
.cpd-rail__squares[data-layout="pair"], .cpd-rail__verticals[data-layout="pair"] { grid-template-columns: repeat(2, minmax(0, var(--cpd-rail-x))); }
.cpd-rail__verticals[data-layout="one"] { grid-template-columns: var(--cpd-rail-x) var(--cpd-rail-x); }
.cpd-rail--right .cpd-rail__verticals[data-layout="one"] { grid-template-columns: var(--cpd-rail-x); justify-content: end; }
.cpd-rail__item, .cpd-rail__item .cpd-media, .cpd-rail__item .cpd-media__link, .cpd-rail__item .cpd-media__frame, .cpd-rail__item .cpd-media__image { margin: 0; padding: 0; border: 0; line-height: 0; }
.cpd-rail__item { position: relative; min-width: 0; overflow: visible; }
.cpd-rail__item--square { width: var(--cpd-rail-x); }
.cpd-rail__squares[data-layout="span"] .cpd-rail__item--square,
.cpd-rail__squares[data-layout="stack"] .cpd-rail__item--square { width: var(--cpd-rail-y); }
.cpd-rail__item--square .cpd-media, .cpd-rail__item--square .cpd-media__link, .cpd-rail__item--square .cpd-media__frame { height: auto; }
.cpd-rail__item--square .cpd-media__image { height: auto; max-height: none; object-fit: contain; }
.cpd-rail__item--vertical { width: var(--cpd-rail-x); }
.cpd-rail__item--vertical .cpd-media__image { height: auto; }
.cpd-rail__close { position: absolute; z-index: 2; top: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; overflow: visible; }
.cpd-rail--left .cpd-rail__close { left: 0; }
.cpd-rail--right .cpd-rail__close { right: 0; }
.cpd-rail__close .cpd-close__visual { position: absolute; top: 5px; width: 24px; height: 24px; flex-basis: 24px; opacity: .52; border-color: rgb(255 255 255 / 64%); background: rgb(29 35 39 / 72%); box-shadow: 0 1px 3px rgb(0 0 0 / 24%); transition: opacity 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease; }
.cpd-rail--left .cpd-rail__close .cpd-close__visual { left: 5px; }
.cpd-rail--right .cpd-rail__close .cpd-close__visual { right: 5px; }
.cpd-rail__close .cpd-close__icon { width: 12px; height: 12px; }
.cpd-rail__item:hover .cpd-rail__close .cpd-close__visual, .cpd-rail__close:hover .cpd-close__visual { opacity: .96; border-color: #fff; background: rgb(29 35 39 / 94%); }
.cpd-rail__close:focus-visible { outline: 0; }
.cpd-rail__close:focus-visible .cpd-close__visual { opacity: 1; border-color: #fff; background: rgb(29 35 39 / 94%); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1, 0 1px 3px rgb(0 0 0 / 24%); }
.cpd-popup { position: fixed; z-index: calc(var(--cpd-runtime-z) + 100); inset: 0; display: grid; place-items: center; padding: var(--cpd-safe); }
.cpd-popup__backdrop { position: absolute; z-index: 0; inset: 0; background: rgb(0 0 0 / 74%); }
/* Same card as the Admin preview: up to 640px wide, the close button on its top-right corner. */
.cpd-popup__frame { position: relative; z-index: 1; width: min(640px, calc(100vw - 32px)); }
.cpd-popup__dialog { position: relative; max-height: calc(100dvh - 32px); overflow: auto; background: transparent; color: #1d2327; box-shadow: 0 12px 48px rgb(0 0 0 / 45%); }
.cpd-popup__dialog:focus { outline: 0; }
.cpd-popup__dialog .cpd-media__image { height: auto; }
/* A card: the image (or the colors) is the stage; texts and buttons on it sit in the overlay, other buttons below. */
.cpd-popup__stage { position: relative; color: var(--cpd-popup-text, #fff); text-align: center; }
.cpd-popup__stage.is-colored { padding: 40px 28px; background: var(--cpd-popup-color-1, #1d2327); }
.cpd-popup__stage.is-colored[data-background="gradient"] { background: linear-gradient(var(--cpd-popup-angle, 90deg), var(--cpd-popup-color-1, #1d2327), var(--cpd-popup-color-2, #2271b1)); }
.cpd-popup__stage.has-image .cpd-popup__overlay { position: absolute; inset: auto 0 0; padding: 48px 24px 24px; background: linear-gradient(transparent, rgb(0 0 0 / 72%)); pointer-events: none; }
.cpd-popup__stage.has-image .cpd-popup__overlay a { pointer-events: auto; }
.cpd-popup__title { margin: 12px 0 0; color: inherit; font-size: 28px; line-height: 1.2; }
.cpd-popup__subtitle { margin: 8px 0 0; }
.cpd-popup__note { display: block; margin-top: 8px; opacity: .85; }
.cpd-popup__close { position: absolute; z-index: 2; top: 8px; right: 8px; }
.cpd-popup__badge { display: inline-block; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; }
.cpd-popup__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.cpd-popup__overlay > .cpd-popup__actions:first-child { margin-top: 0; }
/* Buttons below the card share its full width on a translucent gray bar. */
.cpd-popup__actions.is-below { flex-wrap: nowrap; gap: 8px; margin: 0; padding: 10px; background: rgb(60 67 74 / 60%); }
.cpd-popup__actions.is-below .cpd-popup__cta { flex: 1 1 0; min-width: 0; justify-content: center; }
.cpd-popup__cta { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border: 2px solid var(--cpd-cta-color, #2271b1); background: var(--cpd-cta-color, #2271b1); color: var(--cpd-cta-text, #fff); font-weight: 600; text-decoration: none; }
.cpd-popup__cta.is-outline { background: transparent; }
.wordpress-cpd-banner-runtime.is-popup-open .cpd-catfish, .wordpress-cpd-banner-runtime.is-popup-open .cpd-rail { pointer-events: none; }
/* Banners side by side share one frame (see WordPressCpdBannerLayout.clusterFit): cover when the crop is small, else letterbox. */
.cpd-media[data-fit] .cpd-media__frame { height: auto; aspect-ratio: var(--cpd-frame-ratio); overflow: hidden; }
.cpd-media[data-fit][data-state="ready"] .cpd-media__image { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.cpd-media[data-fit="contain"][data-state="ready"] .cpd-media__image { object-fit: contain; }
.cpd-media[data-fit="contain"] .cpd-media__frame { background: #111; }
@media (max-width: 768px) {
	.cpd-control { min-width: 48px; min-height: 48px; }
	.cpd-catfish__close, .cpd-catfish__reopen { min-width: 44px; min-height: 44px; }
	.cpd-catfish { width: 100%; max-height: min(46dvh, 420px); overflow: auto; }
	.cpd-catfish__grid { grid-template-columns: minmax(0, 1fr); }
	.cpd-catfish__item.is-span { grid-column: auto; }
	.cpd-rail { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .wordpress-cpd-banner-runtime *, .wordpress-cpd-banner-runtime *::before, .wordpress-cpd-banner-runtime *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
