/* BLOKADA */
#weywot-cookie-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); display: none;
}
#weywot-cookie-overlay.visible { display: block; }
body.cookies-locked { overflow: hidden !important; height: 100vh !important; }

/* MODAL BAZOWY */
#weywot-cookie-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 99999; width: 450px; max-width: 90%; border-radius: 12px; padding: 35px;
    text-align: center; font-family: sans-serif; opacity: 0; visibility: hidden; transition: 0.3s;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
#weywot-cookie-modal.active { opacity: 1; visibility: visible; }

/* ELEMENTY */
.modal-icon span { font-size: 42px; margin-bottom: 20px; display: block; }
.weywot-consent-box { margin: 20px 0; padding: 15px; border-radius: 6px; text-align: left; display: flex; gap: 10px; align-items: center; }
.weywot-consent-box input { width: 20px; height: 20px; cursor: pointer; }
.weywot-consent-box label { font-size: 13px; line-height: 1.4; cursor: pointer; }
.modal-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.action-btn { padding: 14px; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); }
.action-btn:hover:not(:disabled) { transform: translateY(-2px); }

/* REKLAMA */
.ad-wrapper { margin-top: 20px; background: rgba(0,0,0,0.05); padding: 15px; border-radius: 8px; }
.ad-label { display: block; font-size: 10px; color: #888; margin-bottom: 5px; text-align: right; }
.ad-content img, .ad-content iframe { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ad-dummy { border: 2px dashed #888; padding: 20px; color: #888; font-size: 11px; }

/* --- STYL 1: MODERN LIGHT --- */
.style-modern_light { background: #fff; color: #333; }
.style-modern_light .action-btn.primary { background: #0073aa; color: #fff; }
.style-modern_light .weywot-consent-box { background: #f5f5f5; }

/* --- STYL 2: ELEGANT DARK --- */
.style-elegant_dark { background: #111; color: #fff; border: 1px solid #333; }
.style-elegant_dark .action-btn.primary { background: #81d742; color: #000; }
.style-elegant_dark .weywot-consent-box { background: #222; border: 1px solid #333; }

/* --- STYL 3: GLASS BLACK (TWÓJ ULUBIONY) --- */
.style-glass_black {
    background: rgba(0, 0, 0, 0.7); /* Półprzezroczysty czarny */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.style-glass_black .modal-icon { color: #81d742; text-shadow: 0 0 20px rgba(129,215,66,0.4); }
.style-glass_black h3 { color: #fff; }
.style-glass_black .weywot-consent-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.style-glass_black .weywot-consent-box a { color: #81d742; }
.style-glass_black .action-btn.primary {
    background: #81d742; color: #000; 
    box-shadow: 0 0 25px rgba(129,215,66,0.4);
}
.style-glass_black .action-btn.secondary {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #ccc;
}
.style-glass_black .action-btn.secondary:hover { border-color: #fff; color: #fff; }

/* --- STYL 4: GLASS WHITE (NOWY) --- */
.style-glass_white {
    background: rgba(255, 255, 255, 0.6); /* Półprzezroczysty biały */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #111;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.style-glass_white .modal-icon { color: #0073aa; }
.style-glass_white h3 { color: #000; }
.style-glass_white .weywot-consent-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.8);
}
.style-glass_white .action-btn.primary {
    background: #0073aa; color: #fff; 
    box-shadow: 0 5px 20px rgba(0,115,170,0.3);
}
.style-glass_white .action-btn.secondary {
    background: rgba(255,255,255,0.8); color: #333;
}

/* OKNO POLITYKI */
#weywot-privacy-content-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 90%; height: 85vh; background: #fff; z-index: 999999;
    display: none; flex-direction: column; padding: 25px; border-radius: 12px;
}
#weywot-privacy-content-modal.active { display: flex; }
/* Dopasowanie Polityki do stylu Glass */
#weywot-privacy-content-modal.style-glass_black { background: rgba(10,10,10,0.95); color: #ddd; border: 1px solid #333; }
#weywot-privacy-content-modal.style-glass_white { background: rgba(255,255,255,0.95); color: #111; border: 1px solid #fff; }

.privacy-header { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.style-glass_black .privacy-header { border-bottom-color: rgba(255,255,255,0.1); }

.privacy-scroll-area { flex: 1; overflow-y: auto; text-align: left; }
.privacy-actions { margin-top: 20px; text-align: center; }

/* IKONA USTAWIEŃ */
#weywot-cookie-settings {
    position: fixed; bottom: 20px; left: 20px; width: 40px; height: 40px;
    background: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 99990; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#weywot-cookie-settings.visible { display: flex; }