.esred-consent-widget {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 999999;
    font-family: inherit;
}

.esred-consent-trigger {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.esred-consent-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .20);
}

.esred-consent-card {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: 365px;
    max-width: calc(100vw - 28px);
    padding: 18px 17px 15px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .20);
    color: #17213a;
}

.esred-consent-card[hidden] {
    display: none !important;
}

.esred-consent-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #f7f9fc;
    color: #65728a;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.esred-consent-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 42px;
    margin-bottom: 12px;
}

.esred-consent-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #5263ff, #7552ef);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.esred-consent-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.esred-consent-brand-text strong {
    font-size: 14px;
    text-transform: none;
}

.esred-consent-brand-text small {
    margin-top: 4px;
    color: #7b8499;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .07em;
}

.esred-consent-card h2 {
    margin: 0 0 8px;
    color: #111a31;
    font-size: 18px;
    line-height: 1.25;
}

.esred-consent-card p {
    margin: 0 0 14px;
    color: #606c84;
    font-size: 13px;
    line-height: 1.48;
}

.esred-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.esred-consent-button {
    min-height: 39px;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform .15s ease,
        opacity .15s ease;
}

.esred-consent-button:hover {
    transform: translateY(-1px);
}

.esred-consent-button-primary {
    background: linear-gradient(135deg, #5060ff, #6847ee);
    color: #ffffff;
}

.esred-consent-button-secondary {
    background: #f2f4f8;
    color: #465168;
}

#esred-consent-settings {
    grid-column: 1 / -1;
}

.esred-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
}

.esred-consent-links a {
    color: #5263e8;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.esred-consent-links a:hover {
    text-decoration: underline;
}

.esred-consent-preferences {
    margin-top: 4px;
}

.esred-consent-preferences[hidden] {
    display: none !important;
}

.esred-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #edf0f5;
}

.esred-consent-option > div,
.esred-consent-option-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.esred-consent-option strong {
    color: #182139;
    font-size: 13px;
}

.esred-consent-option span {
    color: #707b91;
    font-size: 11px;
    line-height: 1.4;
}

.esred-consent-always {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 20px;
    background: #eef1f7;
    font-weight: 700;
    white-space: nowrap;
}

.esred-consent-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

.esred-consent-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.esred-consent-switch span {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #cbd1dc;
    cursor: pointer;
    transition: background .2s ease;
}

.esred-consent-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}

.esred-consent-switch input:checked + span {
    background: #5860f6;
}

.esred-consent-switch input:checked + span::after {
    transform: translateX(18px);
}

.esred-consent-preference-actions {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 520px) {

    .esred-consent-widget {
        right: 12px;
        bottom: 12px;
    }

    .esred-consent-card {
        position: fixed;
        right: 10px;
        bottom: 68px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}
