:root { --ffl-ck-accent: #3f5743; }

.ffl-ck-banner,
.ffl-ck-overlay,
.ffl-ck-float,
.ffl-ck-embed { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; color: #1f2937; box-sizing: border-box; }
.ffl-ck-banner *, .ffl-ck-overlay *, .ffl-ck-embed * { box-sizing: border-box; }
.ffl-ck-overlay[hidden] { display: none !important; }

/* Banner */
.ffl-ck-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999990; max-width: 980px; margin: 0 auto; padding: 18px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.ffl-ck-banner__text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.ffl-ck-banner__text p { margin: 0; color: #4b5563; }
.ffl-ck-banner__text a { color: var(--ffl-ck-accent); text-decoration: underline; }
.ffl-ck-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }

/* Buttons: accept and reject look the same */
.ffl-ck-btn { appearance: none; cursor: pointer; border-radius: 6px; padding: 10px 16px; font: inherit; font-weight: 600; line-height: 1.2; border: 2px solid var(--ffl-ck-accent); white-space: nowrap; }
.ffl-ck-btn--primary { background: var(--ffl-ck-accent); color: #fff; }
.ffl-ck-btn--ghost { background: #fff; color: var(--ffl-ck-accent); }
.ffl-ck-btn:hover { filter: brightness(0.92); }
.ffl-ck-btn:focus-visible,
.ffl-ck-link:focus-visible,
.ffl-ck-close:focus-visible,
.ffl-ck-float:focus-visible,
.ffl-ck-switch input:focus-visible + .ffl-ck-switch__track { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ffl-ck-link { background: none; border: 0; padding: 0; color: var(--ffl-ck-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Preferences dialog */
.ffl-ck-overlay { position: fixed; inset: 0; z-index: 999995; background: rgba(17, 24, 39, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ffl-ck-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.ffl-ck-dialog:focus { outline: none; }
.ffl-ck-dialog__title { margin: 0 32px 8px 0; font-size: 20px; line-height: 1.3; }
.ffl-ck-dialog__intro { margin: 0 0 16px; color: #4b5563; }
.ffl-ck-row { padding: 14px 0; border-top: 1px solid #e5e7eb; }
.ffl-ck-row__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ffl-ck-row__title { font-weight: 600; }
.ffl-ck-row__desc { margin: 6px 0 0; color: #4b5563; font-size: 14px; }
.ffl-ck-dialog__foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 16px; border-top: 1px solid #e5e7eb; }

/* Switch */
.ffl-ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ffl-ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ffl-ck-switch input:disabled { cursor: not-allowed; }
.ffl-ck-switch__track { position: absolute; inset: 0; border-radius: 26px; background: #9ca3af; transition: background 0.15s; }
.ffl-ck-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.ffl-ck-switch input:checked + .ffl-ck-switch__track { background: var(--ffl-ck-accent); }
.ffl-ck-switch input:checked + .ffl-ck-switch__track::after { transform: translateX(20px); }
.ffl-ck-switch input:disabled + .ffl-ck-switch__track { opacity: 0.6; }

/* Floating re-open button */
.ffl-ck-float { position: fixed; left: 16px; bottom: 16px; z-index: 999980; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ffl-ck-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); padding: 0; }

/* Blocked embeds */
.ffl-ck-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 220px; padding: 24px; text-align: center; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; }
.ffl-ck-embed p { margin: 0; max-width: 460px; color: #374151; }
.ffl-ck-embed__row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }

@media (max-width: 720px) {
	.ffl-ck-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
	.ffl-ck-banner__actions { justify-content: stretch; }
	.ffl-ck-banner__actions .ffl-ck-btn { flex: 1 1 auto; }
	.ffl-ck-dialog__foot .ffl-ck-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ffl-ck-switch__track, .ffl-ck-switch__track::after { transition: none; }
}

/* Keep our buttons looking the same whatever the theme (Astra, Elementor...) does to <button> */
.ffl-ck-overlay button.ffl-ck-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; min-height: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 6px; background: transparent !important; box-shadow: none !important; color: #6b7280 !important; font-size: 28px; line-height: 1; font-weight: 400; text-transform: none; cursor: pointer; }
.ffl-ck-overlay button.ffl-ck-close:hover,
.ffl-ck-overlay button.ffl-ck-close:focus { background: #f3f4f6 !important; color: #111827 !important; }
.ffl-ck-banner button.ffl-ck-btn,
.ffl-ck-overlay button.ffl-ck-btn { min-height: 0; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none !important; border: 2px solid var(--ffl-ck-accent) !important; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.ffl-ck-banner button.ffl-ck-btn--primary,
.ffl-ck-overlay button.ffl-ck-btn--primary { background: var(--ffl-ck-accent) !important; color: #fff !important; }
.ffl-ck-banner button.ffl-ck-btn--ghost,
.ffl-ck-overlay button.ffl-ck-btn--ghost { background: #fff !important; color: var(--ffl-ck-accent) !important; }
.ffl-ck-banner button.ffl-ck-btn:hover,
.ffl-ck-overlay button.ffl-ck-btn:hover,
.ffl-ck-banner button.ffl-ck-btn:focus,
.ffl-ck-overlay button.ffl-ck-btn:focus { filter: brightness(0.92); }
button.ffl-ck-float { background: var(--ffl-ck-accent) !important; color: #fff !important; border: 0 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important; }
.ffl-ck-embed button.ffl-ck-btn { border: 2px solid var(--ffl-ck-accent) !important; background: var(--ffl-ck-accent) !important; color: #fff !important; text-transform: none; box-shadow: none !important; }
button.ffl-ck-link { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--ffl-ck-accent) !important; padding: 0; text-transform: none; }

/* Cookie details */
.ffl-ck-details { margin-top: 8px; font-size: 14px; }
.ffl-ck-details summary { cursor: pointer; color: var(--ffl-ck-accent); font-weight: 600; }
.ffl-ck-details summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ffl-ck-scroll { overflow-x: auto; margin-top: 8px; }
.ffl-ck-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.ffl-ck-table th,
.ffl-ck-table td { padding: 6px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e7eb; }
.ffl-ck-table th { font-weight: 600; color: #374151; white-space: nowrap; }
.ffl-ck-table td:first-child { word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
