.mgp-cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2500;
    display: none;
}

.mgp-cookie-consent.is-open {
    display: block;
}

.mgp-cookie-consent-panel {
    margin: 0 auto;
    max-width: 1080px;
    border: 1px solid #d5deea;
    border-radius: 16px;
    background: #ffffff;
    color: #0f2748;
    box-shadow: 0 22px 56px rgba(8, 23, 46, 0.25);
    overflow: hidden;
}

.mgp-cookie-consent-main {
    padding: 18px 20px 14px;
    text-align: center;
}

.mgp-cookie-consent-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mgp-cookie-title-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: inline-block;
}

.mgp-cookie-consent-text {
    margin: 0;
    max-width: none;
    color: #37527a;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    margin-inline: auto;
}

.mgp-cookie-consent-text a {
    color: #064f9f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.mgp-cookie-consent-text a:hover {
    text-decoration: underline;
}

.mgp-cookie-consent-copy-short {
    display: none;
}

.mgp-cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
}

.mgp-cookie-settings:not([hidden]) + .mgp-cookie-consent-actions {
    border-top: 1px solid #d9e3ef;
}

.mgp-cookie-btn {
    border: 0;
    border-radius: 10px;
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #b8c2d0;
    color: #1f3556;
    min-width: 170px;
}

.mgp-cookie-link-action {
    border: 0;
    background: transparent;
    padding: 0;
    height: auto;
    font-size: 14px;
    font-weight: 700;
    color: #1f3556;
    cursor: pointer;
    min-width: 170px;
    text-align: center;
}

.mgp-cookie-link-action:hover {
    color: #18aab2;
    text-decoration: underline;
}

.mgp-cookie-btn:hover {
    background: #a7b4c6;
}

.mgp-cookie-btn-primary {
    background: #087f86;
    color: #fff;
}

.mgp-cookie-btn-primary:hover {
    background: #066b71;
}

.mgp-cookie-btn-secondary {
    background: #bcc7d5;
    color: #ffffff;
}

.mgp-cookie-btn-secondary:hover {
    background: #aebacc;
}

.mgp-cookie-settings {
    border-top: 1px solid #d9e3ef;
    padding: 14px 20px 18px;
    background: transparent;
}

.mgp-cookie-settings[hidden] {
    display: none;
}

.mgp-cookie-settings-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #1c365b;
    text-align: center;
}

.mgp-cookie-category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.mgp-cookie-category {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    text-align: left;
}

.mgp-cookie-category-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
    gap: 14px;
}

.mgp-cookie-category-copy {
    min-width: 0;
}

.mgp-cookie-category-name {
    font-size: 14px;
    font-weight: 800;
    color: #1f3556;
}

.mgp-cookie-category-desc {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #577092;
    text-align: left;
}

.mgp-cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2a4c79;
    font-weight: 700;
    width: 140px;
    justify-content: flex-start;
    white-space: nowrap;
}

.mgp-cookie-switch input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1fbcc4;
}

.mgp-cookie-settings-actions {
    padding: 12px 0 0;
}

@media (max-width: 760px) {
    .mgp-cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .mgp-cookie-consent-title {
        font-size: 17px;
    }

    .mgp-cookie-consent-main {
        padding: 14px 14px 10px;
    }

    .mgp-cookie-consent-copy-full {
        display: none;
    }

    .mgp-cookie-consent-copy-short {
        display: inline;
    }

    .mgp-cookie-consent-actions {
        padding: 14px;
        justify-content: center;
    }

    .mgp-cookie-btn {
        width: 100%;
    }

    .mgp-cookie-link-action {
        width: 100%;
        text-align: center;
        padding: 6px 0 2px;
    }

    .mgp-cookie-settings {
        padding: 12px 14px 14px;
    }

    .mgp-cookie-category-list {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}
