/* Frequently Bought Together Styles */
.frequently-product-item {
    position: relative;
}

.frequently-product-item .frequently-checkbox {
    appearance: auto;
    -webkit-appearance: checkbox;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    background: white;
    z-index: 30;
}

.frequently-product-item .frequently-checkbox:checked {
    background-color: #000;
    border-color: #000;
}

.frequently-bundle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .frequently-bundle-grid {
        grid-template-columns: 60% auto;
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .frequently-bundle-grid {
        grid-template-columns: 70% auto;
        gap: 3rem;
    }
}

/* Fix carousel overflow on mobile */
.frequently-products-carousel .embla {
    overflow: hidden;
}

.frequently-products-carousel .embla__viewport {
    overflow: visible;
}

.frequently-products-carousel .embla__container {
    display: flex;
}

/* Remove negative margin on mobile */
@media (max-width: 767px) {
    .frequently-products-carousel .embla__container {
        margin-left: 0 !important;
    }

    .frequently-products-carousel .embla__slide:first-child {
        padding-left: 0 !important;
    }
}

.frequently-selected-items {
    max-height: 16rem;
    overflow-y: auto;
}

.frequently-summary {
    position: sticky;
    top: 100px;
}

.frequently-summary h3 {
    font-size: 2.2rem;
    padding-bottom: 0.8rem;
}

.frequently-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.frequently-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}