/* ---------- shared ---------- */
html.ifc-noscroll, html.ifc-noscroll body { overflow: hidden; }
.ifc-sr, .ifc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ifc-btn { display: inline-block; background: var(--ifc-accent, #e8772e); color: #fff; border: 0; border-radius: 3px; padding: .8em 1.6em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; text-decoration: none; line-height: 1.2; font-size: 15px; }
.ifc-btn:hover, .ifc-btn:focus-visible { filter: brightness(1.1); color: #fff; }
.ifc-btn:focus-visible, .ifc-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ifc-popup .ifc-btn, .ifc-age .ifc-btn, .ifc-signup .ifc-btn { background: var(--ifc-accent, #e8772e) !important; color: #fff !important; border: 0 !important; }
.ifc-btn-ghost, .ifc-age .ifc-btn-ghost { background: transparent !important; border: 1px solid currentColor !important; color: inherit !important; }
.ifc-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- age gate ---------- */
.ifc-age { display: none; position: fixed; inset: 0; z-index: 2147483000; align-items: center; justify-content: center; padding: 20px; background: #0d0d0d; color: #fff; overflow: auto; }
.ifc-age[hidden] { display: none !important; }
.ifc-age-box { --ifc-accent: #e8772e; max-width: 460px; width: 100%; text-align: center; background: #1b1b1b; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 36px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ifc-age-logo { max-width: 180px; max-height: 90px; height: auto; margin: 0 auto 18px; display: block; }
.ifc-age h2 { color: #fff; margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.ifc-age p { color: rgba(255,255,255,.85); margin: 0 0 20px; }
.ifc-age-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ifc-age-dob fieldset { border: 0; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; justify-content: center; }
.ifc-age-dob label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.ifc-age-dob select { background: #fff; color: #111; border: 0; border-radius: 3px; padding: 8px; min-width: 76px; font-size: 16px; }
.ifc-age-error { color: #ff8a80 !important; }
.ifc-age-denied { font-weight: 600; color: #fff !important; }
.ifc-age-note { font-size: 12px; opacity: .7; margin: 18px 0 0 !important; }

/* ---------- popups ---------- */
.ifc-popup { position: fixed; z-index: 2147482000; }
.ifc-popup[hidden] { display: none !important; }
.ifc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); animation: ifc-fade .25s ease; }
.ifc-dialog { position: relative; background: var(--ifc-bg); color: var(--ifc-text); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 40px); outline: none; animation: ifc-pop .25s ease; }
.ifc-dialog h2, .ifc-dialog h3, .ifc-dialog h4, .ifc-dialog p, .ifc-dialog li { color: inherit; }
.ifc-body { padding: 28px; overflow: auto; }
.ifc-title { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.ifc-content > :first-child { margin-top: 0; }
.ifc-content > :last-child { margin-bottom: 0; }
.ifc-content a { color: var(--ifc-accent); }
.ifc-cta-wrap { margin: 20px 0 0; }
.ifc-close { position: absolute; top: 8px; right: 10px; z-index: 2; background: rgba(0,0,0,.35); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ifc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* centered box and full screen */
.ifc-layout-modal, .ifc-layout-fullscreen { inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ifc-layout-modal.ifc-size-small .ifc-dialog { width: 380px; }
.ifc-layout-modal.ifc-size-medium .ifc-dialog { width: 520px; }
.ifc-layout-modal.ifc-size-large .ifc-dialog { width: 760px; }
.ifc-layout-modal .ifc-dialog { max-width: 100%; }
.ifc-layout-fullscreen { padding: 0; }
.ifc-layout-fullscreen .ifc-dialog { width: 100%; height: 100%; max-height: none; border-radius: 0; justify-content: center; align-items: center; text-align: center; }
.ifc-layout-fullscreen .ifc-body { max-width: 720px; }
.ifc-img-top .ifc-media { max-height: 260px; overflow: hidden; }
.ifc-img-left .ifc-dialog { flex-direction: row; }
.ifc-img-left .ifc-media { flex: 0 0 42%; min-height: 220px; }
.ifc-img-background .ifc-dialog { background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--ifc-bg-image); background-size: cover; background-position: center; }

/* corner slide-in */
.ifc-layout-slide_in { bottom: 20px; }
.ifc-layout-slide_in.ifc-pos-bottom_right { right: 20px; }
.ifc-layout-slide_in.ifc-pos-bottom_left { left: 20px; }
.ifc-layout-slide_in .ifc-dialog { width: 360px; max-width: calc(100vw - 40px); animation: ifc-slide .3s ease; }
.ifc-layout-slide_in.ifc-size-large .ifc-dialog { width: 440px; }
.ifc-layout-slide_in .ifc-title { font-size: 20px; }
.ifc-layout-slide_in .ifc-body { padding: 22px; }
.ifc-layout-slide_in.ifc-img-left .ifc-dialog { flex-direction: column; }

/* bars */
.ifc-layout-bar_top, .ifc-layout-bar_bottom { left: 0; right: 0; }
.ifc-layout-bar_top { top: 0; }
.ifc-layout-bar_bottom { bottom: 0; }
.ifc-layout-bar_top .ifc-dialog, .ifc-layout-bar_bottom .ifc-dialog { border-radius: 0; flex-direction: row; align-items: center; max-height: none; animation: none; }
.ifc-layout-bar_top .ifc-media, .ifc-layout-bar_bottom .ifc-media { display: none; }
.ifc-layout-bar_top .ifc-body, .ifc-layout-bar_bottom .ifc-body { width: 100%; padding: 12px 56px 12px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.ifc-layout-bar_top .ifc-title, .ifc-layout-bar_bottom .ifc-title { font-size: 17px; margin: 0; }
.ifc-layout-bar_top .ifc-content, .ifc-layout-bar_bottom .ifc-content { font-size: 15px; }
.ifc-layout-bar_top .ifc-cta-wrap, .ifc-layout-bar_bottom .ifc-cta-wrap { margin: 0; }
.ifc-layout-bar_top .ifc-btn, .ifc-layout-bar_bottom .ifc-btn { padding: .55em 1.2em; font-size: 13px; }
.ifc-layout-bar_top .ifc-close, .ifc-layout-bar_bottom .ifc-close { top: 50%; transform: translateY(-50%); }

/* signup form */
.ifc-signup { margin: 18px 0 0; }
.ifc-signup-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.ifc-signup .ifc-signup-fields input[type="text"], .ifc-signup .ifc-signup-fields input[type="email"] { flex: 1 1 180px; min-width: 0; height: auto !important; padding: .75em .9em !important; border: 1px solid rgba(127,127,127,.5) !important; border-radius: 3px !important; background: #fff !important; color: #111 !important; font-size: 16px !important; line-height: 1.3 !important; box-shadow: none !important; }
.ifc-signup .ifc-signup-fields input::placeholder { color: #6b6b6b !important; opacity: 1; }
.ifc-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; opacity: .9; }
.ifc-consent input { margin-top: 3px; }
.ifc-signup-msg:empty { display: none; }
.ifc-signup-msg { margin: 12px 0 0; font-weight: 600; }
.ifc-signup-msg.ifc-err { color: #ff8a80; }
.ifc-signup-msg.ifc-ok { font-size: 1.05em; }

@keyframes ifc-fade { from { opacity: 0; } }
@keyframes ifc-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes ifc-slide { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .ifc-overlay, .ifc-dialog { animation: none !important; } }
@media (max-width: 600px) {
	.ifc-img-left .ifc-dialog { flex-direction: column; }
	.ifc-img-left .ifc-media { min-height: 0; max-height: 200px; }
	.ifc-body { padding: 22px; }
	.ifc-title, .ifc-age h2 { font-size: 22px; }
	.ifc-layout-bar_top .ifc-body, .ifc-layout-bar_bottom .ifc-body { padding: 10px 48px 10px 14px; gap: 8px; }
}
