/* Reuse the sample's table and card styles from the theme. */
#prices .lune-pl-list-toggle {
    display: none;
}

#prices .rn [data-lune-product-photo] {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

#prices .rn [data-lune-product-photo]:focus-visible {
    outline-offset: -2px;
}

#prices .lune-pl-linked-name {
    display: flex;
    align-items: center;
    gap: 4px;
}
#prices .lune-pl-linked-name a { text-decoration: underline; text-underline-offset: 3px; }
#prices .lune-pl-linked-name button { flex: none; width: 28px; height: 28px; text-align: center; }
#prices .lune-pl-linked-name .cam { margin-left: 0; }

@media (min-width: 1100px) {
    /* At full width the grid is 920px / 24px / 360px. Scale both columns and the gap together. */
    #prices .pl {
        grid-template-columns: minmax(0, 1fr) calc(360 / 1304 * 100%);
        column-gap: calc(24 / 1304 * 100%);
    }

    /* The 920px table has 918px between its borders and 882px inside row padding. */
    #prices #table .rw {
        --pl-desktop-action-width: calc(104 / 882 * 100%);
        grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) var(--pl-desktop-action-width);
        column-gap: calc(12 / 882 * 100%);
        padding-inline: calc(18 / 918 * 100%);
    }

    html:not(:lang(en)) #prices #table .rw { --pl-desktop-action-width: calc(118 / 882 * 100%); }

    #prices .rw[data-id*="Rainbow Clear Quartz, Mini "] .rn [data-lune-product-photo] > b {
        display: flex;
        align-items: center;
        white-space: normal;
        line-height: 1.25;
    }

    #prices .rw[data-id*="Rainbow Clear Quartz, Mini "] .rn .cam { flex: none; }
    #prices .rw[data-id*="Rainbow Clear Quartz, Mini "] .rn .nm { text-wrap: balance; }
}

#prices #rows > .rw[hidden] { display: none; }

#prices #table, .lune-pl-pager[data-lune-pager="top"] {
    scroll-margin-top: calc(var(--head-h) - var(--viewport-pad) + 12px);
}
.lune-pl-pager:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px;
    background: var(--bg);
    color: var(--mute);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.lune-pl-pager[data-lune-pager="bottom"] { border-block-start: 1px solid var(--line); }
.lune-pl-pager[data-lune-pager="top"] { justify-content: flex-end; }
.lune-pl-page-buttons { display: flex; gap: 4px; }
.lune-pl-page-buttons[hidden], #prices .rw .add[hidden] { display: none; }
#prices .lune-pl-size-trigger { margin-inline-start: auto; color: var(--dot); }
#prices .lune-pl-tier-short { display: none; }
#lune-pl-size-panel .lune-currency-option bdi { justify-self: start; }
.lune-pl-page-buttons button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.lune-pl-page-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
}
.lune-pl-page-buttons button:enabled:hover .lune-pl-page-icon { border-color: var(--ink); }
.lune-pl-page-buttons button:enabled:active .lune-pl-page-icon { background: var(--bg2); }
.lune-pl-page-buttons button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.lune-pl-page-buttons button:disabled { opacity: .3; cursor: default; }
[dir="rtl"] .lune-pl-page-icon svg { transform: scaleX(-1); }
#prices #tcount:not([hidden]) { display: block; padding: 8px 18px; color: var(--mute); font-size: 14px; }
@media (width > 760px) {
    #prices .pl { align-items: stretch; }
    #prices .lune-pl-main, #prices .pl > .side {
        display: grid;
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        min-inline-size: 0;
    }
    /* The table keeps the height it was laid out with; a longer list only grows the side. */
    #prices .lune-pl-main { grid-column: 1; align-self: start; }
    #prices .pl > .side { grid-column: 2; }
    #prices .lune-pl-side-cards { display: flex; flex-direction: column; gap: 14px; container: lune-pl-sidebar / inline-size; }
    #prices .lune-pl-side-cards > .req { margin-block-start: auto; }
    #prices #offer { padding-block: 15px; }
    #prices #offer .st-k { margin-block-end: 6px; }
    #prices #offer .off-pts { margin-block-start: 12px; }
    #prices #offer .off-pts > li { padding-block: 7px; }
    #prices #offer .fine { margin-block: 8px 0; }
    #prices #table { position: relative; display: flex; flex-direction: column; align-self: stretch; }
    #prices [data-lune-pager="top"] { display: none; }
    #prices #thead .lune-pl-size-trigger {
        inline-size: min(68px, 100%);
        justify-content: flex-end;
        padding-inline: 0;
        border: 0;
        background: none;
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
    }
    #prices #thead .lune-pl-size-trigger:is(:hover, [aria-expanded="true"]) { text-decoration: underline; text-underline-offset: 3px; }
    #prices #thead .lune-pl-size-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
    #prices #rows:has(+ [data-lune-pager="bottom"]:not([hidden])) {
        display: flex;
        flex: 1 0 auto;
        flex-direction: column;
    }
    #prices #rows > .rw { flex: 0 0 var(--lune-pl-row-fill, var(--lune-pl-row-base, 64px)); }
    /* Missing slots share the same space as real rows and keep both pagers in place. */
    #prices #rows:has(+ [data-lune-pager="bottom"]:not([hidden]))::after {
        content: "";
        flex: none;
        block-size: calc(var(--lune-pl-vacant-rows, 0) * var(--lune-pl-row-fill, var(--lune-pl-row-base, 64px)));
    }
    #prices .lune-pl-pager { padding-block: 4px; }
}

#prices .rw,
#prices .side .card,
#prices .li > div:first-child {
    min-width: 0;
}

#prices .li > div:first-child,
#prices .noresult h3,
#prices .rx {
    overflow-wrap: anywhere;
}

#prices .li {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

#prices .sum > :last-child {
    text-align: right;
}

#prices .lune-pl-weight-rate {
    font-weight: inherit;
}

#prices .lune-pl-weight-rate small {
    margin-left: 2px;
    color: var(--mute);
    font-size: 10px;
    font-weight: 400;
}

@media (max-width:760px) {
    #prices .lune-pl-weight-rate small { font-size: 12px; }
}

#prices .rbest [data-lune-row-price] { display: inline; font: inherit; color: inherit; }

.lune-weight-switch{display:inline-flex;border:1px solid var(--line);border-radius:var(--pill);padding:2px;background:var(--bg)}
.lune-weight-switch button{min-width:32px;padding:4px 7px;border:0;border-radius:var(--pill);background:none;color:var(--ink);font-size:13px;font-weight:600;line-height:1.3;cursor:pointer}
.lune-weight-switch button[aria-pressed="true"]{background:var(--ink);color:#fff}
.lune-weight-desktop{text-align:right}
.lune-weight-mobile{display:none}
.lune-weight-mobile:not([hidden]),.lune-weight-stone:not([hidden]){align-items:center;justify-content:space-between;gap:8px;color:var(--mute);font-size:14px}
.lune-weight-stone:not([hidden]){display:flex;max-width:760px;margin-bottom:10px}
@media(max-width:760px){
    .lune-weight-desktop .lune-weight-switch{display:none}
    .lune-weight-mobile:not([hidden]){display:flex;padding:8px 14px}
}
@media(max-width:760px){#prices .pnote p{max-width:none}}

#prices .rq-b { grid-template-columns: minmax(0, 1fr) 170px 44px auto 36px; }
#prices.lune-pl-fixed .rq-b { grid-template-columns: minmax(0, 1fr) auto 36px; }
#prices.lune-pl-fixed .searchbox { width: 100%; }
.searchbox:has(.lune-clear-search:not([hidden])) input { padding-right: 48px; }
.lune-clear-search:not([hidden]) {
    position: absolute;
    inset: 7px 7px auto auto;
}
#prices .rq-cam { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--rs); background: #fff; display: grid; place-items: center; cursor: pointer; }
#prices .rq-cam svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#prices .rq-cam.on { background: var(--ink); border-color: var(--ink); }
#prices .rq-cam.on svg { stroke: #fff; }
#prices .help .row .ph { background: #fff; color: var(--ink); border: 1px solid var(--line); }
#prices .lune-pl-photos[hidden] { display: none; }

#prices .noresult:not([hidden]) {
    display: block;
}

#prices .chipb {
    height: auto;
    min-height: 36px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

#toast {
    max-width: calc(100% - 24px);
    white-space: normal;
}

#toast > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#toast > a {
    flex: none;
}

@media (max-width: 760px) {
    .lune-pl-pager[data-lune-pager="top"] { scroll-margin-top: calc(var(--head-h) - var(--viewport-pad) + 4px); }
    .lune-pl-tools { display: flex; flex-wrap: wrap; align-items: center; padding-inline: 14px; column-gap: 12px; }
    .lune-pl-tools #lune-weight-mobile:not([hidden]) { flex: 1 0 auto; padding: 8px 0; }
    .lune-pl-tools .lune-pl-pager:not([hidden]) { flex: 1 0 auto; padding: 8px 0; }
    .lune-pl-pager[data-lune-pager="bottom"] { padding-inline: 14px; }
    #prices .rq-b { grid-template-columns: minmax(0, 1fr) 44px auto 36px; }
    #prices .fchip em {
        display: inline;
        margin-left: 4px;
    }

    #prices .lune-pl-list-title,
    #prices #list.is-collapsed #lune-pl-list-body {
        display: none;
    }

    #prices .lune-pl-list-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        border: 0;
        background: none;
        text-align: left;
        font: inherit;
        letter-spacing: inherit;
        cursor: pointer;
    }

    #prices .lune-pl-list-toggle::after {
        content: "";
        width: 9px;
        height: 9px;
        margin-right: 4px;
        border-bottom: 2px solid var(--mute);
        border-right: 2px solid var(--mute);
        transform: translateY(2px) rotate(225deg);
    }

    #prices .is-collapsed .lune-pl-list-toggle::after {
        transform: translateY(-2px) rotate(45deg);
    }

    #prices .rw:not(.th) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    /* Keep a line for the optional grade or size so prices line up across pages. */
    #prices #rows > .rw:not(.lune-pl-quote) {
        grid-template-rows: minmax(43px, 1fr) auto;
    }

    #prices #rows > .rw:not(.lune-pl-quote) :is(.rn, .ra) {
        align-self: start;
    }

    /* A price-on-request label uses the same space as the two-line tier prices. */
    #prices #rows > .rw .rbest {
        min-block-size: 2.45em;
    }

    #prices .lune-pl-by-weight {
        grid-template-areas: "n a" "p p";
    }

    #prices .lune-pl-by-weight .rbest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
    #prices .lune-pl-pager:not([hidden]) { padding-block: 0; }
    #prices .lune-pl-pager[data-lune-pager="top"] { scroll-margin-top: calc(var(--head-h) - var(--viewport-pad)); }
}

@media (max-width: 360px) {
    #prices .fchips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    #prices .fchip {
        font-size: 13px;
        padding-inline: 3px;
    }

    #prices .rbest {
        grid-template-columns: repeat(3, minmax(0, max-content));
    }

    #prices .rbest span {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    #prices .add.on::before {
        content: none;
    }
}


/* Real market photos inside a stone's panel, and the full-size viewer */
#prices .rn .cam.has{color:var(--sky-d,#519FDD)}
html.lb-open{overflow:hidden}
.lune-lb{--lb-max-height:min(calc(100vh - 140px),820px);position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:#111}
.lune-lb[hidden]{display:none}
.lune-lb .lb-in{position:relative}
.lune-lb figure{margin:0}
/* Each photo keeps its own shape. Desktop: portrait photos share one height, landscape ones share one width. Phone: every photo uses the full screen width. */
.lune-lb .lb-frame{position:relative;display:grid;place-items:center;width:min(calc(var(--lb-max-height) * var(--lb-image-ratio)),88vw,1000px);aspect-ratio:var(--lb-image-ratio);border-radius:18px;overflow:hidden;background:#222;color:#fff}
.lb-frame picture,.lb-frame img{display:block;width:100%;height:100%;object-fit:contain}
.lb-frame picture{position:absolute;inset:0}
.lb-frame[aria-busy="true"] picture{visibility:hidden}
.lb-frame[aria-busy="true"]::after{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--mute);animation:lune-lb-spin .75s linear infinite}
.lb-frame[aria-busy="false"] picture{animation:lune-lb-reveal .18s ease-out}
@keyframes lune-lb-spin{to{transform:rotate(1turn)}}
@keyframes lune-lb-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.lb-frame[aria-busy]::after,.lb-frame[aria-busy] picture{animation:none}}
.lune-lb figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:12px;font-size:14px;color:#fff}
.lune-lb .lb-t{min-width:0;font-weight:600}
.lune-lb .lb-add{width:auto;height:44px;margin-inline-start:auto;padding:0 22px;border-radius:999px;background:#fff;color:#111;font:inherit;font-size:14px;font-weight:600}
.lune-lb .lb-add:hover{background:#EDEDE9}
.lune-lb .lb-add.on{background:rgba(255,255,255,.14);color:#fff}
.lune-lb .lb-n{color:#B4B4AE;font-variant-numeric:tabular-nums}
.lune-lb button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.lune-lb .lb-ic{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--bg);box-shadow:0 1px 6px rgba(0,0,0,.18)}
.lune-lb .lb-ic svg{display:block;width:18px;height:18px}
.lune-lb :is(.lb-p,.lb-nx,.lb-x):hover .lb-ic{border-color:var(--ink)}
.lune-lb :is(.lb-p,.lb-nx,.lb-x):active .lb-ic{background:var(--bg2)}
[dir="rtl"] .lune-lb :is(.lb-p,.lb-nx) svg{transform:scaleX(-1)}
.lune-lb button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.lune-lb button[hidden]{display:none}
.lune-lb .lb-p,.lune-lb .lb-nx{position:absolute;top:calc(50% - 50px)}
.lune-lb .lb-p{left:-60px}.lune-lb .lb-nx{right:-60px}
.lune-lb .lb-x{position:fixed;top:16px;right:16px}
@media(max-width:760px){
  .lune-lb{--lb-max-height:calc(100vh - 170px);--lb-max-height:calc(100dvh - 170px);padding:12px}
  .lune-lb .lb-frame{width:min(calc(100vw - 24px),calc(var(--lb-max-height) * var(--lb-image-ratio)))}
  .lune-lb .lb-p{left:6px}.lune-lb .lb-nx{right:6px}
}
/* per-form note under the table header (e.g. chip sizes) */
#prices .fnote{padding:10px 20px;font-size:13.5px;color:var(--mute);background:#FAFAF8;border-bottom:1px solid var(--line)}
#prices .fnote b{color:var(--dot);font-weight:700;white-space:nowrap}
#prices .fnote>bdi{white-space:nowrap}
#prices .fnote[hidden]{display:none}
@media(max-width:760px){#prices .fnote{padding:10px 14px;font-size:13px}}
/* guide-price note above the table */
#prices .pnote{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin:-6px 0 18px;padding:0 4px;font-size:14px;color:var(--mute)}
#prices .pnote p{margin:0;max-width:760px}
#prices .pnote p b{color:var(--ink);font-weight:600}
#prices .pnote .pnote-key{color:var(--dot)}
@media(max-width:760px){#prices .pnote{margin:-4px 0 14px;font-size:13.5px}}
/* stones we look for on request (side card) */
.lune-pl-main { min-inline-size: 0; }
@media (max-width: 760px) {
    .lune-pl-side-cards { display: contents; }
    .lune-pl-main { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
    .lune-pl-main > .table { border: 0; border-radius: 0; }
}
#prices .lune-pl-request { padding: 14px; border: 1px solid var(--line); }
#prices .lune-pl-request .rq-a { align-items: center; gap: 16px; }
#prices .lune-pl-request .itile { flex: none; width: 96px; height: 96px; background: var(--sky); }
#prices .lune-pl-request .rq-a > div > b { font-size: 15px; }
#prices .lune-pl-request .rq-a > div > span { display: block; margin-block-start: 4px; font-size: 13px; }
#prices .lune-pl-request .itile svg { width: 64px; height: 64px; }
#prices .lune-pl-request .rq-open {
    block-size: auto;
    min-block-size: 44px;
    min-inline-size: 0;
    max-inline-size: 100%;
    margin-block-start: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 700;
    text-align: start;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
}
#prices .lune-pl-request .rq-open:hover { text-decoration-thickness: 2px; }
#prices .lune-pl-request .rq-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (760px < width < 1100px) {
    #prices .pl { grid-template-columns: minmax(0, 1fr) clamp(200px, 28vw, 300px); gap: 16px; }
    #prices .rw {
        grid-template-columns: minmax(0, var(--pl-compact-name-share, 1.55fr)) repeat(3, minmax(0, 1fr)) var(--pl-compact-action-width, 72px);
        gap: 6px;
        padding-inline: 12px;
    }
    html:not(:lang(en)) #prices { --pl-compact-action-width: 88px; }
    #prices .rw:is(.lune-pl-by-strand, .th:has(.lune-pl-tier-short)) { --pl-compact-name-share: 1.36fr; }
    #prices .rw.th { letter-spacing: .025em; }
    #prices .lune-pl-tier-full { display: none; }
    #prices .lune-pl-tier-short { display: inline; white-space: nowrap; }
    #prices .th div:nth-child(4):has(> .lune-pl-tier-short) { white-space: nowrap; }
    #prices .th div:nth-child(4):has(> .lune-pl-tier-short)::before { margin-inline: 0 1px; }
    #prices .rn b { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
    #prices .rn .nm {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    #prices .rn .dsub { line-height: 1.25; }
    #prices .rn [data-lune-product-photo] { text-align: start; }
    #prices .rn [data-lune-product-photo] > b { display: flex; align-items: center; gap: 3px; }
    #prices .rn [data-lune-product-photo] > b .cam { flex: none; margin-inline: 0; }
    #prices .rn :is([data-lune-product-photo] > b .cam, .lune-pl-linked-name > [data-lune-product-photo]) {
        translate: var(--lune-pl-camera-x, 0px) var(--lune-pl-camera-y, 0px);
        transition-property: color;
    }
    #prices .rw .add { min-inline-size: 0; }
    #prices .rw .rp { font-size: 14px; white-space: normal; }
    #prices .rw .rp :is([data-lune-row-price], small) { display: inline-block; white-space: nowrap; }
    #prices .rw.lune-pl-by-strand .rp { white-space: nowrap; }
    #prices #rows > .rw:has(> .rp.t0 > .na) > .rn { grid-column: 1 / 3; }
    #prices #rows > .rw:has(> .rp.t0 > .na) > .rp.t0 { grid-column: 3 / 5; white-space: normal; }
    #prices #rows > .rw:has(> .rp.t0 > .na) > :is(.rp.t1, .rp.t2) { display: none; }
    #prices .side .card:not(.lune-pl-request) { padding-inline: clamp(14px, 6.1cqi, 18px); }
    #prices .lune-pl-how { padding-block: clamp(14px, 6.1cqi, 18px); }
    #prices .side .card h3 { font-size: 20px; }
    #prices .side .off-big b { font-size: clamp(44px, 17.5cqi, 52px); }
    #prices .lune-pl-request .rq-a { gap: clamp(10px, calc(100cqi - 272px), 16px); }
}
@container lune-pl-sidebar (width < 250px) {
    #prices .lune-pl-request:not(.open) .rq-a {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px 12px;
    }
    #prices .lune-pl-request .rq-a > div { display: contents; }
    #prices .lune-pl-request .rq-a b { overflow-wrap: anywhere; }
    #prices .lune-pl-request .rq-a > div > span,
    #prices .lune-pl-request .rq-a .rq-open { grid-column: 1 / -1; margin-block-start: 0; }
    #prices .lune-pl-request .rq-open { justify-self: start; }
}
#prices .lune-pl-request .rq-b { grid-template-columns: minmax(0, 1fr) 44px; }
#prices .lune-pl-request .rq-b input { grid-column: 1 / -1; }
#prices.lune-pl-fixed .lune-pl-request .rq-b { grid-template-columns: minmax(0, 1fr) 36px; }
#prices .lune-pl-request.open { background: var(--bg2); }

/* A small bounce on the header List button when a stone is added. */
@keyframes lune-bump { 0%, 100% { transform: none; } 35% { transform: scale(1.12); } 65% { transform: scale(.96); } }
.lune-bump { animation: lune-bump .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .lune-bump { animation: none; } }

.ld-open { overflow: hidden; }
.ld {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--ink);
    box-shadow: -12px 0 40px rgba(0,0,0,.12);
    overflow: hidden;
}
.ld:not([open]) { display: none; }
.ld[open] { display: flex; flex-direction: column; animation: ld-slide-in .3s cubic-bezier(.2,.8,.2,1) both; }
.ld::backdrop { background: rgba(17,17,17,.38); animation: ld-fade-in .25s both; }
@keyframes ld-slide-in { from { transform: translateX(100%); } }
@keyframes ld-fade-in { from { opacity: 0; } }
.ld-hd { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.ld-hd h2 { font-size: 24px; letter-spacing: -.02em; }
.ld-sum { margin-top: 2px; color: var(--mute); font-size: 14px; }
.ld-sum:empty { display: none; }
.ld-hd .ld-x { width: 40px; height: 40px; border: 1px solid var(--line); }
.ld-bd { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 24px 20px; overscroll-behavior: contain; }
.ld-it { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ld-thumb { grid-row: span 2; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg2); }
.ld-nm { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ld-meta { color: var(--mute); font-size: 13px; line-height: 1.4; }
.ld-line { align-self: start; font-weight: 700; font-size: 15px; text-align: right; }
.ld-ctl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ld-step { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line); border-radius: var(--pill); }
.ld-step button { width: 36px; height: 34px; border: 0; border-radius: var(--pill); background: none; font-size: 18px; cursor: pointer; }
.ld-step button:disabled { color: var(--mute); opacity: .5; cursor: default; }
.ld-step span { min-width: 64px; padding-inline: 2px; text-align: center; font-size: 14px; font-weight: 600; }
.ld-rm { border: 0; background: none; color: var(--mute); font-size: 13px; text-decoration: underline; cursor: pointer; }
.ld-tier { grid-column: 2 / -1; font-size: 12.5px; color: #1f7a3d; }
.ld-tot { margin-top: 16px; font-size: 14px; }
.ld-tot div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.ld-tot div > :last-child { text-align: right; }
.ld-tot .ld-muted { color: var(--mute); }
.ld-tot .ld-first { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.ld-tot .ld-min { color: #a65325; }
.ld-note { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--rs); background: var(--bg2); font-size: 13px; line-height: 1.5; color: #444; }
.ld-ft { flex: none; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.ld-ft > .btn { width: 100%; }
.ld-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ld-alt a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 14px; font-weight: 600; }
.ld-alt a:hover { border-color: var(--ink); }
.ld-alt svg { width: 16px; height: 16px; }
.ld-safe { margin: 10px 0 0; text-align: center; color: var(--mute); font-size: 12.5px; }
.ld-safe a { display: inline-block; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ld-empty { padding: 48px 8px; text-align: center; }
.ld-empty p { margin-bottom: 18px; color: var(--mute); }
.ld-empty .btn { min-height: 46px; height: auto; margin: 0 4px 8px; }
.ld-bar { display: none; }
.ld-bar-over-pager { visibility: hidden; }

@media (max-width:760px) {
    .ld { inset: auto 0 0; width: 100%; height: auto; max-height: 90vh; max-height: 90dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.14); }
    .ld[open] { animation-name: ld-rise-in; }
    @keyframes ld-rise-in { from { transform: translateY(100%); } }
    .ld::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; translate: -50%; border-radius: 2px; background: #d6d6d2; }
    .ld-hd { padding: 24px 18px 14px; }
    .ld-bd { padding: 0 18px 16px; }
    .ld-ft { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
    .ld-bar:not([hidden]) { position: fixed; z-index: 45; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 8px 8px 18px; border-radius: var(--pill); background: #111; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
    .ld-bar b { display: inline-flex; flex: none; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--pill); background: #fff; color: #111; font-size: 14px; }
    .ld-bar #ld-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ld-bar.ld-note #ld-count { font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) {
    .ld[open], .ld::backdrop { animation: none; }
}
#prices .rw.lune-pl-quote {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n a";
}
#prices #thead[hidden] { display: none; }
#prices .lune-price-group {
    padding: 14px 18px;
    font-size: 16px;
    scroll-margin-top: calc(var(--head-h) - var(--viewport-pad) + 16px);
}
@media (max-width: 760px) {
    #prices.lune-pl-fixed .fchips:has([data-k="m"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #prices .fchip[data-k="r"],
    #prices .fchip[data-k="m"] {
        white-space: nowrap;
    }
}
#prices .req[hidden]{display:none}

#prices .fpick { display: none; }
/* Phone: fewer repeated notes and cards (boss 11-26). */
@media (max-width: 760px) {
    #prices .fchips { display: none; }
    #prices .fpick { display: block; position: relative; flex: 1 1 100%; inline-size: 100%; }
    #prices .fpick-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        inline-size: 100%;
        block-size: 48px;
        padding-inline: 20px 18px;
        border: 1px solid var(--line);
        border-radius: var(--pill);
        background: #fff;
        color: var(--ink);
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }
    #prices .fpick-btn em, #prices .fpick-list em { font-style: normal; font-weight: 500; color: var(--mute); }
    #prices .fpick-btn::after {
        content: "";
        inline-size: 8px;
        block-size: 8px;
        margin-inline-start: auto;
        border-inline-end: 2px solid var(--ink);
        border-block-end: 2px solid var(--ink);
        transform: translateY(-2px) rotate(45deg);
        transition: transform .15s;
    }
    #prices .fpick-btn[aria-expanded="true"] { border-color: var(--ink); }
    #prices .fpick-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
    #prices .fpick-list:not([hidden]) {
        position: absolute;
        z-index: 30;
        inset: calc(100% + 6px) 0 auto;
        display: grid;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: var(--r);
        background: #fff;
        box-shadow: 0 12px 30px rgba(0,0,0,.1);
    }
    #prices .fpick-list button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-block-size: 44px;
        padding-inline: 14px;
        border: 0;
        border-radius: var(--rs);
        background: none;
        color: var(--ink);
        font: inherit;
        font-size: 15px;
        text-align: start;
        cursor: pointer;
    }
    #prices .fpick-list button:hover, #prices .fpick-list button:focus-visible { background: var(--bg2); outline: none; }
    #prices .fpick-list button[aria-selected="true"] { background: var(--bg2); font-weight: 600; }
    /* kg/lb and the currency sit together on one short line, without the label. */
    #lune-weight-mobile-options > span { display: none; }
    .lune-pl-tools #lune-weight-mobile:not([hidden]) { flex: none; justify-content: flex-start; }
    .lune-pl-tools .lune-pl-pager:not([hidden]) { flex: 1 1 0; min-inline-size: 0; column-gap: 8px; }
    /* All three tier prices stay, each with its label. */
    /* Every stone row is the same height, with or without a size line. */
    /* Keep the title and Add action aligned above the pricing area. */
    #prices #rows > .rw:not(.lune-pl-quote) {
        grid-template-rows: auto 1fr;
        row-gap: 4px;
        min-block-size: 96px;
        padding-block-end: 2px;
    }
    #prices #rows > .rw:not(.lune-pl-quote) :is(.rn, .ra) { align-self: start; }
    #prices #rows > .rw .rn,
    #prices #rows > .rw .rn > [data-lune-product-photo] {
        display: flex;
        align-items: baseline;
        column-gap: 6px;
        min-inline-size: 0;
        text-align: start;
    }
    #prices #rows > .rw:not(.lune-pl-quote) .rn :is(b, .lune-pl-linked-name):has(~ .msub) {
        flex: none;
        max-inline-size: 75%;
    }
    #prices #rows > .rw .rn b {
        display: flex;
        align-items: center;
        min-inline-size: 0;
    }
    #prices #rows > .rw .rn .nm {
        min-inline-size: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #prices #rows > .rw .rn b .cam {
        flex: none;
        margin-left: 0;
        margin-inline-start: 6px;
    }
    #prices #rows > .rw .rn .msub {
        min-inline-size: 0;
        margin: 0;
        white-space: nowrap;
    }
    #prices #rows > .lune-pl-quote .rn,
    #prices #rows > .lune-pl-quote .rn > [data-lune-product-photo] { display: block; }
    #prices #rows > .lune-pl-quote .rn .msub { white-space: normal; }
    #prices #rows > .rw .rbest {
        align-self: start;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-block-size: 0;
        margin-top: 0;
    }
    #prices #rows > .rw .rbest:has(> .na) {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
    }
    #prices #rows > .rw .rbest > .na {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .02em;
        line-height: 1.3;
    }
    /* How it works sits further down and the top bar carries the offer. */
    #prices .lune-pl-side-cards > :is(.lune-pl-how, #offer) { display: none; }
    #prices .lune-pl-request .itile, #prices .lune-pl-request .rq-a > div > span { display: none; }
    #prices .lune-pl-request .rq-a > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    #prices .lune-pl-request .rq-open { margin: 0; }
}

/* The hero photos open in the same full-size viewer. */
.hero .trio img { cursor: zoom-in; }

/* + Add is plain bold text on every screen; ✓ Added turns grey (boss 11-26, draft E). Tap area stays 44 px. */
#prices .rw .add { min-width: 0; min-height: 44px; padding: 0 0 0 12px; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 700; }
#prices .rw .add.on { background: none; color: var(--mute); font-weight: 600; }
#prices .rw .add.on::before { content: "✓ "; }
@media (max-width: 760px) {
    /* Keep "+ Add" on the stone name line, as in the draft. */
    #prices .rw .ra { align-self: start; margin-block-start: -12px; }
}

/* Tarot card checkout: a tarot-only list can be paid by card. */
.lune-tc { margin-top: 12px; }
.lune-tc .sum { display: flex; justify-content: space-between; gap: 10px; }
.lune-tc-ship { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.lune-tc-ship select { flex: 1; max-width: 62%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: inherit; }
.lune-tc .sum.tot { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.lune-tc-pay { width: 100%; margin-top: 12px; }
.lune-tc-pay:disabled { opacity: .45; cursor: not-allowed; }
.lune-tc-paypal { min-height: 50px; width: 100%; margin-top: 8px; }
.lune-tc-msg { min-height: 0; margin: 8px 0 0; font-size: 13px; color: #a65325; }
.lune-tc-msg:empty { display: none; }
.lune-tc .fine { margin-top: 8px; }
.lune-tc-alt { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ld-bd .lune-tc { margin-top: 16px; font-size: 14px; }
.ld-bd .lune-tc .sum { padding: 4px 0; }
.ld-bd .lune-tc .sum.tot { font-size: 17px; font-weight: 700; }
.ld-ft > .btn.ghost { background: #fff; color: var(--ink, #111); border: 1px solid currentColor; }
.lune-tc-done { position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); padding: 18px 48px 18px 20px; border-radius: 14px; background: #111; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lune-tc-done b { display: block; font-size: 16px; }
.lune-tc-done p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #ddd; }
.lune-tc-done button { position: absolute; top: 12px; right: 12px; color: #fff; }
