/* Overlay */
.websited-privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.websited-privacy-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.websited-privacy-popup {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Background like .pagrindinis */
    background-color: #F1EFE7;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-blend-mode: overlay;
}

.websited-privacy-overlay.active .websited-privacy-popup {
    transform: translateY(0) scale(1);
}

/* Animated lines overlay */
.websited-privacy-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 20px,
        rgba(0, 0, 0, 0.08) 20px,
        rgba(0, 0, 0, 0.08) 21px
    );
    background-size: 30px 30px;
    animation: privacyLinesMove 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes privacyLinesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

/* Content */
.websited-privacy-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: #000;
}

.websited-privacy-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: #000;
    letter-spacing: -1px;
}

.websited-privacy-text {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
}

/* Custom scrollbar */
.websited-privacy-text::-webkit-scrollbar {
    width: 6px;
}

.websited-privacy-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.websited-privacy-text::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.websited-privacy-text::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.websited-privacy-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 12px 0;
    color: #000;
}

.websited-privacy-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 15px 0;
    color: #333;
}

.websited-privacy-text ul {
    margin: 0 0 15px 0;
    padding-left: 25px;
}

.websited-privacy-text li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 8px;
}

.websited-privacy-text a {
    color: #000;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.websited-privacy-text a:hover {
    opacity: 0.7;
}

/* Buttons container */
.websited-privacy-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.websited-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 8px;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Accept button - black background, white text */
.websited-btn-accept {
    background: #000;
    color: #fff;
}

.websited-btn-accept:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Decline button - transparent, black text */
.websited-btn-decline {
    background: transparent;
    color: #000;
}

.websited-btn-decline:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Closing animation */
.websited-privacy-overlay.closing {
    opacity: 0;
}

.websited-privacy-overlay.closing .websited-privacy-popup {
    transform: translateY(-30px) scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .websited-privacy-popup {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .websited-privacy-content {
        padding: 25px;
    }
    
    .websited-privacy-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .websited-privacy-text {
        max-height: 50vh;
    }
    
    .websited-privacy-text h3 {
        font-size: 16px;
    }
    
    .websited-privacy-text p,
    .websited-privacy-text li {
        font-size: 14px;
    }
    
    .websited-privacy-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .websited-btn {
        width: 100%;
        padding: 12px 25px;
    }
}
