/* ==========================================================================
   WizBrand Advertiser — shared theme for the Advertiser section pages
   (Dashboard, Search Influencer, Cart, My Order, Influencer Work Detail).
   Everything is scoped under `.wz-adv` so this file is safe to load on the
   shared influencer layout — it only styles advertiser markup that opts in by
   wrapping content in `.wz-adv`. Matches the WizBrand navy/blue enterprise
   theme (wizbrand-orgs-ui.css / wizbrand-dashboard.css). STYLING ONLY.
   ========================================================================== */

/* ---- Section shell ------------------------------------------------------ */
.wz-adv {
    --wz-ink: #0f1b34;
    --wz-ink2: #41506b;
    --wz-dim: #6b7894;
    --wz-line: #e6ecf5;
    --wz-blue: #1d4ed8;
    --wz-bg: #f4f7fc;
}

/* breathing room between the stat cards and the orders panel below them */
.wz-adv .wz-stats {
    margin-bottom: 24px;
}

/* ---- Toolbar: search + status chips ------------------------------------- */
.wz-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.wz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wz-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .5rem 1rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #fff;
    border: 1.5px solid var(--wz-line);
    border-radius: 999px;
    cursor: pointer;
    transition: all .16s;
    white-space: nowrap;
}

.wz-chip:hover {
    border-color: #cdddfb;
    color: var(--wz-blue);
}

.wz-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: .76rem;
    font-weight: 800;
    color: var(--wz-ink2);
    background: #eef2f8;
    border-radius: 999px;
}

.wz-chip.is-active {
    color: #fff;
    background: var(--wz-blue);
    border-color: var(--wz-blue);
    box-shadow: 0 8px 18px rgba(29, 78, 216, .26);
}

.wz-chip.is-active .wz-chip__count {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

/* status-tinted active chips */
.wz-chip--all.is-active    { background: #1d4ed8; border-color: #1d4ed8; box-shadow: 0 8px 18px rgba(29,78,216,.26); }
.wz-chip--done.is-active   { background: #0f9d63; border-color: #0f9d63; box-shadow: 0 8px 18px rgba(15,157,99,.26); }
.wz-chip--pend.is-active   { background: #d97706; border-color: #d97706; box-shadow: 0 8px 18px rgba(217,119,6,.26); }
.wz-chip--rej.is-active    { background: #e2433b; border-color: #e2433b; box-shadow: 0 8px 18px rgba(226,67,59,.26); }
.wz-chip--wait.is-active   { background: #7a3ff0; border-color: #7a3ff0; box-shadow: 0 8px 18px rgba(122,63,240,.26); }

/* ---- Search box --------------------------------------------------------- */
.wz-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 340px;
}

.wz-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9fb0cc;
    font-size: .95rem;
    pointer-events: none;
}

.wz-search input {
    width: 100%;
    padding: .62rem .9rem .62rem 2.4rem;
    font-size: .95rem;
    color: var(--wz-ink);
    background: #fff;
    border: 1.5px solid #e0e8f5;
    border-radius: 11px;
    transition: border-color .2s, box-shadow .2s;
}

.wz-search input:focus {
    outline: none;
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

/* ---- Orders / data table ------------------------------------------------ */
.wz-otable-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.wz-otable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.wz-otable thead th {
    position: relative;
    background: #0b2350;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .9rem .9rem;
    text-align: left;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    user-select: none;
}

.wz-otable thead th:first-child { border-top-left-radius: 12px; }
.wz-otable thead th:last-child  { border-top-right-radius: 12px; }

.wz-otable thead th .wz-sort {
    opacity: .55;
    font-size: .72rem;
    margin-left: 4px;
}

.wz-otable tbody td {
    padding: .85rem .9rem;
    font-size: .94rem;
    color: var(--wz-ink2);
    border: none;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
}

.wz-otable tbody tr:hover td {
    background: #f3f7ff;
}

.wz-otable tbody tr:last-child td {
    border-bottom: none;
}

.wz-otable td.wz-title {
    font-weight: 600;
    color: var(--wz-ink);
}

.wz-otable .wz-amount {
    font-weight: 700;
    color: var(--wz-ink);
    white-space: nowrap;
}

.wz-cart-id {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .85rem;
    color: var(--wz-dim);
}

/* ---- Status badges ------------------------------------------------------ */
.wz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .3rem .7rem;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}

.wz-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.wz-badge--done { color: #0f9d63; background: #e3f7ee; }
.wz-badge--pend { color: #d97706; background: #fef3e0; }
.wz-badge--wait { color: #7a3ff0; background: #f0eafe; }
.wz-badge--rej  { color: #e2433b; background: #fdeaea; }

/* ---- Empty state -------------------------------------------------------- */
.wz-otable__empty {
    text-align: center;
    padding: 46px 18px !important;
    color: #94a3b8;
    font-size: .95rem;
}

.wz-empty-illu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wz-empty-illu i {
    font-size: 2.4rem;
    color: #cbd5e1;
}

/* ---- Pagination --------------------------------------------------------- */
.wz-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.wz-pager__info {
    font-size: .9rem;
    color: var(--wz-dim);
}

.wz-pager__info b {
    color: var(--wz-ink);
}

.wz-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.wz-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #fff;
    border: 1px solid #e0e8f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}

.wz-page-btn:hover:not(:disabled) {
    border-color: var(--wz-blue);
    color: var(--wz-blue);
    background: #f3f7ff;
}

.wz-page-btn.is-active {
    color: #fff;
    background: var(--wz-blue);
    border-color: var(--wz-blue);
    box-shadow: 0 8px 18px rgba(29, 78, 216, .26);
}

.wz-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wz-page-ellipsis {
    padding: 0 4px;
    color: #aeb8c9;
    font-weight: 700;
}

/* ellipsis rendered as a disabled button — strip the button chrome */
.wz-page-btn.wz-page-gap,
.wz-page-btn.wz-page-gap:hover {
    min-width: 26px;
    padding: 0;
    border: none;
    background: transparent;
    color: #aeb8c9;
    cursor: default;
    box-shadow: none;
}

/* ---- Jump to page ---- */
.wz-jump {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wz-jump__lbl {
    font-size: .85rem;
    font-weight: 600;
    color: var(--wz-dim);
    white-space: nowrap;
}

.wz-jump__input {
    width: 62px;
    height: 38px;
    padding: 0 8px;
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    color: var(--wz-ink);
    background: #fff;
    border: 1px solid #e0e8f5;
    border-radius: 9px;
}

.wz-jump__input:focus {
    outline: none;
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.wz-jump__btn {
    height: 38px;
    padding: 0 14px;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    background: var(--wz-blue);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s;
}

.wz-jump__btn:hover {
    background: #1741b6;
}

/* ==========================================================================
   Search Influencer page
   ========================================================================== */
.wz-si {
    padding: clamp(8px, 2vw, 22px) clamp(8px, 2vw, 28px) 36px;
    background: #f4f7fc;
    /* The page-wrapper is a flex column with min-height:100vh and the footer is
       its last child. Growing the content fills the column so short result pages
       push the footer to the bottom (no empty band below it). */
    flex: 1 0 auto;
}

/* ---- Filter card -------------------------------------------------------- */
.wz-si-filters {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 27, 52, .06);
    padding: 22px 22px 8px;
    margin-bottom: 22px;
}

.wz-si-filters__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wz-si-filters__head i {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-size: 1rem;
}

.wz-si-filters__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wz-ink);
}

.wz-fgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 18px;
}

.wz-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wz-field > label,
.wz-field > .wz-field__lbl {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--wz-ink2);
    text-transform: none;
}

.wz-si-filters .form-control,
.wz-si-filters select.form-control,
.wz-si-filters input.form-control {
    height: 46px;
    padding: .55rem .9rem;
    font-size: .95rem;
    color: var(--wz-ink);
    background: #fff;
    border: 1.5px solid #e0e8f5;
    border-radius: 11px;
    box-shadow: none;
    transition: border-color .18s, box-shadow .18s;
}

.wz-si-filters .form-control:focus {
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

/* Tag multiselect — self-contained theme-matched implementation (replaces the
   inline <style> the page used to ship; keeps the legacy .msa-wrapper markup). */
.wz-adv .msa-wrapper {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px;
    font-size: .95rem;
    background: #fff;
    border: 1.5px solid #e0e8f5;
    border-radius: 11px;
}

.wz-adv .msa-wrapper .input-presentation {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    cursor: pointer;
}

/* Full-area transparent toggle button (a11y) — chips sit above and stay clickable */
.wz-adv .msa-wrapper .input-presentation .msa-toggle-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.wz-adv .msa-wrapper .input-presentation .placeholder,
.wz-adv .msa-wrapper .input-presentation .tag-badge {
    position: relative;
    z-index: 2;
}

.wz-adv .msa-wrapper .input-presentation .placeholder {
    color: #6b7894;
    font-weight: 400;
    /* let clicks on the placeholder reach the toggle overlay beneath it, so the
       dropdown opens when you click anywhere on the field (not just the arrow) */
    pointer-events: none;
}

.wz-adv .msa-wrapper .input-presentation::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid #6b7894;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    pointer-events: none;
}

.wz-adv .msa-wrapper .input-presentation.active {
    border-color: #1d4ed8;
}

.wz-adv .msa-wrapper .tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    margin: 2px 2px 2px 0;
    font-size: .82rem;
    color: #fff;
    background: #1d4ed8;
    border-radius: 8px;
}

.wz-adv .msa-wrapper .tag-badge button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 2px;
}

.wz-adv .msa-wrapper .tag-badge button:hover {
    color: #fff;
}

.wz-adv .msa-wrapper #tag-list,
.wz-adv .msa-wrapper ul {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 27, 52, .18);
    z-index: 1000;
}

.wz-adv .msa-wrapper li {
    list-style: none;
}

.wz-adv .msa-wrapper .msa-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    font: inherit;
    padding: 9px 12px;
    border-radius: 8px;
    text-transform: capitalize;
    cursor: pointer;
    color: #41506b;
}

.wz-adv .msa-wrapper .msa-option:hover {
    background: #eef4ff;
    color: #1d4ed8;
}

/* ---- Results header ----------------------------------------------------- */
.wz-si-resulthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 2px 14px;
}

/* how-to hint banner above the influencer list */
.wz-si-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 16px;
    padding: 12px 16px;
    font-size: .9rem;
    line-height: 1.45;
    color: #1e3a8a;
    background: #eef4ff;
    border: 1px solid #d8e4ff;
    border-radius: 12px;
}

.wz-si-hint i {
    color: var(--wz-blue);
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.wz-si-hint b { color: #0f1b34; font-weight: 800; }

.wz-si-resulthead h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wz-ink);
}

.wz-si-resulthead .wz-si-count {
    font-size: .9rem;
    color: var(--wz-dim);
}

.wz-si-resulthead .wz-si-count b {
    color: var(--wz-blue);
}

/* ---- Influencer card ---------------------------------------------------- */
.wz-inf-card {
    display: grid;
    grid-template-columns: 64px minmax(180px, 1.1fr) 2.4fr auto;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: transform .16s, box-shadow .16s;
}

.wz-inf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 27, 52, .1);
}

.wz-inf-avalink {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
}

.wz-inf-ava {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #eef2f8;
    background: #f4f7fc;
    transition: border-color .15s, transform .15s;
}

.wz-inf-avalink:hover .wz-inf-ava {
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.wz-inf-id { min-width: 0; }

.wz-inf-name {
    display: inline-block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--wz-ink);
    text-decoration: none;
    line-height: 1.2;
}

.wz-inf-name:hover {
    color: var(--wz-blue);
    text-decoration: none;
}

.wz-inf-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: .86rem;
    color: var(--wz-dim);
}

.wz-inf-loc i { color: #9fb0cc; }

.wz-inf-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    padding: .22rem .6rem;
    font-size: .74rem;
    font-weight: 700;
    color: #0d9bd4;
    background: #e4f5fd;
    border-radius: 999px;
}

/* socials grid */
.wz-inf-socials {
    min-width: 0;
}

.wz-inf-selectall {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: .3rem .7rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #f4f7fc;
    border: 1px dashed #cdd9ec;
    border-radius: 9px;
    cursor: pointer;
}

.wz-inf-selectall input { accent-color: #1d4ed8; cursor: pointer; }

.wz-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 8px;
}

.wz-social-pill {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    padding: .5rem .7rem;
    font-size: .86rem;
    background: #f7f9fd;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}

.wz-social-pill:hover {
    border-color: #cdddfb;
    background: #f0f5ff;
}

.wz-social-pill input[type=checkbox] {
    accent-color: #1d4ed8;
    cursor: pointer;
    flex: 0 0 auto;
}

.wz-social-pill .fa-cart-plus,
.wz-social-pill .fa-circle-check {
    color: #0f9d63;
    flex: 0 0 auto;
}

.wz-social-pill a {
    font-weight: 700;
    color: var(--wz-blue);
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
}

.wz-social-pill a:hover { text-decoration: underline; }

.wz-social-pill .wz-pill-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--wz-ink);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}

.wz-social-pill .wz-pill-cur {
    font-size: .72rem;
    font-weight: 700;
    color: var(--wz-dim);
}

/* card action */
.wz-inf-action {
    display: flex;
    align-items: center;
}

.wz-gotocart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 700;
    color: #fff !important;
    background: #1d4ed8;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .26);
    transition: background .16s, transform .16s;
}

.wz-gotocart:hover {
    background: #1741b6;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* empty state */
.wz-si-empty {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    padding: 48px 20px;
    text-align: center;
    color: #94a3b8;
}

.wz-si-empty i { font-size: 2.6rem; color: #cbd5e1; }

.wz-si-empty h5 {
    margin: 14px 0 4px;
    font-weight: 800;
    color: #64748b;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 768px) {
    .wz-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wz-search {
        max-width: 100%;
    }

    .wz-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .wz-otable {
        min-width: 720px;
    }

    .wz-pager {
        justify-content: center;
    }

    .wz-pager__info {
        width: 100%;
        text-align: center;
    }

    /* Search Influencer cards stack on phones */
    .wz-inf-card {
        grid-template-columns: 56px 1fr;
        gap: 12px 14px;
    }

    .wz-inf-ava { width: 56px; height: 56px; }

    .wz-inf-socials,
    .wz-inf-action {
        grid-column: 1 / -1;
    }

    .wz-inf-action { margin-top: 4px; }

    .wz-gotocart { width: 100%; justify-content: center; }

    .wz-pills { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .wz-pills { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cart / Checkout page  (modern checkout layout)
   ========================================================================== */
.wz-co {
    padding: clamp(8px, 2vw, 22px) clamp(8px, 2vw, 28px) 36px;
    background: #f4f7fc;
    flex: 1 0 auto;
}

/* ---- Hero: items + grand total ---- */
.wz-co-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #0b2350, #1d4ed8);
    color: #fff;
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 18px 44px rgba(13, 35, 80, .28);
}

.wz-co-hero__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wz-co-hero__ic {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .22);
}

.wz-co-hero h1 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
}

.wz-co-hero__sub {
    margin: 2px 0 0;
    font-size: .92rem;
    opacity: .85;
}

.wz-co-hero__total {
    text-align: right;
}

.wz-co-hero__total .lbl {
    display: block;
    font-size: .8rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wz-co-hero__total .amt {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
}

/* ---- Grid ---- */
.wz-co-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}


/* Stretch the items panel to the taller checkout column so a near-empty cart
   shows a clean tall white card instead of a light-blue void beside the summary. */
/* The panel takes its own height.
   --------------------------------------------------------------------------
   Stretching it to match the summary beside it is what left a band of empty
   white under the last thing in it. That was originally justified as making
   a light cart "feel complete"; what actually makes it complete is having
   something in it, which is what the suggestions block is for. */
.wz-co-grid > .wz-co-panel {
    align-self: start;
    /* The checkout column is usually the taller one; without this the cart
       scrolled away and left an empty band beside the summary and payment.
       Sticky inside the grid, so it travels with the page until the grid ends.
       124px clears the sticky topbar (.wz-topbar, ~109px). */
    position: sticky;
    top: 124px;
    /* No max-height / inner scroll on purpose: the user rejected a scrollbar
       inside the card. A cart taller than the screen still shows its lower
       part, because the grid's end pushes it up as the page finishes. */
}

/* ---- Items panel (single card, line-item rows) ---- */
.wz-co-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 27, 52, .06);
    overflow: hidden;
}

/* Bottom area of the panel — pinned to the bottom of the (stretched) card so a
   light cart still feels complete: an "add more" CTA + trust strip. */
/* No `margin-top: auto`.
   --------------------------------------------------------------------------
   It pushed this row to the bottom of a stretched panel, which is what put a
   band of white between the last cart item and it. The panel now gets its
   height from the suggestions block under the items, so there is nothing to
   push against and nothing to pad out. */
.wz-co-foot {
    padding: 16px 20px;
    border-top: 1px solid #eef2f8;
}

.wz-co-addmore {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px dashed #cdd9ec;
    border-radius: 14px;
    background: #f7faff;
    text-decoration: none;
    transition: border-color .16s, background .16s, transform .16s;
}

.wz-co-addmore:hover {
    border-color: var(--wz-blue);
    background: #eef4ff;
    transform: translateY(-2px);
    text-decoration: none;
}

.wz-co-addmore__ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    flex: 0 0 auto;
}

.wz-co-addmore__txt { flex: 1 1 auto; min-width: 0; }

.wz-co-addmore__txt strong {
    display: block;
    font-size: .98rem;
    font-weight: 800;
    color: var(--wz-ink);
}

.wz-co-addmore__txt span {
    font-size: .84rem;
    color: var(--wz-dim);
}

.wz-co-addmore__go {
    color: var(--wz-blue);
    font-size: 1rem;
    flex: 0 0 auto;
    transition: transform .16s;
}

.wz-co-addmore:hover .wz-co-addmore__go { transform: translateX(4px); }

.wz-co-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 16px;
    padding-top: 4px;
}

.wz-co-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--wz-ink2);
}

.wz-co-trust__item i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .85rem;
    color: #0f9d63;
    background: #e3f7ee;
}

.wz-co-trust__item.t-blue i { color: #1d4ed8; background: #e8f0ff; }
.wz-co-trust__item.t-amber i { color: #d97706; background: #fef3e0; }

.wz-co-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f8;
}

.wz-co-panel__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wz-ink);
}

.wz-co-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 320px;
}

.wz-co-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9fb0cc;
    font-size: .9rem;
    pointer-events: none;
}

.wz-co-search input {
    width: 100%;
    height: 42px;
    padding: 0 .9rem 0 2.4rem;
    font-size: .92rem;
    color: var(--wz-ink);
    background: #f7f9fd;
    border: 1.5px solid #e8eef7;
    border-radius: 11px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.wz-co-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

/* line item */
.wz-co-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f4fa;
    transition: background .15s;
}

.wz-co-item:hover { background: #fafcff; }
.wz-co-item:last-child { border-bottom: none; }

.wz-co-ava {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef2f8;
    flex: 0 0 auto;
}

.wz-co-info {
    flex: 1 1 auto;
    min-width: 0;
}

.wz-co-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--wz-ink);
}

.wz-co-cid {
    margin-top: 1px;
    font-size: .78rem;
    color: var(--wz-dim);
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.wz-co-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.wz-co-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .28rem .6rem;
    font-size: .76rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #eef3fb;
    border-radius: 999px;
    text-transform: capitalize;
}

.wz-co-tag i { color: var(--wz-blue); font-size: .8rem; }
.wz-co-tag b { color: var(--wz-ink); }

.wz-co-price {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--wz-ink);
    white-space: nowrap;
}

.wz-co-remove {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #f0d8d8;
    border-radius: 50%;
    background: #fff;
    color: #e2433b;
    cursor: pointer;
    transition: all .15s;
}

.wz-co-remove:hover {
    background: #e2433b;
    border-color: #e2433b;
    color: #fff;
}

/* empty */
.wz-co-empty {
    padding: 56px 20px;
    text-align: center;
    color: #94a3b8;
}

.wz-co-empty i { font-size: 2.8rem; color: #cbd5e1; }

.wz-co-empty h5 {
    margin: 14px 0 4px;
    font-weight: 800;
    color: #64748b;
}

.wz-co-empty a { color: var(--wz-blue); font-weight: 700; }

/* empty cart — enterprise empty state inside a full-width card */
.wz-co-emptywrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 250px);
    width: 100%;
    margin: 0;
    padding: 56px 32px;
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 27, 52, .07);
}

.wz-co-empty__ic {
    width: 112px;
    height: 112px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    font-size: 2.9rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 20px 44px rgba(29, 78, 216, .32);
    margin-bottom: 24px;
}

.wz-co-emptywrap h2 {
    margin: 0 0 10px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--wz-ink);
}

.wz-co-emptywrap p {
    margin: 0 0 26px;
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--wz-dim);
}

.wz-co-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .85rem 1.7rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    border-radius: 13px;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(29, 78, 216, .32);
    transition: transform .15s, box-shadow .15s;
}

.wz-co-empty__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(29, 78, 216, .4);
    color: #fff;
    text-decoration: none;
}

.wz-co-empty__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.wz-co-empty__step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--wz-ink2);
    background: #f7f9fd;
    border: 1px solid #e8eef7;
    border-radius: 12px;
}

.wz-co-empty__step .n {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
    color: var(--wz-blue);
    background: #eef4ff;
}

.wz-co-pager {
    padding: 16px 20px;
    border-top: 1px solid #eef2f8;
}

/* ---- Checkout (right) ---- */
/* Scrolls with the page; the cart beside it is the part that stays put. */
.wz-co-checkout {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wz-co-card {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 27, 52, .06);
    padding: 22px;
}

.wz-co-card h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wz-ink);
}

/* A label that is read but not seen.

   The currency control needs a name in the accessibility tree, and an
   aria-label is the wrong way to give it one -- it competes with the words the
   control already shows. So the name is a real <label>, taken off screen here
   rather than with display:none, which would hide it from screen readers too. */
.wz-co-offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wz-co-select {
    width: 100%;
    height: 48px;
    padding: 0 .9rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--wz-ink);
    background: #f7f9fd;
    border: 1.5px solid #e8eef7;
    border-radius: 12px;
}

.wz-co-select:focus {
    outline: none;
    background: #fff;
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.wz-co-break { margin-top: 16px; }

.wz-co-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: .95rem;
    color: var(--wz-ink2);
}

.wz-co-row b { color: var(--wz-ink); font-weight: 700; }

.wz-co-row--total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px dashed #e6ecf5;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wz-ink);
}

.wz-co-row--total b {
    font-size: 1.3rem;
    color: var(--wz-blue);
}

.wz-co-loading {
    text-align: center;
    padding: 6px 0;
}

/* payment tiles */
.wz-co-pay-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1.5px solid #e6ecf5;
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.wz-co-pay-opt:hover {
    border-color: #cdddfb;
    background: #f7faff;
}

.wz-co-pay-opt:has(input:checked) {
    border-color: var(--wz-blue);
    background: #f0f5ff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}

.wz-co-pay-opt input[type=radio] {
    accent-color: #1d4ed8;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex: 0 0 auto;
}

.wz-co-pay-opt .lbl { font-weight: 800; font-size: 1rem; }

/* Buyer picked INR: Paytm is the only gateway that charges rupees, so point at it. */
.wz-co-pay-opt--hint {
    border-color: #16a34a;
    background: #f0fdf4;
}

.wz-co-pay-badge {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.wz-co-fx__tip {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-size: .8rem;
}

/* The brand wordmarks are set in two tones: "Pay" in the dark blue both
   brands share, then the second half in their own accent. This lived as
   style="color:..." on two spans inside the radio labels. */
.wz-co-pay__a { color: #002E6E; }
.wz-co-pay__b { color: #00B9F1; }

.wz-co-cta {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(29, 78, 216, .3);
    transition: transform .15s, box-shadow .15s;
}

.wz-co-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(29, 78, 216, .38);
}

.wz-co-err {
    display: block;
    margin: 10px 0 2px;
    font-size: .85rem;
    font-weight: 600;
    color: #e2433b;
}

/* ---- Responsive ---- */
/* No short-screen (max-height: 820px) opt-out: it made the cart scroll away
   on a normal laptop, leaving an empty band beside the payment column. */

@media (max-width: 920px) {
    .wz-co-grid { grid-template-columns: 1fr; }
    .wz-co-grid > .wz-co-panel { position: static; }
}

@media (max-width: 560px) {
    .wz-co-hero { padding: 20px; }
    .wz-co-hero__total { text-align: left; }
    .wz-co-item { flex-wrap: wrap; }
    .wz-co-price { margin-left: auto; }
    .wz-co-panel__head { flex-direction: column; align-items: stretch; }
    /* In a column-direction head, flex-basis maps to HEIGHT — reset it so the
       search box keeps its input height instead of becoming a 240px-tall void. */
    .wz-co-search { max-width: 100%; flex: 0 0 auto; }
}

/* ==========================================================================
   My Order page
   ========================================================================== */
.wz-mo {
    padding: clamp(8px, 2vw, 22px) clamp(8px, 2vw, 28px) 36px;
    background: #f4f7fc;
    flex: 1 0 auto;
}

/* ---- Filter bar ---- */
.wz-mo-filterbar {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.wz-mo-filterbar__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.wz-mo-filterbar__head i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.wz-mo-filterbar__head h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--wz-ink);
}

.wz-mo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* chips (left) + search (right) on one row inside the filter card */
.wz-mo-filterbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.wz-mo-search {
    flex: 1 1 260px;
    max-width: 380px;
}

@media (max-width: 760px) {
    .wz-mo-search { max-width: 100%; flex: 1 1 100%; }
}

.wz-mo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .55rem 1.1rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #f4f7fc;
    border: 1.5px solid #e6ecf5;
    border-radius: 999px;
    text-decoration: none;
    transition: all .15s;
}

.wz-mo-chip:hover {
    border-color: #cdddfb;
    color: var(--wz-blue);
    text-decoration: none;
}

.wz-mo-chip.is-active {
    color: #fff;
    background: var(--wz-blue);
    border-color: var(--wz-blue);
    box-shadow: 0 8px 18px rgba(29, 78, 216, .26);
}

.wz-mo-chip--done.is-active { background: #0f9d63; border-color: #0f9d63; box-shadow: 0 8px 18px rgba(15,157,99,.26); }
.wz-mo-chip--pend.is-active { background: #d97706; border-color: #d97706; box-shadow: 0 8px 18px rgba(217,119,6,.26); }
.wz-mo-chip--rej.is-active  { background: #e2433b; border-color: #e2433b; box-shadow: 0 8px 18px rgba(226,67,59,.26); }

/* ---- Order card ---- */
.wz-mo-order {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    overflow: hidden;
    margin-bottom: 16px;
}

.wz-mo-order__head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 24px;
    padding: 16px 20px;
    background: linear-gradient(120deg, #0b2350, #1d4ed8);
    color: #fff;
}

.wz-mo-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wz-mo-meta .k {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .78;
}

.wz-mo-meta .v {
    font-size: .92rem;
    font-weight: 700;
    word-break: break-word;
}

/* influencer row */
.wz-mo-inf {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f4fa;
}

.wz-mo-inf:last-child { border-bottom: none; }

.wz-mo-inf__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.wz-mo-inf__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: .9rem;
    color: var(--wz-ink2);
    min-width: 0;
}

.wz-mo-inf__meta b { color: var(--wz-ink); }

/* action icons */
.wz-mo-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/*
 * The 38px square icon buttons that used to live here are gone.
 *
 * They were three unlabelled icons -- edit, eye, padlock -- and nobody can
 * tell which of those sends an order to a creator irreversibly. The
 * replacement is further down this file: real <button>s with the word on
 * them. This note stays because `width: 38px` here would squash those
 * buttons back to squares if it were ever restored.
 */

/* ---- Timeline (modern stepper) ---- */
.wz-mo-timeline {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 18px 0 4px;
    padding: 16px;
    background: #f7f9fd;
    border: 1px solid #eef2f8;
    border-radius: 12px;
}

.wz-mo .order-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
}

.wz-mo .circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #fff;
    font-size: .8rem;
    box-shadow: 0 4px 10px rgba(15, 27, 52, .14);
}

.wz-mo .line {
    height: 3px;
    flex-grow: 1;
    margin: 0;
    border-radius: 2px;
    align-self: center;
}

.wz-mo .label {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--wz-ink2);
    text-align: center;
    text-transform: capitalize;
}

.wz-mo .date-container {
    font-size: .72rem;
    color: var(--wz-dim);
}

/* ---- Empty ---- */
.wz-mo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background:
        radial-gradient(120% 90% at 50% 0%, #f4f8ff 0%, #fff 55%);
    border: 1px solid var(--wz-line);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 27, 52, .06);
    padding: 48px 24px;
    text-align: center;
}

.wz-mo-empty__ic {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
    box-shadow: 0 14px 30px rgba(29, 78, 216, .18);
    margin-bottom: 22px;
}

.wz-mo-empty h5 {
    margin: 0 0 8px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    color: var(--wz-ink);
    font-size: 1.5rem;
}

.wz-mo-empty p {
    margin: 0 auto 22px;
    max-width: 460px;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--wz-dim);
}

.wz-mo-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .8rem 1.6rem;
    font-size: .98rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(29, 78, 216, .3);
    transition: transform .15s, box-shadow .15s;
}

.wz-mo-empty__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(29, 78, 216, .38);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .wz-mo-inf__top { flex-direction: column; }
    .wz-mo-actions { width: 100%; }
}

/* ==========================================================================
   Influencer Work Detail page
   ========================================================================== */
.wz-wd {
    padding: clamp(8px, 2vw, 22px) clamp(8px, 2vw, 28px) 36px;
    background: #f4f7fc;
    flex: 1 0 auto;
}

/* ---- Toolbar ---- */
.wz-wd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.wz-wd-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 340px;
}

.wz-wd-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9fb0cc;
    font-size: .9rem;
    pointer-events: none;
}

.wz-wd-search input {
    width: 100%;
    height: 44px;
    padding: 0 .9rem 0 2.4rem;
    font-size: .94rem;
    color: var(--wz-ink);
    background: #f7f9fd;
    border: 1.5px solid #e8eef7;
    border-radius: 11px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.wz-wd-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--wz-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.wz-wd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wz-wd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .5rem 1rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #f4f7fc;
    border: 1.5px solid #e6ecf5;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}

.wz-wd-chip:hover { border-color: #cdddfb; color: var(--wz-blue); }

.wz-wd-chip.is-active {
    color: #fff;
    background: var(--wz-blue);
    border-color: var(--wz-blue);
    box-shadow: 0 8px 18px rgba(29, 78, 216, .26);
}

.wz-wd-chip--done.is-active { background: #0f9d63; border-color: #0f9d63; box-shadow: 0 8px 18px rgba(15,157,99,.26); }
.wz-wd-chip--mod.is-active  { background: #d97706; border-color: #d97706; box-shadow: 0 8px 18px rgba(217,119,6,.26); }

.wz-wd-sort {
    display: inline-flex;
    border: 1.5px solid #e6ecf5;
    border-radius: 10px;
    overflow: hidden;
}

.wz-wd-sort button {
    padding: .5rem .85rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--wz-ink2);
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.wz-wd-sort button + button { border-left: 1.5px solid #e6ecf5; }
.wz-wd-sort button:hover { background: #f4f7fc; color: var(--wz-blue); }
.wz-wd-sort button.is-active { background: var(--wz-blue); color: #fff; }

/* ---- Task card ---- */
.wz-wd-card {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    overflow: hidden;
    margin-bottom: 16px;
}

.wz-wd-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 15px 20px;
    background: linear-gradient(120deg, #0b2350, #1d4ed8);
    color: #fff;
}

.wz-wd-card__title {
    font-size: 1.02rem;
    font-weight: 800;
    min-width: 0;
    word-break: break-word;
}

.wz-wd-card__date {
    font-size: .85rem;
    opacity: .88;
    white-space: nowrap;
}

.wz-wd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .26rem .7rem;
    font-size: .76rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.wz-wd-card__body { padding: 18px 20px; }

.wz-wd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
    margin-bottom: 16px;
}

.wz-wd-field {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wz-wd-field .k {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--wz-dim);
    font-weight: 700;
}

.wz-wd-field .v {
    font-size: .94rem;
    font-weight: 700;
    color: var(--wz-ink);
    word-break: break-word;
}

.wz-wd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f0f4fa;
}

.wz-wd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .55rem 1.1rem;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .15s;
}

.wz-wd-btn--view { color: #1d4ed8; background: #eef4ff; border-color: #d8e4ff; }
.wz-wd-btn--view:hover { background: #1d4ed8; color: #fff; }
.wz-wd-btn--approve { color: #fff; background: #0f9d63; box-shadow: 0 8px 18px rgba(15,157,99,.24); }
.wz-wd-btn--approve:hover { background: #0c8553; }
.wz-wd-btn--modify { color: #d97706; background: #fef3e0; border-color: #f5d9a8; }
.wz-wd-btn--modify:hover { background: #d97706; color: #fff; }
.wz-wd-btn:disabled,
.wz-wd-btn.disabled-cursor { opacity: .6; cursor: not-allowed; }

/* ---- Empty ---- */
.wz-wd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background: radial-gradient(120% 90% at 50% 0%, #f4f8ff 0%, #fff 55%);
    border: 1px solid var(--wz-line);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 27, 52, .06);
    padding: 48px 24px;
    text-align: center;
}

.wz-wd-empty__ic {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
    box-shadow: 0 14px 30px rgba(29, 78, 216, .18);
    margin-bottom: 22px;
}

.wz-wd-empty h5 {
    margin: 0 0 8px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    color: var(--wz-ink);
    font-size: 1.5rem;
}

.wz-wd-empty p {
    margin: 0 auto;
    max-width: 460px;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--wz-dim);
}

@media (max-width: 700px) {
    .wz-wd-toolbar { flex-direction: column; align-items: stretch; }
    .wz-wd-search { max-width: 100%; flex: 0 0 auto; }
}

/* My Order client-side search bar */
.wz-mo-searchbar {
    background: #fff;
    border: 1px solid var(--wz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 27, 52, .05);
    padding: 14px 16px;
    margin-bottom: 16px;
}

/* hide x-cloak elements until Alpine initialises (avoids a flash) */
[x-cloak] { display: none !important; }

/* Reset-filters button in the search/filter card header */
.wz-si-reset {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #d2dbe8;
    background: #fff;
    color: #1d4ed8;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}

.wz-si-reset:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, .25);
}

/* Override the header's gradient icon-box styling for the small button icon */
.wz-si-filters__head .wz-si-reset i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: .85rem;
    display: inline;
    place-items: initial;
}

@media (max-width: 575px) {
    .wz-si-filters__head { flex-wrap: wrap; }
    .wz-si-reset { margin-left: 0; width: 100%; justify-content: center; }
}

/*
 * The audience figure on a creator pill.
 *
 * Takes a line of its own inside the pill (which already wraps), because the
 * number never travels alone: who reported it and when it was read go with it,
 * and that will not fit beside the price. See
 * public/new-assets/js/wz-creator-card.js, which returns null rather than a
 * bare number when there is nothing to attribute it to.
 */
.wz-pill-stat {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 5px;
    margin-top: 2px;
    font-size: .74rem;
    color: #64748b;
}

.wz-pill-stat b {
    font-size: .82rem;
    font-weight: 700;
    color: #0f172a;
}

.wz-pill-stat small {
    flex: 1 1 100%;
    min-width: 0;
    font-size: .68rem;
    line-height: 1.3;
    /* Must wrap: a grid item defaults to min-width:auto, so one nowrap line
       here would widen the pill and push the card off a phone screen. */
    overflow-wrap: anywhere;
}

/* ===================================================================
 * Orders: the job title, the folded-away references, and real buttons.
 *
 * The card used to give its largest, darkest band to five machine
 * identifiers and never say what the order was for. It says now.
 * =================================================================== */

/* What was ordered. The first thing on the block, and the largest. */
.wz-mo-inf__title {
    /* Its own line. .wz-mo-inf__meta is a flex row, so without this the
       title sits shoulder to shoulder with "Creator:" and "Email:" and
       stops reading as the heading of the block. */
    flex: 1 1 100%;
    margin: 0 0 2px;
    color: #14204a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* The product id is a reference, not a fact about the work. */
.wz-mo-inf__pid {
    color: #8a95a9;
}

/* ------------------------------------------------ the folded references */

.wz-mo-refs {
    margin: 0 18px;
    border-bottom: 1px solid #eef2f8;
}

.wz-mo-refs > summary {
    padding: 8px 0;
    color: #7a879e;
    font-size: 0.78rem;
    cursor: pointer;
    list-style: none;
}

/* Safari draws its own triangle. */
.wz-mo-refs > summary::-webkit-details-marker {
    display: none;
}

.wz-mo-refs > summary::before {
    content: '▸ ';
    color: #aab4c6;
}

.wz-mo-refs[open] > summary::before {
    content: '▾ ';
}

.wz-mo-refs__body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 0 0 10px;
    color: #56637c;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.wz-mo-refs__body b {
    color: #8a95a9;
    font-weight: 600;
}

/* ------------------------------------------------------- real buttons */

/*
 * These replace three bare <i> elements that carried a click handler and a
 * `disabled` attribute -- which does nothing on an <i>. A button is
 * focusable, reachable by keyboard, announced properly, and actually
 * disables.
 */
.wz-mo-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid #d5dde9;
    border-radius: 8px;
    background: #fff;
    color: #33415c;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.wz-mo-act:hover:not(:disabled) {
    border-color: #1a56db;
    background: #f4f8ff;
    color: #1a56db;
}

.wz-mo-act:disabled {
    border-color: #e6eaf1;
    background: #f7f9fc;
    color: #a7b1c2;
    cursor: not-allowed;
}

/* Sending a job to a creator is the one action here that cannot be undone. */
.wz-mo-act--lock:not(:disabled) {
    border-color: #1a56db;
    background: #1a56db;
    color: #fff;
}

.wz-mo-act--lock:not(:disabled):hover {
    background: #164bc0;
    color: #fff;
}

@media (max-width: 575.98px) {
    /* Full-width stacked targets: three 34px pills in a row are not
       reliably hittable with a thumb. */
    .wz-mo-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wz-mo-act {
        flex: 1 1 100%;
        justify-content: center;
        min-height: 40px;
    }
}

/* ==========================================================================
   The order in another currency
   --------------------------------------------------------------------------
   Beside the real figures, never instead of them. The charge is taken in the
   cart's own currency, so this block is indicative and says so -- including
   the rate it used and the amount actually charged.

   Set apart from the summary rows above it by a tinted panel rather than by
   another heading: it is the same money said twice, not a second order.
   ========================================================================== */

.wz-co-fx {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f7fc;
    border: 1px solid #e6ecf6;
}

.wz-co-fx__head {
    margin: 0 0 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5b6880;
}

.wz-co-fx__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .86rem;
    color: #46536b;
    padding: 3px 0;
}

.wz-co-fx__row b { color: #0f1b34; font-variant-numeric: tabular-nums; }

.wz-co-fx__row--total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #e0e8f4;
    font-weight: 700;
}

.wz-co-fx__note {
    margin: 10px 0 0;
    font-size: .76rem;
    line-height: 1.5;
    color: #5b6880;
}

.wz-co-fx__note b { color: #0f1b34; }

/* The rate could not be had. Said plainly, with nothing invented in its
   place -- the old code showed a zero here. */
.wz-co-fx--off {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fdf6ec;
    border: 1px solid #f0dfc4;
    color: #7a4a12;
    font-size: .84rem;
}

/* "My Cart" was rgb(69, 90, 100) — a dark slate — on a dark blue gradient.
   The hero sets color:#fff, but a global h2 rule in the theme beats it on
   the heading itself, so the title read at about 1.3:1.

   The contrast sweep cannot catch this one: a gradient has no single colour
   to measure against, so the probe skips it rather than guessing. Stated
   explicitly here instead. */
.wz-co-hero h2,
.wz-co-hero .wz-co-hero__sub {
    color: #fff;
}

.wz-co-hero .wz-co-hero__sub {
    color: rgba(255, 255, 255, .84);
}
