:root {
    --ttlc-accent: #6f4cff;
    --ttlc-accent-dark: #5737dc;
    --ttlc-text: #17151d;
    --ttlc-muted: #686475;
    --ttlc-border: #e5e1ec;
    --ttlc-bg: #ffffff;
    --ttlc-soft: #f7f5fb;
    --ttlc-shadow: 0 22px 70px rgba(26, 18, 49, .18);
}
.ttlc-root, .ttlc-root * { box-sizing: border-box; }
.ttlc-root { position: relative; z-index: 999999; font-family: inherit; color: var(--ttlc-text); }
.ttlc-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center;
    padding: 20px; background: rgba(255,255,255,.98); border: 1px solid var(--ttlc-border); border-radius: 20px;
    box-shadow: var(--ttlc-shadow); backdrop-filter: blur(14px);
}
.ttlc-banner__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--ttlc-soft); color: var(--ttlc-accent); font-size: 24px; font-weight: 800; }
.ttlc-banner h2, .ttlc-modal h2 { margin: 0 0 7px; font-size: 22px; line-height: 1.2; }
.ttlc-banner p, .ttlc-modal p { margin: 0; color: var(--ttlc-muted); font-size: 14px; line-height: 1.55; }
.ttlc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 9px; }
.ttlc-links a, .ttlc-document a, .ttlc-consent-field a { color: var(--ttlc-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.ttlc-banner__actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 8px; min-width: 330px; }
.ttlc-banner__actions .ttlc-btn--text { grid-column: 1 / -1; }
.ttlc-btn { min-height: 42px; padding: 10px 15px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: .18s ease; }
.ttlc-btn:hover { transform: translateY(-1px); }
.ttlc-btn--primary { color: #fff; background: var(--ttlc-accent); }
.ttlc-btn--primary:hover { background: var(--ttlc-accent-dark); }
.ttlc-btn--secondary { color: var(--ttlc-text); background: var(--ttlc-soft); border-color: var(--ttlc-border); }
.ttlc-btn--text { color: var(--ttlc-accent-dark); background: transparent; }
.ttlc-backdrop { position: fixed; inset: 0; background: rgba(19,14,31,.56); backdrop-filter: blur(3px); }
.ttlc-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; background: var(--ttlc-bg); border-radius: 22px; box-shadow: var(--ttlc-shadow); }
.ttlc-modal--document { width: min(760px, calc(100vw - 32px)); }
.ttlc-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ttlc-soft); font-size: 25px; line-height: 1; cursor: pointer; }
.ttlc-category { margin-top: 14px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--ttlc-border); border-radius: 14px; background: #fff; }
.ttlc-category div { display: grid; gap: 4px; }
.ttlc-category span { color: var(--ttlc-muted); font-size: 13px; line-height: 1.45; }
.ttlc-always { white-space: nowrap; padding: 6px 9px; border-radius: 999px; background: var(--ttlc-soft); color: var(--ttlc-accent-dark) !important; font-weight: 700; }
.ttlc-switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.ttlc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ttlc-switch > span { position: absolute; inset: 0; border-radius: 999px; background: #ccc7d5; transition: .2s; cursor: pointer; }
.ttlc-switch > span:after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.ttlc-switch input:checked + span { background: var(--ttlc-accent); }
.ttlc-switch input:checked + span:after { transform: translateX(20px); }
.ttlc-switch input:focus-visible + span { outline: 3px solid rgba(111,76,255,.25); }
.ttlc-note { margin-top: 15px !important; font-size: 12px !important; }
.ttlc-modal__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.ttlc-document { display: grid; gap: 12px; margin-top: 14px; }
.ttlc-document p { color: #36313f; }
.ttlc-reopen { position: fixed; left: 16px; bottom: 16px; padding: 9px 13px; border: 1px solid var(--ttlc-border); border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ttlc-text); box-shadow: 0 8px 24px rgba(26,18,49,.12); font: inherit; font-size: 12px; cursor: pointer; }
.ttlc-link-button, .woocommerce .ttlc-link-button, form .ttlc-link-button { display: inline !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ttlc-accent-dark) !important; text-decoration: underline !important; text-underline-offset: 2px; font: inherit !important; line-height: inherit !important; text-transform: none !important; cursor: pointer; }
.ttlc-consent-field { margin: 12px 0 !important; font-size: 13px; line-height: 1.45; }
.ttlc-consent-field label { display: flex; align-items: flex-start; gap: 8px; }
.ttlc-consent-field input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; }
.ttlc-consent-field--injected { width: 100%; }
.ttlc-consent-field--marketing { margin: 9px 0 0 !important; }
body.ttlc-modal-open { overflow: hidden; }
.ttlc-inline-settings { border: 0; padding: 0; background: transparent; text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
    .ttlc-banner { grid-template-columns: 42px 1fr; }
    .ttlc-banner__icon { width: 42px; height: 42px; }
    .ttlc-banner__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
}
@media (max-width: 560px) {
    .ttlc-banner { left: 10px; right: 10px; bottom: 10px; padding: 15px; border-radius: 16px; grid-template-columns: 1fr; gap: 10px; }
    .ttlc-banner__icon { display: none; }
    .ttlc-banner h2, .ttlc-modal h2 { font-size: 19px; }
    .ttlc-banner__actions { grid-template-columns: 1fr; }
    .ttlc-banner__actions .ttlc-btn--text { grid-column: auto; }
    .ttlc-modal { padding: 22px 16px; border-radius: 17px; }
    .ttlc-category { align-items: flex-start; padding: 13px; }
    .ttlc-always { white-space: normal; text-align: center; }
    .ttlc-modal__actions { display: grid; }
    .ttlc-reopen { left: 10px; bottom: 10px; }
}
