/* =============================================
   Bee1 Select Size and Add to Cart — Styles
   Author: bee1
   ============================================= */

.bee1-satc-wrap {
    margin-top: 10px;
    padding: 0 2px;
    font-family: inherit;

    /* Hidden by default — revealed when the parent product card is hovered */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Reveal when any common Elementor Pro loop / WooCommerce product-card ancestor is hovered */
.e-loop-item:hover .bee1-satc-wrap,
.elementor-loop-item:hover .bee1-satc-wrap,
.elementor-post:hover .bee1-satc-wrap,
li.product:hover .bee1-satc-wrap,
article.product:hover .bee1-satc-wrap,
.product-type-variable:hover .bee1-satc-wrap,
.bee1-satc-card-hover .bee1-satc-wrap,   /* JS-added class on the product-card parent */
.bee1-satc-wrap.is-open {                 /* explicit open state (keyboard / touch) */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Size buttons row */
.bee1-satc-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* Individual size button */
.bee1-satc-size {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}

.bee1-satc-size:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #bbb;
}

.bee1-satc-size.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.bee1-satc-size.out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Add to Cart button */
.bee1-satc-btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #009FE3;
    border-radius: 0;
    background: #009FE3;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
    text-align: center;
}

.bee1-satc-btn:hover:not(:disabled) {
    background: #0088c4;
    border-color: #0088c4;
    color: #fff;
}

.bee1-satc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bee1-satc-btn.bee1-loading {
    opacity: 0.7;
    cursor: wait;
}

.bee1-satc-btn.bee1-added {
    background: #1a9e6e;
    color: #fff;
    border-color: #1a9e6e;
}

/* Status message */
.bee1-satc-msg {
    font-size: 11px;
    margin: 7px 0 0;
    min-height: 15px;
    line-height: 1.4;
}

.bee1-satc-msg.bee1-error {
    color: #e24b4a;
}

.bee1-satc-msg.bee1-ok {
    color: #1a9e6e;
}
