.svp-consent-settings {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2a37;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.svp-consent {
    position: fixed;
    z-index: 1010;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: max(20px, env(safe-area-inset-left));
    box-sizing: border-box;
    width: min(448px, calc(100% - 40px));
    max-height: calc(100% - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px;
    border: 1px solid #cbd9d3;
    border-radius: 14px;
    background: #fff;
    color: #20332b;
    box-shadow: 0 6px 26px rgba(24, 50, 39, .13);
    font-family: "Jost", sans-serif;
    text-align: left;
}

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

.svp-consent h2 {
    margin: 0 0 6px;
    color: #20332b;
    font: 600 20px/1.25 "Jost", sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.svp-consent p {
    margin: 0;
    color: #43554c;
    font: 400 15px/1.45 "Jost", sans-serif;
}

.svp-consent a.svp-consent-policy,
.svp-consent a.svp-consent-policy:visited {
    display: inline-block;
    margin: 6px 0 0;
    color: #176542;
    font: 400 14px/1.5 "Jost", sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svp-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.35fr) minmax(0, .8fr);
    gap: 7px;
    margin-top: 14px;
}

.svp-consent-actions button {
    appearance: none;
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    margin: 0;
    padding: 7px 6px;
    border: 1px solid #a7bcb1;
    border-radius: 8px;
    background: #f6f9f7;
    color: #204a36;
    font: 500 14px/1.25 "Jost", sans-serif;
    text-transform: none;
    cursor: pointer;
}

.svp-consent-actions button:hover { background: #e9f2ec; border-color: #55876b; }
.svp-consent-actions button:active { background: #dcebe1; }
.svp-consent :focus-visible, .svp-consent-settings:focus-visible {
    outline: 2px solid #00743e;
    outline-offset: 2px;
}

@media (max-width: 500px) {
    .svp-consent {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        width: auto;
        max-height: calc(100% - 20px);
        padding: 16px;
    }
    .svp-consent-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .svp-consent-actions button { padding: 6px 4px; }
}

.svp-consent-actions.svp-consent-actions--events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
