/* Стили для кнопки очистки корзины */
.clear-cart-button {
    background-color: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    width: 100% !important;
    justify-content: center !important;
}

.clear-cart-button:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.clear-cart-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.clear-cart-button:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.clear-cart-button i {
    font-size: 16px !important;
}

.clear-cart-button .clear-icon {
    font-size: 16px !important;
    display: inline-block !important;
}

/* Стили для уведомлений */
.woocommerce-message.notice-success {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.woocommerce-message.notice-error {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

/* Анимация загрузки для иконки спиннера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zoo-icon-spinner {
    animation: spin 1s linear infinite !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .clear-cart-button {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .cart-clear-button-wrapper {
        margin-top: 8px !important;
    }
}

/* Стили для контейнера кнопки */
.cart-clear-button-wrapper {
    margin-top: 10px;
}

/* Стили для группировки кнопок экспорта и очистки */
.cart-export-button-wrapper + .cart-clear-button-wrapper {
    margin-top: 10px;
}

/* Стили для пустой корзины */
.woocommerce-cart-form:empty + .cart-clear-button-wrapper {
    display: none;
}
