/* ── Base & CSS custom properties ──────────────────────────── */
.tmwh-availability {
    --tmwh-available-bg:     #eaf3de;
    --tmwh-available-border: #c0dd97;
    --tmwh-available-text:   #3b6d11;
    --tmwh-available-dot:    #639922;
    --tmwh-backorder-bg:     #faeeda;
    --tmwh-backorder-border: #fac775;
    --tmwh-backorder-text:   #854f0b;
    --tmwh-backorder-dot:    #ba7517;
    --tmwh-unavailable-bg:   #fcebeb;
    --tmwh-unavailable-border:#f7c1c1;
    --tmwh-unavailable-text: #a32d2d;
    --tmwh-unavailable-dot:  #e24b4a;

    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    background: #fafafa;
    font-size: 14px;
    max-width: 360px;
}
.tmwh-locations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tmwh-location {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tmwh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.tmwh-dot.tmwh-green  { background: var(--tmwh-available-dot); }
.tmwh-dot.tmwh-amber  { background: var(--tmwh-backorder-dot); }
.tmwh-dot.tmwh-red    { background: var(--tmwh-unavailable-dot); }
.tmwh-dot.tmwh-gray   { background: #9ca3af; }
.tmwh-name {
    font-weight: 500;
    color: #333;
    min-width: 70px;
}
.tmwh-status { color: #555; }
.tmwh-qty    { color: #888; font-size: 12px; }
.tmwh-out-of-stock {
    color: var(--tmwh-unavailable-text);
    font-weight: 500;
    font-size: 13px;
}

/* ── "Disponible sur commande" — orderable while out of local stock ── */
.tmwh-on-order {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tmwh-available-text);
    font-weight: 600;
    font-size: 14px;
}
.tmwh-on-order::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tmwh-available-dot);
    flex-shrink: 0;
}

/* ── Design 1: Colored pills ──────────────────────────────── */
.tmwh-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tmwh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
}
.tmwh-pill .tmwh-dot { width: 8px; height: 8px; }
.tmwh-pill-available {
    background: var(--tmwh-available-bg);
    border-color: var(--tmwh-available-border);
    color: var(--tmwh-available-text);
}
.tmwh-pill-backorder {
    background: var(--tmwh-backorder-bg);
    border-color: var(--tmwh-backorder-border);
    color: var(--tmwh-backorder-text);
}
.tmwh-pill-unavailable {
    background: var(--tmwh-unavailable-bg);
    border-color: var(--tmwh-unavailable-border);
    color: var(--tmwh-unavailable-text);
}

/* ── Design 2: Split card ─────────────────────────────────── */
.tmwh-split-card {
    display: flex;
    gap: 0;
}
.tmwh-split-half {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
}
.tmwh-split-half + .tmwh-split-half {
    border-left: 1px solid #e0e0e0;
}
.tmwh-split-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 4px;
}
.tmwh-split-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}
.tmwh-split-bar {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    margin: 0 auto;
}
.tmwh-split-available .tmwh-split-label { color: var(--tmwh-available-text); }
.tmwh-split-available .tmwh-split-bar   { background: var(--tmwh-available-dot); }
.tmwh-split-backorder .tmwh-split-label { color: var(--tmwh-backorder-text); }
.tmwh-split-backorder .tmwh-split-bar   { background: var(--tmwh-backorder-dot); }
.tmwh-split-unavailable .tmwh-split-label { color: var(--tmwh-unavailable-text); }
.tmwh-split-unavailable .tmwh-split-bar   { background: var(--tmwh-unavailable-dot); }

/* ── Design 3: Icon rows ──────────────────────────────────── */
.tmwh-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tmwh-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tmwh-row-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tmwh-row-icon svg { width: 12px; height: 12px; }
.tmwh-row-name {
    font-weight: 600;
    min-width: 70px;
    color: #333;
}
.tmwh-row-sep { color: #ccc; }
.tmwh-row-label { font-size: 13px; }
.tmwh-row-available .tmwh-row-icon  { background: var(--tmwh-available-bg); color: var(--tmwh-available-dot); }
.tmwh-row-available .tmwh-row-label { color: var(--tmwh-available-text); }
.tmwh-row-backorder .tmwh-row-icon  { background: var(--tmwh-backorder-bg); color: var(--tmwh-backorder-dot); }
.tmwh-row-backorder .tmwh-row-label { color: var(--tmwh-backorder-text); }
.tmwh-row-unavailable .tmwh-row-icon  { background: var(--tmwh-unavailable-bg); color: var(--tmwh-unavailable-dot); }
.tmwh-row-unavailable .tmwh-row-label { color: var(--tmwh-unavailable-text); }

/* ── Design 4: Compact tiles ──────────────────────────────── */
.tmwh-tiles {
    display: flex;
    gap: 8px;
}
.tmwh-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.tmwh-tile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    color: #fff;
}
.tmwh-tile-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #999;
}
.tmwh-tile-label {
    font-size: 12px;
    font-weight: 500;
}
.tmwh-tile-available .tmwh-tile-avatar  { background: var(--tmwh-available-dot); }
.tmwh-tile-available .tmwh-tile-label   { color: var(--tmwh-available-text); }
.tmwh-tile-backorder .tmwh-tile-avatar  { background: var(--tmwh-backorder-dot); }
.tmwh-tile-backorder .tmwh-tile-label   { color: var(--tmwh-backorder-text); }
.tmwh-tile-unavailable .tmwh-tile-avatar { background: var(--tmwh-unavailable-dot); }
.tmwh-tile-unavailable .tmwh-tile-label  { color: var(--tmwh-unavailable-text); }

/* ── Design 5: Mini table ─────────────────────────────────── */
.tmwh-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}
.tmwh-table th {
    background: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 0.5px solid #e5e7eb;
}
.tmwh-table td {
    padding: 7px 10px;
    border-bottom: 0.5px solid #e5e7eb;
}
.tmwh-table tr:last-child td { border-bottom: none; }
.tmwh-table-name { font-weight: 600; color: #333; }
.tmwh-table-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
