/* MYLOCALEXPLORE 2.6.02 — Boutique du camping, intégrée à « Mon logement » (même style que les cartes du logement) */
:root { --mle-shop-green: #2563eb; --mle-shop-ink: #0f172a; --mle-shop-muted: #64748b; --mle-shop-line: #e2e8f0; --mle-shop-soft: #f8fafc; }
.mle-shop-section { border-radius: 1rem; border: 1px solid rgba(226,232,240,.9); background: #fff; padding: 1.25rem; box-shadow: 0 2px 12px rgba(0,0,0,.04); color: #334155; font: inherit; font-size: .875rem; line-height: 1.25rem; }
.mle-shop-head { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--mle-shop-ink); }
.mle-shop-ico { width: 18px; height: 18px; color: #2563eb; flex: none; }
.mle-shop-sub { margin: .5rem 0 0; color: #475569; font-size: .875rem; }
.mle-shop-tabs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.mle-shop-tab { border: 0; background: #f1f5f9; color: #334155; border-radius: 999px; height: 2.25rem; padding: 0 1rem; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mle-shop-tab.is-on { background: #2563eb; color: #fff; }
.mle-shop-body { margin-top: .75rem; }
.mle-shop-intro, .mle-shop-muted { color: var(--mle-shop-muted); font-size: .875rem; }
.mle-shop-cat { margin: 1rem 0 .25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.mle-shop-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; margin: .5rem 0; border-radius: .75rem; background: #f8fafc; }
.mle-shop-item img { width: 52px; height: 52px; object-fit: cover; border-radius: .75rem; flex: none; }
.mle-shop-item-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: .875rem; font-weight: 700; color: var(--mle-shop-ink); }
.mle-shop-item-txt span { color: var(--mle-shop-muted); font-size: .75rem; font-weight: 400; }
.mle-shop-item-txt em { font-style: normal; font-size: .875rem; color: #2563eb; font-weight: 700; margin-top: 2px; }
.mle-shop-qty { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--mle-shop-ink); }
.mle-shop-qty button { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--mle-shop-line); background: #fff; font-size: 1rem; cursor: pointer; color: var(--mle-shop-ink); }
.mle-shop-qty button[data-inc] { background: #2563eb; color: #fff; border-color: #2563eb; }
.mle-shop-qty button:disabled { opacity: .35; }
.mle-shop-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 2.5rem; margin-top: 1rem; background: #2563eb; color: #fff; border: 0; border-radius: 999px; padding: 0 1.25rem; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mle-shop-cta:hover { background: #1d4ed8; }
.mle-shop-cta:disabled { opacity: .6; }
.mle-shop-ghost { width: 100%; margin: .25rem 0 .75rem; background: #fff; border: 1px dashed #2563eb; color: #2563eb; border-radius: .75rem; padding: .625rem; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mle-shop-line { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--mle-shop-line); }
.mle-shop-total { font-weight: 700; color: var(--mle-shop-ink); border-bottom: 0; }
.mle-shop-note { background: #fefce8; color: #854d0e; border-radius: .75rem; padding: .5rem .75rem; font-size: .75rem; }
.mle-shop-ok { background: #ecfdf5; color: #047857; border-radius: .75rem; padding: .5rem .75rem; font-size: .875rem; }
.mle-shop-err { color: #b91c1c; font-size: .875rem; }
.mle-shop-form { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.mle-shop-form label { display: flex; flex-direction: column; gap: .25rem; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.mle-shop-form input, .mle-shop-form textarea, .mle-shop-send input { font: inherit; font-size: .875rem; text-transform: none; letter-spacing: normal; color: var(--mle-shop-ink); padding: .5rem .75rem; border: 1px solid var(--mle-shop-line); border-radius: .75rem; background: #f8fafc; width: 100%; box-sizing: border-box; }
.mle-shop-form input.mle-shop-code { text-transform: uppercase; letter-spacing: .3em; max-width: 140px; font-family: ui-monospace, monospace; font-weight: 600; }
.mle-shop-form fieldset { border: 0; padding: 0; margin: 0; }
.mle-shop-form legend { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; margin-bottom: .25rem; }
.mle-shop-form .mle-shop-radio { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; font-size: .875rem; text-transform: none; letter-spacing: normal; color: #334155; padding: .25rem 0; }
.mle-shop-link { background: none; border: 0; padding: 0; color: #2563eb; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mle-shop-danger { color: #b91c1c; margin-top: .5rem; }
.mle-shop-order { border-radius: .75rem; background: #f8fafc; margin: .5rem 0; overflow: hidden; }
.mle-shop-order-head, .mle-sa-order-head { width: 100%; display: flex; justify-content: space-between; gap: .75rem; align-items: center; text-align: left; background: transparent; border: 0; padding: .75rem; cursor: pointer; font: inherit; color: inherit; }
.mle-shop-order-head b { color: var(--mle-shop-ink); font-size: .875rem; }
.mle-shop-order-head small, .mle-sa-order-head small { color: var(--mle-shop-muted); font-size: .75rem; }
.mle-shop-order-body, .mle-sa-order-body { padding: 0 .75rem .75rem; }
.mle-shop-st { white-space: nowrap; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; background: #e2e8f0; }
.mle-shop-st-pending { background: #fef3c7; color: #92400e; }
.mle-shop-st-accepted, .mle-shop-st-preparing { background: #dbeafe; color: #1e40af; }
.mle-shop-st-ready { background: #d1fae5; color: #047857; }
.mle-shop-st-delivered { background: #e2e8f0; color: #334155; }
.mle-shop-st-refused, .mle-shop-st-cancelled { background: #fee2e2; color: #991b1b; }
.mle-shop-thread { display: flex; flex-direction: column; gap: .375rem; max-height: 260px; overflow: auto; margin: .5rem 0; }
.mle-shop-msg { max-width: 82%; padding: .5rem .75rem; border-radius: .75rem; font-size: .875rem; white-space: pre-wrap; }
.mle-shop-msg small { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.mle-shop-msg-host { align-self: flex-start; background: #fff; border: 1px solid var(--mle-shop-line); }
.mle-shop-msg-me { align-self: flex-end; background: #2563eb; color: #fff; }
.mle-shop-send { display: flex; gap: .375rem; }
.mle-shop-send button { border: 0; background: #2563eb; color: #fff; border-radius: 999px; padding: 0 1rem; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }

/* Espace gérant (wp-admin) */
.mle-shop-admin .mle-sa-body { max-width: 1000px; }
.mle-sa-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.mle-sa-prep { background: #fff; border-left: 4px solid var(--mle-shop-green); padding: 10px 12px; }
.mle-sa-order { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; margin: 8px 0; }
.mle-sa-order.is-new { border-color: var(--mle-shop-green); box-shadow: 0 0 0 2px rgba(13, 134, 92, .15); }
.mle-sa-actions .button { margin-right: 4px; }
.mle-sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; background: #fff; padding: 14px; border: 1px solid #dcdcde; border-radius: 8px; }
.mle-sa-fld { display: flex; flex-direction: column; gap: 4px; }
.mle-sa-fld > span { font-weight: 600; }
.mle-sa-fld input[type=text], .mle-sa-fld input:not([type]), .mle-sa-fld input[type=number], .mle-sa-fld select, .mle-sa-fld textarea { width: 100%; }
.mle-sa-del { color: #b32d2e; }

/* Center quantity icons independently of font metrics and theme padding. */
.mle-shop-qty button[data-inc], .mle-shop-qty button[data-dec] { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; box-sizing: border-box; flex: 0 0 2rem; }
.mle-shop-qty button[data-inc] svg, .mle-shop-qty button[data-dec] svg { display: block; width: 1.4rem; height: 1.4rem; flex: none; margin: 0; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; pointer-events: none; }

/* 1.6.4 — compact mobile catalogue */
.mle-shop-section { padding: .8rem; }
.mle-shop-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.3rem; padding:.25rem; background:#f1f5f9; border-radius:.85rem; }
.mle-shop-tab { height:auto; min-height:2.5rem; padding:.35rem .2rem; font-size:.75rem; border-radius:.65rem; overflow-wrap:anywhere; }
.mle-shop-filters { display:flex; gap:.4rem; overflow-x:auto; padding:.15rem 0 .4rem; }
.mle-shop-filter { flex:none; display:flex; align-items:center; gap:.3rem; border:1px solid #e2e8f0; border-radius:.75rem; background:white; color:#334155; padding:.5rem .65rem; font:inherit; font-size:.75rem; cursor:pointer; }
.mle-shop-filter.is-on { background:#eff6ff; border-color:#2563eb; color:#1d4ed8; }
.mle-shop-item { background:white; border:1px solid #e2e8f0; padding:.55rem; gap:.5rem; margin:.4rem 0; }
.mle-shop-item img,.mle-shop-placeholder { width:48px; height:48px; border-radius:.65rem; flex:none; }
.mle-shop-placeholder { display:grid; place-items:center; background:#eff6ff; font-size:1.35rem; }
.mle-shop-item-txt { overflow-wrap:anywhere; }
.mle-shop-item-txt em { font-size:1rem; }
.mle-shop-cat { color:#475569; margin:.75rem 0 .3rem; }
.mle-shop-cartbar { position:sticky; top:0; z-index:2; margin:.35rem 0; }
.mle-shop-qty { gap:.25rem; }
.mle-shop-qty button[data-inc],.mle-shop-qty button[data-dec] { width:2rem; height:2rem; }
@media(max-width:360px){.mle-shop-item{flex-wrap:wrap}.mle-shop-qty{margin-inline-start:auto}}

.mle-icon-picker { min-width:0; }
.mle-icon-picker label { display:flex; flex-direction:column; gap:4px; font-weight:600; }
.mle-icon-picker details { margin:6px 0; }
.mle-icon-picker summary { cursor:pointer; color:#2271b1; padding:6px 0; }
.mle-icon-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(42px,1fr)); gap:5px; }
.mle-icon-choice { min-height:42px; background:#fff; border:1px solid #c3c4c7; border-radius:6px; font-size:23px; cursor:pointer; }
.mle-icon-choice[aria-pressed=true] { border:2px solid #2271b1; background:#e8f2ff; }

.mle-shop-clear { display:block; margin: .25rem 0 .65rem auto; padding:.55rem .8rem; min-height:44px; border:1px solid #fecaca; border-radius:.7rem; background:#fff; color:#b91c1c; font:inherit; font-size:.85rem; cursor:pointer; }
.mle-shop-clear:disabled { opacity:.5; cursor:not-allowed; }

/* 1.7.8 — guest catalogue and editable cart. Admin selectors unchanged. */
.mle-shop-section {padding:clamp(.8rem,3vw,1.25rem);border-radius:1.15rem;}
.mle-shop-section .mle-shop-search {display:grid;gap:.3rem;margin:.75rem 0;color:#475569;font-size:.8rem;font-weight:600;}
.mle-shop-section .mle-shop-search input {width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:.75rem;padding:.65rem .8rem;background:#fff;color:#0f172a;font:inherit;font-size:16px;min-height:44px;}
.mle-shop-section .mle-shop-tab,.mle-shop-section .mle-shop-filter,.mle-shop-section .mle-shop-cta {min-height:44px;height:auto;}
.mle-shop-section .mle-shop-cta {padding:.6rem .8rem;border-radius:.75rem;}
.mle-shop-section .mle-shop-cartbar {position:static;}
.mle-shop-section .mle-shop-item {padding:.75rem;border-radius:.85rem;}
.mle-shop-section .mle-shop-item-txt span {font-size:.8rem;line-height:1.35;}
.mle-shop-section .mle-shop-qty button[data-inc],.mle-shop-section .mle-shop-qty button[data-dec] {width:44px;height:44px;flex-basis:44px;border-radius:.7rem;}
.mle-shop-section .mle-shop-qty b {min-width:1ch;text-align:center;font-variant-numeric:tabular-nums;}
.mle-shop-section .mle-shop-cartline {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem .75rem;align-items:center;padding:.85rem 0;}
.mle-shop-section .mle-shop-cartline > div:first-child {min-width:0;overflow-wrap:anywhere;}
.mle-shop-section .mle-shop-cartline small {display:block;color:#64748b;font-weight:400;}
.mle-shop-section .mle-shop-cartline > strong {grid-column:2;grid-row:2;text-align:end;white-space:nowrap;}
.mle-shop-section .mle-shop-total {background:#f1f5f9;border-radius:.8rem;padding:.9rem;margin-top:.7rem;font-size:1.05rem;gap:.5rem;}
.mle-shop-section .mle-shop-empty {padding:1rem;text-align:center;}
.mle-shop-section :is(button,input,textarea):focus-visible {outline:2px solid #2563eb;outline-offset:2px;}
.mle-shop-section .mle-shop-order-head {text-align:start;}
.mle-shop-section .mle-shop-st {white-space:normal;overflow-wrap:anywhere;text-align:center;}
.mle-shop-section .mle-shop-form :is(label,legend) {color:#475569;letter-spacing:normal;text-transform:none;font-size:.8rem;}
.mle-shop-section .mle-shop-form input:not([type=radio]),.mle-shop-section .mle-shop-form textarea,.mle-shop-section .mle-shop-send input {font-size:16px;min-height:44px;}
@media(max-width:420px){.mle-shop-section .mle-shop-item{flex-wrap:wrap;}.mle-shop-section .mle-shop-item-txt{flex:1 1 calc(100% - 65px);}.mle-shop-section .mle-shop-qty{margin-inline-start:auto;}.mle-shop-section .mle-shop-cartline{grid-template-columns:minmax(0,1fr) auto;}.mle-shop-section .mle-shop-clear{margin-inline-start:auto;margin-inline-end:0;}}
