/* WP Cookie Consent Styles */
:root {
    --wcc-primary-color: #2563eb;
    --wcc-primary-hover: #1d4ed8;
    --wcc-text-color: #1f2937;
    --wcc-bg-color: #ffffff;
    --wcc-border-color: #e5e7eb;
    --wcc-overlay: rgba(0, 0, 0, 0.5);
}

/* Banner Styles */
.wcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: var(--wcc-bg-color);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 20px;
    animation: wccSlideIn 0.4s ease-out;
}

.wcc-banner-bottom {
    bottom: 0;
    border-top: 1px solid var(--wcc-border-color);
}

.wcc-banner-top {
    top: 0;
    border-bottom: 1px solid var(--wcc-border-color);
}

@keyframes wccSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wcc-banner-top {
    animation: wccSlideInTop 0.4s ease-out;
}

@keyframes wccSlideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wcc-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.wcc-banner-message {
    flex: 1;
    min-width: 300px;
}

.wcc-banner-message p {
    margin: 0;
    color: var(--wcc-text-color);
    font-size: 14px;
    line-height: 1.6;
}

.wcc-privacy-link {
    color: var(--wcc-primary-color);
    text-decoration: underline;
    margin-left: 5px;
}

.wcc-privacy-link:hover {
    color: var(--wcc-primary-hover);
}

.wcc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Styles */
.wcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wcc-btn-primary {
    background: var(--wcc-primary-color);
    color: white;
}

.wcc-btn-primary:hover {
    background: var(--wcc-primary-hover);
    transform: translateY(-1px);
}

.wcc-btn-secondary {
    background: transparent;
    color: var(--wcc-text-color);
    border: 1px solid var(--wcc-border-color);
}

.wcc-btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--wcc-text-color);
}

/* Modal Styles */
.wcc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    background: var(--wcc-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: wccFadeIn 0.3s ease;
}

@keyframes wccFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wcc-modal-content {
    background: var(--wcc-bg-color);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: wccSlideUp 0.3s ease;
}

@keyframes wccSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wcc-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--wcc-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcc-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--wcc-text-color);
}

.wcc-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wcc-close:hover {
    background: #f3f4f6;
    color: var(--wcc-text-color);
}

.wcc-modal-body {
    padding: 24px;
}

.wcc-modal-description {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.wcc-cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wcc-border-color);
}

.wcc-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wcc-category-header {
    margin-bottom: 8px;
}

.wcc-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--wcc-text-color);
}

.wcc-category-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--wcc-primary-color);
}

.wcc-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.wcc-category-title {
    flex: 1;
    font-size: 15px;
}

.wcc-category-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.wcc-category-description {
    margin: 0;
    padding-left: 32px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.wcc-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--wcc-border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Reopen Settings Button */
.wcc-reopen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wcc-primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcc-reopen-btn:hover {
    background: var(--wcc-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wcc-reopen-btn svg {
    animation: wccRotate 4s linear infinite;
}

@keyframes wccRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcc-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wcc-banner-buttons {
        justify-content: stretch;
    }
    
    .wcc-banner-buttons .wcc-btn {
        flex: 1;
    }
    
    .wcc-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .wcc-modal-footer {
        flex-direction: column;
    }
    
    .wcc-modal-footer .wcc-btn {
        width: 100%;
    }
    
    .wcc-reopen-btn {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .wcc-banner {
        padding: 15px;
    }
    
    .wcc-banner-message p {
        font-size: 13px;
    }
    
    .wcc-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .wcc-modal-header,
    .wcc-modal-body,
    .wcc-modal-footer {
        padding: 16px;
    }
}
