#tg-marketing-choice[hidden] {
    display: none;
}

#tg-marketing-choice {
    position: fixed;
    z-index: 1100;
    left: 20px;
    bottom: 20px;
    box-sizing: border-box;
    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--tg-line, #dce4e8);
    border-radius: 16px;
    color: var(--tg-ink-soft, #405466);
    background: #fff;
    box-shadow: 0 8px 32px rgba(23, 42, 58, 0.14);
    font-family: THICCCBOI, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#tg-marketing-choice h2 {
    margin: 0 0 6px;
    color: var(--tg-ink, #172a3a);
    font-family: "Space Grotesk", THICCCBOI, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

#tg-marketing-choice p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

#tg-marketing-choice a {
    color: var(--tg-blue, #216583);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#tg-marketing-choice .tg-marketing-choice__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

#tg-marketing-choice button,
#tg-marketing-preferences {
    box-sizing: border-box;
    border: 1px solid #b8c6ce;
    color: var(--tg-ink, #172a3a);
    background: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

#tg-marketing-choice button {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
}

#tg-marketing-choice button:hover,
#tg-marketing-preferences:hover {
    border-color: var(--tg-blue, #216583);
    background: var(--tg-blue-soft, #eaf5f8);
}

#tg-marketing-choice [data-marketing-status]:empty {
    display: none;
}

#tg-marketing-choice [data-marketing-status]:not(:empty) {
    margin-top: 12px;
    font-size: 12px;
}

#tg-marketing-preferences {
    position: fixed;
    z-index: 1090;
    left: 20px;
    bottom: 20px;
    min-height: 36px;
    padding: 7px 12px;
    border-color: var(--tg-line, #dce4e8);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(23, 42, 58, 0.08);
    font-size: 12px;
    line-height: 1.4;
}

#tg-marketing-choice:not([hidden]) + #tg-marketing-preferences {
    visibility: hidden;
}

#tg-marketing-choice button:focus-visible,
#tg-marketing-choice a:focus-visible,
#tg-marketing-choice h2:focus-visible,
#tg-marketing-preferences:focus-visible {
    outline: 2px solid var(--tg-blue, #216583);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    #tg-marketing-choice {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 16px;
    }

    #tg-marketing-preferences {
        left: 12px;
        bottom: 12px;
    }
}
