﻿/* Product Quantity Limit Widget Styles */

.pql-container {
    width: 100%;
}

.pql-row {
    display: flex;
    gap: 50px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.pql-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* Quantity Section */
.pql-quantity-section {
    flex-shrink: 0;
}

.pql-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
}

.pql-container .pql-qty-btn {
    width: 45px;
    height: 52px;
    border: none !important;
    background: transparent;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
}

.pql-qty-btn:hover {
    color: #333;
}

.pql-container .pql-qty-input {
    width: 90px;
    height: 52px;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

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

.pql-qty-input:focus {
    outline: none;
}

/* Warning Message */
.pql-warning {
    color: #e67e22;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    width: 100%;
}

/* Limit Table Section */
.pql-limit-section {
    flex-shrink: 0;
}

.pql-limit-table {
    border: 2px solid #e67e22;
    display: inline-block;
}

.pql-limit-header {
    display: flex;
    background: #e67e22;
}

.pql-limit-header span {
    width: 100px;
    padding: 4px 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.pql-limit-body {
    display: flex;
    background: #fff;
}

.pql-limit-body span {
    width: 100px;
    padding: 4px 15px;
    font-size: 13px;
    color: #333;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.pql-limit-body span:first-child {
    border-right: 1px solid #e67e22;
}

/* Add to Quote Button */
.pql-add-btn {
    width: 100%;
    padding: 14px 30px;
    background: #e67e22;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    text-transform: none;
}

.pql-add-btn:hover {
    background: #d35400;
}

.pql-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 767px) {
    .pql-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .pql-quantity-wrapper {
        width: 100%;
        display: flex;
    }
    
    .pql-qty-input {
        flex: 1;
    }
    
    .pql-limit-table {
        width: 100%;
        display: block;
    }
    
    .pql-limit-header,
    .pql-limit-body {
        display: flex;
    }
    
    .pql-limit-header span,
    .pql-limit-body span {
        flex: 1;
        width: auto;
    }
}
