/* Moto Parts storefront — mobile first, inherits theme fonts/colours. */
.mp-vs { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; background: rgba(0, 0, 0, .02); }
.mp-vs__fields { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.mp-vs__field { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
.mp-vs__label { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mp-vs select { width: 100%; min-height: 44px; padding: .5rem; font-size: 1rem; }
.mp-vs select:disabled { opacity: .5; }
.mp-vs__go { min-height: 44px; align-self: end; }
.mp-vs__current[hidden] { display: none; }
.mp-vs__current { margin: .75rem 0 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mp-vs__reset { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; }
.mp-vs[aria-busy="true"] { cursor: progress; }
@media (min-width: 768px) { .mp-vs__fields { grid-template-columns: repeat(4, 1fr) auto; } }

.mp-fit { margin: 0 0 1rem; padding: .625rem .875rem; border-radius: 6px; border-left: 4px solid #8a8a8a; background: #f4f4f4; font-weight: 600; }
.mp-fit--yes { border-color: #1a7f37; background: #e9f6ec; color: #11592a; }
.mp-fit--maybe { border-color: #b26b00; background: #fff5e0; color: #6b4100; }
.mp-fit--no { border-color: #b42318; background: #fdecea; color: #7a1a12; }
.mp-fit--unknown { font-weight: 400; }

.mp-form { max-width: 640px; }
.mp-form p { margin: 0 0 1rem; }
.mp-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.mp-form input[type="text"], .mp-form input[type="email"], .mp-form input:not([type]), .mp-form select, .mp-form textarea { width: 100%; min-height: 44px; padding: .5rem; font-size: 1rem; }
.mp-form__types { border: 0; padding: 0; margin: 0 0 1rem; }
.mp-form__types label { font-weight: 400; display: flex; gap: .5rem; align-items: center; min-height: 44px; }
.mp-form__error { display: block; color: #b42318; font-size: .875rem; margin-top: .25rem; }
.mp-form [aria-invalid="true"] { border-color: #b42318; }
.mp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mp-company { font-style: normal; line-height: 1.6; }

.mp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mp-fitment { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.mp-fitment th, .mp-fitment td { padding: .5rem; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.mp-codes { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.mp-codes dt { font-weight: 600; }
.mp-codes dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }

/* Returns from an order: pick the order, then tick its items. */
.mp-ret-orders { margin: 0 0 2rem; }
.mp-ret-orders__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mp-ret-order { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; text-decoration: none; color: inherit; }
.mp-ret-order__no { font-weight: 600; }
.mp-ret-order__meta { grid-column: 1; font-size: .9rem; opacity: .75; }
.mp-ret-order__go { grid-column: 2; grid-row: 1 / 3; font-weight: 600; white-space: nowrap; }
.mp-ret-order__go::after { content: " →"; }
.mp-ret-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.mp-ret-head h2, .mp-ret-head p { margin: 0; }
.mp-ret-items { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.mp-ret-items legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.mp-ret-item { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .6rem .8rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; background: #fff; }
.mp-ret-item input[type="checkbox"] { width: 22px; height: 22px; margin: 0; }
.mp-form .mp-ret-item__label { display: flex; align-items: center; gap: .75rem; min-height: 44px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.mp-ret-item__img img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: rgba(0, 0, 0, .04); display: block; }
.mp-ret-item__text { display: grid; }
.mp-ret-item__name { font-weight: 600; }
.mp-ret-item__meta { font-size: .85rem; opacity: .75; }
.mp-form .mp-ret-item__qty { display: flex; align-items: center; gap: .4rem; margin: 0 !important; font-weight: 400 !important; }
.mp-ret-item__qty select { width: auto; min-height: 44px; }
.mp-ret-item:has(input:checked) { border-color: currentColor; }
.mp-form__row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .mp-form__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mp-ret-item { grid-template-columns: auto 1fr; } .mp-ret-item__qty { grid-column: 2; } .mp-ret-item__img { display: none; } }
