/* ==========================================================
   WEYWOT SOCIAL SIDEBAR - ARCHITEKTURA 3 MOTYWÓW
   ========================================================== */

/* 1. MOTYW: A&J Premium (Dedykowany motyw imperium B2B) */
.theme-aj-premium {
    --wss-bg: #ffffff;
    --wss-icon: #19344f;
    --wss-border: #edf1f5;
    --wss-hover-bg: #ffffff;
    --wss-hover-icon: #c0955e;
    --wss-shadow: rgba(25, 52, 79, 0.08);
    --wss-flyout-bg: rgba(255, 255, 255, 0.95);
    --wss-flyout-text: #333333;
    --wss-flyout-title: #19344f;
}

/* 2. MOTYW: Mroczne Szkło (Dark Glass) */
.theme-dark-glass {
    --wss-bg: rgba(15, 15, 15, 0.6);
    --wss-icon: #cccccc;
    --wss-border: rgba(255,255,255,0.1);
    --wss-hover-bg: #000000;
    --wss-hover-icon: #ffffff;
    --wss-shadow: rgba(0, 0, 0, 0.8);
    --wss-flyout-bg: rgba(10, 11, 12, 0.85);
    --wss-flyout-text: #cccccc;
    --wss-flyout-title: #ffffff;
}

/* 3. MOTYW: Jasne Szkło (Light Glass) */
.theme-light-glass {
    --wss-bg: rgba(255, 255, 255, 0.6);
    --wss-icon: #555555;
    --wss-border: rgba(0,0,0,0.1);
    --wss-hover-bg: #ffffff;
    --wss-hover-icon: #c0955e;
    --wss-shadow: rgba(0, 0, 0, 0.1);
    --wss-flyout-bg: rgba(255, 255, 255, 0.9);
    --wss-flyout-text: #555555;
    --wss-flyout-title: #111111;
}

/* --- GŁÓWNA STRUKTURA BAZOWA --- */
.weywot-social-sidebar { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1040; display: flex; flex-direction: column; gap: 5px; }
.weywot-social-sidebar.pos-right { right: 0; }
.weywot-social-sidebar.pos-left { left: 0; }
.wss-item { position: relative; display: flex; align-items: center; }

/* Przyciski (Ikony) wykorzystujące ZMIENNE MOTYWU */
.wss-icon-btn {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    background: var(--wss-bg); border: 1px solid var(--wss-border); color: var(--wss-icon);
    text-decoration: none; font-size: 1.2rem; transition: all 0.3s ease; cursor: pointer;
    box-shadow: 0 5px 15px var(--wss-shadow); backdrop-filter: blur(10px);
}
.weywot-social-sidebar.pos-right .wss-icon-btn { border-right: none; border-radius: 8px 0 0 8px; }
.weywot-social-sidebar.pos-left .wss-icon-btn { border-left: none; border-radius: 0 8px 8px 0; }

.wss-icon-btn:hover, .wss-item.active .wss-icon-btn {
    background: var(--wss-hover-bg); color: var(--wss-hover-icon); border-color: var(--wss-hover-icon);
    box-shadow: 0 0 15px rgba(192, 149, 94, 0.2); transform: scale(1.05); z-index: 10;
}

/* WYSUWANY PANEL (FLYOUT) */
.wss-flyout { 
    position: absolute; top: 0; width: 350px;
    background: var(--wss-flyout-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wss-border); border-radius: 12px !important; padding: 25px; 
    box-shadow: 0 20px 50px var(--wss-shadow);
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: -1; 
}

.weywot-social-sidebar.pos-right .wss-flyout { right: 60px; transform: translateX(20px); border-right: none; }
.weywot-social-sidebar.pos-left .wss-flyout { left: 60px; transform: translateX(-20px); border-left: none; }
.wss-item.active .wss-flyout { opacity: 1; visibility: visible; transform: translateX(0); z-index: 100; }

.wss-close-btn { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: #999; font-size: 1.5rem; cursor: pointer; transition: 0.3s; line-height: 1; padding: 5px; }
.wss-close-btn:hover { color: #e74c3c; transform: scale(1.2); }

.wss-flyout-title { color: var(--wss-flyout-title); font-size: 0.9rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--wss-border); padding-bottom: 10px; }
.wss-flyout-content iframe { border-radius: 8px; width: 100% !important; max-width: 100%; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* WIZYTÓWKA FIRMY W ŚRODKU FLYOUTU */
.wss-company-flyout { width: 360px; }
.wss-company-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--wss-border); padding: 12px 0; font-size: 0.85rem; color: var(--wss-flyout-text); }
.wss-company-row:last-child { border-bottom: none; }
.wss-company-row strong { color: var(--wss-flyout-title); text-align: right; }
.wss-whatsapp-msg { margin-top: 20px; padding: 15px; background: rgba(37, 211, 102, 0.08); border-left: 3px solid #25D366; font-size: 0.85rem; color: var(--wss-flyout-text); line-height: 1.6; border-radius: 4px; }
.wss-whatsapp-msg strong { color: #25D366; display: block; margin-bottom: 5px; font-weight: 900; }

/* ==========================================================
   WEYWOT COOKIE SYSTEM (DOPASOWANY DO ZMIENNYCH)
   ========================================================== */
.cookie-banner { 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 750px; 
    background: var(--wss-flyout-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
    border: 1px solid var(--wss-border); border-left: 4px solid #c0955e; border-radius: 8px; 
    z-index: 9999; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 10px 40px var(--wss-shadow); font-family: 'Quicksand', sans-serif; gap: 20px; 
}
.cookie-content { color: var(--wss-flyout-text); font-size: 13px; line-height: 1.5; }
.cookie-content strong { color: var(--wss-flyout-title); font-size: 14px; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn-solid { background: #c0955e; color: #fff; border: 1px solid #c0955e; padding: 10px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.3s; font-size: 12px; text-transform: uppercase; }
.cookie-btn-solid:hover { background: var(--wss-flyout-title); border-color: var(--wss-flyout-title); }
.cookie-btn-outline { background: transparent; color: var(--wss-flyout-title); border: 2px solid var(--wss-flyout-title); padding: 10px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.3s; font-size: 12px; text-transform: uppercase; }
.cookie-btn-outline:hover { background: var(--wss-flyout-title); color: var(--wss-flyout-bg); }

.cookie-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 10000; display: flex; justify-content: center; align-items: center; font-family: 'Quicksand', sans-serif; }
.cookie-modal-box { background: var(--wss-flyout-bg); border: 1px solid var(--wss-border); border-top: 4px solid #c0955e; padding: 40px; border-radius: 12px; width: 90%; max-width: 550px; color: var(--wss-flyout-text); position: relative; box-shadow: 0 20px 60px var(--wss-shadow); }
.cookie-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #999; transition: 0.3s; }
.cookie-close:hover { color: #e74c3c; }
.cookie-modal-box h2 { margin-top: 0; margin-bottom: 10px; color: var(--wss-flyout-title); }
.cookie-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--wss-border); padding: 15px 0; }
.cookie-row:last-child { border-bottom: none; }
.cookie-row strong { color: var(--wss-flyout-title); }
.cookie-switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #d1d9e0; transition: .4s; border-radius: 34px; }
.cookie-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.cookie-switch input:checked + .cookie-slider { background-color: #c0955e; }
.cookie-switch input:checked + .cookie-slider:before { transform: translateX(26px); }

@media (max-width: 768px) { .cookie-banner { flex-direction: column; align-items: flex-start; } .cookie-buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } }