/* Szezonális pop-up – kreatívonként színek (a grafikát az inc/popup.php rajzolja SVG-vel) */
.tb-pop--alap        { --pop-bg: #56694F; --pop-card: #FBF8F2; --pop-ink: #2F3A2F; --pop-accent: #56694F; --pop-accent-ink: #fff; --pop-soft: #EDE5D6; }
.tb-pop--black-friday { --pop-bg: #121212; --pop-card: #181818; --pop-ink: #fff; --pop-accent: #F4D03F; --pop-accent-ink: #121212; --pop-soft: #2A2A2A; }
.tb-pop--karacsony   { --pop-bg: #1F4D3A; --pop-card: #FFF9F0; --pop-ink: #1F3A2E; --pop-accent: #C62F3B; --pop-accent-ink: #fff; --pop-soft: #F2E6D2; }
.tb-pop--mikulas     { --pop-bg: #B3262E; --pop-card: #FFF8F3; --pop-ink: #3A1A1D; --pop-accent: #B3262E; --pop-accent-ink: #fff; --pop-soft: #F6E3DD; }
.tb-pop--husvet      { --pop-bg: #F4EEC4; --pop-card: #FFFDF2; --pop-ink: #3B4A33; --pop-accent: #E58FA8; --pop-accent-ink: #3B1F28; --pop-soft: #F2EFD3; }
.tb-pop--nyar        { --pop-bg: #5CC6D0; --pop-card: #FFFCF1; --pop-ink: #1E4753; --pop-accent: #F4B400; --pop-accent-ink: #3A2C00; --pop-soft: #E4F4F2; }
.tb-pop--osz         { --pop-bg: #E8B26A; --pop-card: #FFF8EC; --pop-ink: #4A2E16; --pop-accent: #B5502A; --pop-accent-ink: #fff; --pop-soft: #F5E4C9; }
.tb-pop--anyak-napja { --pop-bg: #F6CBD4; --pop-card: #FFF8F9; --pop-ink: #4A2230; --pop-accent: #D6567A; --pop-accent-ink: #fff; --pop-soft: #FBE4E9; }

.tb-pop__art { background: var(--pop-bg); position: relative; overflow: hidden; }
.tb-pop__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-pop__drift { animation: tb-pop-drift 5.5s ease-in-out infinite alternate; }
.tb-pop__drift2 { animation: tb-pop-drift 7s ease-in-out infinite alternate-reverse; }
.tb-pop__spin { animation: tb-pop-spin 40s linear infinite; }
@keyframes tb-pop-drift { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes tb-pop-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tb-pop__drift, .tb-pop__drift2, .tb-pop__spin { animation: none; } }

/* Az ablak */
.tb-pop { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(25, 30, 25, .6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.tb-pop[hidden] { display: none; }
.tb-pop.is-open { opacity: 1; visibility: visible; }
.tb-pop__card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); width: min(800px, 100%); max-height: calc(100vh - 40px); background: var(--pop-card); color: var(--pop-ink); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(18px) scale(.98); transition: transform .3s; }
.tb-pop.is-open .tb-pop__card { transform: none; }
.tb-pop .tb-pop__art { min-height: 380px; }
.tb-pop__body { padding: 40px 38px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; overflow: auto; }
.tb-pop__badge { display: inline-block; background: var(--pop-accent); color: var(--pop-accent-ink); border-radius: 999px; padding: 6px 14px; font: 800 12px var(--tb-font-body, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.tb-pop__title { margin: 0; font-family: var(--tb-font-head, sans-serif); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -.5px; color: var(--pop-ink); text-wrap: balance; }
.tb-pop__text { margin: 0; font: 400 17px/1.55 var(--tb-font-body, sans-serif); color: var(--pop-ink); opacity: .85; }
.tb-pop__code { display: inline-flex; align-items: stretch; border: 2px dashed var(--pop-accent); border-radius: 14px; background: var(--pop-soft); overflow: hidden; }
.tb-pop__code code { padding: 10px 16px; font: 800 20px/1.2 var(--tb-font-body, monospace); letter-spacing: .12em; color: var(--pop-ink); }
.tb-pop__code button { border: 0; background: var(--pop-accent); color: var(--pop-accent-ink); padding: 0 16px; font: 700 14px var(--tb-font-body, sans-serif); cursor: pointer; }
.tb-pop__hint { font: 400 13px var(--tb-font-body, sans-serif); opacity: .7; margin-top: -6px; }
.tb-pop__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--pop-accent); color: var(--pop-accent-ink); font: 700 17px var(--tb-font-body, sans-serif); text-decoration: none; transition: transform .15s, filter .15s; }
.tb-pop__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* A globális a:hover/a:focus színe felülírta: a gomb szövege a háttérszínnel egybeolvadt (2026-11-16) */
.tb-pop__btn:hover, .tb-pop__btn:focus, .tb-pop__btn:active { color: var(--pop-accent-ink); }
.tb-pop__skip { border: 0; background: transparent; padding: 6px 0; color: var(--pop-ink); opacity: .65; font: 500 14px var(--tb-font-body, sans-serif); text-decoration: underline; cursor: pointer; }
.tb-pop__skip:hover { opacity: 1; }
.tb-pop__x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #2F3A2F; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.tb-pop__x:hover { background: #fff; }
.tb-pop :focus-visible { outline: 3px solid var(--pop-accent); outline-offset: 2px; }
body.tb-pop-lock { overflow: hidden; }

@media (max-width: 640px) {
	.tb-pop { align-items: flex-end; padding: 12px; }
	.tb-pop__card { grid-template-columns: 1fr; max-height: calc(100vh - 24px); border-radius: 24px; overflow: auto; }
	.tb-pop .tb-pop__art { min-height: 0; height: 150px; }
	.tb-pop__body { padding: 24px 22px 26px; gap: 12px; }
	.tb-pop__title { font-size: 26px; }
	.tb-pop__btn { width: 100%; }
}
