/**
 * AgenWebsite Multi Warehouse - storefront.
 *
 * The warehouse picker dialog, the [awmw_warehouse_picker] shortcode, the
 * "Dikirim dari" card (product page + checkout) and the per-warehouse stock
 * pills (catalog, product, cart).
 *
 * Direction: soft structuralism. White cores seated in faint tinted shells
 * ("double bezel": outer tray + inner plate with concentric radii), hairlines
 * instead of borders, very diffused shadows, pill controls with a nested icon
 * circle. The accent is the AgenWebsite orange, used for selection and the CTA
 * icon only; override it per store with :root { --awmw-sf-accent: ... }.
 *
 * Type: the dialog and toast (overlay surfaces) use the bundled Plus Jakarta
 * Sans, a Jakarta-made grotesk; everything that sits inside the theme's own
 * layout inherits the theme font so it never looks bolted on.
 *
 * Motion: one curve family (--awmw-sf-ease), transform + opacity only, blur
 * only on the fixed scrim, and all of it off under prefers-reduced-motion.
 * (The wp-admin screens stay transition-free by design; this file is
 * storefront-only.)
 */

@font-face {
    font-family: "AWMW Jakarta";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "AWMW Jakarta";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --awmw-sf-font: "AWMW Jakarta", ui-sans-serif, system-ui, sans-serif;

    --awmw-sf-accent: #f60;
    --awmw-sf-accent-ink: #b34700;
    --awmw-sf-accent-soft: #fff4ec;
    --awmw-sf-accent-ring: rgba(255, 102, 0, 0.18);
    --awmw-sf-info: #015c80;

    --awmw-sf-ink: #111318;
    --awmw-sf-ink-2: #3f4550;
    --awmw-sf-ink-3: #6b7280;
    --awmw-sf-line: rgba(17, 19, 24, 0.07);
    --awmw-sf-line-2: rgba(17, 19, 24, 0.13);
    --awmw-sf-shell: rgba(17, 19, 24, 0.035);
    --awmw-sf-shell-2: rgba(17, 19, 24, 0.06);
    --awmw-sf-core: #ffffff;

    --awmw-sf-ok: #047857;
    --awmw-sf-ok-soft: #ecfdf5;
    --awmw-sf-warn: #b45309;
    --awmw-sf-warn-soft: #fff7e8;
    --awmw-sf-bad: #be123c;
    --awmw-sf-bad-soft: #fff1f3;

    --awmw-sf-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --awmw-sf-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

    --awmw-sf-z: 100000;
}

/* ------------------------------------------------------------------ */
/* Shared                                                              */
/* ------------------------------------------------------------------ */

.awmw-picker,
.awmw-picker *,
.awmw-picker *::before,
.awmw-picker *::after,
.awmw-ship-card,
.awmw-ship-card *,
.awmw-pick-btn,
.awmw-pick-btn *,
.awmw-pick-select,
.awmw-pick-select *,
.awmw-pick-list,
.awmw-pick-list *,
.awmw-sf-toast,
.awmw-sf-toast * {
    box-sizing: border-box;
}

.awmw-picker svg,
.awmw-ship-card svg,
.awmw-pick-btn svg,
.awmw-pick-link svg,
.awmw-pick-select svg,
.awmw-pick-list svg,
.awmw-sf-toast svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Themes style bare <button>s heavily; every button here is a component. The
   picker's own buttons are declared as `.awmw-picker .x` so they outrank this. */
.awmw-picker button,
.awmw-ship-card__action,
.awmw-pick-btn {
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-decoration: none;
    text-shadow: none;
    line-height: 1;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    float: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

[data-awmw-meta][hidden],
.awmw-stock-pill[hidden],
[data-awmw-current-loc][hidden],
[data-awmw-alt][hidden] {
    display: none !important;
}

.awmw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: var(--awmw-sf-accent-soft);
    color: var(--awmw-sf-accent-ink);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.awmw-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--awmw-sf-accent);
}

.awmw-eyebrow.is-warn {
    background: var(--awmw-sf-warn-soft);
    color: var(--awmw-sf-warn);
}

.awmw-eyebrow.is-warn .awmw-eyebrow__dot {
    background: var(--awmw-sf-warn);
}

@keyframes awmw-rise {
    from {
        opacity: 0;
        translate: 0 14px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes awmw-view-in {
    from {
        opacity: 0;
        translate: 0 10px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes awmw-pop {
    0% {
        opacity: 0.35;
        scale: 0.94;
    }
    100% {
        opacity: 1;
        scale: 1;
    }
}

@keyframes awmw-shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes awmw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------------ */
/* Picker dialog                                                       */
/* ------------------------------------------------------------------ */

html.awmw-picker-lock,
html.awmw-picker-lock body {
    overflow: hidden !important;
}

html.awmw-picker-lock body {
    padding-right: var(--awmw-sbw, 0px);
}

.awmw-picker {
    position: fixed;
    inset: 0;
    z-index: var(--awmw-sf-z);
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: var(--awmw-sf-font);
    color: var(--awmw-sf-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
}

.awmw-picker[hidden] {
    display: none;
}

.awmw-picker__scrim {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 18, 0.34);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    opacity: 0;
    transition: opacity 0.5s var(--awmw-sf-ease);
}

.awmw-picker.is-open .awmw-picker__scrim {
    opacity: 1;
}

/* Outer tray of the double bezel: translucent, lets the blurred page through. */
.awmw-picker__frame {
    position: relative;
    display: flex;
    width: min(560px, 100%);
    max-height: calc(100dvh - 48px);
    padding: 6px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(17, 19, 24, 0.06),
        0 50px 100px -30px rgba(17, 19, 24, 0.34),
        0 18px 36px -18px rgba(17, 19, 24, 0.16);
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.6s var(--awmw-sf-ease), transform 0.8s var(--awmw-sf-ease);
}

.awmw-picker.is-open .awmw-picker__frame {
    opacity: 1;
    transform: none;
}

/* Inner plate. */
.awmw-picker__sheet {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 36px 36px 0;
    border-radius: 28px;
    background: var(--awmw-sf-core);
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 19, 24, 0.05);
}

.awmw-picker .awmw-picker__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 11px;
    border-radius: 50%;
    background: var(--awmw-sf-shell);
    box-shadow: inset 0 0 0 1px var(--awmw-sf-line);
    color: var(--awmw-sf-ink-2);
    cursor: pointer;
    transition: background 0.4s var(--awmw-sf-ease);
}

.awmw-picker__close svg {
    transition: transform 0.6s var(--awmw-sf-ease);
}

.awmw-picker__close:hover {
    background: var(--awmw-sf-shell-2);
}

.awmw-picker__close:hover svg {
    transform: rotate(90deg);
}

.awmw-picker__close:focus-visible,
.awmw-picker__quiet:focus-visible,
.awmw-cta:focus-visible {
    outline: 2px solid var(--awmw-sf-accent);
    outline-offset: 3px;
}

.awmw-picker__view[hidden] {
    display: none;
}

.awmw-picker__view.is-entering {
    animation: awmw-view-in 0.55s var(--awmw-sf-ease) both;
}

.awmw-picker__title {
    margin: 16px 0 10px;
    padding: 0 44px 0 0;
    font-family: var(--awmw-sf-font);
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
    text-transform: none;
    color: var(--awmw-sf-ink);
}

.awmw-picker__title:focus {
    outline: none;
}

.awmw-picker__lede {
    max-width: 46ch;
    margin: 0 0 26px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--awmw-sf-ink-3);
}

.awmw-picker__list {
    display: grid;
    gap: 10px;
    margin: 0 0 8px;
}

/* The action row stays pinned to the bottom of the sheet, so with many warehouses
   (or a short phone screen) the confirm button never scrolls out of reach. */
.awmw-picker__foot {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin: 0 -36px;
    padding: 20px 36px 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--awmw-sf-core) 18px);
}

.awmw-picker .awmw-picker__quiet {
    padding: 8px 2px;
    color: var(--awmw-sf-ink-3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: color 0.4s var(--awmw-sf-ease), text-decoration-color 0.4s var(--awmw-sf-ease);
}

.awmw-picker__quiet:hover {
    color: var(--awmw-sf-ink);
    text-decoration-color: currentColor;
}

/* Primary CTA: ink pill with the arrow seated in its own accent circle. */
.awmw-picker .awmw-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 7px 7px 7px 24px;
    border-radius: 999px;
    background: var(--awmw-sf-ink);
    color: #fff;
    font-family: var(--awmw-sf-font);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.005em;
    cursor: pointer;
    box-shadow: 0 12px 26px -14px rgba(17, 19, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s var(--awmw-sf-ease), background 0.5s var(--awmw-sf-ease), box-shadow 0.5s var(--awmw-sf-ease);
}

.awmw-cta:hover {
    background: #000;
    box-shadow: 0 16px 30px -14px rgba(17, 19, 24, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.awmw-cta:active {
    transform: scale(0.98);
}

.awmw-cta__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.awmw-cta__icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 11px;
    border-radius: 50%;
    background: var(--awmw-sf-accent);
    color: #fff;
    transition: transform 0.6s var(--awmw-sf-ease);
}

.awmw-cta:hover .awmw-cta__icon {
    transform: translate(2px, -1px) scale(1.05);
}

.awmw-cta.is-busy {
    pointer-events: none;
}

.awmw-cta.is-busy .awmw-cta__icon svg {
    opacity: 0;
}

.awmw-cta.is-busy .awmw-cta__icon::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: awmw-spin 0.8s linear infinite;
}

/* ------------------------------------------------------------------ */
/* Warehouse option card (dialog + [awmw_warehouse_picker type=list])  */
/* ------------------------------------------------------------------ */

.awmw-wh {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 4px;
    border-radius: 22px;
    background: var(--awmw-sf-shell);
    box-shadow: 0 0 0 1px var(--awmw-sf-line);
    font-weight: 400;
    cursor: pointer;
    transition: background 0.5s var(--awmw-sf-ease), box-shadow 0.5s var(--awmw-sf-ease), transform 0.5s var(--awmw-sf-ease);
}

.awmw-wh:hover {
    background: var(--awmw-sf-shell-2);
    transform: translateY(-1px);
}

.awmw-wh.is-selected {
    background: var(--awmw-sf-accent-soft);
    box-shadow: 0 0 0 1.5px var(--awmw-sf-accent);
}

.awmw-wh__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.awmw-wh__input:focus-visible + .awmw-wh__core {
    outline: 2px solid var(--awmw-sf-accent);
    outline-offset: 2px;
}

.awmw-wh__core {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 14px;
    border-radius: 18px;
    background: var(--awmw-sf-core);
    box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 10px 20px -18px rgba(17, 19, 24, 0.2);
}

.awmw-wh__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 14px;
    background: var(--awmw-sf-shell);
    color: var(--awmw-sf-ink-2);
    transition: background 0.5s var(--awmw-sf-ease), color 0.5s var(--awmw-sf-ease);
}

.awmw-wh.is-selected .awmw-wh__icon {
    background: var(--awmw-sf-accent-soft);
    color: var(--awmw-sf-accent-ink);
}

.awmw-wh__body {
    min-width: 0;
}

.awmw-wh__name {
    display: block;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--awmw-sf-ink);
}

.awmw-wh__loc {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--awmw-sf-ink-3);
}

.awmw-wh__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 4px 10px 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    background: var(--awmw-sf-shell);
    color: var(--awmw-sf-ink-2);
}

.awmw-wh__meta::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.awmw-wh__meta.is-ok {
    background: var(--awmw-sf-ok-soft);
    color: var(--awmw-sf-ok);
}

.awmw-wh__meta.is-warn {
    background: var(--awmw-sf-warn-soft);
    color: var(--awmw-sf-warn);
}

.awmw-wh__meta.is-bad {
    background: var(--awmw-sf-bad-soft);
    color: var(--awmw-sf-bad);
}

.awmw-wh__meta.is-loading {
    position: relative;
    overflow: hidden;
    width: 132px;
    height: 22px;
    padding: 0;
}

.awmw-wh__meta.is-loading::before {
    display: none;
}

.awmw-wh__meta.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: translateX(-100%);
    animation: awmw-shimmer 1.2s var(--awmw-sf-ease) infinite;
}

.awmw-wh__check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--awmw-sf-line-2);
    color: #fff;
    transition: background 0.4s var(--awmw-sf-ease), box-shadow 0.4s var(--awmw-sf-ease);
}

.awmw-wh__check svg {
    opacity: 0;
    transform: scale(0.4);
    stroke-width: 2.25;
    transition: opacity 0.3s var(--awmw-sf-ease), transform 0.5s var(--awmw-sf-spring);
}

.awmw-wh.is-selected .awmw-wh__check {
    background: var(--awmw-sf-accent);
    box-shadow: none;
}

.awmw-wh.is-selected .awmw-wh__check svg {
    opacity: 1;
    transform: none;
}

/* Staggered entrance: the individual `translate` property animates, so the hover
   `transform` above keeps working once the entrance has settled. */
.awmw-picker.is-open .awmw-picker__view[data-awmw-view="choose"] .awmw-wh {
    animation: awmw-rise 0.75s var(--awmw-sf-ease) both;
    animation-delay: calc(140ms + var(--awmw-i, 0) * 55ms);
}

/* ------------------------------------------------------------------ */
/* Confirmation: cart lines the chosen warehouse cannot cover          */
/* ------------------------------------------------------------------ */

.awmw-miss {
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.awmw-miss__item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--awmw-sf-shell);
    box-shadow: 0 0 0 1px var(--awmw-sf-line);
    animation: awmw-rise 0.6s var(--awmw-sf-ease) both;
    animation-delay: calc(80ms + var(--awmw-i, 0) * 50ms);
}

.awmw-miss__dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--awmw-sf-warn);
    box-shadow: 0 0 0 4px var(--awmw-sf-warn-soft);
}

.awmw-miss__name {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.4;
    color: var(--awmw-sf-ink);
}

.awmw-miss__qty {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--awmw-sf-ink-3);
    font-variant-numeric: tabular-nums;
}

.awmw-miss__fate {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--awmw-sf-warn);
}

.awmw-miss__item.is-elsewhere .awmw-miss__dot {
    background: var(--awmw-sf-info);
    box-shadow: 0 0 0 4px rgba(1, 92, 128, 0.1);
}

.awmw-miss__item.is-elsewhere .awmw-miss__fate {
    color: var(--awmw-sf-info);
}

.awmw-miss__item.is-blocked .awmw-miss__dot {
    background: var(--awmw-sf-bad);
    box-shadow: 0 0 0 4px var(--awmw-sf-bad-soft);
}

.awmw-miss__item.is-blocked .awmw-miss__fate {
    color: var(--awmw-sf-bad);
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.awmw-sf-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: calc(var(--awmw-sf-z) + 1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 7px 20px 7px 7px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.92);
    color: #fff;
    font-family: var(--awmw-sf-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 20px 40px -18px rgba(17, 19, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    transition: opacity 0.45s var(--awmw-sf-ease), transform 0.65s var(--awmw-sf-ease);
}

.awmw-sf-toast[hidden] {
    display: none;
}

.awmw-sf-toast.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}

.awmw-sf-toast__icon {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 50%;
    background: var(--awmw-sf-accent);
}

.awmw-sf-toast__icon svg {
    stroke-width: 2.25;
}

.awmw-sf-toast__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* "Dikirim dari" card: product page + checkout                        */
/* ------------------------------------------------------------------ */

.awmw-ship-card {
    display: block;
    margin: 0 0 22px;
    padding: 5px;
    border-radius: 22px;
    background: var(--awmw-sf-shell);
    box-shadow: 0 0 0 1px var(--awmw-sf-line);
    color: var(--awmw-sf-ink);
    font-family: inherit;
    text-align: left;
}

.awmw-ship-card__core {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 17px;
    background: var(--awmw-sf-core);
    box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 10px 22px -16px rgba(17, 19, 24, 0.16);
}

.awmw-ship-card.is-split .awmw-ship-card__core {
    align-items: start;
}

.awmw-ship-card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 13px;
    background: var(--awmw-sf-accent-soft);
    color: var(--awmw-sf-accent-ink);
}

.awmw-ship-card__body {
    min-width: 0;
}

.awmw-ship-card__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--awmw-sf-ink-3);
}

.awmw-ship-card__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.awmw-ship-card__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--awmw-sf-ink);
}

.awmw-ship-card.is-empty .awmw-ship-card__name {
    font-weight: 500;
    color: var(--awmw-sf-ink-2);
}

.awmw-ship-card__loc,
.awmw-ship-card__note {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--awmw-sf-ink-3);
}

.awmw-ship-card__alt {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--awmw-sf-info);
}

.awmw-ship-card__split {
    margin: 10px 0 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--awmw-sf-ink-2);
}

.awmw-ship-card__split li {
    margin: 0 0 4px;
}

.awmw-ship-card__split strong {
    font-weight: 700;
    color: var(--awmw-sf-ink);
}

.awmw-ship-card__split span::before {
    content: ": ";
}

.awmw-ship-card__flag {
    display: block;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.awmw-ship-card__flag.is-warn {
    background: var(--awmw-sf-warn-soft);
    color: var(--awmw-sf-warn);
}

.awmw-ship-card__flag.is-bad {
    background: var(--awmw-sf-bad-soft);
    color: var(--awmw-sf-bad);
}

/* Ganti: pill with the swap icon seated in an ink circle. */
.awmw-ship-card__action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 5px 5px 15px;
    border-radius: 999px;
    background: var(--awmw-sf-core);
    box-shadow: 0 0 0 1px var(--awmw-sf-line-2), 0 6px 14px -10px rgba(17, 19, 24, 0.3);
    color: var(--awmw-sf-ink);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.5s var(--awmw-sf-ease), box-shadow 0.5s var(--awmw-sf-ease);
}

.awmw-ship-card__action:hover {
    box-shadow: 0 0 0 1px var(--awmw-sf-ink-3), 0 10px 18px -10px rgba(17, 19, 24, 0.35);
}

.awmw-ship-card__action:active {
    transform: scale(0.97);
}

.awmw-ship-card__action:focus-visible {
    outline: 2px solid var(--awmw-sf-accent);
    outline-offset: 3px;
}

.awmw-ship-card__action-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 7px;
    border-radius: 50%;
    background: var(--awmw-sf-ink);
    color: #fff;
    transition: transform 0.7s var(--awmw-sf-ease);
}

.awmw-ship-card__action:hover .awmw-ship-card__action-icon {
    transform: rotate(180deg);
}

/* Checkout: the card sits in the order review table's full-width cell. */
.awmw-origin-row td {
    padding: 12px 0 !important;
    border: 0;
    background: none;
}

.awmw-ship-card.is-checkout {
    margin: 0;
}

/* Product page: gentle entrance once in view (storefront.js adds .is-revealed;
   without JS the card is simply there). */
.awmw-js .awmw-ship-card.is-product {
    opacity: 0;
    translate: 0 12px;
}

.awmw-js .awmw-ship-card.is-product.is-revealed {
    animation: awmw-rise 0.8s var(--awmw-sf-ease) both;
}

/* ------------------------------------------------------------------ */
/* Stock pill (catalog + product) and cart line status                 */
/* ------------------------------------------------------------------ */

.awmw-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: var(--awmw-sf-shell);
    color: var(--awmw-sf-ink-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    vertical-align: middle;
    white-space: nowrap;
}

.awmw-stock-pill__dot {
    display: inline-block;
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.awmw-stock-pill__wh {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    opacity: 0.85;
}

.awmw-stock-pill__wh::before {
    content: "\00b7";
    margin-right: 6px;
}

.awmw-stock-pill.is-in {
    background: var(--awmw-sf-ok-soft);
    color: var(--awmw-sf-ok);
}

.awmw-stock-pill.is-in .awmw-stock-pill__dot {
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.14);
}

.awmw-stock-pill.is-low {
    background: var(--awmw-sf-warn-soft);
    color: var(--awmw-sf-warn);
}

.awmw-stock-pill.is-low .awmw-stock-pill__dot {
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.14);
}

.awmw-stock-pill.is-out {
    background: var(--awmw-sf-bad-soft);
    color: var(--awmw-sf-bad);
}

.awmw-stock-pill.is-out .awmw-stock-pill__dot {
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.12);
}

.awmw-stock-pill.is-compact {
    font-size: 11.5px;
}

.awmw-stock-pill.is-updated {
    animation: awmw-pop 0.6s var(--awmw-sf-spring) both;
}

.awmw-loop-stock {
    display: block;
    margin: 6px 0 4px;
    line-height: 1;
}

.awmw-cart-stock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.awmw-cart-stock.is-in {
    color: var(--awmw-sf-ok);
}

.awmw-cart-stock.is-low {
    color: var(--awmw-sf-warn);
}

.awmw-cart-stock.is-out {
    color: var(--awmw-sf-bad);
}

/* ------------------------------------------------------------------ */
/* [awmw_warehouse_picker]                                              */
/* ------------------------------------------------------------------ */

/* type="button" */
.awmw-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 6px 7px 6px 6px;
    border-radius: 999px;
    background: var(--awmw-sf-core);
    box-shadow: 0 0 0 1px var(--awmw-sf-line), 0 10px 24px -16px rgba(17, 19, 24, 0.28);
    color: var(--awmw-sf-ink);
    text-align: left;
    cursor: pointer;
    transition: transform 0.5s var(--awmw-sf-ease), box-shadow 0.5s var(--awmw-sf-ease);
}

.awmw-pick-btn:hover {
    box-shadow: 0 0 0 1px var(--awmw-sf-line-2), 0 14px 28px -16px rgba(17, 19, 24, 0.34);
}

.awmw-pick-btn:active {
    transform: scale(0.98);
}

.awmw-pick-btn:focus-visible {
    outline: 2px solid var(--awmw-sf-accent);
    outline-offset: 3px;
}

.awmw-pick-btn__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: var(--awmw-sf-accent-soft);
    color: var(--awmw-sf-accent-ink);
}

.awmw-pick-btn__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.awmw-pick-btn__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--awmw-sf-ink-3);
}

.awmw-pick-btn__name,
.awmw-pick-btn__loc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.awmw-pick-btn__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--awmw-sf-ink);
}

.awmw-pick-btn__loc {
    font-size: 12px;
    color: var(--awmw-sf-ink-3);
}

.awmw-pick-btn__chev {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    padding: 7px;
    border-radius: 50%;
    background: var(--awmw-sf-shell);
    color: var(--awmw-sf-ink-2);
    transition: transform 0.6s var(--awmw-sf-ease), background 0.5s var(--awmw-sf-ease);
}

.awmw-pick-btn:hover .awmw-pick-btn__chev {
    transform: translateY(2px);
    background: var(--awmw-sf-shell-2);
}

/* type="link" */
.awmw-pick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.awmw-pick-link__icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--awmw-sf-accent-ink);
}

/* type="select" */
.awmw-pick-select {
    display: inline-flex;
    flex-direction: column;
    gap: 7px;
    max-width: 100%;
    margin: 0;
    font-weight: 400;
}

.awmw-pick-select__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--awmw-sf-ink-3);
}

.awmw-pick-select__field {
    position: relative;
    display: block;
}

.awmw-pick-select select {
    display: block;
    width: 100%;
    min-width: 240px;
    height: 48px;
    margin: 0;
    padding: 0 48px 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--awmw-sf-core);
    box-shadow: 0 0 0 1px var(--awmw-sf-line-2), 0 8px 20px -16px rgba(17, 19, 24, 0.3);
    color: var(--awmw-sf-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.awmw-pick-select select:focus-visible {
    outline: 2px solid var(--awmw-sf-accent);
    outline-offset: 2px;
}

.awmw-pick-select__chev {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    background: var(--awmw-sf-shell);
    color: var(--awmw-sf-ink-2);
    transform: translateY(-50%);
    pointer-events: none;
}

/* type="list" */
.awmw-pick-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 12px;
    margin: 0 0 24px;
    color: var(--awmw-sf-ink);
}

.awmw-js .awmw-pick-list .awmw-wh {
    opacity: 0;
}

.awmw-js .awmw-pick-list.is-revealed .awmw-wh {
    animation: awmw-rise 0.75s var(--awmw-sf-ease) both;
    animation-delay: calc(var(--awmw-i, 0) * 60ms);
}

.awmw-pick-list.is-busy {
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Small screens: the dialog becomes a bottom sheet                    */
/* ------------------------------------------------------------------ */

@media (max-width: 640px) {
    .awmw-picker {
        place-items: end center;
        padding: 0;
    }

    .awmw-picker__frame {
        width: 100%;
        max-height: 92dvh;
        padding: 5px 5px 0;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
    }

    .awmw-picker.is-open .awmw-picker__frame {
        transform: none;
    }

    .awmw-picker__sheet {
        padding: 34px 20px 0;
        border-radius: 25px 25px 0 0;
    }

    .awmw-picker__sheet::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: var(--awmw-sf-line-2);
        transform: translateX(-50%);
    }

    .awmw-picker__close {
        top: 16px;
        right: 14px;
    }

    .awmw-picker__foot {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 6px;
        margin: 0 -20px;
        padding: 16px 20px calc(14px + env(safe-area-inset-bottom));
    }

    .awmw-cta {
        justify-content: space-between;
        width: 100%;
    }

    .awmw-picker__quiet {
        align-self: center;
    }

    .awmw-wh__core {
        grid-template-columns: 40px minmax(0, 1fr) 22px;
        gap: 12px;
        padding: 12px 14px 12px 12px;
    }

    .awmw-wh__icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .awmw-ship-card__core {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .awmw-ship-card__icon {
        width: 36px;
        height: 36px;
        padding: 9px;
    }

    .awmw-ship-card__action {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    .awmw-pick-select select {
        min-width: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: every state change becomes instant                  */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .awmw-picker *,
    .awmw-picker,
    .awmw-picker__scrim,
    .awmw-picker__frame,
    .awmw-ship-card,
    .awmw-ship-card *,
    .awmw-pick-btn,
    .awmw-pick-btn *,
    .awmw-pick-list .awmw-wh,
    .awmw-stock-pill,
    .awmw-sf-toast {
        animation: none !important;
        transition: none !important;
    }

    .awmw-js .awmw-ship-card.is-product,
    .awmw-js .awmw-pick-list .awmw-wh {
        opacity: 1;
        translate: none;
    }
}
