/* Cookie Banner */
.kfc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    padding: 20px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kfc-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.kfc-cookie-banner-text {
    flex: 1;
}

.kfc-cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.kfc-cookie-banner-text a {
    color: #e4002b;
    text-decoration: underline;
}

.kfc-cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.kfc-cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.kfc-cookie-btn-settings {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.kfc-cookie-btn-settings:hover {
    background: #e8e8e8;
}

.kfc-cookie-btn-reject {
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
}

.kfc-cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #999;
}

.kfc-cookie-btn-accept {
    background: #e4002b;
    color: #fff;
}

.kfc-cookie-btn-accept:hover {
    background: #c50025;
}

/* Cookie Modal */
.kfc-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kfc-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kfc-cookie-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.kfc-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.kfc-cookie-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.kfc-cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.kfc-cookie-modal-close:hover {
    color: #333;
}

.kfc-cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.kfc-cookie-modal-intro {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.kfc-cookie-modal-intro a {
    color: #e4002b;
    text-decoration: underline;
}

.kfc-cookie-modal-intro a:hover {
    text-decoration: none;
}

.kfc-cookie-category {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.kfc-cookie-category:last-child {
    margin-bottom: 0;
}

.kfc-cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #fafafa;
}

.kfc-cookie-category-info {
    flex: 1;
}

.kfc-cookie-category-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1a1a1a;
}

.kfc-cookie-category-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.kfc-cookie-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.kfc-cookie-always-on {
    font-size: 11px;
    color: #46b450;
    font-weight: 600;
}

/* Toggle Switch */
.kfc-cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.kfc-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kfc-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.kfc-cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kfc-cookie-switch input:checked + .kfc-cookie-slider {
    background-color: #e4002b;
}

.kfc-cookie-switch input:checked + .kfc-cookie-slider:before {
    transform: translateX(22px);
}

.kfc-cookie-switch-disabled {
    opacity: 0.7;
}

.kfc-cookie-switch-disabled .kfc-cookie-slider {
    cursor: not-allowed;
    background-color: #46b450;
}

.kfc-cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .kfc-cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .kfc-cookie-banner-buttons {
        flex-direction: column;
    }
    
    .kfc-cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .kfc-cookie-modal-content {
        max-height: 95vh;
    }
    
    .kfc-cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .kfc-cookie-toggle {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    
    .kfc-cookie-modal-footer {
        flex-direction: column;
    }
}

