/* ========================================
   Bundle Meal Picker (Everyday Week Box - 10, Family Week Box - 15)
   Uses the theme's existing design tokens (--primary-color, 3px
   radius) and the native div.quantity/.minus/.plus stepper markup
   already used elsewhere on the site - no custom button styling.
   ======================================== */

.ueathome-bundle-picker {
    width: 100%;
}

.ueathome-picker-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ueathome-picker-toggle-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ueathome-picker-toggle-option input[type="radio"] {
    margin: 0;
    accent-color: #000;
}

.ueathome-picker-toggle-option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.ueathome-picker-panel {
    display: none;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 16px 0;
    background: #fafafa;
}

.ueathome-picker-remaining {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 3px;
    background: var(--primary-color);
    display: inline-block;
}

.ueathome-picker-remaining.is-complete {
    background: #1c7a34;
}

/* Grid: 4 desktop / 3 tablet / 2 mobile - matching the site's other grids */
.ueathome-picker-grid {
    grid-template-columns: repeat(4, 1fr);
}

.ueathome-picker-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ueathome-picker-item .ueathome-bundle-name {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stepper overlays the bottom of the image on a solid primary-color
   bar (matches the site's existing "Quick Add to Cart" hover pattern
   on shop-loop products), hidden until hover on devices that support
   it (desktop). Always visible on touch devices, since there is no
   hover there. */
.ueathome-picker-stepper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: #13a538e3;
    padding: 0;
	max-height: 32px;

}

/* Self-contained stepper button/input styles - deliberately NOT using
   Woodmart's .quantity/.minus/.plus/.qty classes here. Those classes
   are also bound to Woodmart's own global quantity-stepper JS, which
   was firing alongside ours on every click (each click incrementing
   twice). Same visual result, zero shared classes, zero JS conflict. */
.ueathome-picker-qty-minus,
.ueathome-picker-qty-plus {
    display: inline-block;
    min-width: 28px;
    min-height: 32px;
    padding: 0 5px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    box-shadow: none;
    cursor: pointer;
}
.ueathome-picker-qty-minus:hover,
.ueathome-picker-qty-plus:hover {
    background: transparent;
    color: #fff;
}

.ueathome-picker-panel .ueathome-picker-qty-value {
    display: inline-block;
    width: 30px;
    min-height: 32px;
    text-align: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
	font-weight: 800;
    appearance: textfield;
    -moz-appearance: textfield;
}
.ueathome-picker-qty-value::-webkit-outer-spin-button,
.ueathome-picker-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ueathome-picker-qty-plus:disabled,
.ueathome-picker-qty-minus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
    .ueathome-picker-stepper {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease;
    }
    .ueathome-picker-item:hover .ueathome-picker-stepper {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1199px) {
    .ueathome-picker-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ueathome-picker-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .ueathome-picker-toggle { flex-direction: column; }
}

/* Quantity badge on the "your box now contains" recap grid (duplicate meals) */
.ueathome-bundle-image {
    position: relative;
}
.ueathome-bundle-qty-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    min-width: 40px;
    border-radius: 0;
    background: #2cae46;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 40px;
    min-height: 40px;
}
