.qty-error-shake {
    animation: shake 0.5s !important;
    border: 2px solid #e2401c !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.wc-qty-floating-notice {
    position: fixed;
    top: 32px;
    right: -400px;
    max-width: 380px;
    background: #fff;
    border-left: 4px solid #dc3232;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 16px 45px 16px 16px;
    z-index: 9999999;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wc-qty-floating-notice.notice-warning {
    border-left-color: #ffb900;
}

.wc-qty-floating-notice.show {
    right: 20px;
}

.wc-qty-floating-notice .notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.wc-qty-floating-notice .notice-text {
    flex: 1;
    color: #23282d;
    font-size: 14px;
    line-height: 1.5;
}

.wc-qty-floating-notice .notice-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: color 0.2s;
}

.wc-qty-floating-notice .notice-close:hover {
    color: #dc3232;
}

.wc-block-components-quantity-selector__input.qty-error-shake {
    animation: shake 0.5s !important;
    border-color: #dc3232 !important;
    background-color: #fff5f5 !important;
}

@media (max-width: 768px) {
    .wc-qty-floating-notice {
        top: auto;
        bottom: 20px;
        right: -400px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .wc-qty-floating-notice.show {
        right: 10px;
    }
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
   position: relative;
}
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9) url('images/6RMhx.gif') center center no-repeat;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}
body.wcmax-is-loading  .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents::after {
    visibility: visible;
    opacity: 1;
}

body.wcmax-is-loading .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-products-table-block{
    display: none;
}