.tip-analytics-consent,
.tip-analytics-preferences {
    position: fixed;
    inset: auto auto 1rem 1rem;
    z-index: 9999;
    margin: 0;
    font: 14px/1.5 system-ui, sans-serif;
}
.tip-analytics-consent[hidden],
.tip-analytics-preferences[hidden] { display: none; }
.tip-analytics-consent {
    box-sizing: border-box;
    width: min(24rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 1.25rem;
    overflow: auto;
    border: 1px solid #cad5df;
    border-radius: .9rem;
    color: #182939;
    background: #fff;
    box-shadow: 0 10px 32px #14233730;
}
.tip-analytics-consent h2 {
    margin: 0 0 .45rem;
    color: inherit;
    font: 700 1.22rem/1.25 system-ui, sans-serif;
    text-transform: none;
}
.tip-analytics-consent h2:focus:not(:focus-visible) { outline: none; }
.tip-analytics-consent p { margin: 0 0 1rem; color: inherit; font: inherit; }
.tip-analytics-consent-actions { display: grid; gap: .55rem; }
.tip-analytics-consent button,
.tip-analytics-preferences {
    cursor: pointer;
    border: 1px solid #365064;
    border-radius: .55rem;
    padding: .55rem .75rem;
    color: #18374a;
    background: #fff;
    font: inherit;
    text-transform: none;
}
.tip-analytics-consent button { min-height: 44px; font-weight: 650; }
.tip-analytics-preferences { font: 12px/1.4 system-ui, sans-serif; }
.tip-analytics-consent button:hover,
.tip-analytics-preferences:hover { background: #eef4f8; }
.tip-analytics-consent button:focus-visible,
.tip-analytics-preferences:focus-visible,
.tip-analytics-consent a:focus-visible { outline: 2px solid #135f9b; outline-offset: 3px; }
.tip-analytics-consent a { display: inline-block; margin-top: .8rem; text-decoration: underline; color: #18374a; }
@media (min-width: 768px) {
    .tip-analytics-consent {
        width: min(36rem, calc(100% - 3rem));
        padding: 2rem;
        font-size: 16px;
    }
    .tip-analytics-consent:modal { inset: 0; margin: auto; }
    .tip-analytics-consent::backdrop { background: rgb(9 18 29 / 52%); }
    .tip-analytics-consent h2 { font-size: 1.65rem; }
    .tip-analytics-consent-actions { grid-template-columns: 1fr 1fr; gap: .75rem; }
}
