/* JK Cookie Banner Styles */

.jk-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.jk-cookie-banner.show {
    transform: translateY(0);
}

.jk-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.jk-cookie-content {
    flex: 1;
}

.jk-cookie-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--white);
}

.jk-cookie-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.jk-cookie-link {
    color: var(--secondary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.jk-cookie-link:hover {
    opacity: 0.8;
}

.jk-cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.jk-cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jk-cookie-btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.jk-cookie-btn-primary:hover {
    background: var(--secondary);
    opacity: 0.9;
    transform: translateY(-1px);
}

.jk-cookie-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.jk-cookie-btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Preferences Panel */
.jk-cookie-preferences {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.jk-cookie-category {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.jk-cookie-category-label {
    display: block;
    cursor: pointer;
}

.jk-cookie-category input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.jk-cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.jk-cookie-category-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.jk-cookie-category-desc {
    font-size: 0.875rem;
    opacity: 0.8;
    display: block;
    margin-left: 1.75rem;
}

.jk-cookie-preferences-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jk-cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .jk-cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .jk-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .jk-cookie-preferences-actions {
        flex-direction: column;
    }
}

/* Accessibility */
.jk-cookie-banner:focus-within {
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}

.jk-cookie-btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .jk-cookie-category {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .jk-cookie-banner {
        display: none !important;
    }
}