/* Modifyd OEM compatibility selector (Audi / BMW). Every rule is scoped under .mfoem and written with enough
   specificity to beat generic theme/Elementor "button:hover" rules (Avanam, TemplateMela). */
.mfoem{--mfoem-accent:#EC1C24;--mfoem-line:#d9d9d9;--mfoem-text:#222;--mfoem-muted:#5c5c5c;box-sizing:border-box;margin:0 0 20px;padding:16px;background:#f7f7f7;border:1px solid #e2e2e2;border-radius:12px;font-family:inherit;color:var(--mfoem-text);min-width:0;max-width:100%;overflow:hidden}
.mfoem *,.mfoem *::before,.mfoem *::after{box-sizing:border-box}
.mfoem .mfoem__label{font-weight:700;font-size:16px;line-height:1.35;margin:0 0 10px;color:#111}
.mfoem .mfoem__bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.mfoem .mfoem__options{display:flex;flex-wrap:wrap;gap:8px;min-width:0}

/* Option buttons: neutral by default, red only when selected. */
.mfoem .mfoem__opt{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;padding:10px 16px;border:1.5px solid var(--mfoem-line);border-radius:10px;background:#fff;color:var(--mfoem-text);font-size:15px;font-weight:600;line-height:1.3;text-align:center;overflow-wrap:anywhere;transition:border-color .2s,background-color .2s,color .2s}
.mfoem .mfoem__opt:active,.mfoem .mfoem__opt:focus{background:#fff;color:var(--mfoem-text);border-color:var(--mfoem-line);box-shadow:none}
.mfoem .mfoem__opt.is-selected,.mfoem .mfoem__opt.is-selected:active,.mfoem .mfoem__opt.is-selected:focus{border-color:var(--mfoem-accent);background:rgba(236,28,36,.06);color:#111;box-shadow:none}
@media (hover:hover){
  .mfoem .mfoem__opt:hover{border-color:#a8a8a8;background:#fff;color:var(--mfoem-text)}
  .mfoem .mfoem__opt.is-selected:hover{border-color:var(--mfoem-accent);background:rgba(236,28,36,.06);color:#111}
}
.mfoem .mfoem__opt:focus-visible,.mfoem .mfoem__clear:focus-visible{outline:3px solid #111;outline-offset:2px}

/* Clear: a neutral text link in every state (never a solid red button). */
.mfoem .mfoem__clear,.mfoem .mfoem__clear:hover,.mfoem .mfoem__clear:active,.mfoem .mfoem__clear:focus{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;padding:0 6px;font-size:14px;line-height:1.3;color:var(--mfoem-muted);background:transparent;border:0;box-shadow:none;text-decoration:underline;text-underline-offset:3px;-webkit-tap-highlight-color:transparent}
.mfoem .mfoem__clear:focus-visible{outline:3px solid #111;outline-offset:2px}
@media (hover:hover){.mfoem .mfoem__clear:hover{color:#111;background:transparent;border:0;box-shadow:none;text-decoration:underline}}
.mfoem .mfoem__clear:active{color:#111;background:transparent}
.mfoem [hidden]{display:none!important}

.mfoem .mfoem__error{margin:10px 0 0;padding:8px 12px;border-left:4px solid var(--mfoem-accent);background:rgba(236,28,36,.06);font-size:14px}
.mfoem .mfoem__panels{margin-top:12px}
.mfoem .mfoem__panel{font-size:15px;line-height:1.65;min-width:0}
.mfoem .mfoem__short{margin:0 0 8px;color:var(--mfoem-muted)}
.mfoem .mfoem__meta{margin:0 0 10px;padding:0;display:grid;gap:4px}
.mfoem .mfoem__meta div{display:flex;flex-wrap:wrap;gap:2px 8px}
.mfoem .mfoem__meta dt{margin:0;font-weight:700}
.mfoem .mfoem__meta dt::after{content:":"}
.mfoem .mfoem__meta dd{margin:0;overflow-wrap:anywhere}
.mfoem .mfoem__detail p,.mfoem .mfoem__how p{margin:0 0 8px}
.mfoem .mfoem__detail ul,.mfoem .mfoem__how ul{margin:6px 0 10px;padding-left:20px}

/* Identification images: centred below the text, aspect ratio kept, never wider than the container. */
.mfoem .mfoem__imgs{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px;margin:12px 0 0;width:100%}
.mfoem .mfoem__fig{margin:0 auto;flex:1 1 260px;min-width:0;max-width:560px;text-align:center}
.mfoem .mfoem__fig img{display:block;width:100%;max-width:100%;height:auto;margin:0 auto;object-fit:contain;border-radius:12px;background:#f0f0f0}
.mfoem .mfoem__fig figcaption{margin-top:6px;font-size:13.5px;line-height:1.45;color:var(--mfoem-muted);text-align:center}
@media (max-width:480px){.mfoem{padding:12px}.mfoem .mfoem__options{width:100%}.mfoem .mfoem__opt{flex:1 1 calc(50% - 8px)}.mfoem .mfoem__opt:only-child{flex-basis:100%}.mfoem .mfoem__fig{flex-basis:100%}}
@media (prefers-reduced-motion:reduce){.mfoem .mfoem__opt{transition:none}}
