/*!
 * Universal RFQ entry — button + quick-quotation modal styles.
 * Neutral, token-driven, RTL-aware. Loaded only on pages where an RFQ button renders.
 */
.rfq-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid var(--rfq-accent, #2563eb);
    color: var(--rfq-accent, #2563eb);
    background: transparent;
    border-radius: 8px;
    padding: 8px 14px;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.rfq-entry-btn:hover { background: var(--rfq-accent, #2563eb); color: #fff; }
.rfq-entry-btn__icon { font-size: 18px; line-height: 1; }
.rfq-entry-btn--card { width: 100%; justify-content: center; padding: 7px 10px; font-size: 13px; }
.rfq-entry-btn--detail { padding: 11px 20px; font-size: 15px; }
.rfq-entry-btn--icon { padding: 8px; border-radius: 50%; }
.rfq-entry-btn--disabled,
.rfq-entry-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    border-color: #9aa4b2;
    color: #6b7280;
    background: transparent;
}
.rfq-entry-btn--disabled:hover { background: transparent; color: #6b7280; }

/* ---- modal ---- */
.rfq-modal { position: fixed; inset: 0; z-index: 10050; display: none; }
.rfq-modal.is-open { display: block; }
body.rfq-modal-open { overflow: hidden; }
.rfq-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.rfq-modal__dialog {
    position: relative;
    max-width: 480px;
    width: calc(100% - 32px);
    margin: 6vh auto;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--rfq-surface, #fff);
    color: var(--rfq-ink, #0f172a);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .3);
    padding: 24px;
}
.rfq-modal__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 0;
}
.rfq-modal__title { font-size: 19px; font-weight: 700; margin: 0 0 16px; padding-inline-end: 28px; }
.rfq-modal__loading { display: flex; align-items: center; gap: 10px; padding: 28px 0; color: #64748b; }

.rfq-spinner {
    width: 20px; height: 20px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--rfq-accent, #2563eb);
    border-radius: 50%;
    animation: rfq-spin .7s linear infinite;
}
@keyframes rfq-spin { to { transform: rotate(360deg); } }

/* ---- target summary ---- */
.rfq-target { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--rfq-muted, #f1f5f9); border-radius: 10px; margin-bottom: 16px; }
.rfq-target__img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; }
.rfq-target__name { font-weight: 600; font-size: 14px; }
.rfq-target__supplier { font-size: 13px; color: #475569; margin-top: 2px; }
.rfq-target__moq { font-size: 12px; color: #64748b; margin-top: 2px; }
.rfq-verified { color: #16a34a; font-weight: 700; }

/* ---- form ---- */
.rfq-field { display: block; margin-bottom: 14px; }
.rfq-field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rfq-input {
    width: 100%;
    border: 1px solid var(--rfq-border, #cbd5e1);
    border-radius: 8px;
    padding: 9px 11px;
    font: inherit;
    color: inherit;
    background: #fff;
}
.rfq-input:focus { outline: none; border-color: var(--rfq-accent, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.rfq-qty-row { display: flex; gap: 8px; }
.rfq-input--unit { width: 42%; flex: none; }
.rfq-input--file { padding: 7px; }
.rfq-field__error { display: block; color: #dc2626; font-size: 12px; margin-top: 4px; }
.rfq-guest-hint { font-size: 12px; color: #64748b; background: var(--rfq-muted, #f1f5f9); padding: 8px 10px; border-radius: 8px; }

.rfq-modal__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.rfq-submit {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; cursor: pointer;
    background: var(--rfq-accent, #2563eb); color: #fff;
    font-weight: 600; padding: 10px 18px; font-size: 14px; text-decoration: none;
}
.rfq-submit:disabled { opacity: .7; cursor: progress; }
.rfq-link { color: var(--rfq-accent, #2563eb); font-size: 13px; text-decoration: none; }
.rfq-link:hover { text-decoration: underline; }

/* ---- notices ---- */
.rfq-notice { border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.rfq-notice--success { background: #dcfce7; color: #166534; }
.rfq-notice--info { background: #dbeafe; color: #1e40af; }
.rfq-notice--warn { background: #fef9c3; color: #854d0e; }
.rfq-notice--error { background: #fee2e2; color: #991b1b; }

/* ---- RTL ---- */
[dir="rtl"] .rfq-modal__actions { justify-content: flex-start; }
