.mi-cookie-consent-root {
    position: relative;
    z-index: 2147483000;
}

.mi-cookie-settings-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483001;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .12);
}

.mi-cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2147483003;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    border: 1px solid rgba(15, 23, 42, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.mi-cookie-banner-copy {
    max-width: 720px;
}

.mi-cookie-banner-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.mi-cookie-banner-copy p {
    margin: 0 0 8px;
    line-height: 1.55;
    color: #475569;
}

.mi-cookie-banner-copy a {
    color: #0f4c81;
    font-weight: 700;
}

.mi-cookie-banner-actions,
.mi-cookie-modal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mi-cookie-primary,
.mi-cookie-secondary {
    min-height: 42px;
    border-radius: 10px;
    padding: 9px 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mi-cookie-primary {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #fff;
}

.mi-cookie-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.mi-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483004;
    background: rgba(15, 23, 42, .58);
    padding: 24px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-cookie-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    padding: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .30);
}

.mi-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.mi-cookie-modal-header span {
    font-size: 11px;
    letter-spacing: .12em;
    color: #64748b;
    font-weight: 800;
}

.mi-cookie-modal-header h2 {
    margin: 4px 0 0;
    font-size: 26px;
}

.mi-cookie-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mi-cookie-modal-intro {
    color: #475569;
    line-height: 1.55;
}

.mi-cookie-category {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.mi-cookie-category strong {
    display: block;
    margin-bottom: 4px;
}

.mi-cookie-category small {
    display: block;
    max-width: 480px;
    line-height: 1.45;
    color: #64748b;
}

.mi-cookie-category label {
    white-space: nowrap;
    font-weight: 700;
}

.mi-cookie-category input {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.mi-cookie-message {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #166534;
}

.mi-cookie-message.error {
    background: #fef2f2;
    color: #991b1b;
}

.mi-cookie-modal-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .mi-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .mi-cookie-banner-actions {
        width: 100%;
    }

    .mi-cookie-banner-actions button {
        flex: 1 1 100%;
    }

    .mi-cookie-settings-trigger {
        right: 12px;
        bottom: 12px;
    }

    .mi-cookie-category {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .mi-cookie-modal {
        padding: 18px;
    }
}
