/* Netu Cookie Consent — matches netu.ro design */

:root {
    --netu-pink: #e91e8c;
    --netu-black: #111111;
    --netu-white: #ffffff;
    --netu-gray: #f5f5f5;
    --netu-border: #e0e0e0;
    --netu-text: #333333;
    --netu-text-light: #666666;
    --netu-radius: 12px;
    --netu-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* ===== BANNER ===== */
#netu-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999990;
    max-width: 400px;
    width: calc(100% - 48px);
    background: var(--netu-white);
    border-radius: var(--netu-radius);
    box-shadow: var(--netu-shadow);
    padding: 24px;
    font-family: inherit;
    border: 1px solid var(--netu-border);
}

#netu-consent-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--netu-black);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

#netu-consent-banner-text {
    font-size: 13px;
    color: var(--netu-text-light);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

#netu-consent-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== BUTTONS ===== */
.netu-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid var(--netu-black);
    text-align: center;
    transition: none;
    font-family: inherit;
    line-height: 1.3;
}

.netu-btn-solid {
    background: var(--netu-black);
    color: var(--netu-white);
}
.netu-btn-solid:hover {
    background: var(--netu-black);
    border-color: var(--netu-black);
    color: var(--netu-white);
}

.netu-btn-outline {
    background: var(--netu-white);
    color: var(--netu-black);
}
.netu-btn-outline:hover {
    background: var(--netu-white);
    color: var(--netu-black);
}

/* Link-style refuse button */
.netu-btn-link {
    background: none;
    border: none;
    color: var(--netu-text-light);
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    display: block;
    text-align: center;
    width: 100%;
}
.netu-btn-link:hover {
    color: var(--netu-text-light);
    text-decoration: underline;
}

/* ===== OVERLAY ===== */
#netu-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999991;
    backdrop-filter: blur(2px);
}

/* ===== MODAL ===== */
#netu-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999992;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    background: var(--netu-white);
    border-radius: var(--netu-radius);
    box-shadow: var(--netu-shadow);
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

#netu-consent-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--netu-radius);
}

#netu-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--netu-text-light);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}
#netu-modal-close:hover { color: var(--netu-black); background: var(--netu-gray); }

#netu-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--netu-black);
    padding: 24px 48px 0 24px;
    margin: 0 0 16px 0;
    flex-shrink: 0;
}

#netu-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 16px;
    font-size: 13px;
    color: var(--netu-text-light);
    line-height: 1.6;
}

#netu-modal-body p {
    margin: 0 0 12px 0;
    font-size: 13px;
}

#netu-modal-body a {
    color: var(--netu-pink);
    text-decoration: underline;
}

#netu-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--netu-border);
    flex-shrink: 0;
    background: var(--netu-white);
    border-radius: 0 0 var(--netu-radius) var(--netu-radius);
}

#netu-modal-footer .netu-btn {
    flex: 1;
}

/* ===== CATEGORIES ===== */
.netu-category {
    border: 1px solid var(--netu-border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.netu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--netu-white);
    gap: 12px;
}

.netu-category-toggle {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--netu-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-family: inherit;
    flex: 1;
    text-align: left;
    justify-content: flex-start;
}

.netu-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.2s ease;
    color: var(--netu-text-light);
    width: 16px;
    text-align: center;
}

.netu-category-toggle[aria-expanded="true"] .netu-arrow {
    transform: rotate(90deg);
}

.netu-always-active {
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    white-space: nowrap;
}

.netu-category-desc {
    padding: 0 16px 12px;
    font-size: 12px;
    color: var(--netu-text-light);
    line-height: 1.5;
    background: var(--netu-white);
}

.netu-category-cookies {
    border-top: 1px solid var(--netu-border);
    background: var(--netu-gray);
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== TOGGLE SWITCH ===== */
.netu-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.netu-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.netu-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.netu-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.netu-toggle-switch input:checked + .netu-slider {
    background: var(--netu-black);
}

.netu-toggle-switch input:checked + .netu-slider:before {
    transform: translateX(20px);
}

/* ===== COOKIE TABLE ===== */
.netu-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.netu-cookie-table th {
    background: var(--netu-border);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--netu-black);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.netu-cookie-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--netu-border);
    color: var(--netu-text);
    vertical-align: top;
}

.netu-cookie-table tr:last-child td { border-bottom: none; }
.netu-cookie-table tr:hover td { background: #fafafa; }

.netu-cookie-table code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
    word-break: break-all;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    #netu-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--netu-radius) var(--netu-radius) 0 0;
        border-bottom: none;
    }

    #netu-consent-modal {
        width: 100%;
        max-width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        max-height: 92vh;
        border-radius: var(--netu-radius) var(--netu-radius) 0 0;
    }

    #netu-modal-footer {
        flex-direction: column;
    }

    .netu-cookie-table th:last-child,
    .netu-cookie-table td:last-child {
        display: none;
    }
}

/* ===== ANIMATION ===== */
#netu-consent-banner {
    animation: netu-slide-up 0.3s ease;
}

@keyframes netu-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
