/* Kodi cookie consent banner — see kc-consent.js */
#kc-consent { --kc-fg: #1a1a1a; --kc-bg: #fff; --kc-muted: #5f5f5f; --kc-line: #e3e3e3; --kc-accent: #000; font-family: inherit; color: var(--kc-fg); }
#kc-consent [hidden] { display: none !important; }
#kc-consent a { color: inherit; text-decoration: underline; }

.kc-banner { position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px; max-width: 1100px; margin: 0 auto; background: var(--kc-bg); color: var(--kc-fg); border: 1px solid var(--kc-line); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); padding: 20px 24px; display: flex; gap: 20px; align-items: center; box-sizing: border-box; }
.kc-banner__body { flex: 1 1 auto; min-width: 0; }
.kc-banner__title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.kc-banner__text { font-size: 13px; line-height: 1.5; margin: 0; color: var(--kc-muted); }
.kc-banner__btns { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }

.kc-btn { font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--kc-accent); background: var(--kc-bg); color: var(--kc-accent); cursor: pointer; white-space: nowrap; min-height: 44px; }
.kc-btn:hover { background: #f2f2f2; }
.kc-btn--primary { background: var(--kc-accent); color: #fff; }
.kc-btn--primary:hover { background: #333; }
.kc-btn:focus-visible, .kc-switch input:focus-visible + .kc-switch__ui { outline: 2px solid #3b82f6; outline-offset: 2px; }

.kc-modal { position: fixed; z-index: 2147483001; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.kc-modal__box { position: relative; background: var(--kc-bg); color: var(--kc-fg); border-radius: 12px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-sizing: border-box; }
.kc-modal__title { font-size: 18px; font-weight: 600; margin: 0 32px 12px 0; }
.kc-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--kc-muted); padding: 4px 8px; }
.kc-modal__links { font-size: 13px; margin: 14px 0 0; }
.kc-modal__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }

.kc-cat { border-top: 1px solid var(--kc-line); padding: 14px 0; }
.kc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 600; font-size: 15px; }
.kc-cat__always { font-size: 12px; font-weight: 500; color: #1b7a3a; white-space: nowrap; }
.kc-cat__desc { font-size: 13px; line-height: 1.5; color: var(--kc-muted); margin: 6px 0 0; }

.kc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.kc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.kc-switch__ui { position: absolute; inset: 0; background: #c9c9c9; border-radius: 24px; transition: background .15s; }
.kc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.kc-switch input:checked + .kc-switch__ui { background: var(--kc-accent); }
.kc-switch input:checked + .kc-switch__ui::after { transform: translateX(20px); }

html.kc-lock, html.kc-lock body { overflow: hidden; }

/* blocked embeds (YouTube etc.) */
.kc-embed { position: relative; }
.kc-embed:not(.kc-embed--loaded) { min-height: 220px; background: #f3f3f3; }
.kc-embed:not(.kc-embed--loaded) iframe { visibility: hidden; }
.kc-embed__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; font-size: 13px; line-height: 1.5; color: #333; box-sizing: border-box; }
.kc-embed__ph p { margin: 0; max-width: 460px; }
.kc-embed__ph a { color: inherit; text-decoration: underline; }
.kc-embed__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kc-embed__ph .kc-btn { font-size: 13px; padding: 9px 14px; min-height: 40px; border: 1px solid #000; background: #fff; color: #000; border-radius: 8px; cursor: pointer; }
.kc-embed__ph .kc-btn--primary { background: #000; color: #fff; }

/* footer re-open link */
.kc-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; padding: 10px 16px 14px; }
.kc-footer-links a { color: inherit; opacity: .85; text-decoration: underline; }

/* chat facade (KeyCRM loads only when the visitor asks for it) */
.kc-chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 2147482000; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #000; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kc-chat-btn svg { width: 26px; height: 26px; }
.kc-chat-btn[aria-busy="true"] { opacity: .6; }

@media (max-width: 767px) {
	.kc-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; gap: 12px; max-height: calc(100vh - 16px); overflow: auto; }
	.kc-banner__text { font-size: 12.5px; }
	.kc-banner__btns { display: grid; grid-template-columns: 1fr 1fr; }
	.kc-banner__btns [data-kc-action="settings"] { grid-column: 1 / -1; order: 3; }
	.kc-modal__btns { display: grid; grid-template-columns: 1fr; }
	.kc-modal__box { padding: 20px 16px; }
	.kc-chat-btn { right: 12px; bottom: 12px; width: 50px; height: 50px; }
}
