/* MustafaMo cookie consent — isolated, site-wide component */
.mm-cookie-banner,
.mm-cookie-modal,
.mm-cookie-settings-fab,
.mm-cookie-footer-links {
    --mm-cookie-indigo: #1E2A78;
    --mm-cookie-indigo-dark: #16205e;
    --mm-cookie-indigo-light: #2f3f9e;
    --mm-cookie-cyan: #4BCFFA;
    --mm-cookie-accent: #ff5773;
    --mm-cookie-ink: #202534;
    --mm-cookie-muted: #667085;
    --mm-cookie-line: #e7eaf0;
    --mm-cookie-bg: #f6f8fb;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mm-cookie-banner[hidden],
.mm-cookie-modal[hidden],
.mm-cookie-backdrop[hidden] {
    display: none !important;
}

.mm-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    width: min(1120px, calc(100vw - 32px));
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(30, 42, 120, .12);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(16, 22, 54, .24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    animation: mm-cookie-rise .28s ease-out both;
}

.mm-cookie-banner::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--mm-cookie-cyan), var(--mm-cookie-indigo), var(--mm-cookie-accent));
}

.mm-cookie-banner-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
}

.mm-cookie-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 15px;
    color: var(--mm-cookie-indigo);
    background: linear-gradient(145deg, rgba(75, 207, 250, .22), rgba(30, 42, 120, .09));
    border: 1px solid rgba(30, 42, 120, .08);
}

.mm-cookie-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mm-cookie-copy h2 {
    margin: 0 0 5px;
    color: var(--mm-cookie-ink);
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.015em;
}

.mm-cookie-copy p {
    margin: 0;
    color: var(--mm-cookie-muted);
    font-size: .91rem;
    line-height: 1.55;
}

.mm-cookie-copy a,
.mm-cookie-inline-link {
    color: var(--mm-cookie-indigo);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 700;
}

.mm-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.mm-cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 11px;
    min-height: 43px;
    padding: 10px 16px;
    font: inherit;
    font-size: .89rem;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    white-space: nowrap;
}

.mm-cookie-btn:hover {
    transform: translateY(-1px);
}

.mm-cookie-btn:focus-visible,
.mm-cookie-close:focus-visible,
.mm-cookie-toggle input:focus-visible + .mm-cookie-switch,
.mm-cookie-footer-button:focus-visible,
.mm-cookie-settings-fab:focus-visible {
    outline: 3px solid rgba(75, 207, 250, .55);
    outline-offset: 2px;
}

.mm-cookie-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--mm-cookie-indigo), var(--mm-cookie-indigo-light));
    box-shadow: 0 10px 22px rgba(30, 42, 120, .22);
}

.mm-cookie-btn-primary:hover {
    box-shadow: 0 13px 28px rgba(30, 42, 120, .28);
}

.mm-cookie-btn-secondary {
    color: var(--mm-cookie-indigo);
    background: #f3f5fb;
    border: 1px solid rgba(30, 42, 120, .11);
}

.mm-cookie-btn-ghost {
    color: #4b5565;
    background: transparent;
    border: 1px solid #dfe3ea;
}

.mm-cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(9, 14, 34, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: mm-cookie-fade .18s ease-out both;
}

.mm-cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483002;
    width: min(600px, calc(100vw - 28px));
    max-height: min(760px, calc(100dvh - 28px));
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid rgba(30, 42, 120, .12);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(9, 14, 34, .36);
    animation: mm-cookie-pop .2s ease-out both;
}

.mm-cookie-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--mm-cookie-line);
}

.mm-cookie-modal-title {
    min-width: 0;
    flex: 1;
}

.mm-cookie-modal-title h2 {
    margin: 0 0 5px;
    color: var(--mm-cookie-ink);
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.mm-cookie-modal-title p {
    margin: 0;
    color: var(--mm-cookie-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.mm-cookie-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid #e3e6ec;
    border-radius: 10px;
    background: #fff;
    color: #596273;
    font-size: 1.25rem;
    cursor: pointer;
}

.mm-cookie-options {
    display: grid;
    gap: 12px;
    padding: 18px 24px 8px;
}

.mm-cookie-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 17px 18px;
    background: var(--mm-cookie-bg);
    border: 1px solid var(--mm-cookie-line);
    border-radius: 15px;
}

.mm-cookie-option h3 {
    margin: 0 0 4px;
    color: var(--mm-cookie-ink);
    font-size: .98rem;
    font-weight: 850;
}

.mm-cookie-option p {
    margin: 0;
    color: var(--mm-cookie-muted);
    font-size: .85rem;
    line-height: 1.45;
}

.mm-cookie-always-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #157347;
    background: #eaf8f0;
    border: 1px solid #cbead7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.mm-cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.mm-cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mm-cookie-switch {
    position: relative;
    width: 48px;
    height: 27px;
    border-radius: 999px;
    background: #c9ced8;
    box-shadow: inset 0 0 0 1px rgba(18, 24, 40, .08);
    transition: .18s ease;
}

.mm-cookie-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .25);
    transition: transform .18s ease;
}

.mm-cookie-toggle input:checked + .mm-cookie-switch {
    background: var(--mm-cookie-indigo);
}

.mm-cookie-toggle input:checked + .mm-cookie-switch::after {
    transform: translateX(21px);
}

.mm-cookie-modal-note {
    margin: 8px 24px 0;
    padding: 13px 14px;
    color: #596273;
    background: #fbfcfe;
    border: 1px dashed #dfe3ea;
    border-radius: 12px;
    font-size: .82rem;
    line-height: 1.45;
}

.mm-cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 20px 24px 24px;
}

.mm-cookie-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 7px;
    font-size: .79rem;
}

.mm-cookie-footer-links a,
.mm-cookie-footer-button {
    color: inherit;
    opacity: .78;
    text-decoration: none;
    font: inherit;
}

.mm-cookie-footer-links a:hover,
.mm-cookie-footer-button:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mm-cookie-footer-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mm-cookie-footer-sep {
    opacity: .38;
}

.mm-cookie-settings-fab {
    position: fixed;
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2147482000;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(22, 32, 94, .93);
    color: #fff;
    box-shadow: 0 10px 25px rgba(9, 14, 34, .24);
    cursor: pointer;
}

.mm-cookie-settings-fab svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes mm-cookie-rise {
    from { opacity: 0; transform: translate(-50%, 14px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes mm-cookie-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mm-cookie-pop {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.985); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 860px) {
    .mm-cookie-banner-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mm-cookie-actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
    }

    .mm-cookie-actions .mm-cookie-btn {
        flex: 1 1 145px;
    }
}

@media (max-width: 560px) {
    .mm-cookie-banner {
        width: calc(100vw - 20px);
        bottom: max(10px, env(safe-area-inset-bottom));
        border-radius: 18px;
    }

    .mm-cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 17px;
    }

    .mm-cookie-icon {
        width: 42px;
        height: 42px;
    }

    .mm-cookie-copy h2 {
        font-size: 1rem;
    }

    .mm-cookie-copy p {
        font-size: .85rem;
    }

    .mm-cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mm-cookie-actions .mm-cookie-btn-primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .mm-cookie-btn {
        min-height: 44px;
        padding: 10px 12px;
        white-space: normal;
    }

    .mm-cookie-modal {
        top: auto;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        transform: translateX(-50%);
        border-radius: 20px;
        animation: mm-cookie-sheet .2s ease-out both;
    }

    .mm-cookie-modal-head,
    .mm-cookie-options,
    .mm-cookie-modal-actions {
        padding-left: 17px;
        padding-right: 17px;
    }

    .mm-cookie-option {
        gap: 12px;
        padding: 15px;
    }

    .mm-cookie-modal-note {
        margin-left: 17px;
        margin-right: 17px;
    }

    .mm-cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mm-cookie-modal-actions .mm-cookie-btn-primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    @keyframes mm-cookie-sheet {
        from { opacity: 0; transform: translate(-50%, 18px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-cookie-banner,
    .mm-cookie-modal,
    .mm-cookie-backdrop,
    .mm-cookie-btn,
    .mm-cookie-switch,
    .mm-cookie-switch::after {
        animation: none !important;
        transition: none !important;
    }
}
