/* ── Custom ATC Widget ─────────────────────────────────────────── */

@keyframes e-atc-spin {
    to { transform: rotate(360deg); }
}

.custom-atc-wrap {
    display: block;
    width: 100%;
}

.custom-atc-form {
    margin: 0;
}

/* Variations */
.custom-atc-variation {
    margin-bottom: 12px;
}
.custom-atc-variation label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}
.custom-atc-variation select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}
.custom-atc-variation select:focus {
    outline: none;
    border-color: #8C857F;
}
.custom-atc-variation select.error {
    border-color: #e74c3c !important;
}

/* Qty row */
.custom-atc-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Qty stepper */
.custom-atc-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.custom-atc-qty button {
    width: 36px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
    color: #333;
}
.custom-atc-qty button:hover {
    background: #e8e8e8;
}
.custom-atc-qty input.qty {
    width: 48px;
    height: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
    background: #fff;
    color: #333;
}
.custom-atc-qty input.qty::-webkit-outer-spin-button,
.custom-atc-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button */
.custom-atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    height: 44px;
    background: #8C857F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    flex: 1;
    min-width: 120px;
    white-space: nowrap;
    line-height: 1;
}
.custom-atc-btn:hover {
    opacity: 0.88;
}
.custom-atc-btn.loading {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}
.custom-atc-btn.added {
    background: #4a9e6a;
}

/* Icon slot */
.custom-atc-btn .e-atc-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Out of stock */
.custom-atc-out-of-stock {
    font-size: 14px;
    color: #999;
    margin: 0;
    padding: 10px 0;
}

a.add_to_cart_button.ajax_add_to_cart.elementor-button{
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce div.product form.cart:after,  .woocommerce a.button.added::after{
	display: none;
}