/* Fanatyco WC Notices – default styles (overridden by Elementor widget controls) */
.fanatyco-wc-notices .woocommerce-message,
.fanatyco-wc-notices .woocommerce-info,
.fanatyco-wc-notices .woocommerce-error {
    list-style: none;
    padding: 12px 18px;
    margin: 0 0 10px;
    border-radius: 4px;
    border-left: 4px solid;
}

.fanatyco-wc-notices .woocommerce-message {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.fanatyco-wc-notices .woocommerce-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.fanatyco-wc-notices .woocommerce-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.fanatyco-wc-notices .woocommerce-error li {
    list-style: none;
}

/* Gentle pulse: slowly transitions between normal and hover colors */
@keyframes fanatyco-pulse {
    0%, 100% {
        background-color: var(--e-global-color-primary);
        border-color: var(--e-global-color-primary);
    }
    50% {
        background-color: var(--e-global-color-accent);
        border-color: var(--e-global-color-accent);
    }
}

.single_add_to_cart_button.fanatyco-pulse {
    animation: fanatyco-pulse 2s ease-in-out infinite !important;
    color: #FFFFFF !important;
}

/* On real hover: kill the animation, lock to hover state */
.single_add_to_cart_button.fanatyco-pulse:hover {
    animation: none !important;
    background-color: var(--e-global-color-accent) !important;
    border-color: var(--e-global-color-accent) !important;
    color: #FFFFFF !important;
}

/* Once clicked / added — no pulse */
.single_add_to_cart_button.added {
    animation: none !important;
}

/* Prevent form.cart from wrapping buttons to a new line */
form.cart {
    flex-wrap: nowrap !important;
    align-items: center !important;
}

/* Force the Add to Cart button to shrink so both buttons fit */
form.cart .single_add_to_cart_button {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add Another button – black with white text, same row */
.fanatyco-add-another,
.fanatyco-add-another.button,
button.button.fanatyco-add-another {
    margin-left: 8px;
    cursor: pointer;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 15px 20px 15px 20px !important;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1;
    transition: background-color 0.2s;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

.fanatyco-add-another:hover,
.fanatyco-add-another.button:hover,
button.button.fanatyco-add-another:hover {
    background-color: #333 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
}

/* Hint message after clicking "Add Another" */
.fanatyco-add-hint {
    margin-left: 10px;
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    padding: 0.618em 0;
    flex-shrink: 0;
    white-space: nowrap;
}
