.mp-consent[hidden],
.mp-consent__preferences[hidden],
.mp-consent-manage[hidden] {
    display: none !important;
}

.mp-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 2147483000;
    box-sizing: border-box;
    min-height: clamp(240px, 29vh, 330px);
    max-height: 70vh;
    overflow-y: auto;
    padding: 30px clamp(20px, 5vw, 64px) 34px;
    color: #1e2822;
    background: #e7f4e9;
    border-top: 2px solid #247a3b;
    box-shadow: 0 -6px 24px rgba(17, 36, 25, .18);
    font: inherit;
    font-size: 17px;
    line-height: 1.55;
}

.mp-consent::before,
.mp-consent::after {
    position: absolute;
    top: 28px;
    right: clamp(20px, 5vw, 72px);
    width: 126px;
    height: 126px;
    content: "";
    pointer-events: none;
}

.mp-consent::before {
    background: rgba(36, 122, 59, .10);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.mp-consent::after {
    background: rgba(36, 122, 59, .06);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transform: translateX(100%);
}

.mp-consent *,
.mp-consent-manage {
    box-sizing: border-box;
}

.mp-consent__summary {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    max-width: 1500px;
    min-height: 190px;
    margin: 0 auto;
}

.mp-consent__summary p {
    margin: 0;
    max-width: 1260px;
    font-size: clamp(17px, 1.5vw, 21px);
}

.mp-consent a {
    color: #176b32;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-consent__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mp-button {
    min-height: 54px;
    padding: 12px 24px;
    border: 1px solid #247a3b;
    border-radius: 5px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.mp-button:focus-visible,
.mp-consent input:focus-visible,
.mp-consent-manage:focus-visible {
    outline: 3px solid #e0a72e;
    outline-offset: 2px;
}

.mp-button--primary {
    color: #fff;
    background: #247a3b;
}

.mp-button--primary:hover {
    background: #195d2c;
}

.mp-button--secondary,
.mp-button--text {
    color: #1e2822;
    background: #fff;
}

.mp-button--secondary:hover,
.mp-button--text:hover {
    background: #f1f6f2;
}

.mp-consent__preferences {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 22px auto 2px;
    padding-top: 18px;
    border-top: 1px solid #d8e0da;
}

.mp-consent__preferences h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.mp-consent__preferences > p {
    margin: 0 0 12px;
}

.mp-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid #e4e9e5;
    cursor: pointer;
}

.mp-consent__option span span,
.mp-consent__option div span {
    display: block;
    color: #4b5750;
    font-size: 14px;
}

.mp-consent__option input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #247a3b;
}

.mp-consent__always {
    font-weight: 650;
    white-space: nowrap;
}

.mp-consent__actions--settings {
    justify-content: flex-end;
    padding-top: 12px;
}

.mp-consent-manage {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 2147482999;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #247a3b;
    border-radius: 4px;
    color: #fff;
    background: #247a3b;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17, 36, 25, .18);
}

@media (max-width: 720px) {
    .mp-consent {
        min-height: 34vh;
        max-height: 76vh;
        padding: 22px 16px 24px;
    }

    .mp-consent__summary {
        min-height: calc(34vh - 46px);
        gap: 16px;
    }

    .mp-consent__summary p {
        font-size: 17px;
    }

    .mp-consent::before,
    .mp-consent::after {
        display: none;
    }

    .mp-consent__actions {
        width: 100%;
        gap: 10px;
    }

    .mp-consent__actions .mp-button {
        flex: 1 1 auto;
    }

    .mp-consent__option span span,
    .mp-consent__option div span {
        max-width: 270px;
        font-size: 13px;
    }

    .mp-consent__actions--settings {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mp-consent {
        animation: mp-consent-in 160ms ease-out;
    }

    @keyframes mp-consent-in {
        from { transform: translateY(8px); opacity: .7; }
        to { transform: translateY(0); opacity: 1; }
    }
}
