/* =============================================
   ADD TO QUOTE BUTTON
   ============================================= */
.rqr-add-to-quote-btn {
    background-color: #F37548;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rqr-add-to-quote-btn:hover {
    background-color: #d96238;
    transform: translateY(-1px);
}
.rqr-add-to-quote-btn.rqr-added {
    background-color: #28a745;
    cursor: default;
}
.rqr-add-to-quote-btn.rqr-added:hover {
    background-color: #28a745;
    transform: none;
}

/* Loop (grid) version */
.rqr-loop-btn {
    padding: 10px 16px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* =============================================
   FLOATING WIDGET
   ============================================= */
#rqr-floating-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999998;
    background: linear-gradient(135deg, #F37548 0%, #d96238 100%);
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(243,117,72,0.4);
    font-family: inherit;
    animation: rqr-pulse 2s infinite;
}
@keyframes rqr-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(243,117,72,0.4); }
    50% { box-shadow: 0 4px 30px rgba(243,117,72,0.65); }
}
#rqr-widget-count {
    background: #fff;
    color: #F37548;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}
#rqr-widget-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
#rqr-widget-open {
    background: #fff;
    color: #F37548;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}
#rqr-widget-open:hover {
    background: #4a4a4a;
    color: #fff;
}

/* =============================================
   MODAL
   ============================================= */
.rqr-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.rqr-modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 520px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.rqr-close {
    background-color: #F37548;
    color: white;
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}
.rqr-close:hover {
    background-color: #d96238;
}
.rqr-modal-content h2 {
    text-align: center;
    color: #4a4a4a;
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* =============================================
   PRODUCT LIST IN MODAL
   ============================================= */
#rqr-product-list {
    margin-bottom: 18px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}
.rqr-products-header {
    font-size: 13px;
    font-weight: 600;
    color: #F37548;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    background: #FFF5F1;
}
.rqr-product-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}
.rqr-product-item:last-child {
    border-bottom: none;
}
.rqr-product-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.rqr-product-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}
.rqr-product-remove {
    width: 24px;
    height: 24px;
    background: #fee;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    transition: background 0.2s;
}
.rqr-product-remove:hover {
    background: #dc3545;
    color: #fff;
}
.rqr-no-products {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* =============================================
   FORM FIELDS
   ============================================= */
.rqr-form-group {
    margin-bottom: 12px;
}
.rqr-icon-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rqr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background-color: #FFF0EB;
    border: 1px solid #F37548;
    border-radius: 50%;
    flex-shrink: 0;
}
.rqr-icon-group input[type="text"],
.rqr-icon-group input[type="tel"],
.rqr-icon-group input[type="email"],
.rqr-icon-group select,
.rqr-icon-group textarea {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
    font-size: 14px;
    color: #555;
    outline: none;
    transition: border-color 0.3s;
}
.rqr-icon-group input:focus,
.rqr-icon-group select:focus,
.rqr-icon-group textarea:focus {
    border-color: #F37548;
}
.rqr-icon-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Checkbox */
.rqr-checkbox-group {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}
.rqr-checkbox-group input {
    margin-right: 10px;
    margin-top: 2px;
}

/* Submit */
.rqr-submit-btn {
    background-color: #F37548;
    color: white;
    padding: 15px;
    border: none;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.rqr-submit-btn:hover {
    background-color: #d96238;
}
.rqr-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Response */
#rqr-form-response {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}
.rqr-success { color: #28a745; }
.rqr-error { color: #dc3545; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
    #rqr-floating-widget {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        gap: 6px;
        border-radius: 40px;
    }
    #rqr-widget-label {
        display: none;
    }
    #rqr-widget-open {
        font-size: 11px;
        padding: 6px 12px;
    }
    .rqr-modal-content {
        margin: 12% auto;
        padding: 20px 15px 15px 15px;
        width: 90%;
    }
    .rqr-close {
        top: -12px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .rqr-modal-content h2 {
        font-size: 17px;
        margin-bottom: 15px;
    }
    .rqr-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    .rqr-icon svg {
        width: 16px;
        height: 16px;
    }
    .rqr-icon-group input[type="text"],
    .rqr-icon-group input[type="tel"],
    .rqr-icon-group input[type="email"],
    .rqr-icon-group select,
    .rqr-icon-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    .rqr-form-group {
        margin-bottom: 10px;
    }
}
