/* WN Cookies — styles */

/* Overlay */
.wn-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 40, 80, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wn-fade-in 0.25s ease;
}

@keyframes wn-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Box */
.wn-cookie-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 28px;
    border: 1px solid rgba(44,95,222,0.1);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: wn-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* Icon */
.wn-cookie-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* Title */
.wn-cookie-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Desc */
.wn-cookie-desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
}

.wn-link {
    color: #2c5fde;
    text-decoration: none;
}
.wn-link:hover { text-decoration: underline; }

/* Actions */
.wn-cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

/* Buttons */
.wn-btn {
    width: 100%;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}
.wn-btn-primary {
    background: #1a46c0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,70,192,0.3);
}
.wn-btn-primary:hover { background: #1338a0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,70,192,0.4); }

.wn-btn-secondary {
    background: transparent;
    color: #555;
    border: 1.5px solid #ddd;
    font-weight: 500;
}
.wn-btn-secondary:hover { border-color: #1a46c0; background: #1a46c0; color: #fff; }

.wn-btn-ghost {
    background: transparent;
    color: #555;
    border: 1.5px solid #ddd;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 11px 20px;
}
.wn-btn-ghost:hover { border-color: #1a46c0; background: #1a46c0; color: #fff; }

/* Back button */
.wn-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: color 0.15s;
}
.wn-back-btn:hover { color: #333; }

/* Categories */
.wn-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wn-category {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.15s;
}
.wn-category:hover { border-color: #ddd; }

.wn-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wn-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-category-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wn-category-info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a2e;
}

.wn-category-desc {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 1px;
}

.wn-category-detail {
    font-size: 0.75rem;
    color: #bbb;
    margin: 8px 0 0 34px;
    line-height: 1.5;
}

/* Toggle switch */
.wn-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    display: block;
}

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

.wn-toggle-thumb {
    position: absolute;
    inset: 0;
    background: #e0e0e0;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.wn-toggle-thumb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.wn-toggle-input:checked + .wn-toggle-thumb {
    background: #1a1a2e;
}

.wn-toggle-input:checked + .wn-toggle-thumb::after {
    transform: translateX(20px);
}

/* Toggle disabled (niezbedne) */
.wn-toggle-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.wn-toggle-disabled .wn-toggle-thumb {
    background: #1a1a2e;
}
.wn-toggle-disabled .wn-toggle-thumb::after {
    transform: translateX(20px);
}

/* Reopen button — ukryty */
.wn-cookie-reopen { display: none !important; }

/* Mobile */
@media (max-width: 480px) {
    .wn-cookie-box {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }
    .wn-cookie-title { font-size: 1.1rem; }
}
