/* Consimțământ cookie-uri (02.10.2026) — banner discret jos + fereastră de setări. Culorile brandului: merc albastru/portocaliu, tricouri negru/auriu. */
.mo-cc {
    --cc-brand: #123362; --cc-accent: #f89a36; --cc-accent-ink: #111827; --cc-ink: #111827; --cc-muted: #4b5563; --cc-line: #e5e7eb; --cc-soft: #f6f7f9;
    font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.55; color: var(--cc-ink);
}
.mo-cc-tricouri { --cc-brand: #161616; --cc-accent: #c8a96a; --cc-accent-ink: #161616; }
.mo-cc *, .mo-cc *::before, .mo-cc *::after { box-sizing: border-box; }
.mo-cc [hidden] { display: none !important; }
.mo-cc p, .mo-cc table, .mo-cc details { margin: 0; padding: 0; border: 0; background: none; text-align: left; float: none; width: auto; font: inherit; color: inherit; }
.mo-cc a { color: var(--cc-brand); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.mo-cc-tricouri a { color: #8a6a2b; }
.mo-cc :focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; }
.mo-cc .mo-cc-title { font-size: 16px; font-weight: 700; color: var(--cc-ink); margin: 0 0 6px; letter-spacing: -.01em; }

/* Banner */
.mo-cc-banner {
    position: fixed; z-index: 2147483000; left: 20px; bottom: 20px; width: min(560px, calc(100vw - 40px));
    background: #fff; border: 1px solid var(--cc-line); border-top: 4px solid var(--cc-accent); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .22); padding: 18px 20px 16px; animation: mo-cc-in .28s ease-out;
}
.mo-cc-banner-body p:not(.mo-cc-title) { font-size: 13.5px; color: var(--cc-muted); }
.mo-cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mo-cc button.mo-cc-btn {
    appearance: none; border: 2px solid transparent; border-radius: 10px; padding: 10px 18px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: transform .08s ease, filter .15s ease, background .15s ease; line-height: 1.2; text-transform: none; letter-spacing: 0; width: auto; margin: 0;
}
.mo-cc button.mo-cc-btn:hover { filter: brightness(1.06); }
.mo-cc button.mo-cc-btn:active { transform: translateY(1px); }
.mo-cc button.mo-cc-accept { background: var(--cc-accent); color: var(--cc-accent-ink); border-color: var(--cc-accent); }
.mo-cc button.mo-cc-reject { background: var(--cc-brand); color: #fff; border-color: var(--cc-brand); }
.mo-cc button.mo-cc-save { background: #fff; color: var(--cc-ink); border-color: var(--cc-ink); }
.mo-cc .mo-cc-actions button.mo-cc-btn { flex: 1 1 140px; }
.mo-cc button.mo-cc-link { appearance: none; background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cc-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: 1 0 100%; text-align: center; margin: 0; }

/* Fereastra de setări */
.mo-cc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mo-cc-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.mo-cc-dialog {
    position: relative; display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(88vh, 760px); background: #fff; border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3); outline: none; animation: mo-cc-in .22s ease-out; overflow: hidden;
}
.mo-cc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--cc-line); }
.mo-cc-dialog-head .mo-cc-title { margin: 0; font-size: 18px; }
.mo-cc button.mo-cc-x { appearance: none; border: 0; background: var(--cc-soft); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--cc-ink); padding: 0; margin: 0; }
.mo-cc-dialog-body { padding: 14px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mo-cc-intro { font-size: 13.5px; color: var(--cc-muted); margin-bottom: 12px !important; }
.mo-cc-cat { border: 1px solid var(--cc-line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.mo-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mo-cc-cat-head strong { font-size: 14.5px; }
.mo-cc-always { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.mo-cc-cat p { font-size: 13px; color: var(--cc-muted); margin-top: 4px !important; }
.mo-cc-cat details { margin-top: 6px !important; }
.mo-cc-cat summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--cc-ink); padding: 2px 0; }
.mo-cc-cat table { width: 100%; border-collapse: collapse; margin-top: 6px !important; font-size: 12px; }
.mo-cc-cat th, .mo-cc-cat td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--cc-line); vertical-align: top; color: var(--cc-muted); background: none; }
.mo-cc-cat th { color: var(--cc-ink); font-weight: 700; background: var(--cc-soft); }
.mo-cc-meta { font-size: 12px; color: #6b7280; margin-top: 12px !important; word-break: break-all; }
.mo-cc-dialog-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--cc-line); background: #fff; }
.mo-cc .mo-cc-dialog-foot button.mo-cc-btn { flex: 1 1 150px; }

/* Comutator */
.mo-cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 48px; margin: 0; cursor: pointer; }
.mo-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mo-cc-switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .18s ease; }
.mo-cc-switch span::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 .18s ease; }
.mo-cc-switch input:checked + span { background: var(--cc-brand); }
.mo-cc-tricouri .mo-cc-switch input:checked + span { background: #8a6a2b; }
.mo-cc-switch input:checked + span::after { transform: translateX(20px); }
.mo-cc-switch input:disabled { cursor: not-allowed; }
.mo-cc-switch input:disabled + span { opacity: .55; }
.mo-cc-switch input:focus-visible + span { outline: 3px solid var(--cc-accent); outline-offset: 2px; }

html.mo-cc-lock, html.mo-cc-lock body { overflow: hidden !important; }
@keyframes mo-cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mo-cc-banner, .mo-cc-dialog { animation: none; } }

/* Telefon: banner pe toată lățimea jos, fereastra de setări ca foaie de jos. */
@media (max-width: 640px) {
    .mo-cc-banner { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; }
    .mo-cc-banner-body p:not(.mo-cc-title) { font-size: 13px; }
    .mo-cc .mo-cc-actions button.mo-cc-btn { flex: 1 1 calc(50% - 5px); padding: 10px 8px; }
    .mo-cc-modal { padding: 0; align-items: flex-end; }
    .mo-cc-dialog { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
    .mo-cc-dialog-head, .mo-cc-dialog-body { padding-left: 16px; padding-right: 16px; }
    .mo-cc-dialog-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
    .mo-cc .mo-cc-dialog-foot button.mo-cc-btn { flex: 1 1 calc(50% - 5px); }
    .mo-cc .mo-cc-dialog-foot button.mo-cc-save { flex-basis: 100%; order: 3; }
}
