/* RENU Adverts – front end. Colours come from --radv-accent / --radv-dark (Adverts → Settings). */
.radv-ad, .radv-card, .radv-bar, .radv-modal { --radv-accent: #26aff3; --radv-dark: #243673; box-sizing: border-box; font-family: inherit; }
.radv-ad *, .radv-card *, .radv-bar *, .radv-modal * { box-sizing: border-box; }
.radv-i { flex: none; }

/* Buttons: reset theme button styles (Astra/Hello paint buttons) with higher specificity. */
html body .radv-btn, html body button.radv-open {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 8px;
	background: var(--radv-accent); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: filter .2s, transform .2s; box-shadow: none; text-transform: none; letter-spacing: 0;
}
html body .radv-btn:hover, html body .radv-btn:focus-visible, html body button.radv-open:hover, html body button.radv-open:focus-visible { filter: brightness(.92); color: #fff; background: var(--radv-accent); }
html body button.radv-x, html body button.radv-close {
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: #fff; font: 400 24px/1 Arial, sans-serif; cursor: pointer; box-shadow: none;
}
html body button.radv-x:hover, html body button.radv-close:hover, html body button.radv-x:focus-visible, html body button.radv-close:focus-visible { background: #000; color: #fff; }

/* ---------- Poster / video ---------- */
.radv-media { position: relative; display: block; line-height: 0; background: #0d0f14; }
.radv-poster { display: block; width: 100%; height: auto; }
.radv-video, .radv-media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
html body .radv-play {
	position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 22px 12px 16px; border: 0; border-radius: 40px; background: rgba(0, 0, 0, .78); color: #fff;
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); text-transform: none;
}
html body .radv-play:hover, html body .radv-play:focus-visible { background: #000; color: #fff; }
.radv-play .radv-i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--radv-accent); stroke: none; }
.radv-has-video.is-playing { background: #000; }

/* ---------- Links under the advert ---------- */
.radv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 18px; background: #fff; line-height: 1.3; }
.radv-link { display: inline-flex; align-items: center; gap: 6px; color: #1d2230; font-size: 14px; font-weight: 500; text-decoration: none; }
.radv-link:hover, .radv-link:focus-visible { color: var(--radv-accent); }
.radv-left { margin-left: auto; color: #1d2230; font-size: 14px; font-weight: 700; }

/* ---------- Templates ---------- */
.radv-t { position: relative; color: #1d2230; background: #fff; line-height: 1.5; }
.radv-kicker { margin: 0 0 8px; color: var(--radv-accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.radv-head { margin: 0 0 12px; color: inherit; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; }
.radv-details { margin: 0 0 16px; font-size: 16px; opacity: .9; }
.radv-details p { margin: 0 0 8px; }
.radv-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.radv-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.radv-meta .radv-i { color: var(--radv-accent); }

.radv-t-event { display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; padding: 40px; color: #fff; background: var(--radv-dark) center / cover no-repeat; }
.radv-t-event .radv-t-body { max-width: 560px; }
.radv-t-event .radv-meta .radv-i { color: #fff; }
.radv-date { position: absolute; top: 24px; left: 24px; display: grid; justify-items: center; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--radv-dark); line-height: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.radv-date b { font-size: 34px; font-weight: 800; }
.radv-date span { margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

.radv-t-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.radv-t-photo { background: #ccd center / cover no-repeat; min-height: 240px; }
.radv-t-split .radv-t-body { align-self: center; padding: 40px 36px; }
.radv-t-split .radv-head { color: var(--radv-dark); }

.radv-t-countdown { padding: 44px 36px; text-align: center; color: #fff; background: var(--radv-dark) center / cover no-repeat; }
.radv-t-countdown .radv-meta { justify-content: center; }
.radv-t-countdown .radv-meta .radv-i { color: #fff; }
.radv-clock { display: flex; justify-content: center; gap: 12px; margin: 8px 0 24px; }
.radv-clock span { display: grid; min-width: 84px; padding: 14px 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.radv-clock b { font-size: 38px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

.radv-t-video .radv-t-body { padding: 26px 30px 30px; }
.radv-t-video .radv-head { color: var(--radv-dark); font-size: clamp(22px, 2.6vw, 30px); }

/* ---------- Big view (dialog) ---------- */
.radv-modal { width: auto; max-width: min(94vw, 980px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.radv-modal::backdrop { background: rgba(0, 0, 0, .6); }
.radv-modal[open] { animation: radv-in .25s ease-out; }
html body .radv-modal .radv-close { position: absolute; top: 10px; right: 10px; z-index: 3; }
.radv-modal .radv-poster { width: auto; max-width: 100%; max-height: calc(94vh - 64px); margin: 0 auto; }
.radv-modal .radv-media { display: flex; justify-content: center; }
.radv-modal .radv-video, .radv-modal .radv-media iframe { width: min(90vw, 980px); max-height: calc(94vh - 64px); }
.radv-modal .radv-t { width: min(92vw, 760px); }
.radv-modal .radv-elementor { width: min(92vw, 900px); }
html.radv-lock { overflow: hidden; }
@keyframes radv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Corner card + phone sheet ---------- */
.radv-card-wrap { position: fixed; z-index: 99990; bottom: 20px; left: 20px; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.radv-card-wrap.is-in { opacity: 1; transform: none; }
.radv-card-wrap:has(.radv-card-corner.right) { left: auto; right: 20px; }
.radv-card { position: relative; display: flex; gap: 14px; align-items: center; width: 350px; max-width: calc(100vw - 24px); padding: 12px 44px 12px 12px; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.radv-card img { width: 84px; height: 84px; flex: none; object-fit: cover; object-position: top; border-radius: 8px; }
.radv-card p { margin: 0; }
.radv-card-k { color: #1d2230; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.radv-card-t { margin: 2px 0 10px !important; color: #1d2230; font-size: 15px; font-weight: 700; line-height: 1.3; }
html body .radv-card .radv-open { padding: 8px 14px; font-size: 14px; }
html body .radv-card .radv-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; font-size: 20px; background: #eef0f3; color: #1d2230; }
html body .radv-card .radv-x:hover { background: #dde1e6; color: #000; }
@media (max-width: 767px) {
	.radv-card-wrap { left: 12px; right: 12px; bottom: 12px; }
	.radv-card-wrap:has(.radv-card-corner.right) { left: 12px; right: 12px; }
	.radv-card { width: 100%; }
}

/* ---------- Top bar ---------- */
.radv-bar { position: relative; z-index: 9999; background: var(--radv-dark); color: #fff; }
.radv-bar-in { display: flex; align-items: center; justify-content: center; gap: 10px 18px; max-width: 1240px; margin: 0 auto; padding: 9px 56px 9px 16px; }
.radv-bar p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; color: #fff; font-size: 15px; line-height: 1.35; }
.radv-bar-left { font-weight: 600; opacity: .85; }
html body .radv-bar .radv-open { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
html body .radv-bar .radv-x { position: absolute; top: 50%; right: 12px; width: 30px; height: 30px; margin-top: -15px; background: rgba(255, 255, 255, .14); }
@media (max-width: 600px) { .radv-bar-in { justify-content: flex-start; padding-left: 12px; } .radv-bar p { font-size: 14px; } }

/* ---------- Inside pages ---------- */
.radv-inline, .radv-spot { margin: 0 0 24px; }
.radv-inline .radv-ad, .radv-spot .radv-ad, .radv-single .radv-ad { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(20, 30, 60, .12); }
.radv-spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.radv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
html body .radv-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #c5cad3; cursor: pointer; }
html body .radv-dots button[aria-current] { background: var(--radv-dark, #243673); }
.radv-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.radv-past-item { display: block; overflow: hidden; border-radius: 12px; background: #fff; color: #1d2230; text-decoration: none; box-shadow: 0 8px 24px rgba(20, 30, 60, .1); transition: transform .2s; }
.radv-past-item:hover { transform: translateY(-3px); color: #1d2230; }
.radv-past-item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.radv-past-t { display: block; padding: 12px 14px 2px; font-weight: 700; line-height: 1.3; }
.radv-past-d { display: block; padding: 0 14px 14px; font-size: 14px; opacity: .7; }

/* ---------- The advert's own page ---------- */
.radv-single { max-width: 760px; margin: 0 auto; }
.radv-single-meta { color: #1d2230; }
.radv-ended-note { margin: 0 0 18px; padding: 14px 18px; border-radius: 10px; background: #f1f3f6; color: #1d2230; font-weight: 600; }

@media (max-width: 767px) {
	.radv-t-event { min-height: 420px; padding: 26px 22px; }
	.radv-t-split { grid-template-columns: 1fr; }
	.radv-t-split .radv-t-body { padding: 26px 22px; }
	.radv-t-countdown { padding: 34px 18px; }
	.radv-clock { gap: 6px; }
	.radv-clock span { min-width: 0; flex: 1; padding: 10px 4px; font-size: 10px; }
	.radv-clock b { font-size: 26px; }
	.radv-left { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.radv-modal[open] { animation: none; }
	.radv-card-wrap, .radv-past-item { transition: none; }
}

/* ---------- Fixes: popup fits the poster, play button in the links row, templates adapt to their own width ---------- */
.radv-modal { width: fit-content; }
.radv-modal .radv-media { background: #fff; }
html body .radv-play-row { position: static; transform: none; padding: 9px 16px 9px 10px; box-shadow: none; background: #1d2230; font-size: 14px; }
html body .radv-play-row:hover, html body .radv-play-row:focus-visible { background: #000; }
.radv-has-video > .radv-play { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.radv-inline .radv-ad, .radv-spot .radv-ad, .radv-single .radv-ad, .radv-current-in .radv-ad { container-type: inline-size; }
@container (max-width: 560px) {
	.radv-t-split { grid-template-columns: 1fr; }
	.radv-t-split .radv-t-photo { min-height: 220px; }
	.radv-t-split .radv-t-body, .radv-t-video .radv-t-body { padding: 22px 20px; }
	.radv-t-event { min-height: 380px; padding: 24px 20px; }
	.radv-t-countdown { padding: 30px 16px; }
	.radv-head { font-size: 26px; }
	.radv-clock { gap: 6px; }
	.radv-clock span { min-width: 0; flex: 1; padding: 10px 2px; font-size: 10px; letter-spacing: 0; }
	.radv-clock b { font-size: 24px; }
	.radv-actions { gap: 8px 16px; padding: 12px 14px; }
	.radv-left { margin-left: 0; }
}
@media (max-width: 600px) {
	.radv-bar-in { padding: 7px 50px 7px 12px; gap: 8px 12px; }
	.radv-bar p { font-size: 13px; }
	.radv-bar-left { display: none; }
	html body .radv-bar .radv-open { padding: 6px 10px; font-size: 13px; }
}

/* Advert share page: no author line or next/previous links from the theme. */
.single-radv_advert .entry-meta, .single-radv_advert .post-navigation, .single-radv_advert .ast-single-post-navigation { display: none; }

/* Sticky top bar (stays under the WordPress admin bar when logged in). */
.radv-bar-sticky { position: sticky; top: 0; z-index: 99980; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.admin-bar .radv-bar-sticky { top: var(--wp-admin--admin-bar--height, 32px); }

/* Poster + video layouts */
.radv-duo { display: flex; align-items: stretch; background: #0d0f14; }
.radv-duo > [hidden] { display: none !important; }
.radv-duo-side .radv-duo-video { display: flex; align-items: center; flex: 1 1 auto; }
.radv-duo-side .radv-duo-poster { flex: 0 0 auto; }
.radv-modal .radv-duo-side .radv-poster { max-height: calc(94vh - 64px); width: auto; }
.radv-modal .radv-duo-side .radv-video { width: min(52vw, 760px); max-height: calc(94vh - 64px); }
.radv-modal .radv-duo-video { background: #0d0f14; }
.radv-modal .radv-duo-video:first-child:not(:only-child) .radv-video, .radv-modal .radv-duo-video .radv-video { margin: 0 auto; }
.radv-modal .radv-duo-video-first .radv-video, .radv-modal .radv-duo-video .radv-video { max-width: 100%; }
.radv-modal .radv-duo-video:first-child .radv-video { width: min(90vw, 980px); }
.radv-modal .radv-duo-side .radv-duo-video .radv-video { width: min(52vw, 760px); }
@media (max-width: 900px) {
	.radv-duo-side { flex-direction: column; }
	.radv-duo-side .radv-duo-video { order: -1; }
	.radv-modal .radv-duo-side .radv-duo-video .radv-video { width: min(92vw, 760px); }
	.radv-modal .radv-duo-side .radv-poster { max-height: none; width: min(92vw, 560px); }
}
@container (max-width: 640px) {
	.radv-duo-side { flex-direction: column; }
	.radv-duo-side .radv-duo-video { order: -1; }
}

/* 1.1.2 polish */
.radv-modal:has(.radv-duo-side) { max-width: min(96vw, 1400px); }
.radv-modal .radv-duo-video-first, .radv-modal .radv-duo-video { justify-content: center; }
.radv-modal .radv-duo-video:not(.radv-duo-side) { background: #fff; }
.radv-modal .radv-duo:not(.radv-duo-side) { background: #fff; justify-content: center; }
.radv-modal .radv-duo:not(.radv-duo-side) .radv-duo-poster { background: #fff; }
.radv-modal .radv-duo-side .radv-duo-video { background: #0d0f14; }
html body .radv-swap .radv-i { width: 18px; height: 18px; padding: 0; background: none; stroke: currentColor; }

/* 1.2.0: spot block on pages (heading + centred cards). The block carries its own spacing, so an empty spot leaves no gap. */
.radv-block { max-width: 1200px; margin: 0 auto; padding: 56px 20px 40px; }
.radv-block-title { margin: 0 0 10px; text-align: center; }
.radv-block-intro { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.radv-block .radv-spot { margin: 0; }
.radv-spot-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 370px)); justify-content: center; align-items: start; gap: 26px; }
.radv-spot-grid .radv-actions { gap: 8px 14px; }
.radv-spot-grid .radv-left { margin-left: 0; width: 100%; }
@media (max-width: 767px) { .radv-block { padding: 36px 16px 24px; } .radv-spot-grid { grid-template-columns: 1fr; } }

/* 1.2.1: theme heading styles must not win inside adverts; three cards fit in one row. */
.radv-t .radv-head { color: inherit; font-size: clamp(26px, 3.4vw, 40px); }
.radv-t-split .radv-head, .radv-t-video .radv-head { color: var(--radv-dark); }
.radv-t-video .radv-head { font-size: clamp(22px, 2.6vw, 30px); }
.radv-t-countdown .radv-head, .radv-t-event .radv-head, .radv-t-countdown .radv-kicker { color: #fff; }
.radv-t-countdown .radv-kicker { opacity: .85; }
.radv-spot-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); gap: 24px; }
@container (max-width: 560px) { .radv-t .radv-head { font-size: 26px; } }

/* 1.3.0: always above floating button plugins (Buttonizer, chat, WhatsApp) */
.radv-card-wrap { z-index: 2147483000; }
.radv-bar-sticky { z-index: 2147482000; }

/* 1.3.0: phones get a big poster. The popup fills the width and scrolls if the poster is tall. */
@media (max-width: 767px) {
	.radv-modal { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 12px; }
	.radv-modal .radv-media { display: block; }
	.radv-modal .radv-poster { width: 100%; max-width: 100%; max-height: none; height: auto; }
	.radv-modal .radv-video, .radv-modal .radv-media iframe { width: 100%; }
	.radv-modal .radv-duo-side .radv-poster, .radv-modal .radv-duo-side .radv-duo-video .radv-video { width: 100%; }
	.radv-modal .radv-t, .radv-modal .radv-elementor { width: 100%; }
	html body .radv-modal .radv-close { position: sticky; top: 8px; float: right; margin: 8px 8px -42px 0; }
	.radv-modal .radv-actions { gap: 10px 16px; padding: 14px; }
	.radv-modal .radv-actions .radv-btn { flex: 1 1 100%; justify-content: center; }
}
.radv-card-wrap.radv-to-right, .radv-card-wrap.radv-to-right:has(.radv-card-corner) { left: auto; right: 20px; }
.radv-card-wrap.radv-to-left, .radv-card-wrap.radv-to-left:has(.radv-card-corner) { left: 20px; right: auto; }
