.analytics-consent[hidden],
.analytics-settings[hidden] {
    display: none;
}

.analytics-consent {
    position: fixed;
    z-index: 110;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    display: grid;
    gap: 12px;
    max-width: 420px;
    padding: 16px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 24px rgb(0 0 0 / 15%);
    color: #303030;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.analytics-consent p {
    margin: 0;
}

.analytics-consent a {
    color: #404040;
    text-decoration: underline;
}

.analytics-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.analytics-consent__actions button {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #404040;
    border-radius: 4px;
    background: #404040;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.analytics-consent__actions button:hover {
    background: #626469;
}

.analytics-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-settings:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.analytics-consent__actions button:focus-visible {
    outline-color: #404040;
}

@media (max-width: 560px) {
    .analytics-consent {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 360px) {
    .analytics-consent__actions {
        grid-template-columns: 1fr;
    }
}
