.tl-cookie-banner,
.tl-cookie-panel {
    background: #111827;
    color: #f9fafb;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.tl-cookie-banner {
    position: fixed;
    z-index: 10000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    max-width: 70rem;
    margin: auto;
    padding: 0.75rem;
    border: 1px solid #374151;
    border-radius: .75rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
    gap: .9rem;
    align-items: center;
    justify-content: space-between;
}

.tl-cookie-copy { max-width: 48rem; }
.tl-cookie-copy h2,
.tl-cookie-panel h2 { margin: 0 0 .2rem; color: #fff; font-size: 1rem; }
.tl-cookie-copy p,
.tl-cookie-panel p { margin: 0 0 .75rem; font-size: .8rem; }

.tl-cookie-privacy {
    color: #93c5fd;
    text-decoration: underline;
}

.tl-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    flex-shrink: 0;
}

.tl-cookie-button,
.tl-cookie-manage,
.tl-cookie-close {
    cursor: pointer;
    border: 2px solid transparent;
    font: inherit;
}

.tl-cookie-button {
    min-width: 7rem;
    padding: .65rem 1rem;
    border-radius: .4rem;
    font-weight: 700;
}

.tl-cookie-accept { background: #2563eb; color: #fff; }
.tl-cookie-reject { background: #f3f4f6; color: #111827; }

.tl-cookie-manage {
    position: static;
    padding: .55rem .8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #dbeafe;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tl-cookie-manage-footer {
    padding: .4rem 1rem .75rem;
    background: #000;
    text-align: center;
    display: none;
}

.tl-cookie-modal {
    position: fixed;
    z-index: 10001;
    inset: 0;
}

.tl-cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.tl-cookie-panel {
    position: relative;
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    margin: max(1rem, 10vh) auto;
    padding: 1.5rem;
    overflow: auto;
    border: 1px solid #4b5563;
    border-radius: .75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.tl-cookie-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    padding: .15rem .5rem;
    background: transparent;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}

.tl-cookie-current { font-weight: 700; }

.tl-cookie-button:focus-visible,
.tl-cookie-manage:focus-visible,
.tl-cookie-close:focus-visible,
.tl-cookie-privacy:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

[hidden] { display: none !important; }

@media (max-width: 700px) {
    .tl-cookie-banner { align-items: stretch; flex-direction: column; gap: 1rem; }
    .tl-cookie-actions { width: 100%; }
    .tl-cookie-button { flex: 1 1 8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tl-cookie-banner,
    .tl-cookie-panel { scroll-behavior: auto; }
}
