.ts-quick-selection-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f7f1;
    border-radius: 8px;
    border: 1px solid rgba(156, 140, 108, 0.5);
}

.ts-quick-selection-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-quick-selection-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.ts-quick-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(25% - 8px);
    max-width: calc(25% - 8px);
    min-width: 0;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ts-quick-box:hover {
    border-color: #333;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ts-quick-box.selected {
    border-color: #8A7F6A;
    background: #F3F1EC;
    box-shadow: 0 0 0 1px #8A7F6A;
}

.ts-quick-box-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.ts-quick-box-stock {
    font-size: 11px;
    color: #7A6A55;
    margin-top: 4px;
    font-weight: 500;
}

.ts-quick-box-price {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .ts-quick-selection-boxes {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ts-quick-box {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 10px 12px;
    }
    
    .ts-quick-box-label {
        font-size: 12px;
    }
}

/* Delivery Info Box */
.ts-quick-selection-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0 0 0;
    padding: 16px 18px;
    background: #EFEDE7;
    border: 1px solid #CFC8BC;
    border-radius: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.ts-quick-selection-info.visible {
    opacity: 1;
    max-height: 200px;
    margin-top: 15px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.ts-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #5C5A55;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.ts-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.ts-info-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* In Stock Badge */
.ts-in-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    pointer-events: none;
}

/* Badge for single product page - Flatsome compatibility */
.product-gallery {
    position: relative !important;
}

.product-gallery .ts-in-stock-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

/* WooCommerce default gallery */
.woocommerce-product-gallery {
    position: relative !important;
}

.woocommerce-product-gallery .ts-in-stock-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

/* Badge for shop/archive pages */
.ts-in-stock-badge-shop {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 100;
}

/* Made to Order Badge */
.ts-made-to-order-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #9d8c6c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    pointer-events: none;
}

/* Prevent flash on single product page; JS will show when applicable */
.single-product .product-gallery .ts-made-to-order-badge,
.single-product .woocommerce-product-gallery .ts-made-to-order-badge {
    display: none;
}

/* Made to Order Badge for single product page */
.product-gallery .ts-made-to-order-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

.woocommerce-product-gallery .ts-made-to-order-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

/* Made to Order Badge for shop/archive pages */
.ts-made-to-order-badge-shop {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 99;
}

/* Flatsome shop page compatibility */
.box-image {
    position: relative;
}

.woocommerce ul.products li.product .box-image,
.woocommerce ul.products li.product .product-image {
    position: relative;
}
