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

.magre-consent {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
    width: min(520px, calc(100vw - 40px));
    color: #071f41;
    font-family: inherit;
}

.magre-consent__panel {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgb(7 31 65 / 18%);
}

.magre-consent__eyebrow {
    margin: 0 0 5px;
    color: #123d73;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.magre-consent__copy h2 {
    margin: 0;
    color: #071f41;
    font-size: 20px;
    line-height: 1.2;
}

.magre-consent__copy p:last-child {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.magre-consent__actions,
.magre-consent__preference-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
}

.magre-consent__button,
.magre-consent__link,
.magre-consent__manage {
    min-height: 40px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.magre-consent__button {
    padding: 9px 14px;
    border: 1px solid transparent;
}

.magre-consent__button--primary {
    background: #ffdd00;
    color: #071f41;
}

.magre-consent__button--secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #123d73;
}

.magre-consent__link {
    min-height: auto;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #123d73;
    text-decoration: underline;
}

.magre-consent__button:focus-visible,
.magre-consent__link:focus-visible,
.magre-consent__manage:focus-visible {
    outline: 3px solid rgb(255 221 0 / 65%);
    outline-offset: 2px;
}

.magre-consent__preferences {
    display: grid;
    gap: 12px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #e2e8f0;
}

.magre-consent__option {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.magre-consent__option input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #123d73;
}

.magre-consent__option strong {
    color: #071f41;
}

.magre-consent__manage {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
    padding: 8px 12px;
    border: 1px solid #d5dee9;
    background: #fff;
    color: #123d73;
    box-shadow: 0 8px 20px rgb(7 31 65 / 14%);
}

@media (max-width: 640px) {
    .magre-consent {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .magre-consent__panel {
        padding: 17px;
    }

    .magre-consent__actions,
    .magre-consent__preference-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .magre-consent__button,
    .magre-consent__link {
        width: 100%;
        text-align: center;
    }

    .magre-consent__manage {
        right: 10px;
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .magre-consent__button,
    .magre-consent__link,
    .magre-consent__manage {
        transition: none;
    }
}
