/*
 * mojFOTOGRAF cookie consent. The box uses the site's own colours and fonts
 * (--mf-*) and one skin per template: atelier (soft card), print (sharp
 * full-width bar), romantic (Závoj, Svadba: centred card with an ornament),
 * minimal (Galéria, Figura: small dark card), platform and album.
 */
.mfcc, .mfcc-embed, .mfcc-footer-link {
    --mfcc-bg: var(--mf-surface, #ffffff);
    --mfcc-text: var(--mf-text, #1d1a16);
    --mfcc-muted: var(--mf-muted, #6f675d);
    --mfcc-accent: var(--mf-accent, #a4522b);
    --mfcc-accent-text: var(--mf-accent-contrast, #ffffff);
    --mfcc-line: color-mix(in srgb, var(--mfcc-text) 14%, transparent);
    --mfcc-heading: var(--mf-font-heading, Georgia, serif);
    --mfcc-body: var(--mf-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
    --mfcc-radius: 16px;
    --mfcc-btn-radius: 999px;
}

.mfcc {
    position: fixed; z-index: 2147483000; left: 20px; bottom: 20px;
    width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto;
    border: 1px solid var(--mfcc-line); border-radius: var(--mfcc-radius);
    background: var(--mfcc-bg); color: var(--mfcc-text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    font: 14px/1.5 var(--mfcc-body); text-align: left;
    animation: mfcc-in .35s ease both;
}
@keyframes mfcc-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .mfcc { animation: none; } }
.mfcc *, .mfcc-embed * { box-sizing: border-box; }
.mfcc-inner { padding: 22px 22px 20px; }
.mfcc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mfcc-title { margin: 0; font: 600 1.2rem/1.2 var(--mfcc-heading); color: inherit; letter-spacing: 0; text-transform: none; }
.mfcc-ornament { display: none; }
.mfcc-text { margin: 0 0 16px; color: var(--mfcc-muted); }

/* Buttons: accepting and refusing look the same, as EU guidance asks */
.mfcc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mfcc-btn { flex: 1 1 auto; min-height: 42px; padding: 0 16px; border: 1px solid var(--mfcc-text); border-radius: var(--mfcc-btn-radius); background: transparent; color: var(--mfcc-text); font: 600 14px/1 var(--mfcc-body); cursor: pointer; }
.mfcc-btn:hover { background: color-mix(in srgb, var(--mfcc-text) 8%, transparent); }
.mfcc-btn--primary { border-color: var(--mfcc-accent); background: var(--mfcc-accent); color: var(--mfcc-accent-text); }
.mfcc-btn--primary:hover { background: color-mix(in srgb, var(--mfcc-accent) 86%, #000); }
.mfcc-btn:focus-visible, .mfcc-link:focus-visible, .mfcc-switch:focus-visible, .mfcc-footer-link:focus-visible { outline: 2px solid var(--mfcc-accent); outline-offset: 2px; }
.mfcc [data-act="all"], .mfcc [data-act="necessary"] { flex-basis: 40%; }
.mfcc [data-act="settings"] { flex-basis: 100%; border-color: var(--mfcc-line); }
.mfcc [data-act="save"] { display: none; flex-basis: 100%; }

/* Settings */
.mfcc-list { display: none; margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--mfcc-line); }
.mfcc-list li { border-bottom: 1px solid var(--mfcc-line); }
.mfcc-option { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; }
.mfcc-option-text { flex: 1; display: grid; gap: 2px; }
.mfcc-option small { color: var(--mfcc-muted); font-size: 12.5px; line-height: 1.4; }
.mfcc-switch { appearance: none; position: relative; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--mfcc-line); cursor: pointer; transition: background .2s; }
.mfcc-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.mfcc-switch:checked { background: var(--mfcc-accent); }
.mfcc-switch:checked::after { transform: translateX(18px); }
.mfcc-switch:disabled { opacity: .55; cursor: default; }
.mfcc.is-settings .mfcc-list { display: block; }
.mfcc.is-settings [data-act="settings"], .mfcc.is-settings [data-act="all"] { display: none; }
.mfcc.is-settings [data-act="necessary"] { flex-basis: 100%; background: transparent; color: var(--mfcc-text); border-color: var(--mfcc-line); }
.mfcc.is-settings [data-act="save"] { display: block; }

/* Video waiting for consent */
.mfcc-embed { display: grid; place-content: center; justify-items: center; gap: 12px; width: 100%; height: 100%; min-height: 220px; padding: 24px; background: color-mix(in srgb, var(--mfcc-accent) 14%, #121110); color: #fff; text-align: center; font: 14px/1.5 var(--mfcc-body); }
.mfcc-embed-text { max-width: 30rem; margin: 0; color: rgba(255, 255, 255, .82); }
.mfcc-embed-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.mfcc-embed .mfcc-btn { flex: none; }
.mfcc-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mfcc-accent); color: var(--mfcc-accent-text); }
.mfcc-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.mfcc-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
[data-mf-consent].is-loaded iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer link */
.mfcc-footer { padding: 6px 16px 14px; text-align: center; }
.mfcc-footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: .7; cursor: pointer; }
.mfcc-footer-link:hover { opacity: 1; }
.mfcc-footer-link.is-floating { position: fixed; z-index: 2147482000; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; text-decoration: none; opacity: .8; }

/* Print: a sharp full-width bar with running labels */
.mfcc--print { left: 0; right: 0; bottom: 0; width: 100%; max-height: 70vh; border: 0; border-top: 2px solid var(--mfcc-text); border-radius: 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); --mfcc-btn-radius: 0; }
.mfcc--print .mfcc-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 18px 24px; }
.mfcc--print .mfcc-head { margin: 0; grid-column: 1; }
.mfcc--print .mfcc-title { font: 700 12px/1 var(--mfcc-body); letter-spacing: .16em; text-transform: uppercase; }
.mfcc--print .mfcc-title::before { content: "§ "; color: var(--mfcc-accent); }
.mfcc--print .mfcc-text { grid-column: 1; margin: 0; }
.mfcc--print .mfcc-list { grid-column: 1 / -1; }
.mfcc--print .mfcc-actions { grid-column: 2; grid-row: 1 / 3; flex-wrap: nowrap; }
.mfcc--print .mfcc-btn { flex: none; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; padding: 0 18px; }
.mfcc--print [data-act="settings"] { border-color: var(--mfcc-text); }
.mfcc--print.is-settings .mfcc-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
.mfcc--print.is-settings [data-act="save"], .mfcc--print.is-settings [data-act="necessary"] { flex: none; }
.mfcc-embed--print { --mfcc-btn-radius: 0; }
.mfcc-embed--print .mfcc-play { border-radius: 0; }

/* Závoj, Svadba: a centred card with an ornament and the script font */
.mfcc--romantic { left: 50%; transform: translateX(-50%); width: min(480px, calc(100% - 32px)); border-radius: 4px; text-align: center; animation-name: mfcc-in-center; }
@keyframes mfcc-in-center { from { opacity: 0; transform: translate(-50%, 16px); } to { transform: translateX(-50%); } }
.mfcc--romantic .mfcc-inner { padding: 26px 28px 24px; border: 1px solid color-mix(in srgb, var(--mfcc-accent) 40%, transparent); margin: 6px; }
.mfcc--romantic .mfcc-head { flex-direction: column; gap: 6px; }
.mfcc--romantic .mfcc-ornament { display: block; width: 90px; height: 12px; background: radial-gradient(circle, var(--mfcc-accent) 2.5px, transparent 3px) center / 12px 12px no-repeat, linear-gradient(var(--mfcc-accent), var(--mfcc-accent)) left center / 36px 1px no-repeat, linear-gradient(var(--mfcc-accent), var(--mfcc-accent)) right center / 36px 1px no-repeat; }
.mfcc--romantic .mfcc-title { font: 400 1.9rem/1.1 var(--mf-font-script, var(--mfcc-heading)); }
.mfcc--romantic .mfcc-option { text-align: left; }
.mfcc--romantic .mfcc-btn { letter-spacing: .04em; }

/* Galéria, Figura: a small dark card that keeps out of the photos' way */
.mfcc--minimal { left: auto; right: 20px; width: min(360px, calc(100% - 32px)); border: 0; border-radius: 6px; background: #111; color: #f2f2f2; --mfcc-text: #f2f2f2; --mfcc-muted: #a8a8a8; --mfcc-line: rgba(255, 255, 255, .16); --mfcc-btn-radius: 4px; }
.mfcc--minimal .mfcc-inner { padding: 18px; }
.mfcc--minimal .mfcc-title { font: 600 13px/1 var(--mfcc-body); letter-spacing: .12em; text-transform: uppercase; }
.mfcc--minimal .mfcc-text { font-size: 13px; }
.mfcc--minimal .mfcc-btn { min-height: 38px; font-size: 13px; }
.mfcc--minimal .mfcc-btn--primary { border-color: #f2f2f2; background: #f2f2f2; color: #111; }

/* mojfotograf.sk and albums */
.mfcc--platform { --mfcc-bg: #fffdf9; --mfcc-text: #1d1a16; --mfcc-muted: #6f675d; --mfcc-accent: #1d1a16; --mfcc-accent-text: #fff; }
.mfcc--album { --mfcc-bg: #1a1816; --mfcc-text: #f4efe8; --mfcc-muted: #b9afa3; --mfcc-accent: #f4efe8; --mfcc-accent-text: #1a1816; }

@media (max-width: 560px) {
    .mfcc { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .mfcc--romantic { left: 12px; transform: none; width: auto; animation-name: mfcc-in; }
    .mfcc--minimal { left: 12px; right: 12px; }
    .mfcc--print { left: 0; right: 0; bottom: 0; }
    .mfcc--print .mfcc-inner { grid-template-columns: 1fr; padding: 16px; }
    .mfcc--print .mfcc-actions { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
    .mfcc--print .mfcc-btn { flex: 1 1 40%; }
}
[data-mf-consent] > .mfcc-embed { position: absolute; inset: 0; min-height: 0; }
@media (max-width: 560px) {
    [data-mf-consent] > .mfcc-embed { gap: 8px; padding: 12px; }
    [data-mf-consent] > .mfcc-embed .mfcc-embed-text { display: none; }
    .mfcc-play { width: 48px; height: 48px; }
}
.mfcc-embed--minimal { background: #111; }
.mfcc-embed--minimal .mfcc-play, .mfcc-embed--minimal .mfcc-btn--primary { border-color: #f2f2f2; background: #f2f2f2; color: #111; }
