/* Custom Product Selector - Frontend Styles */

.cps-products-wrapper {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.cps-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cps-product-card:last-child {
    border-bottom: none;
}

.cps-product-image {
    flex-shrink: 0;
    display: block;
}

.cps-product-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    border: 1px solid #eee;
}

.cps-product-info {
    flex: 1 1 320px;
    min-width: 200px;
}

.cps-product-title {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #3a3a3a;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cps-product-title:hover {
    color: #6e1233;
}

.cps-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.cps-product-price del {
    font-weight: 400;
    color: #999;
    margin-right: 6px;
}

.cps-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cps-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.cps-qty-btn {
    background: #fff;
    border: none;
    width: 36px;
    height: 44px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.cps-qty-btn:hover {
    background: #f5f5f5;
}

.cps-qty-input {
    width: 44px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    font-size: 15px;
    -moz-appearance: textfield;
}

.cps-qty-input::-webkit-outer-spin-button,
.cps-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cps-add-to-cart,
.cps-buy-now {
    padding: 0 24px;
    height: 44px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.cps-add-to-cart {
    background-color: #6e1233;
    color: #fff;
}

.cps-buy-now {
    background-color: #1a1a1a;
    color: #fff;
}

.cps-add-to-cart:hover,
.cps-buy-now:hover {
    opacity: 0.85;
}

.cps-add-to-cart.cps-loading,
.cps-buy-now.cps-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .cps-product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cps-product-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
