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

.analytics-consent {
    position: fixed;
    inset: auto 16px 16px 16px;
    z-index: 100000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.analytics-consent__inner {
    width: min(760px, 100%);
    padding: 20px 22px;
    border: 1px solid rgba(44, 62, 80, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(24, 32, 40, 0.2);
    color: #2c3e50;
    pointer-events: auto;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
}

.analytics-consent p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.analytics-consent__actions button {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #6b5535;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
}

.analytics-consent__accept {
    background: #6b5535;
    color: #fff;
}

.analytics-consent__reject {
    background: #fff;
    color: #59472f;
}

.analytics-consent__actions a,
.analytics-preferences {
    color: #59472f;
    text-decoration: underline;
}

.analytics-preferences-wrap {
    padding-top: 0;
    padding-bottom: 14px;
}

.analytics-preferences {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    letter-spacing: 0;
    cursor: pointer;
}

@media (max-width: 560px) {
    .analytics-consent {
        inset: auto 8px 8px 8px;
    }

    .analytics-consent__inner {
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 17px;
    }

    .analytics-consent__actions button {
        flex: 1 1 145px;
    }

    .analytics-consent__actions a {
        flex-basis: 100%;
    }
}
