/* Stellified Consent */
.stlc, .stlc-modal { font-family: var(--stlc-font, inherit); font-size: 15px; line-height: 1.5; color: var(--stlc-text, #fff); box-sizing: border-box; }
.stlc *, .stlc-modal * { box-sizing: border-box; }

.stlc { position: fixed; z-index: 99998; left: 0; right: 0; bottom: 0; padding: 16px; pointer-events: none; opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.stlc.is-visible { opacity: 1; transform: none; }
.stlc[hidden] { display: none; }
.stlc__banner { pointer-events: auto; margin: 0 auto; max-width: 1300px; background: var(--stlc-bg, #0B1B3F); border-radius: var(--stlc-radius, 8px); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); padding: 22px 26px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stlc--bottom-left, .stlc--bottom-right { left: auto; right: auto; max-width: 460px; }
.stlc--bottom-left { left: 0; }
.stlc--bottom-right { right: 0; }
.stlc--bottom-left .stlc__banner, .stlc--bottom-right .stlc__banner, .stlc--center .stlc__banner { flex-direction: column; align-items: stretch; }
.stlc--center { top: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 27, 63, .55); pointer-events: auto; }
.stlc--center .stlc__banner { max-width: 560px; }
.stlc__body { flex: 1 1 420px; min-width: 0; }
.stlc__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: inherit; }
.stlc__text { margin: 0; color: inherit; opacity: .9; font-size: 14.5px; }
.stlc__text a, .stlc__links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stlc__links { margin: 8px 0 0; font-size: 13px; opacity: .75; }
.stlc__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.stlc__btn { appearance: none; border: 2px solid transparent; border-radius: var(--stlc-radius, 8px); padding: 11px 18px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; line-height: 1.2; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.stlc__btn:focus-visible { outline: 3px solid var(--stlc-accent, #F5A623); outline-offset: 2px; }
.stlc__btn--primary { background: var(--stlc-accent, #F5A623); color: var(--stlc-accent-text, #0B1B3F); border-color: var(--stlc-accent, #F5A623); }
.stlc__btn--primary:hover { filter: brightness(1.06); }
.stlc__btn--ghost { background: transparent; color: var(--stlc-text, #fff); border-color: rgba(255, 255, 255, .35); }
.stlc__btn--ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }

/* Modal */
.stlc-lock { overflow: hidden; }
.stlc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.stlc-modal.is-visible { opacity: 1; }
.stlc-modal[hidden] { display: none; }
.stlc-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 27, 63, .6); }
.stlc-modal__dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #0B1B3F; border-radius: var(--stlc-radius, 8px); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); padding: 32px; outline: none; }
.stlc-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #0B1B3F; border-radius: 50%; }
.stlc-modal__close:hover { background: #EEF1FF; }
.stlc-modal__title { margin: 0 40px 8px 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: #0B1B3F; }
.stlc-modal__intro { margin: 0 0 20px; color: #3D4766; font-size: 15px; }
.stlc-modal__cats { display: flex; flex-direction: column; gap: 10px; }
.stlc-cat { border: 1px solid #E1E5F2; border-radius: var(--stlc-radius, 8px); padding: 14px 16px; }
.stlc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stlc-cat__label { font-weight: 700; font-size: 15px; color: #0B1B3F; cursor: pointer; }
.stlc-cat__desc { margin: 6px 0 0; font-size: 14px; color: #3D4766; }
.stlc-cat__always { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1E9E6A; background: #E6F6EE; padding: 4px 10px; border-radius: 999px; }
.stlc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 48px; }
.stlc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.stlc-switch__track { position: absolute; inset: 0; background: #C9CFE3; border-radius: 999px; transition: background-color .15s ease; }
.stlc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.stlc-switch input:checked + .stlc-switch__track { background: #1E9E6A; }
.stlc-switch input:checked + .stlc-switch__track::after { transform: translateX(20px); }
.stlc-switch input:focus-visible + .stlc-switch__track { outline: 3px solid var(--stlc-accent, #F5A623); outline-offset: 2px; }
.stlc-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.stlc-modal__actions .stlc__btn--ghost { color: #0B1B3F; border-color: #C9CFE3; }
.stlc-modal__actions .stlc__btn--ghost:hover { border-color: #0B1B3F; background: #EEF1FF; }
.stlc-modal__links { color: #3D4766; margin-top: 16px; }

/* Cookie table shortcode */
.stlc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stlc-table th, .stlc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E1E5F2; vertical-align: top; }
.stlc-table th { background: #EEF1FF; font-weight: 700; }

/* Blocked embed placeholder */
.stlc-embed-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; background: #EEF1FF; border-radius: 8px; color: #0B1B3F; font-size: 15px; }

@media (max-width: 640px) {
	.stlc { padding: 10px; }
	.stlc__banner { padding: 18px; gap: 16px; }
	.stlc__actions { width: 100%; }
	.stlc__btn { flex: 1 1 auto; text-align: center; }
	.stlc-modal__dialog { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.stlc, .stlc-modal, .stlc-switch__track, .stlc-switch__track::after { transition: none; }
}

/* Hardening against theme and page builder button styles (Elementor kits, Hello theme resets) */
#stl-consent .stlc__btn,
#stl-consent-modal .stlc__btn { appearance: none; margin: 0; border: 2px solid transparent; border-radius: var(--stlc-radius, 8px); padding: 11px 18px; font-family: var(--stlc-font, inherit); font-size: 14.5px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none; text-decoration: none; box-shadow: none; cursor: pointer; }
#stl-consent .stlc__btn--primary,
#stl-consent-modal .stlc__btn--primary { background: var(--stlc-accent, #F5A623); color: var(--stlc-accent-text, #0B1B3F); border-color: var(--stlc-accent, #F5A623); }
#stl-consent .stlc__btn--primary:hover,
#stl-consent .stlc__btn--primary:focus,
#stl-consent-modal .stlc__btn--primary:hover,
#stl-consent-modal .stlc__btn--primary:focus { background: var(--stlc-accent, #F5A623); color: var(--stlc-accent-text, #0B1B3F); border-color: var(--stlc-accent, #F5A623); filter: brightness(1.08); }
#stl-consent .stlc__btn--ghost { background: transparent; color: var(--stlc-text, #fff); border-color: rgba(255, 255, 255, .35); }
#stl-consent .stlc__btn--ghost:hover,
#stl-consent .stlc__btn--ghost:focus { background: rgba(255, 255, 255, .08); color: var(--stlc-text, #fff); border-color: rgba(255, 255, 255, .7); }
#stl-consent-modal .stlc__btn--ghost { background: transparent; color: var(--stlc-bg, #0B1B3F); border-color: #C9CFE3; }
#stl-consent-modal .stlc__btn--ghost:hover,
#stl-consent-modal .stlc__btn--ghost:focus { background: #F3F4FA; color: var(--stlc-bg, #0B1B3F); border-color: var(--stlc-bg, #0B1B3F); }
#stl-consent .stlc__btn:focus-visible,
#stl-consent-modal .stlc__btn:focus-visible { outline: 3px solid var(--stlc-accent, #F5A623); outline-offset: 2px; }
#stl-consent-modal .stlc-modal__close { margin: 0; padding: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--stlc-bg, #0B1B3F); font-size: 28px; line-height: 1; box-shadow: none; }
#stl-consent-modal .stlc-modal__close:hover,
#stl-consent-modal .stlc-modal__close:focus { background: #F3F4FA; color: var(--stlc-bg, #0B1B3F); }

/* Modal follows the brand settings */
#stl-consent-modal .stlc-modal__dialog { font-family: var(--stlc-font, inherit); color: var(--stlc-bg, #0B1B3F); }
#stl-consent-modal .stlc-modal__title,
#stl-consent-modal .stlc-cat__label { color: var(--stlc-bg, #0B1B3F); font-family: var(--stlc-font, inherit); }
#stl-consent-modal .stlc-switch input:checked + .stlc-switch__track { background: var(--stlc-accent, #1E9E6A); }
#stl-consent-modal .stlc__links a { color: var(--stlc-bg, #0B1B3F); }
