/* ============================================================
   Quote Request Plugin – Front-end Styles
   ============================================================ */

.qr-button-wrap {
    display: block !important;
    visibility: visible !important;
    margin-top: 12px;
}
.qr-button-wrap .qr-add-to-quote,
.qr-button-wrap .qr-browse-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.qr-add-to-quote {
    background-color: #4a90d9 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    transition: background 0.2s ease;
}
.qr-add-to-quote:hover { background-color: #357abd !important; }
.qr-add-to-quote:disabled { opacity: 0.6; cursor: default !important; }

.qr-browse-link {
    display: inline-block;
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    text-decoration: none;
    transition: background 0.2s ease;
}
.qr-browse-link:hover { background-color: #1e7e34 !important; color: #fff !important; }

/* Notices */
.qr-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.qr-notice--success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.qr-notice--error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.qr-notice ul { margin: 0; padding-left: 20px; }

/* Quote List Page */
.qr-quote-list-page { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.qr-page-title { font-size: 26px; margin-bottom: 20px; }
.qr-empty-notice { font-size: 15px; color: #555; }

/* Products table */
.qr-products-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.qr-products-table thead th { background: #4a90d9; color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.qr-products-table tbody tr:nth-child(even) { background: #f5f5f5; }
.qr-products-table td { padding: 10px 14px; border-bottom: 1px solid #e0e0e0; vertical-align: middle; }
.qr-product-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.qr-product-link:hover { text-decoration: underline; }
.qr-product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.qr-qty-input { width: 70px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; text-align: center; }

/* Update row */
.qr-update-row { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.qr-update-btn { background-color: #6c757d !important; color: #fff !important; border: none !important; padding: 10px 20px !important; border-radius: 4px !important; cursor: pointer !important; font-size: 14px !important; transition: background 0.2s ease; }
.qr-update-btn:hover { background-color: #5a6268 !important; }
.qr-update-hint { color: #888; }

/* Request Form */
.qr-request-form-wrap { border-top: 2px solid #4a90d9; padding-top: 30px; margin-top: 10px; }
.qr-form-title { font-size: 20px; margin-bottom: 20px; }
.qr-field-row { display: flex; flex-direction: column; margin-bottom: 16px; }
.qr-label { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.qr-required { color: #e00; margin-left: 2px; }
.qr-input, .qr-textarea { width: 100%; max-width: 560px; padding: 9px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; color: #333; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.qr-input:focus, .qr-textarea:focus { border-color: #4a90d9; box-shadow: 0 0 0 3px rgba(74,144,217,0.2); outline: none; }
.qr-textarea { resize: vertical; }
.qr-submit-row { margin-top: 24px; }
.qr-submit-btn { padding: 12px 30px !important; font-size: 15px !important; border-radius: 4px !important; }

@media ( max-width: 600px ) {
    .qr-products-table thead { display: none; }
    .qr-products-table tbody tr { display: block; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 4px; }
    .qr-products-table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #eee; }
}
