/* Shared across public, account and planner shells. No backdrop or page lock. */
#etf-cookie-consent {
    position: fixed;
    inset: auto auto max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    z-index: 1060;
    box-sizing: border-box;
    width: min(440px, calc(100% - 32px));
    max-width: 440px;
    max-height: calc(100vh - 32px);
    max-height: min(60dvh, calc(100dvh - 32px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid #ded4ec;
    border-radius: 16px;
    background: #fff;
    color: #34234b;
    box-shadow: 0 6px 28px #34234b26;
    font: 13px/1.5 system-ui, sans-serif;
    text-align: left;
}
#etf-cookie-consent[hidden], #etf-cookie-settings[hidden] { display: none !important; }
#etf-cookie-consent .etf-cookie-content { min-height: 0; overflow: auto; }
#etf-cookie-consent h2 { margin: 0 28px 6px 0; color: inherit; font: 600 16px/1.4 system-ui, sans-serif; }
#etf-cookie-consent p { margin: 0 0 10px; font: inherit; color: inherit; }
#etf-cookie-consent summary { cursor: pointer; color: #654098; text-decoration: underline; text-underline-offset: 3px; }
#etf-cookie-consent details p { margin-top: 10px; }
#etf-cookie-consent a { color: #654098; text-decoration: underline; }
#etf-cookie-consent .etf-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
#etf-cookie-consent button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 8px;
    border: 1px solid #76518f;
    border-radius: 8px;
    background: #faf7ff;
    color: #4d2e72;
    font: 600 13px/1.35 system-ui, sans-serif;
    cursor: pointer;
}
#etf-cookie-consent button:hover { background: #eee5f8; }
#etf-cookie-consent .etf-cookie-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: #fff;
    font-size: 22px;
}
#etf-cookie-consent :focus-visible, #etf-cookie-settings:focus-visible { outline: 2px solid #7344c5; outline-offset: 3px; }
#etf-cookie-settings {
    position: fixed;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    z-index: 40;
    border: 1px solid #d5c6e4;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: #4d2e72;
    font: 12px/1.4 system-ui, sans-serif;
    cursor: pointer;
}
@media (max-height: 400px) {
    #etf-cookie-consent {
        max-height: calc(100dvh - 24px);
        padding: 10px;
        gap: 6px;
        bottom: 12px;
    }
}
@media (max-width: 480px) {
    #etf-cookie-consent {
        inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
        width: auto;
        padding: 14px;
        gap: 10px;
        border-radius: 12px;
    }
}
