/* css/v1/list-ft-cards.css — the List Flip window's master pane as the mockup draws it (js/v1/screens/list-ft-cards.js places the cards, each its own file js/v1/cards/list-ft-*.js and add-*.js):
   the title's count at the right of its label line, the category leaf block over one column, the package boxes beside the Platform Comps & WHY button in the cost row, and the Item
   Specifics block of the master row (.lw-ft-specs) and of the open tab's Item Specifics card: its heading with the count at the right, then three rows of fields to a line, each
   label over its control. It loads after css/v1.css. */

/* the title row: the title's count at the right of its label line; the Item Category block over one column */
.lw-v1 #lw-ft-inner div:has(> #add-title-counter){flex:1 1 auto}
.lw-v1 #lw-ft-inner #add-title-counter{margin-left:auto}
.lw-v1 #f-ebay-leaf-card .ft-cc-cols{grid-template-columns:minmax(0,1fr)}
html[data-theme="dark"] .lw-v1 #f-ebay-leaf-card .ft-cc-title{color:#f1f5f9}
html[data-theme="dark"] .lw-v1 #f-ebay-leaf-card .ft-cc-cols{border-color:#2b3445;background:#1f2633}
html[data-theme="dark"] .lw-v1 #f-ebay-leaf-card .ft-cc-pick-btn{border-color:#334155;background:#171c26;color:#f1f5f9}

/* the cost row: the package boxes with the Platform Comps & WHY button beside them, and the pricing cards under them */
.lw-v1 .lw-fv-pkg{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.5rem .75rem;padding-top:.625rem;border-top:1px solid rgb(226 232 240 / 0.7)}
.lw-v1 .lw-fv-pkg > .f-pkg-box{flex:1 1 15rem}
.lw-v1 .lw-fv-pkg .v1-pkg-grid{gap:.375rem}
.lw-v1 .lw-fv-pkg > #lw-comps-toggle{flex:none;margin-left:auto;padding-bottom:.375rem;font-size:12px}
html[data-theme="dark"] .lw-v1 .lw-fv-pkg,html[data-theme="dark"] .lw-v1 #lr-pricing-cards{border-top-color:#2b3445}

/* the Item Specifics block (js/items/specifics-block.js): heading at the left and the count at the right of the first line, the rows three to a line with the label over
   the control, a required row's star after its name, a line of the block's own (a history line, an empty or error note, Show N more) across the card */
.lw-v1 .lw-ft-specs .section-hdr{font-size:12px;font-weight:600;color:#334155}
html[data-theme="dark"] .lw-v1 .lw-ft-specs .section-hdr{color:#f1f5f9}
/* the two cards' titles in the mockup's words: the block's heading text is the card's name classic's code reads, so it stays in the page at size 0 and the title shows after it */
.lw-v1 :is(.lw-ft-specs,#form-ebay #ebay-specifics-container) .lr-head .section-hdr{font-size:0}
.lw-v1 .lw-ft-specs .lr-head .section-hdr::after{content:"FT Stored Flip Specifics";font-size:12px}
.lw-v1 #form-ebay #ebay-specifics-container .lr-head .section-hdr::after{content:"eBay Item Specifics";font-size:12px}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block > .lr-sec{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.625rem .5rem;align-items:start}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block > .lr-sec > .lr-head{grid-column:1 / span 2;grid-row:1;min-width:0}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block > .lr-sec > .form-info[data-spec-count]{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block > .lr-sec > :not(.lr-head,[data-spec-count],.lr-spec-row,.ft-spec-more){grid-column:1 / -1}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .ft-spec-more:not([hidden]){display:contents}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-row{display:flex;flex-direction:column;gap:.125rem;min-width:0}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-label{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;min-width:0;font-size:12px;font-weight:500;color:#475569}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-label > .lr-req{margin-left:0;color:inherit;font-weight:inherit}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-label > .lr-req::after{content:"*";margin-left:2px;color:#e11d48;font-weight:700}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-ctrl{min-width:0}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-ctrl > textarea{width:100%}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-row:is([data-spec-wide="1"],[data-spec-wide="2"]){grid-column:span 2}
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-row[data-spec-wide="full"]{grid-column:1 / -1}
/* the length, width and height line (js/items/specifics-block.js ftSpecificsLwhWrap()): a line of its own, the three in its thirds */
.lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .ft-spec-lwh{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.625rem .5rem;align-items:start}
html[data-theme="dark"] .lw-v1 :is(.lw-ft-specs,#pane-container .section-card[data-sec="item specifics" i]) .ft-specifics-block .lr-spec-label{color:#cbd5e1}
/* the master card shows the specifics the flip holds and the required ones (js/v1/cards/list-ft-specifics.js marks the rows): blank rows that are not required (until the card's third stage), filled rows past the sixth (at its first stage), and the block's own Show N more are hidden */
.lw-v1 .lw-ft-specs .ft-specifics-block :is(.lw-spec-blank,.lw-spec-over){display:none !important}
.lw-v1 .lw-ft-specs .ft-specifics-block .ft-spec-more-row{display:none}
