.mg-cookie-consent {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: rgba(0, 0, 0, 0.58);
    font-family: Arial, Helvetica, sans-serif;
}

.mg-cookie-consent--hidden {
    display: none;
}

.mg-cookie-consent-open {
    position: fixed;
    z-index: 99999;
    right: 14px;
    bottom: 14px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #bbb;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

.mg-cookie-consent__panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 18px;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.mg-cookie-consent h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.mg-cookie-consent p {
    margin: 0 0 10px;
    line-height: 1.45;
}

.mg-cookie-consent__privacy {
    color: #1166aa;
    text-decoration: underline;
}

.mg-cookie-consent__settings {
    display: grid;
    gap: 8px;
}

.mg-cookie-consent__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 10px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    font-weight: normal;
}

.mg-cookie-consent__option strong,
.mg-cookie-consent__option small {
    display: block;
}

.mg-cookie-consent__option small {
    margin-top: 3px;
    color: #666;
    line-height: 1.35;
}

.mg-cookie-consent__option input {
    width: 20px;
    height: 20px;
}

.mg-cookie-consent__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mg-cookie-consent__button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #2f5d7c;
    background: #fff;
    color: #1f4057;
    cursor: pointer;
}

.mg-cookie-consent__button--primary {
    background: #2f5d7c;
    color: #fff;
}

.mg-cookie-consent__button--muted {
    border-color: #aaa;
    color: #333;
}

@media (max-width: 760px) {
    .mg-cookie-consent {
        padding: 10px;
    }

    .mg-cookie-consent__panel {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 20px);
        overflow: auto;
    }

    .mg-cookie-consent__actions {
        justify-content: stretch;
    }

    .mg-cookie-consent__button {
        flex: 1 1 100%;
    }
}
