/* CraftCon SA adverts. Desktop = 768px and wider; phones below. Colours match the CraftCon brand. */
.ccad-band, .ccad-pop, .ccad-tab { --ccad-navy: #08264a; --ccad-orange: #f26a11; --ccad-teal: #049a9b; font-family: Poppins, "Segoe UI", Arial, sans-serif; box-sizing: border-box; }
.ccad-band *, .ccad-pop *, .ccad-tab * { box-sizing: border-box; }
.ccad-band[hidden], .ccad-pop[hidden], .ccad-tab[hidden] { display: none !important; }

/* ---- Slider (shared) ---- */
.ccad-slider { position: relative; }
.ccad-track { position: relative; width: 100%; aspect-ratio: var(--ccad-d); overflow: hidden; border-radius: 14px; background: #f3ede2; isolation: isolate; transform: translateZ(0); }
.ccad-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.ccad-slide.is-active { opacity: 1; visibility: visible; }
/* The artwork fills the rounded holder edge to edge (themes like Astra set img height:auto, so force it). */
.ccad-slide picture { display: block; width: 100%; height: 100%; }
.ccad-slide img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: inherit; box-shadow: none !important; }
.ccad-slide, .ccad-slide picture { border-radius: inherit; overflow: hidden; }
a.ccad-slide:focus-visible { outline: 3px solid var(--ccad-teal); outline-offset: -3px; }
.ccad-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.ccad-dots { display: flex; gap: 6px; }
.ccad-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 38, 74, .25); cursor: pointer; min-height: 0; box-shadow: none; }
.ccad-dot.is-active { background: var(--ccad-orange); width: 22px; border-radius: 99px; }
.ccad-arrow { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 38, 74, .08); color: var(--ccad-navy); font: 700 18px/28px Arial, sans-serif; cursor: pointer; box-shadow: none; }
.ccad-arrow:hover, .ccad-dot:hover { background: var(--ccad-orange) !important; color: #fff !important; transform: none; }

/* ---- Banner band above the footer ---- */
.ccad-band { clear: both; width: 100%; padding: 28px clamp(14px, 3vw, 48px) 36px; background: transparent; }
.ccad-band__inner { max-width: 1600px; margin: 0 auto; }
.ccad-label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5d6878; }
.ccad-preview-flag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #fff1e6; color: #d85400; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.ccad-band .ccad-track { box-shadow: 0 10px 30px rgba(8, 38, 74, .14); border: 0; }

/* ---- Side popup (bottom right) ---- */
.ccad-pop { position: fixed; right: 18px; bottom: 18px; z-index: 99990; width: 320px; max-width: calc(100vw - 36px); transform: translateX(calc(100% + 40px)); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.ccad-pop.is-in { transform: none; }
.ccad-pop__card { background: #fff; border-radius: 18px; padding: 8px 10px 10px; box-shadow: 0 22px 50px rgba(8, 38, 74, .28); border: 1px solid rgba(8, 38, 74, .12); }
.ccad-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5d6878; }
.ccad-pop__close { width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f1f3f6; color: var(--ccad-navy); font: 400 22px/30px Arial, sans-serif; cursor: pointer; box-shadow: none; }
.ccad-pop__close:hover, .ccad-pop__close:focus-visible { background: var(--ccad-navy) !important; color: #fff !important; transform: none; }
.ccad-pop .ccad-track { border-radius: 12px; }
.ccad-pop .ccad-nav { margin-top: 6px; }

/* ---- Minimised tab on the right edge ---- */
.ccad-tab { position: fixed; right: 0; top: 55%; z-index: 99990; display: flex; align-items: center; justify-content: center; width: 38px; min-height: 0; height: 116px; padding: 0; border: 0; border-radius: 14px 0 0 14px; background: var(--ccad-orange); color: #fff; cursor: pointer; box-shadow: -6px 8px 22px rgba(8, 38, 74, .25); transition: width .18s ease, background-color .18s ease; }
.ccad-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
/* Themes (Astra) recolour button text on hover: keep the tab text white. */
.ccad-tab, .ccad-tab:hover, .ccad-tab:focus, .ccad-tab:focus-visible, .ccad-tab:active, .ccad-tab span { color: #fff !important; }
.ccad-tab:hover, .ccad-tab:focus-visible { width: 44px; background: var(--ccad-navy) !important; }
.ccad-tab:focus:not(:focus-visible) { background: var(--ccad-orange); }
.ccad-tab:focus-visible { outline: 3px solid var(--ccad-teal); outline-offset: 2px; }

/* ---- Phones: mobile artwork and sizes ---- */
@media (max-width: 767px) {
	.ccad-track { aspect-ratio: var(--ccad-m); }
	.ccad-slide--no-mobile { display: none; }
	.ccad-band { padding: 20px 12px 28px; }
	.ccad-pop { right: 12px; bottom: 12px; width: min(250px, 66vw); }
	.ccad-pop__card { border-radius: 16px; padding: 6px 8px 8px; }
	.ccad-tab { height: 96px; width: 34px; top: 60%; }
}
@media (min-width: 768px) { .ccad-slide--no-desktop { display: none; } }
@media (prefers-reduced-motion: reduce) { .ccad-slide, .ccad-pop, .ccad-tab { transition: none; } }
@media print { .ccad-band, .ccad-pop, .ccad-tab { display: none !important; } }
