/* Cookie Consent Banner */
.telpo-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--telpo-border-light, #d1e3da);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 30px rgba(23, 49, 38, 0.12);
    z-index: 9999;
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.telpo-cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.telpo-cookie-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.telpo-cookie-text {
    flex: 1 1 420px;
    color: var(--telpo-muted, #5a7367);
    font-size: 0.95rem;
    line-height: 1.45;
}

.telpo-cookie-text h3 {
    margin: 0 0 0.2rem 0;
    color: var(--telpo-text, #173126);
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.telpo-cookie-text p {
    margin: 0;
}

.telpo-cookie-text a {
    color: var(--telpo-primary, #00a86b);
    font-weight: 700;
    text-decoration: underline;
}

.telpo-cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.telpo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.telpo-btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--telpo-primary, #00a86b) 0%, var(--telpo-secondary, #00b8d9) 100%);
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.25);
}

.telpo-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 168, 107, 0.3);
}

.telpo-btn-secondary {
    color: var(--telpo-text, #173126);
    background: #ffffff;
    border-color: var(--telpo-text, #173126);
}

.telpo-btn-secondary:hover {
    background: var(--telpo-bg-from, #f6fbf8);
}

.telpo-btn-link {
    min-height: 0;
    padding: 0.2rem 0.4rem;
    color: var(--telpo-muted, #5a7367);
    border: none;
    background: transparent;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 700;
}

.telpo-btn-link:hover {
    color: var(--telpo-text, #173126);
}

/* Settings Modal */
.telpo-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
    background: rgba(20, 35, 29, 0.45);
}

.telpo-cookie-modal.show {
    display: flex;
}

.telpo-modal-content {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--telpo-border-light, #d1e3da);
    box-shadow: 0 30px 60px rgba(23, 49, 38, 0.2);
    padding: 1.5rem;
}

.telpo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--telpo-border-light, #d1e3da);
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
}

.telpo-modal-title {
    margin: 0;
    color: var(--telpo-text, #173126);
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 900;
}

.telpo-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: var(--telpo-bg-from, #f6fbf8);
    color: var(--telpo-muted, #5a7367);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.telpo-modal-close:hover {
    background: var(--telpo-bg-via, #e8f5f0);
    color: var(--telpo-text, #173126);
}

.telpo-modal-body p {
    margin: 0 0 1rem 0;
    color: var(--telpo-muted, #5a7367);
}

.telpo-cookie-category {
    margin-bottom: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--telpo-border-light, #d1e3da);
    border-radius: 14px;
    background: var(--telpo-bg-from, #f6fbf8);
}

.telpo-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.telpo-cat-title {
    color: var(--telpo-text, #173126);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.telpo-cat-desc {
    margin: 0;
    color: var(--telpo-muted, #5a7367);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Switch */
.telpo-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.telpo-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.telpo-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #bfd7cc;
    background: var(--telpo-border-light, #d1e3da);
    transition: all 0.2s ease;
}

.telpo-slider:before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

input:checked + .telpo-slider {
    border-color: transparent;
    background: linear-gradient(90deg, var(--telpo-primary, #00a86b) 0%, var(--telpo-secondary, #00b8d9) 100%);
}

input:checked + .telpo-slider:before {
    transform: translateX(22px);
}

input:disabled + .telpo-slider {
    opacity: 0.8;
    cursor: not-allowed;
}

.telpo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

/* Legal Content Styles */
.telpo-legal-content {
    font-family: inherit;
    line-height: 1.8;
    color: var(--telpo-muted, #5a7367);
}

.telpo-legal-content p.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 2rem;
}

.telpo-legal-content h2 {
    color: var(--telpo-text, #173126);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.telpo-legal-content h3 {
    color: var(--telpo-text, #173126);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.telpo-legal-content ul, 
.telpo-legal-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.telpo-legal-content li {
    margin-bottom: 0.5rem;
}

.telpo-legal-content a {
    color: #009B4D;
    text-decoration: underline;
    transition: color 0.2s;
}

.telpo-legal-content a:hover {
    color: #007a3d;
}

.telpo-note-box {
    background-color: #f3f4f6;
    border-left: 4px solid #009B4D;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.telpo-settings-embed {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--telpo-border-light, #d1e3da);
    background: #ffffff;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .telpo-cookie-banner {
        padding: 1rem 0.9rem;
    }

    .telpo-cookie-text h3 { font-size: 0.95rem; }

    .telpo-cookie-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .telpo-btn {
        width: 100%;
    }

    .telpo-btn-link {
        text-align: center;
        padding: 0.35rem 0.4rem;
    }

    .telpo-cookie-container {
        flex-direction: column;
        align-items: stretch;
    }

    .telpo-modal-content {
        border-radius: 18px;
        padding: 1rem;
    }

    .telpo-modal-title {
        font-size: 1.25rem;
    }
}
