/* Cookies Popup Styles */
.cookies-popup {
    flex-direction: row;
    align-items: end;
    justify-content: end;
}

.cookies-popup .body-small {
    font-size: .7em;
    line-height: 1.3;
}

.cookies-popup .popup-container {
    max-width: 680px;
}

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

.cookies-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

/* Cookies Settings */
.cookies-settings {
    display: none;
    margin: 20px 0;
}

.cookies-settings.active {
    display: block;
}

.cookie-setting-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cookie-setting-item {
    padding: 10px 0;
    border-top: 1px solid var(--wp--preset--color--base-gray-200);
}

.cookie-setting-item > *:last-child {
    margin-bottom: 0;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-setting-name {
    font-weight: 400;
    color: var(--wp--preset--color--base-gray-900);
}

/* Switch Styles */
.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: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--wp--preset--color--primary-blue-600);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: var(--wp--preset--color--primary-blue-900);
    cursor: not-allowed;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

/* Buttons */
.cookies-popup-footer {
    margin-top: 20px;
}

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

.cookies-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.cookies-button-primary {
    background: #2196F3;
    color: white;
}

.cookies-button-primary:hover {
    background: #1976D2;
}

.cookies-button-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookies-button-secondary:hover {
    background: #e0e0e0;
}

#save-cookies-settings {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .cookies-popup-container {
        padding: 20px;
        bottom: 10px;
    }
    
    .cookies-buttons {
        flex-direction: column;
    }
    
    .cookies-button {
        min-width: auto;
        width: 100%;
    }
}