#tg-io-consent {
    --tg-consent-bg: #ffffff;
    --tg-consent-text: #202622;
    --tg-consent-muted: #47534b;
    --tg-consent-border: #89958d;
    --tg-consent-hover: #edf2ee;
    --tg-consent-link: #17623a;
    --tg-consent-focus: #146fbd;
    color: var(--tg-consent-text);
    font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-align: left;
}

#tg-io-consent *,
#tg-io-consent *::before,
#tg-io-consent *::after { box-sizing: border-box; letter-spacing: 0; }
#tg-io-consent [hidden] { display: none !important; }
#tg-io-consent h2 { margin: 0 0 8px; color: var(--tg-consent-text); font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 600; }
#tg-io-consent p { margin: 0 0 10px; color: var(--tg-consent-muted); font-size: 14px; line-height: 1.5; }
#tg-io-consent p:last-child { margin-bottom: 0; }
#tg-io-consent a { color: var(--tg-consent-link); text-decoration: underline; text-underline-offset: 2px; }
#tg-io-consent button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--tg-consent-border);
    border-radius: 6px;
    background: var(--tg-consent-bg);
    color: var(--tg-consent-text);
    box-shadow: none;
    font: 600 14px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
#tg-io-consent button:hover { background: var(--tg-consent-hover); }
#tg-io-consent :is(button, a, input):focus-visible { outline: 3px solid var(--tg-consent-focus); outline-offset: 3px; }

#tg-io-consent-banner {
    position: fixed;
    z-index: 2147483000;
    inset: auto 16px 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--tg-consent-border);
    border-radius: 8px;
    background: var(--tg-consent-bg);
    box-shadow: 0 4px 20px #00000026;
}
#tg-io-consent .tg-io-consent-copy { flex: 1 1 480px; min-width: 0; }
#tg-io-consent .tg-io-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#tg-io-consent-banner .tg-io-consent-actions { flex: 0 1 460px; }
#tg-io-consent-settings { position: fixed; z-index: 2147482999; left: 16px; bottom: 16px; box-shadow: 0 2px 8px #0000001a; }

#tg-io-consent-preferences {
    width: min(580px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--tg-consent-border);
    border-radius: 8px;
    background: var(--tg-consent-bg);
    color: var(--tg-consent-text);
    font: inherit;
}
#tg-io-consent-preferences::backdrop { background: #00000099; }
#tg-io-consent .tg-io-consent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
#tg-io-consent .tg-io-consent-heading h2 { margin: 8px 0 0; }
#tg-io-consent [data-io-consent-action="close"] { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font-size: 26px; font-weight: 400; }
#tg-io-consent .tg-io-consent-purpose { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--tg-consent-border); }
#tg-io-consent label.tg-io-consent-purpose { cursor: pointer; }
#tg-io-consent .tg-io-consent-purpose > :is(span, div) { flex: 1; min-width: 0; }
#tg-io-consent .tg-io-consent-purpose strong { display: block; margin-bottom: 4px; font-size: 15px; }
#tg-io-consent .tg-io-consent-purpose span span { display: block; color: var(--tg-consent-muted); }
#tg-io-consent input[type="checkbox"] { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tg-consent-link); }
#tg-io-consent [data-io-consent-error] { margin: 12px 0; font-weight: 600; }
#tg-io-consent-preferences .tg-io-consent-actions { margin-top: 20px; }

@media (max-width: 800px) {
    #tg-io-consent-banner { display: block; }
    #tg-io-consent-banner .tg-io-consent-actions { margin-top: 16px; }
}
@media (max-width: 480px) {
    #tg-io-consent-banner { inset: auto 8px 8px; padding: 16px; }
    #tg-io-consent-preferences { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; }
    #tg-io-consent .tg-io-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tg-io-consent .tg-io-consent-actions button:last-child { grid-column: 1 / -1; }
    #tg-io-consent-settings { left: 8px; bottom: 8px; }
}

html:not([data-theme="light"]) #tg-io-consent,
[data-theme="dark"] #tg-io-consent {
    --tg-consent-bg: #202622;
    --tg-consent-text: #f4f6f4;
    --tg-consent-muted: #d1d9d3;
    --tg-consent-border: #84948a;
    --tg-consent-hover: #343f37;
    --tg-consent-link: #a2dfb8;
    --tg-consent-focus: #80c5ff;
}

#tg-calendly-overlay.tg-journey-scheduler { z-index: 2147483002; }

#tg-calendly-overlay :is(.tg-scheduler-privacy, .tg-scheduler-status, .tg-scheduler-fallback) {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 16px;
    color: #26382c;
    background: #ffffff;
    font: 400 13px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
#tg-calendly-overlay :is(.tg-scheduler-privacy, .tg-scheduler-status, .tg-scheduler-fallback) a { color: #17623a; text-decoration: underline; }
#tg-calendly-overlay .tg-scheduler-fallback { color: #17623a; text-decoration: underline; }
#tg-calendly-overlay :is(.tg-scheduler-privacy, .tg-scheduler-status, .tg-scheduler-fallback)[hidden] { display: none !important; }
#tg-calendly-overlay.tg-journey-scheduler .tg-calendly-modal__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    overflow-y: auto;
}
#tg-calendly-overlay .tg-scheduler-privacy { box-sizing: border-box; }
#tg-calendly-overlay .tg-scheduler-mount { flex: 1 0 400px; width: 100%; min-height: 400px; }
#tg-calendly-overlay .tg-scheduler-mount iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }
