/* Local-only RFQ concept. Deliberately scoped away from checkout/cart forms. */
.popup.avm-rfq {
    --rfq-blue: #012fea;
    --rfq-ink: #171e32;
    --rfq-muted: #626b7d;
    box-sizing: border-box;
    display: none;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100% - 48px));
    max-width: none;
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 0;
    background: #fff;
    color: var(--rfq-ink);
    border-top: 3px solid var(--rfq-blue);
    box-shadow: 0 24px 80px #080a1d30;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    transition: none;
    font: 16px/1.45 Helvetica, Arial, sans-serif;
}
.popup.avm-rfq.active { display: block; }
.avm-rfq *, .avm-rfq *::before, .avm-rfq *::after { box-sizing: border-box; }
.avm-rfq [hidden] { display: none !important; }
.avm-rfq .avm-rfq__head { padding: 24px 32px 22px; position: relative; }
.avm-rfq .avm-rfq__brand { display: block; margin: 0 52px 10px 0; font: 700 11px/1.5 Helvetica, Arial, sans-serif; letter-spacing: .14em; color: var(--rfq-blue); }
.avm-rfq__brand > span { color: var(--rfq-muted); font-weight: 400; }
.avm-rfq h2 { margin: 0; padding: 0; font: 400 32px/1.2 'Akzidenz-Grotesk Pro Bold Ext', Helvetica, Arial, sans-serif; letter-spacing: -.025em; text-transform: none; color: var(--rfq-ink); }
.avm-rfq #avm-rfq-description { margin: 12px 0 0; max-width: 64ch; font: 14px/1.5 Helvetica, Arial, sans-serif; color: var(--rfq-muted); }
.avm-rfq .avm-rfq__close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 0; background: #eef1f6; display: grid; place-items: center; color: #28324a; cursor: pointer; }
.avm-rfq__close::before, .avm-rfq__close::after { display: none; }
.avm-rfq__close > span { font: 300 28px/1 Helvetica, Arial, sans-serif; }
.avm-rfq .avm-rfq__form { margin: 0; padding: 0 32px 16px; }
.avm-rfq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
.avm-rfq__contact, .avm-rfq__request { min-width: 0; }
.avm-rfq__request { border-left: 1px solid #e1e5ed; padding-left: 32px; }
.avm-rfq h3 { font: 700 15px/1.5 Helvetica, Arial, sans-serif; color: var(--rfq-ink); margin: 0 0 16px; padding: 0; text-transform: none; letter-spacing: 0; }
.avm-rfq .avm-rfq__field { display: block; margin: 0 0 12px; }
.avm-rfq__field > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; color: #313c51; font: 400 13px/1.4 Helvetica, Arial, sans-serif; margin-bottom: 6px; }
.avm-rfq b { color: var(--rfq-blue); font-weight: 400; }
.avm-rfq small { font-size: 12px; color: var(--rfq-muted); font-weight: 400; }
.avm-rfq input:not([type="checkbox"]):not([type="file"]), .avm-rfq select, .avm-rfq textarea {
    display: block; width: 100%; min-width: 0; border: 1px solid #c9d0dd; border-radius: 0; background: #fff; padding: 10px 12px; margin: 0; color: var(--rfq-ink); font: 400 16px/1.4 Helvetica, Arial, sans-serif; box-shadow: none; height: 44px;
}
.avm-rfq select { appearance: auto; padding-right: 8px; }
.avm-rfq textarea { min-height: 168px; height: 168px; resize: vertical; }
.avm-rfq input::placeholder, .avm-rfq textarea::placeholder { color: #778194; opacity: 1; font: inherit; }
.avm-rfq input:focus, .avm-rfq select:focus, .avm-rfq textarea:focus { outline: 2px solid #012fea25; outline-offset: 1px; border-color: var(--rfq-blue); }
.avm-rfq button:focus-visible, .avm-rfq summary:focus-visible, .avm-rfq input[type="checkbox"]:focus-visible { outline: 2px solid var(--rfq-blue); outline-offset: 3px; }
.avm-rfq__details > summary { display: none; }
.avm-rfq .avm-rfq__hint { margin: 0 0 14px; font: 13px/1.45 Helvetica, Arial, sans-serif; color: var(--rfq-muted); }
.avm-rfq .avm-rfq__message { margin-bottom: 8px; }
.avm-rfq .avm-rfq__upload { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px; border: 1px dashed #a9b6ca; background: #f6f8fb; cursor: pointer; margin: 0; }
.avm-rfq__upload:hover, .avm-rfq__upload:focus-within, .avm-rfq__upload.is-dragging { background: #edf2ff; border-color: var(--rfq-blue); }
.avm-rfq__upload > input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avm-rfq__upload > img { flex: 0 0 24px; height: 24px; width: 24px; }
.avm-rfq__upload > span { min-width: 0; }
.avm-rfq__upload strong { display: block; font: 700 14px/1.4 Helvetica, Arial, sans-serif; color: var(--rfq-ink); }
.avm-rfq__upload small { display: block; margin-top: 3px; line-height: 1.4; }
.avm-rfq__upload-plus { margin-left: auto; font: 24px/1 Helvetica, Arial, sans-serif; color: var(--rfq-blue); }
.avm-rfq .avm-rfq__files { list-style: none; margin: 0; padding: 0; max-height: 92px; overflow: auto; }
.avm-rfq__files li { display: flex; gap: 10px; align-items: center; font: 12px/1.4 Helvetica, Arial, sans-serif; border-bottom: 1px solid #e1e5ed; }
.avm-rfq__files li > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.avm-rfq__files button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font: 22px/1 Helvetica, Arial, sans-serif; color: #46536b; cursor: pointer; }
.avm-rfq .avm-rfq__request-note { margin-top: 12px; }
.avm-rfq .avm-rfq__error { font: 13px/1.5 Helvetica, Arial, sans-serif; color: #b32727; margin: 10px 0 0; }
.avm-rfq .avm-rfq__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0 0; margin-top: 12px; border-top: 1px solid #e1e5ed; }
.avm-rfq .avm-rfq__consent { display: flex; align-items: center; gap: 10px; max-width: 380px; min-height: 44px; margin: 0; font: 12px/1.5 Helvetica, Arial, sans-serif; color: #536079; cursor: pointer; }
.avm-rfq input[type="checkbox"] { appearance: auto; position: static; opacity: 1; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--rfq-blue); margin: 0; }
.avm-rfq .avm-rfq__send { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex: 0 0 auto; min-width: 232px; height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: 0; color: #fff; background: var(--rfq-blue); font: 700 15px/1.4 Helvetica, Arial, sans-serif; cursor: pointer; }
.avm-rfq__send > span { font-size: 23px; font-weight: 400; }
.avm-rfq__send:hover { background: #244ffc; }
.avm-rfq__send:disabled { cursor: default; opacity: .6; }
.avm-rfq .avm-rfq__preview-note { margin: 12px 0 0; font: 12px/1.5 Helvetica, Arial, sans-serif; color: #277148; text-align: right; }
.avm-rfq .avm-rfq__preview-note[data-error] { color: #9b2d30; }
.avm-rfq .avm-enquiry__trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.avm-rfq-open { overflow: hidden; }
body.avm-rfq-open .popup-overlay.active { z-index: 9999990; }
.avm-rfq #avm-rfq-title:focus { outline: none; }
@media (min-width: 701px) and (max-width: 1000px) {
    .popup.avm-rfq { width: min(800px, calc(100% - 40px)); }
    .avm-rfq .avm-rfq__head { padding: 24px 28px 20px; }
    .avm-rfq .avm-rfq__form { padding-inline: 28px; }
    .avm-rfq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; }
    .avm-rfq__request { padding-left: 24px; }
    .avm-rfq h2 { font-size: 28px; }
}
@media (max-width: 700px) {
    .popup.avm-rfq { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .avm-rfq .avm-rfq__head { padding: 18px 20px 16px; }
    .avm-rfq__brand { margin-bottom: 10px; }
    .avm-rfq h2 { font-size: 25px; line-height: 1.22; }
    .avm-rfq #avm-rfq-description { font-size: 13px; margin-top: 10px; }
    .avm-rfq .avm-rfq__close { top: 8px; right: 8px; background: transparent; }
    .avm-rfq .avm-rfq__form { padding: 0 20px 14px; }
    .avm-rfq__grid { display: block; }
    .avm-rfq__contact > h3, .avm-rfq__request > h3 { display: none; }
    .avm-rfq__request { border: 0; padding: 0; margin-top: 14px; }
    .avm-rfq .avm-rfq__field { margin-bottom: 10px; }
    .avm-rfq .avm-rfq__field > span { margin-bottom: 5px; }
    .avm-rfq__details > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; border-block: 1px solid #e1e5ed; cursor: pointer; list-style: none; font: 400 13px/1.4 Helvetica, Arial, sans-serif; }
    .avm-rfq__details > summary::-webkit-details-marker { display: none; }
    .avm-rfq__details > summary > span { font-size: 11px; color: var(--rfq-muted); }
    .avm-rfq__details > summary > i { width: 7px; height: 7px; border: solid #65718a; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -4px 4px 0 auto; flex: 0 0 7px; }
    .avm-rfq__details[open] > summary > i { transform: rotate(225deg); margin-top: 4px; }
    .avm-rfq__extra { padding-top: 12px; }
    .avm-rfq textarea { height: 94px; min-height: 94px; }
    .avm-rfq .avm-rfq__hint { font-size: 12px; margin-bottom: 10px; }
    .avm-rfq .avm-rfq__upload { min-height: 64px; padding: 10px 12px; gap: 10px; }
    .avm-rfq__upload strong { font-size: 13px; }
    .avm-rfq__upload small { font-size: 11px; }
    .avm-rfq .avm-rfq__request-note { display: none; }
    .avm-rfq .avm-rfq__foot { flex-direction: column; align-items: stretch; gap: 8px; border-top: 0; margin: 8px 0 0; padding: 0; }
    .avm-rfq .avm-rfq__send { width: 100%; min-width: 0; height: 48px; }
    .avm-rfq .avm-rfq__consent { font-size: 11px; }
    .avm-rfq .avm-rfq__preview-note { margin-top: 8px; font-size: 10px; text-align: center; }
}
@media (max-width: 359px) {
    .avm-rfq .avm-rfq__head { padding-inline: 16px; }
    .avm-rfq .avm-rfq__form { padding-inline: 16px; }
    .avm-rfq h2 { font-size: 23px; }
    .avm-rfq__details > summary { flex-wrap: wrap; column-gap: 5px; }
}
/* Short phone viewports: reduce decorative space, never the 16px input text or tap targets. */
@media (max-width: 700px) and (max-height: 740px) {
    .avm-rfq .avm-rfq__head { padding-top: 16px; padding-bottom: 12px; }
    .avm-rfq .avm-rfq__brand { display: none; }
    .avm-rfq h2 { padding-right: 26px; font-size: 22px; }
    .avm-rfq #avm-rfq-description { display: none; }
    .avm-rfq .avm-rfq__field { margin-bottom: 8px; }
    .avm-rfq__request { margin-top: 10px; }
    .avm-rfq textarea { height: 80px; min-height: 80px; }
    .avm-rfq .avm-rfq__form { padding-bottom: 10px; }
    .avm-rfq .avm-rfq__preview-note { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .avm-rfq * { transition: none !important; } }
