/* TAM Quote Manager - Public Styles */

/* ============================================================
   Cart Button
   ============================================================ */
.tqm-request-quote-btn {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    background-color: #2c3e50;
    color: #fff !important;
    border-color: #2c3e50;
}

.tqm-request-quote-btn:hover {
    background-color: #1a252f;
    color: #fff !important;
}

/* ============================================================
   Quote form page
   ============================================================ */
.tqm-quote-form-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.tqm-intro {
    color: #666;
    margin-bottom: 24px;
}

.tqm-cart-preview {
    margin-bottom: 40px;
    width: 100%;
}

.tqm-cart-preview td img,
.tqm-quoted-items td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 4px;
}

.tqm-contact-form {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    margin-top: 32px;
}

.tqm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tqm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tqm-field label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.tqm-field input,
.tqm-field textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.tqm-field input:focus,
.tqm-field textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44,62,80,0.1);
}

.tqm-submit-btn {
    background: #2c3e50 !important;
    color: #fff !important;
    border-color: #2c3e50 !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
}

.tqm-submit-btn:hover {
    background: #1a252f !important;
}

/* Messages */
#tqm-form-messages {
    margin-bottom: 16px;
}

.tqm-success,
.tqm-success-msg {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    padding: 12px 16px;
}

.tqm-error,
.tqm-error-msg {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    padding: 12px 16px;
}

/* ============================================================
   Quote view page
   ============================================================ */
.tqm-quote-view {
    max-width: 960px;
    margin: 0 auto;
}

.tqm-status-banner {
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
}

.tqm-status-pending,
.tqm-status-reviewing {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.tqm-status-quoted {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.tqm-status-accepted,
.tqm-status-ordered {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.tqm-status-declined,
.tqm-status-expired {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.tqm-quoted-items {
    width: 100%;
    margin-bottom: 24px;
}

.tqm-quoted-items .tqm-col-check {
    width: 50px;
    text-align: center;
}

.tqm-item-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tqm-price-lower {
    color: #27ae60;
    font-weight: 600;
}

.tqm-saving {
    font-size: 11px;
    color: #27ae60;
    display: block;
}

.tqm-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tqm-accept-btn {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.tqm-accept-btn:hover {
    background: #1e8449 !important;
}

.tqm-decline-btn {
    background: #fff !important;
    color: #e74c3c !important;
    border-color: #e74c3c !important;
    padding: 12px 20px !important;
}

.tqm-admin-note-box {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

.tqm-expired-msg {
    color: #e74c3c;
    font-style: italic;
}

/* ============================================================
   Badges
   ============================================================ */
.tqm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.tqm-status-pending   { background:#fff3cd; color:#856404; }
.tqm-status-reviewing { background:#cce5ff; color:#004085; }
.tqm-status-quoted    { background:#d4edda; color:#155724; }
.tqm-status-accepted  { background:#d1ecf1; color:#0c5460; }
.tqm-status-declined  { background:#f8d7da; color:#721c24; }
.tqm-status-ordered   { background:#d6d8d9; color:#1b1e21; }
.tqm-status-expired   { background:#e2e3e5; color:#383d41; }

/* ============================================================
   My Quotes (account page)
   ============================================================ */
.tqm-my-quotes .tqm-badge {
    font-size: 11px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .tqm-field-row {
        grid-template-columns: 1fr;
    }

    .tqm-quoted-items .tqm-col-check {
        display: none;
    }

    /* Stack on mobile: show checkbox inline with product name */
    .tqm-quoted-items .tqm-item-check {
        margin-right: 8px;
    }

    .tqm-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
