#wl-wrapper {
}

/* Buttons */
#wl-wrapper .button {
    text-decoration: none;
}

#wl-wrapper a.wl-but {
}

/* class added to all buttons for wl */
#wl-wrapper button.wl-but {
}

/* class added to all buttons for wl */
#wl-wrapper input.wl-but {
}

/* class added to all buttons for wl */
#wl-wrapper .wl-but.small { /*font-size:11px;padding:5px 10px;*/
}

/* general */
#wl-wrapper .wl-clear:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#wl-wrapper .wl-clear {
}

/* Hide from IE Mac \*/
#wl-wrapper .wl-clear {
    display: block;
}

/* End hide from IE Mac */ /* End Clearfix */
#wl-wrapper .wl-right {
    float: right;
}

#wl-wrapper .wl-left {
    float: left;
}

#wl-wrapper .wl-row {
    margin-bottom: 15px;
    clear: both;
}

/* standard row of items, used multiple places */
#wl-wrapper .wl-row-box {
}

/* fancier row with backrgound/border */
#wl-wrapper .ctr {
    text-align: center
}

#wl-wrapper .vtop {
    vertical-align: top !important;
}

#wl-wrapper .wl-fgroup {
    float: left;
    margin-right: 10px;
}

/* grouping of form field/select items */
#wl-wrapper .wl-intro {
    margin-bottom: 20px;
}

/* simple container around title/description of lists */
#wl-wrapper .wl-intro-desc {
}

/* div around description output */
#wl-wrapper .wl-share-url {
    font-size: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

/* div around Wishlist URL output */
#wl-wrapper .wl-small {
    font-size: 11px; /*color:#8c8c8c;*/
    font-weight: normal;
}

#wl-wrapper .no-marg {
    margin: 0;
}

/* bulk option area */
#wl-wrapper .bulk-opt {
}

/* wrapper */
#wl-wrapper .wl-sel {
}

/* select box */
#wl-wrapper .move-list-sel {
    max-width: 150px;
}

/* optgroup for bulk actions */

/* div wrap around */
#wl-wrapper .wl-manage-link {
    display: block;
    float: left;
    margin-left: 20px;
}

/* manage list link */
#wl-wrapper .wl-share-links {
    margin: 0;
    padding: 0;
    float: left;
    line-height: 16px;
}

/* ul of share icons */
#wl-wrapper .wl-share-links li {
    margin: 0 5px 0 0;
    float: left;
    list-style-type: none;
}

#wl-wrapper .wl-share-links a {
    display: block;
    width: 16px;
    height: 16px;
    background: url('../images/wl-share-icons.png') no-repeat 0 0;
    text-indent: -9999px;
}

#wl-wrapper .wl-email {
}

#wl-wrapper .wl-facebook a {
    background-position: 0 -16px;
}

#wl-wrapper .wl-twitter a {
    background-position: 0 -48px;
}

#wl-wrapper .wl-pinterest a {
    background-position: 0 -32px;
}

/*
 * Tables.
 *
 * The four manage-your-lists templates - my-lists.php, my-account-lists.php,
 * find-a-list.php and create-a-list.php - each render their own real table,
 * class="wl-table wl-manage", living directly in #wl-wrapper. The rules below
 * are theirs. The interactive list grid (View a List, Edit list, and the
 * block) is a <ul>, not a table, and declares its own layout further down
 * this file.
 *
 * .wl-privacy-col below is #wl-wrapper-scoped only, because it belongs
 * solely to the "manage your lists" table.
 */

/* class applied to the four manage-your-lists templates' tables */
#wl-wrapper .wl-table:not(.manage) td {
    vertical-align: top;
    padding: 5px 10px
}

/* need to add padding since most woothemes do not have any padding set */
#wl-wrapper .wl-table:not(.manage) td:first-child {
    padding-left: 10px !important;
}

/* woocommerce has !important saying all table td first child should have no padding, but we want padding, so important added */

/* left aligns the list/product name column - the four manage-your-lists
   tables' "List Name" column */
#wl-wrapper .wl-table:not(.manage) .product-name {
    text-align: left;
}

/* the "Date Added" column on the four manage-your-lists tables' own table */
#wl-wrapper .wl-table .wl-date-added {
    text-align: center !important;
}

/* the "manage your lists" table's own privacy column - a different table
   than .wl-table, still #wl-wrapper-scoped since it has no block mount */
#wl-wrapper .wl-privacy-col {
    text-align: center !important;
}

#wl-wrapper .wl-list-btn-quantity-update.button {
    float: right;
}

/* The action rows above and below a list: sort/filter on View a List, the
   bulk Actions dropdowns on Edit My List. These were layout tables - a
   <table> holding one row of labels and one row of controls - which made a
   screen reader announce a data table with columns, and forced the whole
   strip to be laid out by floats.

   Flex-wrap instead, so the strip reflows to one field per line on a narrow
   screen rather than overflowing. Gaps are expressed in em so they follow
   whatever font size the theme sets, and the theme's own button and select
   styling is left completely alone - this rules on arrangement only. */
#wl-wrapper .wl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75em 1em;
    margin: 5px 0;
}

#wl-wrapper .wl-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    margin: 0;
}

/* This field holds buttons, not a label above a control, so it lays them in a
   row. The column direction it inherits stacked "Apply Action" over "Move
   selected to list..." with 340px of empty strip beside them. `align-items`
   keeps the submit on the control baseline rather than the label baseline, so
   it still lines up with the selects beside it. */
#wl-wrapper .wl-toolbar__field--action {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5em;
}

#wl-wrapper .wl-toolbar__label {
    margin: 0;
}

/* The table rules below still apply: .wl-actions-table is left in place for
   stores running a customised template override that still emits one. */

/* action row containing selects for viewing/managing lists */
#wl-wrapper .wl-actions-table {
    width: auto;
    float: left;
    margin: 5px 0;
}

/* need margins here otherwise in some themees it adds 20-40px or 0px margins at bottom which pushes it too far away from table...table containing selects and sorting options on table views */
#wl-wrapper .wl-actions-table.wl-right {
    float: right;
    margin-bottom: 0;
}

#wl-wrapper .wl-actions-table,
#wl-wrapper .wl-actions-table table,
#wl-wrapper .wl-actions-table td,
#wl-wrapper .wl-actions-table tr,
#wl-wrapper .wl-actions-table th {
    padding: 0;
    border: none;
    background: none;
    vertical-align: middle;
}

/* otherwise some themes put borders and colors around these which looks strange */
#wl-wrapper .wl-actions-table select {
    margin-right: 1em;
}

/* #wl-wrapper .wl-actions-table td {padding:0 5px 0 0;}  spaces apply action button away a bit necessary so button doesn't touch select */

#wl-wrapper .wl-stock-status {
    margin: 0;
}

/* additional class added to stock p */
#wl-wrapper .wl-manage {
}

/* table class for manage your lists table */
#wl-wrapper .wl-privacy-col {
    width: 150px;
}

/* th/td class for privacy settings */
#wl-wrapper .wl-priv-sel {
}

/* select box for privacy */
#wl-wrapper .wl-manage .row-actions {
    margin-bottom: 5px;
}

#wl-wrapper .wl-manage .row-actions a { /* font-size:12px;color:#8c8c8c; */
}

#wl-wrapper .wl-manage .row-actions small a {
    opacity: 0.7;
    text-decoration: none;
    font-weight: normal;
}

#wl-wrapper .wl-manage .row-actions small a:hover {
    opacity: 1.0;
}

#wl-wrapper .wl-manage td.actions {
    text-align: center !important;
}

#wl-wrapper .reg-table {
}

/* class applied to registry tables */
#wl-wrapper .purchased {
}

/* when registry items have been purchased, class added to tr to allow color styling of row/text */
#wl-wrapper .purchased td {
    background-color: #fafafa
}

/* form stuff */
#wl-wrapper .wl-form {
    margin-bottom: 20px;
}

/* form stuff */
#wl-wrapper label {
    font-weight: bold;
    cursor: pointer;
    float: none;
    width: auto;
    display: block;
}

/* need to set these properly for our forms otherwise can break depending on which wootheme being used */
#wl-wrapper .wl-form ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* The list of items opens popovers past its edge: a row's menu and note
   editor. The rule above outranks .wl-list .wl-list__items. */
#wl-wrapper .wl-form ul.wl-list__items {
    overflow: visible;
}

#wl-wrapper .wl-form .wl-inline li {
    float: left;
    display: inline;
    margin-right: 10px;
}

#wl-wrapper .wl-form input[type="radio"] + label {
    font-weight: normal;
}

#wl-wrapper .wl-form .form-row {
}

#wl-wrapper .wl-form .form-row textarea {
    width: 100%;
}

/* woocommerce removed width's in 2.0 so this keeps it straight */
#wl-wrapper .wl-form .form-row-wide {
}

#wl-wrapper .wl-form .form-row-first {
}

#wl-wrapper .wl-form .form-row-last {
}

/* search areas */
#wl-wrapper .wl-search-form {
}

#wl-wrapper .wl-search-form label {
}

#wl-wrapper .wl-search-form input.find-input {
    width: 40%;
    display: inline-block;
    margin-right: 1em;
}

#wl-wrapper .wl-search-form button {
    display: inline-block;
}

#wl-wrapper .wl-search-result {
}

/* class applied to h2 listing X results found */
#wl-wrapper .wl-find-table {
}

/* table showing search results */
#wl-wrapper .wl-pers-name {
}

#wl-wrapper .wl-date-added {
}

#wl-wrapper .wl-table + .wl-row {
    margin-top: -10px;
}

/* tabbed areas */
/* The panel carries .woocommerce-tabs, and themes set overflow: hidden on
   that class. A row's menu and note editor open past the panel's edge. */
#wl-wrapper .wl-tab-wrap {
    overflow: visible;
}

/* Radio groups on the Settings tab. These were two-column layout tables -
   radio in one cell, label in the other - so the radio and its label were not
   in the same element and only the label text was clickable. A <label>
   wrapping both makes the whole row a hit target, and flex keeps the radio on
   the first line of text when the description wraps.

   The rule for #wl-wrapper label sets display:block and bold, which is right
   for a form field's label and wrong for a choice in a group, so both are
   overridden here rather than weakened there. */
#wl-wrapper .wl-fieldset {
    margin: 0 0 1em;
    padding: 0;
    border: 0;
}

#wl-wrapper .wl-fieldset__legend {
    padding: 0;
    margin: 0 0 0.5em;
    font-weight: 700;
}

#wl-wrapper label.wl-choice {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin: 0 0 0.35em;
    font-weight: 400;
    cursor: pointer;
}

#wl-wrapper label.wl-choice:last-child {
    margin-bottom: 0;
}

#wl-wrapper .wl-choice input[type="radio"] {
    flex: none;
    margin: 0;
}

/* The tab strip was floated <li>s plus a clearfix and an IE6 *zoom hack.
   Floats lose: the Edit My List panel carries WooCommerce's own
   .woocommerce-tabs class - it has to, so themes style these panels the way
   they style product tabs - and a theme's .woocommerce-tabs ul.tabs li rules
   set display:block, which turned the strip into two full-width stacked rows
   in Storefront and anything derived from it.

   Flex settles it: a flex container's children are blockified and their float
   is ignored outright, so the strip is horizontal whatever the theme says
   about the list items. It also brings its own wrapping, which the floats
   never had - the tabs drop to a second line rather than overflowing.

   The boxed tab - a rounded rectangle with a border that opens into the panel
   below it - was this strip's look for its whole life, and it reads as a
   control panel rather than as a place in a page. The strip is two words long
   and sits under a heading; an underline under the current one says where the
   shopper is with nothing else drawn. Nothing about the box was load-bearing:
   the panel below has never had a border for the tab to open into. */
#wl-wrapper ul.wl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75em;
    margin: 0 0 20px 0;
    padding: 0;
    border-bottom: 1px solid #e6e4df;
}

#wl-wrapper .wl-tabs > li {
    margin-bottom: -1px;
    list-style-type: none;
}

#wl-wrapper .wl-tabs > li > a {
    display: block;
    padding: 0.65em 0;
    margin: 0;
    line-height: 20px;
    /* Transparent rather than absent so the tab does not move by two pixels
       when it becomes the current one. */
    border-bottom: 2px solid transparent;
    color: inherit;
    text-decoration: none;
}

#wl-wrapper .wl-tabs > li > a:hover {
    text-decoration: none;
    opacity: 1;
}

#wl-wrapper .wl-tabs > li > a[aria-selected="true"],
#wl-wrapper .wl-tabs > li.active > a {
    border-bottom-color: currentColor;
    color: inherit;
    opacity: 1;
    font-weight: 600;
    cursor: default;
}

#wl-wrapper .wl-panel {
}

/* add to wishlist buttons links */
#wl-wrapper.wl-button-wrap {
    position: relative;
    clear: both;
    width: 100%;
    padding: 10px 0 10px 0;
}

/* wrapper around buttons */
#wl-wrapper .wl-add-to {
    position: relative;
}

/* On a variable product the control is disabled until a variation is chosen.
   WooCommerce styles its own disabled add-to-cart button via
   `.woocommerce a.button.disabled`, so the button version of this control
   inherits the affordance but the link version does not. Match WooCommerce's
   values so both versions look disabled when they are. */
#wl-wrapper .wl-add-to.disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* additional class applied to button version for overwriting button colors */
#wl-wrapper .wl-add-link {
}

/* additional class applied to link version */
#wl-wrapper .wl-add-link.star {
    background: url('../images/star.png') no-repeat 0 0 !important;
    padding-left: 20px !important;
}

#wl-wrapper .wl-add-link.present {
    background: url('../images/present.png') no-repeat 0 0 !important;
    padding-left: 20px !important;
}

#wl-wrapper .wl-add-link.star:before, #wl-wrapper .wl-add-link.present:before {
    content: "" !important;
    margin-right: 0 !important;
}

/*
 * Add to Wishlist control (2.4.0+, ListRenderer::render_add_button()).
 *
 * Deliberately NOT scoped under #wl-wrapper, unlike everything above and
 * below it in this file: this control is never rendered inside one, on
 * either the classic mount (woocommerce_after_add_to_cart_form) or the
 * elementstark/add-to-wishlist-button block. The .wl-add-link rules above
 * style the legacy button retired in 2.4.0 (unregistered but left on disk
 * for a migration path); they never applied to this control and still do
 * not. "Custom Buttons" colours reach this control as an inline style on
 * this stylesheet's handle: WC_Wishlists_Plugin::add_custom_button_colors().
 */
/* One flex row, so the icon, label, count and spinner share a centre line
   instead of each resolving its own baseline. The parts are different heights
   by nature - a 1em square SVG, text, a rounded badge at 0.8em - and baseline
   alignment lines up their text baselines, which for an SVG is its bottom
   edge.

   The selector is this heavy on purpose. WooCommerce themes ship
   `.woocommerce button.button { display: inline-block }` at (0,2,1), which
   outranks a plain `.wl-add__button` and quietly reverts this to baseline
   alignment - measurably, the icon and label centres sat 3.4px apart. Matching
   both wrapper classes plus the element reaches (0,3,1) and wins on
   specificity rather than on load order or !important. */
.wl-add.woocommerce button.wl-add__button {
    cursor: pointer;
}

/* The control's own layout, deliberately NOT on the button.

   WooCommerce's woocommerce.css carries
   `.woocommerce ul.products li.product .button { display: inline-block }`,
   specificity (0,4,2). Nothing we can reasonably write for the button beats
   that, and themes pile on their own .button rules besides. When it wins, a
   flex context declared on the button disappears and `align-items` and `gap`
   go with it - the icon baseline-aligns instead of centring, and sits flush
   against the label with no gap at all. Measured on a stock theme: gap
   declared 7.5px, actual 0px; icon centre 3.4px above the label's. Storefront
   was clean only because it dequeues WooCommerce's stylesheets entirely.

   Note the selector there is `.button`, not `button.button`: an anchor would
   lose exactly the same fight. The element was never the problem, so the fix
   is not to change it but to stop putting our layout where other people style.

   MOVING THE LAYOUT OFF THE BUTTON WAS ONLY HALF THE FIX. This comment used
   to end "Nothing targets .wl-add__inner", which was wrong: themes do not
   only style `.button`, they style what is inside it. Flatsome ships
   `.button span { display: inline-block }` at (0,1,1), which beats a bare
   (0,1,0) class and takes the flex context away here just as WooCommerce's
   rule took it off the button - gap declared 0.5em, actual 0px, the icon
   flush against the label again. Measured on tableclothhiring.co.za's own
   stylesheet, which is the ticket this prefix comes from.

   So every rule in this control that gives an element inside the button a
   `display` carries the `.wl-add` prefix, putting it at (0,2,0). It is the
   same trade the button rule above makes: win on specificity, not on load
   order or !important. The one exception is the spinner, where being hidden
   is an invariant rather than a style; that rule says why it differs. */
.wl-add .wl-add__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

/* The gap now owns the spacing between the button's parts; the standalone
   margin these carry is for the dialog, where they are not in a flex row. */
.wl-add.woocommerce button.wl-add__button .wl-add__spinner {
    margin-left: 0;
}

/* wc_wishlist_use_button = 'link': no WooCommerce `button` class is added
   (see ListRenderer::add_button_presentation_class()), so this resets the
   <button> element back to reading as plain text instead of keeping the
   browser's default button chrome. */
.wl-add__button--link {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
}

/*
 * Busy states and the already-saved notice (2.4.0+).
 *
 * The button used to set the `disabled` attribute while it worked, which gave
 * the cursor a not-allowed pointer - the only feedback a click produced, and it
 * read as a refusal rather than as progress. Busy is now a class, so the
 * control stays legible and says what it is doing.
 */
/* `display` here is an invariant, not a style, so it is the one pair in this
   block that uses !important instead of a specificity bump - see the note on
   .wl-add__inner below for why bare classes inside the button lose.

   The idle spinner is decorative (aria-hidden) and means nothing except
   "working". A theme that reveals it has not restyled the control, it has
   parked a permanently animating ring next to the label on every tile, which
   is what tableclothhiring.co.za shipped under Flatsome's
   `.button span { display: inline-block }` at (0,1,1).

   BOTH HALVES CARRY IT OR NEITHER DOES. !important on this rule alone would
   also beat the .is-busy rule below, and the spinner could never appear while
   the button worked - trading a spinner that never stops for one that never
   starts. */
.wl-add__spinner {
    display: none !important;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    vertical-align: -0.125em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wl-add-spin 0.6s linear infinite;
}

/* The saved marker is the button's own icon, filling in: outline while the
   product is on none of the shopper's lists, solid once it is on one. Sized in
   `em` so it tracks the button's font size, and inlined as SVG rather than an
   image so `currentColor` follows whatever colour the theme gives the button -
   which is exactly what the retired PNG treatment could not do, and why that
   one was restricted to link presentation. */
.wl-add .wl-add__icon,
.wl-add .wl-add__icon-state {
    display: inline-flex;
    flex: none;
    width: 1.15em;
    height: 1.15em;
}

.wl-add .wl-add__icon-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wl-add__icon-state[hidden] {
    display: none !important;
}

/* Checking, then revealing.

   The control is server-rendered and cannot know whether this product is
   saved until the shopper's lists come back. It used to render the outline
   icon straight away and flip it to solid on arrival - a wrong answer
   corrected in public, and the correction landed under the cursor.

   So: nothing but a spinner in the icon's slot until the answer is known.
   data-wl-ready is set on the control by state.listsReady. Keying on it in
   CSS rather than with another directive keeps the block and classic mounts
   byte-identical, with no getter to resolve differently server-side.

   MATCH THE VALUE, NOT THE ATTRIBUTE. These selectors used to be
   `:not([data-wl-ready])` and `[data-wl-ready]`, on the assumption that
   returning `false` from the getter removes the attribute. It does not: the
   Interactivity runtime stringifies it, so the control carries
   data-wl-ready="false" - which an attribute-presence selector matches
   happily. The icon was therefore revealed the moment the control hydrated
   rather than when the answer arrived, and a saved product showed outline
   first and corrected itself to solid when the fetch landed: exactly the
   flash the spinner exists to prevent. Measured on a shop listing: attribute
   present at 149ms, answer at 1198ms, so the wrong icon was on screen for
   about a second.

   Matching ="true" is also indifferent to whether a future runtime removes
   the attribute instead - absent and "false" both simply fail to match.

   The spinner is sized and positioned as the icon, so the button's width
   never changes between checking and answered. */
.wl-add:not([data-wl-ready="true"]) .wl-add__icon-state {
    display: none !important;
}

.wl-add[data-wl-ready="true"] .wl-add__icon-checking {
    display: none;
}

.wl-add .wl-add__icon-checking {
    display: block;
    /* Or it is an oval, not a circle.

       This is sized in PERCENTAGES, unlike the plugin's other two spinners
       which use em, and that is what makes it the only one affected. Under
       content-box a 2px border is added OUTSIDE the declared size, so the box
       wants to be 100% + 4px in both directions. Being a flex item, its width
       is then shrunk back to fit the icon slot - flex-shrink acts on the main
       axis - while nothing shrinks the cross axis, so the height keeps its
       extra 4px. Measured on a stock theme: a 17.26px square slot holding a
       17.26 x 21.26 spinner.

       Declared rather than inherited because themes disagree about the global
       box-sizing, so the shape of our loading state should not depend on
       which one is active. */
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.5;
    animation: wl-add-spin 0.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .wl-add__icon-checking {
        animation: none;
    }
}

/* Assistive text only: the mark and count carry this visually. Matches
   WordPress's own screen-reader-text so themes that already define it do not
   fight this rule. */
.wl-add__saved-state {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The other half of the pair above. Both are !important, so this still wins
   on being the more specific of the two. */
.wl-add__button.is-busy .wl-add__spinner,
.wl-add__create-submit.is-busy .wl-add__spinner {
    display: inline-block !important;
}

.wl-add__button.is-busy,
.wl-add__create-submit.is-busy {
    cursor: progress;
}

/* Inline variant for the dialog's own loading line, which has no button
   around it to inherit a colour from. */
.wl-add__spinner--inline {
    margin: 0 0.5em 0 0;
}

.wl-add__dialog-loading {
    display: flex;
    align-items: center;
    margin: 0 0 1em;
}

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

/* Respect a shopper who has asked for less motion: the spinner still appears,
   it just does not spin. */
@media (prefers-reduced-motion: reduce) {
    .wl-add__spinner {
        animation: none;
    }
}

.wl-add__already {
    margin-bottom: 0.75em;
    font-size: 0.9em;
}

.wl-add__already[hidden] {
    display: none !important;
}

.wl-add__already-lists {
    margin: 0.25em 0 0;
    padding-left: 1.2em;
}

/*
 * The list picker (ListRenderer::render_picker_dialog()).
 *
 * A native <dialog> opened with showModal(), so the backdrop, the focus trap,
 * Esc-to-close and centring are the browser's job - not, as in the
 * #wl-list-pop-wrap popover this replaced, hand-rolled offsets that had to be
 * corrected for the admin bar and re-corrected on every scroll event. That
 * popover's rules were deleted in 2.5.0: the template that printed its markup
 * was unregistered in 2.4.0, so they had not styled anything since.
 *
 * Colours stay unset on purpose: the dialog inherits the theme's, and a
 * merchant restyling it needs to beat one class, not a palette.
 */
/* One scroll region, not two.
   The dialog and .wl-add__lists could both overflow, so a shopper with more
   than a couple of lists on a normal-height monitor got a scrollbar on each -
   the outer one scrolling the heading and the create field out of reach while
   the inner one scrolled the rows. The dialog is now a flex column that owns
   the height budget, and the rows are the only part allowed to scroll: the
   heading, the product line and the create field stay put at any height.

   min-height: 0 on the flex children is what makes it work. A flex item will
   not shrink below its content without it, so the rows would push the dialog
   past its own max-height and hand the overflow straight back to the outer
   box - which is the two-scrollbar bug again, wearing a flex layout. */
.wl-add__dialog {
    width: min(50rem, calc(100vw - 2rem));
    max-height: min(44rem, calc(100vh - 4rem));
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* A closed dialog must stay closed: `display: flex` above would otherwise beat
   the UA stylesheet's `dialog:not([open]) { display: none }` and paint the
   picker into the page on every product tile. */
.wl-add__dialog:not([open]) {
    display: none;
}

.wl-add__dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.wl-add__dialog-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.75em;
}

.wl-add__dialog-title {
    margin: 0;
    font-size: 2em;
}

/* Which product this dialog is about, on its own line under the heading and
   clamped to one. A long name is not a rare case - this store's own longest
   already ran to three lines at the heading's size - and it must never push
   the lists off screen. The full name stays on the title attribute. */
.wl-add__dialog-product {
    margin: 0.15em 0 0;
    font-size: 0.95em;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The tab strip.
   A real tablist, so it is one tab stop: the store writes a roving tabindex and
   aria-selected at open (actions.syncTabs), and the arrow keys move between
   tabs. Styled as an underline rather than as buttons - these switch a view,
   they do not submit anything, and giving them button chrome inside a dialog
   that already has a primary button reads as three things to press. */
.wl-add__tabs {
    display: flex;
    gap: 1.25em;
    margin: 1em 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.wl-add__dialog button.wl-add__tab {
    flex: none;
    margin: 0;
    padding: 0.5em 0;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font: inherit;
    font-size: 0.95em;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    /* Sits on the strip's own border rather than above it. */
    margin-bottom: -1px;
}

.wl-add__dialog button.wl-add__tab:hover {
    opacity: 0.85;
}

/* currentColor, not a brand colour: the theme owns the palette, and the one
   picked here would clash with half of them. */
.wl-add__dialog button.wl-add__tab[aria-selected="true"] {
    border-bottom-color: currentColor;
    opacity: 1;
    font-weight: 600;
}

.wl-add__tab[hidden] {
    display: none !important;
}

/* Each panel is the flex child that shrinks, so the scroll region inside it
   still resolves against the dialog's height budget. min-height: 0 for the
   reason the dialog body documents: without it a flex item will not shrink
   below its content and the overflow lands back on the outer box. */
.wl-add__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wl-add__panel[hidden] {
    display: none !important;
}

/* A zero-list shopper can reach the lists panel now - before 2.4.0 they never
   saw the dialog at all - and an empty scroll region under a tab reads as a
   rendering fault rather than as an answer. */
.wl-add__lists-empty {
    margin: 1.25em 0 0;
    opacity: 0.7;
}

.wl-add__lists-empty[hidden] {
    display: none;
}

/* Who can see the new list. A fieldset because that is what a group of radios
   with one question is; the browser default border and padding are dropped
   because the question is already the legend. */
.wl-add__visibility {
    margin: 0.9em 0 1.1em;
    padding: 0;
    border: 0;
}

.wl-add__visibility-legend {
    padding: 0;
    margin: 0 0 0.5em;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Same defence as the row label: themes style bare <label> heavily, and a
   bottom margin here spaces the three options unevenly against the gap the
   flex column already gives them. */
.wl-add__dialog label.wl-add__visibility-option {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin: 0 0 0.35em;
    padding: 0;
    font-weight: inherit;
    font-size: 0.85em;
    cursor: pointer;
}

.wl-add__dialog label.wl-add__visibility-option:last-child {
    margin-bottom: 0;
}

.wl-add__visibility-input {
    flex: none;
    margin: 0;
}

/* The 2px of padding is for the rows' own borders and focus rings: without it
   the scroll container clips the first and last of them by a hairline, which
   reads as a rendering bug rather than as a design. The negative side margins
   put the block back where it was; the top margin is the gap under the
   heading, which carries no bottom margin of its own. */
.wl-add__lists {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 2px;
    margin: 1em -2px 0;
}

/* Each list is its own card. Separated rather than stacked flush, so two
   adjacent borders never sit on top of each other and read as one thick line.
   Colours are alpha blacks and currentColor throughout - the theme owns the
   palette, and a brand colour picked here would clash with half of them. */
.wl-add__list {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin-bottom: 0.5em;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.wl-add__list:last-child {
    margin-bottom: 0;
}

.wl-add__list:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.22);
}

/* A list the product is already on should read as settled rather than as one
   more option. :has() is unsupported in older browsers, where the checkbox
   alone still carries the state - so this is polish that degrades to nothing,
   not meaning that disappears. */
.wl-add__list:has(.wl-add__list-check:checked) {
    border-color: rgba(0, 0, 0, 0.32);
    background-color: rgba(0, 0, 0, 0.02);
}

/* The label carries the row's padding so the whole card is clickable, not
   just the words. The row itself stays a block so the expanded items sit
   underneath it rather than beside it.

   Selector weight is deliberate. This is a <label>, and themes style bare
   labels heavily - `label { display: block; margin-bottom: .5em; font-weight:
   600 }` is close to universal, and that bottom margin lands inside every row
   card, adding half a line to each and pushing a list of them into needing a
   scrollbar sooner. Two classes plus the element reaches (0,2,1), which beats
   both `label` and `.woocommerce label` on specificity rather than on load
   order or !important. font-weight is reset for the same reason: a row name is
   body text, not a form label. */
.wl-add__dialog label.wl-add__list-label {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 0;
    padding: 0.5em 0.85em;
    font-weight: inherit;
    cursor: pointer;
}

/* One fixed slot holding the checkbox and its spinner, which swap in place.
   Sized so the row does not reflow when a write starts: the two are different
   shapes, and letting them size the slot made every other row jump. */
.wl-add__list-toggle {
    flex: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

/* The checkbox is the control; the whole label is the target, so it needs no
   width of its own to fight the theme's form styles for. */
.wl-add__list-check {
    margin: 0;
}

/* Each row reports its own progress, in the place the shopper just clicked.
   One spinner on the dialog could not say WHICH list was being written to,
   and a spinner anywhere but here leaves the control looking untouched. */
.wl-add__list-spinner {
    position: absolute;
    width: 0.9em;
    height: 0.9em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wl-add-spin 0.6s linear infinite;
}

/* [hidden] loses to the display many themes set on inputs, and these two swap
   constantly, so the rule is inline-style-proof rather than left to the UA
   sheet. */
.wl-add__list-check[hidden],
.wl-add__list-spinner[hidden] {
    display: none !important;
}

/* The saved items behind one ticked checkbox, shown when the list holds the
   product more than once. Indented under their row so it is obvious which
   list they belong to. */
/* Indented inside its own card, lining up under the list name rather than
   under the dialog's edge, with a rule separating it from the row it belongs
   to. */
.wl-add__items {
    margin: 0 0.85em 0.6em 2.3em;
    padding-top: 0.5em;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wl-add__items[hidden] {
    display: none;
}

.wl-add__item {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    padding: 0.25em 0;
}

.wl-add__item-name {
    flex: 1 1 auto;
    font-size: 0.9em;
    /* A configuration can be long - several add-on values on one row - and it
       must not push the Remove control out of the card. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The explicit "save another configuration" control.

   Sits outside the row's label on purpose - see render_picker_dialog() - so it
   is indented to the same text column the list name occupies, rather than
   sitting under the checkbox slot where it would read as part of the toggle. */
.wl-add__list-save-config {
    display: block;
    margin: 0 0 0.35em calc(0.85em + 1.1em + 0.6em);
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.85em;
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    opacity: 0.85;
}

/* The rule above sets a display, so [hidden] - bound to
   !state.pickerIsConfigurable, which is false on every ordinary product -
   would otherwise lose to it and the button would show in every row of every
   picker. Same inline-style-proof rule the checkbox and spinner get. */
.wl-add__list-save-config[hidden] {
    display: none !important;
}

.wl-add__list-save-config:hover {
    opacity: 1;
}

.wl-add__list-save-config[disabled] {
    cursor: default;
    opacity: 0.5;
}

.wl-add__item-remove {
    flex: none;
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.85em;
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    opacity: 0.75;
}

.wl-add__item-remove:hover {
    opacity: 1;
}

/* One size for everything in the row. The name used to sit at full size
   against 0.85em siblings, which made the row taller than its content needed
   and set the count and visibility a step too far back to scan alongside it. */
.wl-add__list-name {
    flex: 0 1 auto;
    font-size: 0.85em;
}

/* Secondary information: how full the list is, and who can see it. Both sit
   to the right of the name, which is what the shopper actually reads. */
.wl-add__list-count,
.wl-add__list-visibility {
    flex: none;
    font-size: 0.85em;
    opacity: 0.7;
}

/* The count sits next to the name rather than out at the edge, so the two
   read as one label instead of as two columns. */
.wl-add__list-count {
    margin-right: auto;
}

/* The create form owns its own panel now, so it needs no rule separating it
   from the rows above - there are none. The top margin is the gap under the tab
   strip, which carries no bottom margin of its own. */
.wl-add__create {
    margin-top: 1.25em;
}

.wl-add__create-label {
    display: block;
}

.wl-add__create-input {
    display: block;
    width: 100%;
    margin-top: 0.5em;
    /* The button sits under this, and a theme's input margin is not something
       to rely on for the gap between them. */
    margin-bottom: 1em;
}

.wl-add__create-submit {
    margin-top: 0;
}

.wl-add__dialog .wl-add__success {
    margin-top: 1.25rem;
}

/* Theme notice display rules must not expose feedback before an action. */
.wl-add__dialog .wl-add__success[hidden],
.wl-add__dialog .wl-add__dialog-error[hidden] {
    display: none !important;
}

.wl-add__success .wl-add__success-link {
    display: inline-block;
    text-decoration: underline;
}

/* The display above beats the UA's [hidden] { display: none }. */
.wl-add__success .wl-add__success-link[hidden] {
    display: none;
}

.wl-add__dialog-error {
    margin: 0.75em 0 0;
    color: #b32d2e;
}

/* [hidden] loses to the `display` many themes set on <p> and <a>; these two
   are bound to context values that are empty far more often than not, so
   they get an inline-style-proof rule rather than relying on the UA sheet.
   Same fight state.chromeStyle exists for on the list grid. */
/* The listing control's wrapper (LoopControl::wrapper_classes()), on either
   rail, names the position it rendered at and whether the text shows. */

/* "On the product image": an absolute overlay in the tile's top-left corner.
   The tile has to be the containing block. WooCommerce's own stylesheet
   already makes li.product relative, but Storefront dequeues that sheet, and
   a block theme's tile is li.wc-block-product, so the tile is made relative
   here whenever it holds the overlay - and only then, so a theme that
   positions its tiles some other way is not touched for the other two. */
ul.products li.product:has(.wl-add-loop--before_image),
li.wc-block-product:has(.wl-add-loop--before_image) {
    position: relative;
}

.wl-add-loop--before_image {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    margin: 0;
}

/* On a photo the control does not borrow the theme's button chrome, which
   is designed for a page background. It wears what the competition ships
   for this position (TI Wishlist's default listing skin): a white pill with
   no border, a 14px label, an 18px icon, pink once the product is saved, and
   a fade on hover. Two departures from TI's numbers, both on purpose: the
   resting colour is TI's dark text colour rather than its light grey, which
   fails contrast on white, and the side padding is 12px so the pill sits
   evenly around icon and label. Icon-only makes it the 40px circle from the
   rule below. The heavy selector wins the same specificity fight documented
   at .wl-add__inner; a theme sets its own look with the same selectors. */
.wl-add-loop--before_image .wl-add.woocommerce button.wl-add__button,
.wl-add-loop--before_image .wl-add.woocommerce a.wl-add__button {
    color: #282828;
    background-color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: opacity 0.2s;
}

.wl-add-loop--before_image .wl-add.woocommerce button.wl-add__button:hover,
.wl-add-loop--before_image .wl-add.woocommerce a.wl-add__button:hover {
    color: #282828;
    background-color: #fff;
    text-decoration: none;
    opacity: 0.7;
}

.wl-add-loop--before_image .wl-add.woocommerce button.wl-add__button.is-saved,
.wl-add-loop--before_image .wl-add.woocommerce a.wl-add__button.is-saved {
    color: #ff97ba;
}

.wl-add-loop--before_image .wl-add__icon,
.wl-add-loop--before_image .wl-add__icon-state {
    width: 18px;
    height: 18px;
}

/* "Show Button Text" off: the label stays in the DOM for the accessible
   name (WordPress's own screen-reader-text recipe), the button goes round.
   The heavy selector is the one the rest of this file explains: theme
   .button rules outrank anything lighter. */
.wl-add-loop--no-text .wl-add__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.wl-add-loop--no-text .wl-add.woocommerce button.wl-add__button,
.wl-add-loop--no-text .wl-add.woocommerce a.wl-add__button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

.wl-add-loop--no-text .wl-add__inner {
    gap: 0;
    width: 100%;
    height: 100%;
}

.wl-add-loop--no-text .wl-add__icon,
.wl-add-loop--no-text .wl-add__icon-state {
    width: 1.35em;
    height: 1.35em;
}

.wl-add__dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
    margin-top: 1.5em;
}

/* The move dialog's footer is a commit and a way out, so it earns a rule
   above it - the add picker's actions sit under a panel that already has one. */
.wl-move__actions {
    flex-wrap: wrap;
    padding-top: 1.1em;
    border-top: 1px solid #e6e4df;
}

@media (max-width: 480px) {
    /* The commit takes the row on a phone, so the thumb lands on it rather
       than on Cancel beside it. */
    .wl-move__actions .wl-move__confirm {
        flex: 1 1 auto;
    }

    .wl-move__destination {
        padding: 0.8em;
        gap: 0.6em;
    }
}

/* The quiet control in a dialog's footer.
   `.button alt` is WooCommerce's primary modifier, so the button WITHOUT it
   is the secondary one - but a theme's plain `.button` is usually its own
   primary colour, which came out louder than the action beside it. Cancel
   read as the thing to press and Send email as the way out.

   Only the colour is taken away. The padding and the type stay the theme's,
   so the two buttons remain the same size as each other. */
.wl-add__dialog-actions .button:not(.alt),
.wl-add__dialog-actions .button:not(.alt):hover,
.wl-add__dialog-actions .button:not(.alt):focus {
    border: 1px solid #d9d7d1;
    background: transparent;
    color: inherit;
}

.wl-add__dialog-actions .button:not(.alt):hover,
.wl-add__dialog-actions .button:not(.alt):focus {
    border-color: currentColor;
}

/* The share-by-email dialog.
   -----------------------------------------------------------------------
   Borrows the list picker's dialog, body, title and actions - it is the same
   kind of object and there is no reason for it to look like a different one.
   What is left is the form, which the picker has no equivalent of, and a
   narrower box: three fields do not need the 50rem the list rows do.

   NOT scoped to #wl-wrapper. This markup renders in wp_footer, outside that
   wrapper, which is also why the Bootstrap 2 rules this replaces were
   unscoped. */
.wl-email__dialog {
    width: min(34rem, calc(100vw - 2rem));
}

.wl-email__field {
    margin: 0 0 1em;
}

.wl-email__field label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
}

/* One rule for the input and both textareas, which is the whole of what was
   wrong with them: the name field carried WooCommerce's `.input-text` and the
   textareas carried nothing, so the To: field rendered in the UA's monospace
   textarea font beside a themed input. `width: 95%` did the rest - it is what
   left every field short of the dialog's right edge by a different amount.

   border-box, or `width: 100%` is 100% of the CONTENT box and the padding is
   added on top. */
.wl-email__dialog .wl-email__input {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.5em 0.65em;
    border: 1px solid #d9d7d1;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.4;
}

.wl-email__dialog textarea.wl-email__input {
    display: block;
    resize: vertical;
}

.wl-email__dialog .wl-email__input:focus {
    border-color: currentColor;
    outline: none;
}

/* The placeholder is a whole sentence of example addresses and has to be
   readable at the field's own size rather than shrunk to fit. */
.wl-email__dialog .wl-email__input::placeholder {
    opacity: 0.55;
}

/* The form is the dialog's scroll region, for the reason the picker's rows
   are: the title and the actions stay put at any height. */
.wl-email__form {
    min-height: 0;
    overflow-y: auto;
}

/* The image-replacement hack behind the Pinterest share link, which is an
   anchor with real text for a screen reader and a sprite for everyone else.
   All that survives of the Bootstrap 2.2.1 helpers that used to live here:
   `.clearfix` and `.input-block-level` went with the modal in 2.5.0, and
   nothing in this plugin or its templates had ever used either. */
.hide-text {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    #wl-wrapper .wl-share-links a {
        background-image: url('../images/wl-share-icons@2x.png');
        background-size: 16px 64px;
    }

    #wl-wrapper .wl-add-link.star {
        background-image: url('../images/star@2x.png');
        background-size: 16px 16px;
    }

    #wl-wrapper .wl-add-link.present {
        background-image: url('../images/present@2x.png');
        background-size: 16px 16px;
    }
}

.wishlist-message-dismiss {
    display: block;
    float: right;
}

/* ------------------------------------------------------------------
 * The snackbar: the add-to-cart confirmation on list screens.
 *
 * A fixed overlay rather than in-flow text, so there is nothing for a
 * theme to fight - no row growth, no column reflow. The surface is
 * ours and dark on every theme (Material's inverted-surface trade:
 * legible on light and dark sites alike, overridable through the
 * custom properties below); the typeface is the theme's, inherited,
 * so it still reads as part of the site.
 *
 * The [hidden] override is load-bearing: `display: flex` on the class
 * would otherwise beat the UA stylesheet's [hidden] { display: none }
 * and the snackbar would render its empty self forever.
 * ------------------------------------------------------------------ */

.wl-snackbar {
    position: fixed;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 1.5em;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: .8em 1.1em;
    border-radius: 4px;
    background: var(--wl-snackbar-bg, #323232);
    color: var(--wl-snackbar-color, #fff);
    font-size: .875rem;
    line-height: 1.4;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .2),
                0 6px 10px 0 rgba(0, 0, 0, .14),
                0 1px 18px 0 rgba(0, 0, 0, .12);
}

.wl-snackbar[hidden] {
    display: none;
}

/* Placement is a modifier the renderer always emits, resolved from the
   wc_wishlist_snackbar_position setting / woocommerce_wishlist_snackbar_position
   filter. The base class carries no inset of its own, so an instance that
   somehow lost its modifier would sit at the viewport origin - kept that way
   deliberately, because it makes a missing modifier visible instead of
   quietly meaning bottom-left. */
.wl-snackbar--bottom-left {
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
}

.wl-snackbar--bottom-right {
    inset-inline-end: 1rem;
    inset-block-end: 1rem;
}

.wl-snackbar--bottom-center {
    inset-inline-start: 50%;
    inset-block-end: 1rem;
    transform: translateX(-50%);
}

.wl-snackbar--top-left {
    inset-inline-start: 1rem;
    inset-block-start: 1rem;
}

.wl-snackbar--top-right {
    inset-inline-end: 1rem;
    inset-block-start: 1rem;
}

.wl-snackbar--top-center {
    inset-inline-start: 50%;
    inset-block-start: 1rem;
    transform: translateX(-50%);
}

.wl-snackbar__action {
    color: var(--wl-snackbar-action-color, #9ecbff);
    text-decoration: underline;
    white-space: nowrap;
    font-weight: 600;
}

/* A theme's own `a { display: ... }` beats the UA's [hidden] rule (author
   origin wins), and this anchor is hidden whenever the current message has
   no destination. Same guard every hideable element in this file carries. */
.wl-snackbar__action[hidden] {
    display: none;
}

.wl-snackbar__action:hover,
.wl-snackbar__action:focus {
    color: var(--wl-snackbar-action-color, #9ecbff);
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    .wl-snackbar {
        animation: wl-snackbar-in .15s ease-out;
    }

    .wl-snackbar--top-left,
    .wl-snackbar--top-right,
    .wl-snackbar--top-center {
        animation-name: wl-snackbar-in-top;
    }

    /* The keyframes end at the element's own computed transform rather than
       `none`, so the centered variants keep their translateX(-50%) instead
       of having the animation's final frame wipe it. */
    @keyframes wl-snackbar-in {
        from {
            opacity: 0;
            translate: 0 .5rem;
        }
        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    @keyframes wl-snackbar-in-top {
        from {
            opacity: 0;
            translate: 0 -.5rem;
        }
        to {
            opacity: 1;
            translate: 0 0;
        }
    }
}

@media (max-width: 480px) {
    /* One row of screen is all a phone can give a toast: every variant goes
       full-width against its own edge, and the centering transform comes off
       so the inline insets can do the sizing. */
    .wl-snackbar {
        inset-inline: .5rem;
        max-width: none;
        justify-content: space-between;
        transform: none;
    }

    .wl-snackbar--bottom-left,
    .wl-snackbar--bottom-center,
    .wl-snackbar--bottom-right {
        inset-block-end: .5rem;
    }

    .wl-snackbar--top-left,
    .wl-snackbar--top-center,
    .wl-snackbar--top-right {
        inset-block-start: .5rem;
    }
}

/* Any author `display` on .wl-list__empty - a theme styling our card, or
 * a merchant's own CSS - beats the UA's [hidden] { display: none } and
 * the "contains no items" card would render under a fully populated
 * table. Same guard the snackbar carries, for the same reason. */
.wl-list__empty[hidden] {
    display: none;
}

/* ------------------------------------------------------------------
 * The add-to-cart button's icon slot: cart at rest, spinner in
 * flight, checkmark on arrival. The inner span is the layout surface
 * because .button's display belongs to whichever theme shouts loudest
 * - the add-to-wishlist control already lost that fight once, and
 * .wl-add__inner is the same cure. The [hidden] overrides are
 * load-bearing: these spans declare their own display, which would
 * otherwise beat the UA's [hidden] { display: none }.
 *
 * And the same .wl-list prefix the add control now carries, for the
 * same reason: moving the layout off .button was never enough on its
 * own, because a theme that styles buttons styles what is inside them
 * too. Flatsome's `.button span { display: inline-block }` at (0,1,1)
 * beat all three of these bare classes and flattened the icon and
 * label together - measured 0px between them where 0.45em was
 * declared. The [hidden] rule below was already (0,2,0) and survived,
 * which is the only reason this button did not also strand a spinner
 * on screen the way the wishlist button did.
 *
 * Every rule here that sets a display is prefixed. If this markup ever
 * renders outside .wl-list, these lose their prefix's specificity and
 * the bug comes back.
 * ------------------------------------------------------------------ */

.wl-list .wl-cart-btn__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.wl-list .wl-cart-btn__icon {
    display: inline-flex;
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

.wl-list .wl-cart-btn__glyph {
    display: inline-flex;
    width: 100%;
    height: 100%;
}

.wl-list .wl-cart-btn__glyph[hidden] {
    display: none;
}

.wl-cart-btn__svg {
    width: 100%;
    height: 100%;
}

.wl-cart-btn__spinner {
    /* box-sizing declared, not inherited: the shape of a loading state
       should not depend on which global box model the theme picked -
       the add-to-wishlist spinner shipped as an oval for exactly this. */
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.6;
    animation: wl-add-spin 0.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .wl-cart-btn__spinner {
        animation: none;
    }
}

/* ------------------------------------------------------------------
 * Saved for later
 *
 * The section sits full-width BELOW the whole cart - the Cart block's
 * sibling, never one of its inner blocks - so it owns its own layout
 * rather than inheriting the cart table's. Mobile-first: the row is a
 * stacked card by default (thumbnail on the left, actions under the
 * details) and only becomes a table row once there is room for one.
 *
 * The [hidden] overrides at the end are load-bearing, not tidying:
 * every display declaration here beats the UA stylesheet's
 * [hidden] { display: none }, and both the section and its rows are
 * hidden by a binding - an emptied section and a moved row would
 * otherwise stay on screen. Same fight the list grid's rows already
 * have to win.
 * ------------------------------------------------------------------ */

.wl-saved {
    clear: both;
    width: 100%;
    margin: 3em 0 0;
}

.wl-saved__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5em 1em;
    margin: 0 0 0.5em;
}

.wl-saved__manage {
    font-size: 0.75em;
    font-weight: normal;
}

.wl-saved__table,
.wl-saved__rows {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
}

.wl-saved__row {
    display: grid;
    /* The thumbnail column is fixed so every row's text starts on the
       same line, however tall or narrow the images are. */
    grid-template-columns: 5em 1fr;
    gap: 0 1em;
    align-items: start;
    padding: 1em 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wl-saved__thumb {
    grid-column: 1;
    /* Spans the details and the actions, which is what puts the
       thumbnail beside the whole card rather than beside its name. */
    grid-row: 1 / span 2;
}

.wl-saved__image,
.wl-saved__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.wl-saved__info {
    grid-column: 2;
    grid-row: 1;
}

.wl-saved__name {
    display: block;
    font-weight: 600;
}

.wl-saved__price {
    display: block;
    margin-top: 0.25em;
}

.wl-saved__availability {
    display: block;
    margin-top: 0.25em;
    font-size: 0.875em;
    opacity: 0.7;
}

.wl-saved__meta {
    margin-top: 0.5em;
    font-size: 0.875em;
    opacity: 0.8;
}

.wl-saved__meta dl,
.wl-saved__meta p {
    margin: 0;
}

.wl-saved__actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em 1em;
    margin-top: 0.75em;
}

/* Deliberately unstyled beyond its box: .button.alt is the theme's own
   primary pill, and this row's primary action should look like every
   other primary action in the store. */
.wl-saved__move,
.wl-saved__choose-options {
    margin: 0;
}

/* A text link, not a second button - one primary action per row. */
.wl-saved__delete {
    font-size: 0.875em;
    text-decoration: underline;
    opacity: 0.7;
}

/* Occupies the primary slot, so it must not read as one. */
.wl-saved__unavailable {
    font-style: italic;
    opacity: 0.7;
}

@media (min-width: 600px) {
    .wl-saved__table {
        display: table;
        table-layout: auto;
        border-collapse: collapse;
    }

    .wl-saved__rows {
        display: table-row-group;
    }

    .wl-saved__row {
        display: table-row;
    }

    .wl-saved__thumb,
    .wl-saved__info,
    .wl-saved__actions {
        display: table-cell;
        vertical-align: top;
        padding: 1em 1em 1em 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .wl-saved__thumb {
        width: 6em;
    }

    .wl-saved__actions {
        /* Shrink-to-fit: the details column takes the rest. */
        width: 1%;
        padding-right: 0;
        text-align: right;
        white-space: nowrap;
    }

    /* The cell is no longer a flex container, so the gap has to come
       back as a margin - the anchors are rendered with no whitespace
       between them and would otherwise touch. */
    .wl-saved__add-to-list,
    .wl-saved__delete {
        margin-left: 1em;
    }
}

/* Higher specificity than every display rule above, so these win
   wherever they sit in the file. */
.wl-saved[hidden],
.wl-saved__row[hidden],
.wl-saved__image[hidden],
.wl-saved__manage[hidden] {
    display: none;
}

/* Save for Later's cart-line control. One rule for both carts: the classic
   control is an <a>, the Cart block's is a <button>, but both carry this
   class and render in the same slot under the product name. */
.wl-save-for-later {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.35em;
    font-size: 0.85em;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.wl-save-for-later[disabled] {
    cursor: default;
    opacity: 0.6;
    text-decoration: none;
}

/* Mid-save, on the shortcode cart. The link keeps its label - a control that
   changed its text every time it was clicked would be read as a new control -
   and says it is working with a spinner and the cursor. */
.wl-save-for-later[aria-busy="true"] {
    cursor: progress;
}

.wl-saved__spinner,
.wl-save-for-later__spinner {
    /* box-sizing declared, not inherited: the shape of a loading state should
       not depend on which global box model the theme picked. */
    box-sizing: border-box;
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    vertical-align: -0.125em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wl-add-spin 0.6s linear infinite;
}

/* Respect a shopper who has asked for less motion: the spinner still appears,
   it just does not spin. */
@media (prefers-reduced-motion: reduce) {
    .wl-saved__spinner,
    .wl-save-for-later__spinner {
        animation: none;
    }
}

/* Under COPY the line stays in the cart and the link reads "Saved" until a row
   leaves the list. aria-disabled rather than the disabled attribute, which an
   anchor does not have: the click is refused in JavaScript, so this is the
   part that says so on screen. */
.wl-save-for-later[aria-disabled="true"] {
    cursor: default;
    opacity: 0.6;
    text-decoration: none;
}

/* Assistive text only. The spinner is aria-hidden and the link's label does
   not change until the answer arrives, so this is the only thing a screen
   reader has to go on while a save is in flight. Matches WordPress's own
   screen-reader-text so themes that already define that do not fight it. */
.wl-save-for-later__status {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------
 * Per-item annotations and the reorder column (2.5.0)
 *
 * Nothing here is bound to `hidden`, so nothing here needs a
 * `[hidden]` companion - the reorder column is present or absent in
 * the server's markup, decided in PHP, and the annotations are simply
 * not rendered when the settings are off.
 * ------------------------------------------------------------------ */

/* Narrow, and it stays narrow: this column holds two glyph buttons and
   nothing else, and a table without a width here gives it a share of
   the row proportional to nothing. */
.wl-list__reorder {
    width: 2.5em;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.wl-list__reorder-up,
.wl-list__reorder-down {
    display: block;
    width: 100%;
    padding: 0.1em 0.25em;
    margin: 0 auto;
    font-size: 0.85em;
    line-height: 1.1;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0.65;
}

.wl-list__reorder-up:hover,
.wl-list__reorder-down:hover,
.wl-list__reorder-up:focus,
.wl-list__reorder-down:focus {
    opacity: 1;
}

.wl-list__reorder-up[disabled],
.wl-list__reorder-down[disabled] {
    cursor: default;
    opacity: 0.25;
}

/* A finger is not a mouse pointer. 44px is the smallest target the
   WCAG 2.2 target-size criterion accepts, and two 0.85em glyphs
   stacked are a long way under it. */
@media (pointer: coarse) {
    .wl-list__reorder {
        width: 3.25em;
    }

    .wl-list__reorder-up,
    .wl-list__reorder-down {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Under the product name, not beside it: on a phone the row's own grid
   (below) stacks the name cell on its own line, and an annotation that
   floated would land in the middle of that line instead. */
.wl-list__annotations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    margin-block-start: 0.4em;
}

.wl-list__note-label {
    display: block;
    flex: 1 1 12em;
    min-width: 0;
}

.wl-list__note {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-size: 0.9em;
}

/* The viewer's read-only note is a span, so it takes the type but none
   of the field chrome. */
span.wl-list__note {
    display: block;
    width: auto;
    opacity: 0.8;
    font-style: italic;
}

.wl-list__priority-label {
    display: block;
    flex: 0 0 auto;
}

.wl-list__priority {
    font-size: 0.85em;
    max-width: 100%;
}

/* The viewer's tag. currentColor with a tinted ground rather than a
   fixed palette: these sit inside a merchant's own table, and three
   saturated chips would be the loudest thing on the page. */
span.wl-list__priority {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 1em;
    border: 1px solid currentColor;
    font-size: 0.75em;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.wl-list__priority--high {
    color: #a12b2b;
}

.wl-list__priority--medium {
    color: #8a6116;
}

.wl-list__priority--low {
    color: #4a5568;
}

/* Says why the reorder buttons went away. Sits under the sort control
   on the manage screen and nowhere else. */
.wl-list__sort-note {
    margin: 0.25em 0 0;
    font-size: 0.85em;
    opacity: 0.75;
}

/* ---------------------------------------------------------------------------
   The move picker: a second dialog, borrowing the add picker's chrome.

   Everything shared - the dialog box, its body, the rows' cards, the create
   field - is already styled by the .wl-add__* rules above, which this markup
   carries for exactly that reason. What is left is the parts the add picker
   has no equivalent of, plus the button/anchor resets the borrowed classes
   assume they are being applied to a <div> or a <label>.
   --------------------------------------------------------------------------- */

/* The host is a positioning-neutral wrapper: a dialog is in the top layer
   once open, so this must not become a containing block or an offset. */
.wl-move {
    display: contents;
}

/* Which list the rows are leaving. Sits where the add picker's product line
   does and takes its type from it: this qualifies the heading above it, it is
   not a heading of its own. */
.wl-move__source {
    margin-top: 0.35em;
    font-size: 0.9em;
    opacity: 0.7;
}

/* "Choose a destination", and the way out of it. The heading and the
   secondary action share a line: they are two halves of one decision, and the
   action is what a shopper takes when none of the rows below is the answer. */
.wl-move__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.wl-move__section-title {
    font-size: 0.9em;
}

/* A text action, not a button: it switches what the dialog is showing, where
   the footer's button is what writes something. Giving the two the same chrome
   would offer the shopper two things that look equally like the commit.

   The theme's `.button` rules are not in play - this carries no such class -
   so the reset is only against a theme's bare `button` styling. */
.wl-move__create-toggle {
    padding: 0.25em 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.9em;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

.wl-move__create-toggle[disabled] {
    opacity: 0.5;
    cursor: default;
}

.wl-move__destinations {
    display: grid;
    gap: 0.5em;
}

/* Any display of ours outranks the UA's `[hidden] { display: none }`, so the
   attribute the store writes would do nothing without this. Test_Hidden_Css_
   Parity exists for precisely this class of mistake and caught this one. */
.wl-move__destinations[hidden] {
    display: none;
}

/* The whole row is the label, so the click target is the row rather than the
   control in it. A real radio, visible and not hidden behind a drawn one: it
   carries the group's keyboard behaviour and its state is legible to a screen
   reader and to a shopper who has turned colour off. */
.wl-move__destination {
    display: flex;
    align-items: center;
    gap: 0.85em;
    margin: 0;
    padding: 0.9em 1em;
    border: 1px solid #e6e4df;
    border-radius: 8px;
    font-weight: inherit;
    cursor: pointer;
}

.wl-move__destination:hover {
    background: #f7f6f4;
}

/* Chosen. The inset ring rather than a thicker border, so the row does not
   change size when it is picked and shift the rows under it. Not colour
   alone: the radio beside it is filled, which is the primary signal. */
.wl-move__destination:has(.wl-move__target:checked) {
    border-color: currentColor;
    background: #f7f6f4;
    box-shadow: inset 0 0 0 1px currentColor;
}

.wl-move__destination:has(.wl-move__target[disabled]) {
    opacity: 0.6;
    cursor: default;
}

.wl-move__target {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* min-width: 0 so a long name wraps inside the row instead of pushing the
   row wider than the dialog. */
.wl-move__dest-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.wl-move__dest-name {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* The two facts about the list, on their own line under the name. In the add
   picker these sit beside the name on one row; here the row is tall enough to
   give them a line, and the name is free to wrap without them in the way. */
.wl-move__dest-meta {
    display: block;
    margin-top: 0.15em;
    font-size: 0.85em;
    /* The child count and visibility already supply their muted treatment.
       Applying opacity here as well drops their text below 4.5:1. */
}

/* Those two spans carry the add picker's classes for their type, and its
   `.wl-add__list-count { margin-right: auto }` would push the separator and
   the visibility to the far edge of the row. Here they are one sentence. */
.wl-move__dest-meta .wl-add__list-count {
    margin-right: 0;
}

/* The new-list field. On its own ground rather than loose in the dialog: it
   replaces the rows above, and a bare input where a list of cards was reads
   as the dialog having lost something. */
.wl-move__create {
    padding: 1em;
    background: #f7f6f4;
    border-radius: 8px;
}

.wl-move__create-label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
}

.wl-move__create-input {
    display: block;
    width: 100%;
    margin-top: 0.5em;
    /* border-box, because the width above is 100% of a padded parent: with
       content-box the padding is added to it and the field overhangs. */
    box-sizing: border-box;
}

.wl-move__create-note {
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 0.85em;
    opacity: 0.7;
}

.wl-move__keep {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 1em;
    font-weight: inherit;
    cursor: pointer;
}

/* The legacy `#wl-wrapper label { display: block; font-weight: bold }` above is
   for the old forms, and at (1,0,1) it outranks every class rule a dialog sets
   on a label. The manage screen renders these dialogs inside #wl-wrapper, so
   the destination rows lost their flex row and stacked the radio above the
   name, and the meta line under it came out bold. Re-asserted at the same
   floor, the way `#wl-wrapper label.wl-choice` already is. */
#wl-wrapper .wl-move__destination,
#wl-wrapper .wl-move__keep {
    display: flex;
    font-weight: inherit;
}

#wl-wrapper .wl-move__create-label {
    font-weight: 600;
}

/* The row's own way in, under the product name beside the annotations. A text
   link rather than a button: the row already has a primary action (Add to
   Cart) and a destructive one, and a third pill would read as a third of
   equal weight. */
.wl-list__move {
    display: inline-block;
    margin-block-start: 0.4em;
    font-size: 0.85em;
    opacity: 0.8;
}

/* The bulk control, beside Apply Action in both toolbars. */
.wl-list__move-selected {
    margin-left: 0.5em;
}

/* The saved row's second action. Matches Delete's weight beside it - both are
   secondary to the Move to cart pill. */
.wl-saved__add-to-list {
    font-size: 0.875em;
    text-decoration: underline;
    opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   My Lists (templates/my-lists-cards.php)

   The shopper's index of their own lists, on My Lists and in My Account.
   Everything here is chrome around markup that must stay readable with the
   stylesheet off and usable with JavaScript off, so nothing below is
   load-bearing except the [hidden] overrides - and those are, every one of
   them.

   It was a five-column shop_table until 2.5.0. Five columns do not fit 390px
   and the page scrolled sideways (B1 F2); a table that stacks into five
   labelled blocks is a card wearing a <table>, so it is a card. Borders and
   muted text are neutral greys and currentColor: this markup lands inside
   whatever the merchant's theme does with typography and colour, and a brand
   colour of ours would be the one thing on the screen that did not belong to
   them.
   ------------------------------------------------------------------------ */

/* A list of lists reads downwards, so the cards stack rather than tile: a
   two-up grid at desktop width would put the second card where the eye is
   still reading the first one's controls. */
.wl-mylists__cards {
    margin: 0 0 1.5em;
    padding: 0;
    list-style: none;
}

/* box-sizing and the list resets spelled out: this is a <li> inside whatever
   the theme does to lists, and a padding-plus-100%-width card is exactly the
   shape that overflows a phone. */
.wl-mylists__card {
    box-sizing: border-box;
    list-style: none;
    max-width: 100%;
    margin: 0 0 1em;
    padding: 1em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.wl-mylists__card::before,
.wl-mylists__card::marker {
    content: none;
}

/* A deleted card hides itself; there is no client template to remove it from.
   !important because a theme's own list rules routinely set a display on
   `li`, and a card the shopper just deleted coming back is the worse
   failure. */
.wl-mylists__row[hidden],
.wl-mylists__card[hidden] {
    display: none !important;
}

/* Name, badges, then the pencil at the far end. Wraps rather than squeezes:
   a list name long enough to need two lines gets them, and the pencil goes
   with it rather than off the edge. */
.wl-mylists__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.5em;
}

/* min-width:0 is what lets a long name wrap inside a flex item at all, and
   overflow-wrap covers the name with no spaces in it. */
.wl-mylists__heading {
    /* flex-grow, so the name takes the width the badges and the pencil do not
       and wraps INSIDE its own box: without it a long name filled the line and
       pushed the pencil onto a line of its own (seen on the blocks demo).
       Basis 0, not auto: with `auto` the long name is still the item's basis,
       so the line overflows and the pencil wraps before anything shrinks. */
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Which list is the default, said on the card rather than only in the radio -
   the badge is what a shopper scans for. */
/* The state, said in a green pill: this list is the one a quick save goes to.
   Its own green rather than the theme's accent, which is as likely to be the
   delete red as anything else, and dark enough on its tint to clear 4.5:1. */
.wl-mylists__default-badge {
    display: inline-block;
    flex: none;
    padding: 0.2em 0.5em;
    border-radius: 2px;
    background: #eef4ec;
    color: #2f5738;
    font-size: 0.6875em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.wl-mylists__default-badge[hidden] {
    display: none;
}

/* Saved for later is a real list in every other respect, so it is labelled
   rather than separated out. Quieter than the badge: this is a fact about the
   list, not a state the shopper chose. */
.wl-mylists__type {
    display: inline-block;
    flex: none;
    padding: 0.2em 0.5em;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.6875em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
    opacity: 0.75;
}

/* The pencil. A glyph rather than a word: it sits on the name's line, and a
   second text link beside "Manage this list" would read as a second
   destination. margin-left:auto pushes it to the far end of the header. */
.wl-mylists__rename {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.9em;
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
}

.wl-mylists__rename:hover,
.wl-mylists__rename:focus {
    opacity: 1;
}

/* Both of these are hidden imperatively while the field is open, and both are
   elements a theme is likely to have given a display of its own. */
.wl-mylists__rename[hidden],
.wl-mylists__name[hidden] {
    display: none;
}

.wl-mylists__rename-input {
    display: inline-block;
    width: auto;
    max-width: 100%;
    font: inherit;
}

.wl-mylists__rename-input[hidden] {
    display: none;
}

/* The two facts the Items and Last changed columns used to carry, as one
   muted line. */
.wl-mylists__meta {
    margin: 0.35em 0 0;
    font-size: 0.875em;
}

/* Each half reads as a figure, so neither is allowed to break mid-phrase -
   the line still wraps at the separator between them. */
.wl-mylists__count,
.wl-mylists__modified,
.wl-mylists__meta .wl-date-added {
    white-space: nowrap;
}

.wl-mylists__meta-sep {
    margin: 0 0.35em;
}

/* Privacy, the default radio, then the links at the far end, above a 1px
   divider that separates the controls from the facts. currentColor at low
   alpha rather than a grey: it follows a dark theme without a second rule. */
.wl-mylists__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em 1em;
    margin-top: 0.75em;
    padding-top: 0.75em;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.wl-mylists__privacy,
.wl-mylists__default-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    font-weight: inherit;
    cursor: pointer;
}

.wl-mylists__privacy-label {
    font-size: 0.875em;
}

/* max-width, because this is the one control on the card wide enough to push
   it out on its own. */
#wl-wrapper .wl-mylists__privacy .wl-priv-sel,
.wl-mylists__privacy .wl-priv-sel {
    max-width: 100%;
    margin: 0;
}

/* Mid-write. Both controls act on change and disable themselves for the round
   trip, so a second change cannot race the first; they have to say so or a
   shopper reads the dead control as a broken one. */
.wl-mylists__card [aria-busy="true"],
.wl-mylists__card select[disabled],
.wl-mylists__card input[type="radio"][disabled] {
    cursor: progress;
    opacity: 0.6;
}

.wl-mylists__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 0.9em;
    margin: 0 0 0 auto;
}

.wl-mylists__links small a {
    /* Keep the theme's link colour and the delete colour at full contrast. */
    text-decoration: none;
    font-weight: normal;
}

.wl-mylists__links small a:hover,
.wl-mylists__links small a:focus {
    opacity: 1;
}

/* Delete keeps a colour of its own, because it is the one control here that
   cannot be undone. Not a brand colour - the same muted red the high-priority
   pill already uses. */
.wl-mylists__links .wl-mylists__delete,
.wl-mylists__links small a.wl-mylists__delete {
    color: #a12b2b;
}

/* Save Changes is the whole no-JavaScript write path, so it ships visible and
   the store hides it. !important because it is a theme `.button` in a
   paragraph and both of those come with a display of their own - see the
   theme-button floor. */
.wl-mylists__save {
    margin: 0;
}

.wl-mylists__save[hidden] {
    display: none !important;
}

/* The saved row's quantity, beside the price rather than under it: it is a
   fact about the same line, and the saved section's rows are already three
   short spans tall. */
.wl-saved__quantity {
    margin-left: 0.5em;
    font-size: 0.9em;
    opacity: 0.8;
}

.wl-saved__quantity[hidden] {
    display: none;
}

/* A reorder button at the end of the list it cannot leave. Disabled rather
   than silently inert - see cell_reorder() - and dimmed so it reads that way
   to somebody who is not using a screen reader either. */
.wl-list__reorder-up[disabled],
.wl-list__reorder-down[disabled] {
    opacity: 0.35;
    cursor: default;
}

/* ---------------------------------------------------------------------------
   My Lists on a phone.

   The cards already stack and already wrap, so nothing here is layout rescue
   - the five-column table that pushed the page sideways at 390px is gone.
   What is left is reach: a pencil and a set of links that are comfortable
   targets for a cursor are not comfortable for a thumb, and 44px is the floor
   both Apple and WCAG 2.5.8 settle on.

   Keyed on width rather than `pointer: coarse`, deliberately. Coarse is the
   truer signal and it is also untestable: a headless Chromium at 390px
   reports a fine pointer, so a rule behind that query would be a 44px claim
   no test in this suite could ever watch fail.
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .wl-mylists__rename {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.1em;
    }

    .wl-mylists__links small,
    .wl-mylists__links small a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* The links stop being a trailing cluster and become their own line: at
       this width there is no far end to push them to. */
    .wl-mylists__links {
        flex-basis: 100%;
        margin-left: 0;
    }

    .wl-mylists__privacy .wl-priv-sel {
        min-height: 44px;
    }
}

/* Mid-move, on a saved row. The pill keeps its label and says it is working
   with the spinner and the cursor - the same contract as the list grid's Add
   to Cart glyph. The spinner's shape comes from the shared rule above.
   !important on the hidden state: the Move pill is a theme `.button`, and a
   theme rule on `.button span` can otherwise out-specify [hidden]. */
.wl-saved__move[aria-busy="true"] {
    cursor: progress;
}

.wl-saved__move .wl-saved__spinner[hidden] {
    display: none !important;
}

/* The sharing menu inside a card.
   `#wl-wrapper .wl-share-links` (and its `li`) float, which is how the list
   has always sat beside a table cell's text - but a float is out of flow, so
   inside a card it escaped the padding box and printed over the bottom
   border. Measured on the blocks demo: the list ended 15px BELOW the card.
   ID-scoped like the rule it corrects, because a class selector cannot beat
   `#wl-wrapper .wl-share-links` on specificity. */
#wl-wrapper .wl-mylists__card .wl-share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em 0.5em;
    float: none;
    margin: 0.75em 0 0;
    line-height: inherit;
}

#wl-wrapper .wl-mylists__card .wl-share-links li {
    float: none;
    margin: 0;
}

/* The pencil is a button, so it looks like one: a bordered box the size of a
   touch target, not a bare glyph floating at the end of the name. */
.wl-mylists__card .wl-mylists__rename {
    flex: none;
    width: 2.25em;
    height: 2.25em;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    background: transparent;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .wl-mylists__card .wl-mylists__rename {
        width: 44px;
        height: 44px;
    }
}

/* The default control in the card's top corner.
   `margin-left: auto` on the control, not on the pencil: two auto margins in
   one flex line split the free space between them, which would leave the pair
   floating in the middle. The pencil follows the control, so the corner reads
   "make this the default" then "rename". */
.wl-mylists__card .wl-mylists__default-choice {
    flex: none;
    margin-left: auto;
    gap: 0.45em;
    padding: 0.25em 0.6em 0.25em 0.5em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    font-size: 0.8125em;
    white-space: nowrap;
}

/* Checked, it says the same thing the badge does, in the same green. */
.wl-mylists__card .wl-mylists__default-choice:has( input:checked ) {
    border-color: #cfe0d2;
    background: #eef4ec;
    color: #2f5738;
}

.wl-mylists__card .wl-mylists__rename {
    margin-left: 0.35em;
}

/* A phone keeps the corner pair reachable: 44px each, and the control's label
   is short enough that the two never fight the name for the line. */
@media (max-width: 768px) {
    .wl-mylists__card .wl-mylists__default-choice {
        min-height: 44px;
    }
}

/* The labels ride with the name, half a space off it and off its baseline. */
.wl-mylists__heading .wl-mylists__type,
.wl-mylists__heading .wl-mylists__default-badge {
    margin-left: 0.5em;
    font-weight: 600;
}

/* ------------------------------------------------------------------
 * One card grid, on both screens
 *
 * The grid is a `<ul>`: no `shop_table`, `shop_table_responsive` or
 * `cart` classes ride along, and there is no table underneath to turn a
 * cart's spacing off from - every value below is the grid's own. This
 * block serves View a List and Edit list alike; a cell that only the
 * owner's screen renders (the checkbox, the reorder arrows, the remove
 * control) is styled by its own cell class, not by a `.manage` scope -
 * the class only ever matches where that cell is rendered.
 *
 * The row, not the cell, owns the row's spacing: on a wide screen it is
 * a flex line, `padding: 14px 18px`, `gap: 16px`, `align-items: center`,
 * exactly the mockup's box. The cells keep the widths the old table
 * declared - a checkbox, a 56px thumbnail, an 84px price - as flex
 * bases rather than as column widths, so the columns still line up
 * across rows and nothing is negotiated from content any more.
 *
 * Below WooCommerce's responsive breakpoint the row becomes a CSS grid,
 * because the alternative is shop_table_responsive's stack, which hides
 * the product image and prints "Product: " above the product.
 * ------------------------------------------------------------------ */

/* Nothing this grid renders should arrive from `.woocommerce
   table.shop_table`, from a theme's copy of it, or from this file's
   `#wl-wrapper .wl-table td` rules for the four manage-your-lists
   tables. Every value is declared below. */
.wl-list .wl-list__items,
.wl-list .wl-list__item {
    padding: 0;
    margin: 0;
    border: 0;
    list-style: none;
}

.wl-list .wl-list__cell {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    vertical-align: middle;
    text-align: left;
    /* A flex item cannot shrink past its automatic minimum by default,
       which would floor this cell wider than its content needs. */
    min-width: 0;
}

/* Storefront ships its own stylesheet for this plugin -
   `assets/css/woocommerce/extensions/wishlists.css` - and it sets
   `#wl-wrapper .wl-table.manage td { padding: 0.540791em !important }`.
   That selector no longer matches anything here, but a theme copying it
   against the new classes would, and an id plus an !important outranks
   a class either way. Measured before this grid was a list: an 88.3px
   row where the same markup is 84px everywhere else.

   Answered in kind, and only under the host that makes a theme's
   selector match in the first place - the classic template. The block
   mount has no #wl-wrapper and needs nothing here. */
#wl-wrapper .wl-list .wl-list__cell,
#wl-wrapper .wl-list .wl-list__cell:first-child {
    padding: 0 !important;
}

/* The list is the card the rows live in.
   `display: block` at every width, not only on a phone - a `<ul>`
   defaults to block, but this keeps it explicit alongside the box
   model below rather than relying on the default. */
.wl-list .wl-list__items {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 15px;
    background: none;
    border: 1px solid #e6e4df;
    border-radius: 10px;
    /* A row's menu is a popover inside this box, and the last row's opens
       closest to its edge. Themes set `overflow: hidden` on a shop_table
       to keep a rounded corner over a striped row; here that cuts the
       menu off. Round the boundary rows below instead of clipping them. */
    overflow: visible;
}

/* Empty lists keep the same neutral card boundary and row spacing. Text
   and link colours continue to come from the storefront theme. */
.wl-list .wl-list__empty {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 15px;
    padding: 14px 18px;
    border: 1px solid #e6e4df;
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}

/* The separator is one border on the ROW, the way the Cart block draws
   its own, rather than a border on each cell - cells in the phone's
   grid layout do not tile the row, so per-cell borders drew a dashed
   line there. */
.wl-list .wl-list__item {
    border-bottom: 1px solid #efeeea;
    background: #fff;
}

/* The hydration `<template>` is child one of the `<ul>`, so `:first-child`
   would round it instead of the first row - and clean-css 5.3.3 (the
   minifier `npm run minify` runs) strips the spaces out of
   `:nth-child(1 of li:not([hidden]))` and emits invalid CSS (`1ofli`),
   which drops both rules from the production `.min.css`. Sibling
   selectors with no `of` keyword survive the minifier: the first rule
   matches a visible row with no visible row before it, the second a
   visible row with no visible row after it. */
.wl-list .wl-list__item:not([hidden]):not(.wl-list__item:not([hidden]) ~ *) {
    border-start-start-radius: 9px;
    border-start-end-radius: 9px;
}

.wl-list .wl-list__item:not([hidden]):not(:has(~ .wl-list__item:not([hidden]))) {
    border-bottom: 0;
    border-end-start-radius: 9px;
    border-end-end-radius: 9px;
}

/* The list and its rows and cells bind `hidden`, and each carries a
   display of its own below - which beats the UA stylesheet's `[hidden]`.
   A removed row painting itself anyway is the bug `itemRowStyle` exists
   to work around; this is the rule that makes it unnecessary. */
.wl-list .wl-list__items[hidden],
.wl-list .wl-list__empty[hidden],
.wl-list .wl-list__item[hidden],
.wl-list .wl-list__cell[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------
 * The desktop row
 *
 * The widths were columns of a `table-layout: fixed` table before, and
 * they are flex bases now: same numbers, same reason. In px, not em.
 * These are control-sized boxes - a checkbox, a 56px thumbnail, a
 * button - and none of them should grow with a theme's font size.
 * Measured the hard way: the same widths in em resolved against this
 * table's inherited 19px, overshot the 720px table by themselves, and
 * left the name column 57px wide.
 *
 * Desktop only. Below 768px the row is a CSS grid with tracks of its
 * own, and a width here would become a size on an individual grid item
 * - measured, that gave a 390px screen a 51px name cell.
 *
 * The row reflows on a narrow canvas rather than crushing the name.
 *
 * The furniture is 542px wide before the name gets anything - 36px of
 * padding, 112px of gaps and 394px of controls - and 68px more where the
 * merchant shows the "previously ordered" column. The mockup is drawn on
 * a 960px card, which leaves the name 416px. A block theme whose content
 * width is 720px leaves it 108px, and product titles then take three
 * lines: the complaint this work started from, arriving from the canvas
 * rather than from the spacing.
 *
 * A media query cannot see that, which is why the breakpoint below is a
 * CONTAINER query. The canvas is not the viewport - a 720px content
 * width happens at a 1280px viewport, and that is exactly the case that
 * has to be fixed. `container-type` is declared inside this media query
 * on purpose: below 769px the row is a grid and the row menu is a
 * `position: fixed` bottom sheet, and a container would become that
 * sheet's containing block.
 *
 * 768px, the same number the phone breakpoint uses, because it is the
 * threshold that measured right rather than the one that reads neatly:
 * a 786px Storefront card still renders the mockup's row exactly, and a
 * 720px card does not with either column count.
 * ------------------------------------------------------------------ */
@media (min-width: 769px) {
    .wl-list .wl-list__items {
        container-type: inline-size;
        container-name: wl-manage;
    }

    .wl-list .wl-list__item {
        display: flex;
        align-items: center;
        /* Two values: the 16px is the mockup's gap between controls, and
           the 12px is only ever the gutter above the reflowed line. */
        gap: 12px 16px;
        padding: 14px 18px;
    }

    /* Flex items now. `flex: 0 0 auto` by default so a declared width is
       the whole width - a flex base that could shrink is the same
       negotiation the table algorithm used to run. */
    .wl-list .wl-list__cell {
        display: block;
        flex: 0 0 auto;
        box-sizing: border-box;
    }

    /* `line-height: 0` on the cell and its label: a checkbox sits on a
       text baseline, and the strut of the line it sits on is taller than
       the 17px box, which made the row 4px taller than its thumbnail. */
    .wl-list .wl-list__cell.check-column,
    .wl-list .wl-list__cell.check-column label {
        display: block;
        line-height: 0;
    }

    .wl-list .wl-list__cell.check-column input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin: 0;
        vertical-align: top;
    }

    .wl-list .wl-list__cell.product-thumbnail {
        width: 56px;
        height: 56px;
    }

    /* The only cell that grows, and the only one that may shrink below
       its content: `min-width: 0` is what stops a long note from
       setting the row's width. See .wl-list__note-line for the rest of
       that story. */
    .wl-list .wl-list__cell.product-name {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 3px;
        /* Still the rule that stops a long note from setting the row's
           width: a flex item's automatic minimum is its content, and an
           unwrappable note's content is the whole string. */
        min-width: 0;
        overflow-wrap: break-word;
    }

    .wl-list .wl-list__cell.product-price {
        width: 84px;
        text-align: right;
    }

    .wl-list .wl-list__cell.product-quantity {
        width: 52px;
    }

    .wl-list .wl-list__cell.wl-list__reorder {
        display: flex;
        flex-direction: column;
        gap: 1px;
        width: 26px;
    }

    .wl-list .wl-list__cell.product-remove {
        width: 34px;
    }
}

/* ------------------------------------------------------------------
 * The reflowed row
 *
 * A card too narrow for the mockup's single line, on a screen wide
 * enough that the phone's grid would be wrong. The purchase control
 * takes a line of its own at the foot of the row, right-aligned, and
 * the name keeps the whole of the first line - the move B-Phone makes,
 * one breakpoint earlier.
 *
 * `order` and a full-width basis together, not `flex-wrap` alone.
 * Wrapping packs items in order and breaks at whichever one happens not
 * to fit, which measured as three different layouts across a 100px band
 * of card widths - at 800px it left the row intact and stranded the "…"
 * menu by itself underneath. Sending the purchase cell last and giving
 * it the whole line makes the break the same one every time.
 * ------------------------------------------------------------------ */
@container wl-manage (max-width: 775px) {
    .wl-list .wl-list__item {
        flex-wrap: wrap;
    }

    /* Zero, not `auto`. Wrapping packs items by their base size, and
       this cell's is its content - a note's whole string. With `auto`
       the first line broke before the name on a 620px card and the row
       came out three lines and 185px tall, measured. At zero the name
       is only ever what is left of the first line, and the line always
       holds. */
    .wl-list .wl-list__cell.product-name {
        flex-basis: 0;
    }

    .wl-list .wl-list__cell.product-purchase {
        order: 1;
        flex-basis: 100%;
        text-align: right;
    }
}

/* The same rule, 68px later, for a row that carries the "previously
   ordered" column. That column is a merchant setting and is not in the
   mockup, so a row showing it needs 68px more card before the single
   line is honest: 844px rather than 776px. It can only be addressed as
   the second of a pair - it carries `product-quantity` like the
   quantity control does - so the row is selected by having one. */
@container wl-manage (max-width: 843px) {
    .wl-list .wl-list__item:has(.product-quantity + .product-quantity) {
        flex-wrap: wrap;
    }

    .wl-list .wl-list__item:has(.product-quantity + .product-quantity) .wl-list__cell.product-name {
        flex-basis: 0;
    }

    .wl-list .wl-list__item:has(.product-quantity + .product-quantity) .wl-list__cell.product-purchase {
        order: 1;
        flex-basis: 100%;
        text-align: right;
    }
}

/* ------------------------------------------------------------------
 * What the row is made of
 *
 * Sizes, not spacing: the row's rhythm is the block above, and these
 * are the boxes it arranges. Both widths apply, so they sit outside
 * the breakpoint - a 56px thumbnail and a 13px button are the same
 * objects on a phone.
 *
 * In px for the same reason the widths are: this grid inherits
 * whatever font size the theme's content area happens to use - 19px in
 * the block theme it is developed against - and an em here resolves
 * against that rather than against the design. The mockup's numbers
 * are px; where it is off an 8px grid (14, 18, 3) the mockup wins.
 * ------------------------------------------------------------------ */

/* The image is the point of a wishlist row: a square that stays square
   whatever the theme does to cart thumbnails, in a cell the row cannot
   take its shortfall from. The tint behind it is what a product with no
   image leaves showing. */
.wl-list .wl-list__cell.product-thumbnail {
    background: #f5f4f1;
    border-radius: 6px;
    overflow: hidden;
}

.wl-list .wl-list__cell.product-thumbnail a {
    display: block;
}

.wl-list .wl-list__cell.product-thumbnail img {
    display: block;
    width: 56px;
    height: 56px;
    max-width: none;
    object-fit: cover;
    border-radius: 6px;
}

.wl-list .wl-list__items .wl-list__name,
.wl-list .wl-list__items .wl-list__name a {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
}

/* No underline. The name is the row's heading as much as it is a link -
   every row carries one, and a column of underlined titles reads as a
   list of links rather than as a list of products. The hover and focus
   states are spelled out beside it because a theme that underlines on
   `a:hover` is (0,1,1) and would put it back on the way past; the
   colour a theme gives the link is left alone. */
.wl-list .wl-list__items .wl-list__name a,
.wl-list .wl-list__items .wl-list__name a:hover,
.wl-list .wl-list__items .wl-list__name a:focus,
.wl-list .wl-list__items .wl-list__name a:active {
    text-decoration: none;
}

.wl-list .wl-list__cell.product-price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

/* WooCommerce renders the quantity inside a `.quantity` wrapper that
   themes give a width, a float or a flex layout of its own. It is one
   input wide here and nothing else. */
.wl-list .wl-list__cell.product-quantity .quantity {
    display: block;
    width: 52px;
    margin: 0;
    float: none;
}

.wl-list .wl-list__cell.product-quantity input.qty {
    box-sizing: border-box;
    width: 52px;
    /* Storefront's `table.cart .qty { max-width: 3.632em }` is a cap on
       a width this grid has already decided; measured, it rendered the
       52px control at 50.8px there. */
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 7px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    border: 1px solid #d9d7d1;
    border-radius: 6px;
}

/* The add control, and the "Choose options" link that replaces it on a
   product the shopper has to configure. Same box, one filled and one
   outlined - a theme's `.button` is a page-level control and reads as
   one in a row this tight. `.wl-list` is already on the wrapper, so
   these beat a theme's own `.button` rules without !important. */
.wl-list .wl-list__cell.product-purchase .wl-list__add-to-cart,
.wl-list .wl-list__cell.product-purchase .wl-list__choose-options {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 0;
    margin: 0;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: #17171b;
    border: 0;
    border-radius: 6px;
}

.wl-list .wl-list__cell.product-purchase .wl-list__choose-options {
    color: #17171b;
    background: #fff;
    border: 1px solid #17171b;
}

/* The hydration template ships BOTH controls and lets `hidden` pick one,
   so the display above would paint an Add to Cart button on a row whose
   product needs options - and both of them on rows that need neither.
   Seventh time this file has had to answer the UA sheet's `[hidden]`. */
.wl-list__add-to-cart[hidden],
.wl-list__choose-options[hidden] {
    display: none !important;
}

/* Two 26x20 targets stacked, 1px apart, with a 12px chevron centred in
   each. The generic .wl-list__reorder-* rules size themselves off the
   font; here the pair is a fixed object beside a 34px menu button. */
.wl-list .wl-list__cell.wl-list__reorder .wl-list__reorder-up,
.wl-list .wl-list__cell.wl-list__reorder .wl-list__reorder-down {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 26px;
    height: 20px;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

.wl-list .wl-list__items .wl-list__menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

/* Below WooCommerce's own responsive breakpoint. Not its stack: a grid,
   so the image stays, the name sits beside it, and the purchase
   controls take a line of their own where a thumb can reach them. */
@media (max-width: 768px) {
    /* The tracks are the desktop row's widths, minus the ones that have
       a line of their own here: a 56px thumbnail beside a name that
       takes what is left.

       The fourth track is 44px - the menu button's touch size - and NOT
       `auto`. An `auto` track is as wide as the widest thing in it, and
       the add-to-cart button sits in this one on the third line: it
       defined the column for the whole row and left the name 47px on a
       390px screen, measured. Pinning it moves the button into the
       `1fr` track's line instead, where the name is what it competes
       with and both have room. */
    .wl-list .wl-list__item {
        display: grid;
        grid-template-columns: auto 56px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 6px 12px;
        padding: 14px 16px;
    }

    /* Grid items now: their own padding would be a second gutter inside
       the row's. The !important answers a theme still copying the old
       table selector's !important against these classes. */
    .wl-list .wl-list__cell,
    .wl-list .wl-list__cell:first-child {
        display: block;
        padding: 0 !important;
        border: 0;
        text-align: left !important;
    }

    .wl-list .wl-list__cell.check-column {
        grid-column: 1;
        grid-row: 1;
    }

    .wl-list .wl-list__cell.product-thumbnail {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 56px;
        height: 56px;
        align-self: start;
    }

    /* Column 3, not `3 / span 2`: column 4 of this row is where the
       remove control sits, and a name that spanned into it rendered
       straight over the control. */
    .wl-list .wl-list__cell.product-name {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    /* A note field is `width: 100%` of a cell the grid sized from that
       same field's own preferred width, so without this it settles a
       little wider than the row and hangs over the card's edge. */
    .wl-list .wl-list__cell.product-name .wl-list__annotations {
        max-width: 100%;
    }

    .wl-list .wl-list__cell.product-price {
        grid-column: 3;
        grid-row: 2;
    }

    /* The "previously ordered" cell, which only exists where the
       merchant asked for it. It carries `product-quantity` like the
       quantity control does, so it can only be addressed as the second
       of the pair - and without a place of its own it was given the
       quantity's, which in a grid means the two drew over each other. */
    .wl-list .wl-list__cell.product-quantity + .wl-list__cell.product-quantity {
        grid-column: 4;
        grid-row: 2;
        justify-self: end;
    }

    .wl-list .wl-list__cell.wl-list__reorder {
        grid-column: 1;
        grid-row: 3;
        width: auto;
    }

    .wl-list .wl-list__cell.product-quantity {
        grid-column: 3;
        grid-row: 3;
    }

    /* A line of its own, spanning to the edge. The button is
       `white-space: nowrap` and about 125px wide, so it cannot share a
       line with the quantity control on a 390px screen without one of
       them being placed over the other. */
    .wl-list .wl-list__cell.product-purchase {
        grid-column: 3 / span 2;
        grid-row: 4;
        justify-self: end;
        text-align: right !important;
    }

    .wl-list .wl-list__cell.product-remove {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
    }

    /* `content: attr(data-title) ": "` belongs to the stacked table this
       grid replaces. "Product: " above a product the shopper is looking
       at is noise, and the cells with no data-title printed a bare ":". */
    .wl-list .wl-list__cell::before {
        display: none !important;
    }

    /* View never renders a check-column or a reorder control, so the
       first track above is always empty - the thumbnail still lands
       12px in from the row's edge for a gap next to nothing. Dropping
       that track and shifting every cell View can render one column
       left puts the thumbnail back at the row's own edge. Rows keep the
       placements above; only the column changes. */
    .wl-list .wl-list__items--view .wl-list__item {
        grid-template-columns: 56px minmax(0, 1fr) 44px;
    }

    .wl-list .wl-list__items--view .wl-list__cell.product-thumbnail {
        grid-column: 1;
    }

    .wl-list .wl-list__items--view .wl-list__cell.product-name,
    .wl-list .wl-list__items--view .wl-list__cell.product-price,
    .wl-list .wl-list__items--view .wl-list__cell.product-quantity {
        grid-column: 2;
    }

    .wl-list .wl-list__items--view .wl-list__cell.product-purchase {
        grid-column: 2 / span 2;
    }

    .wl-list .wl-list__items--view .wl-list__cell.product-remove {
        grid-column: 3;
    }

    .wl-list .wl-list__items--view .wl-list__cell.product-quantity + .wl-list__cell.product-quantity {
        grid-column: 3;
    }
}

/* ------------------------------------------------------------------
 * The row's actions menu
 *
 * A popover, not a dialog: the row it acts on stays visible behind it.
 * The cell is the positioning context, so the panel hangs off the
 * control that opened it rather than off the page.
 * ------------------------------------------------------------------ */

.wl-list .wl-list__cell.wl-list__actions {
    position: relative;
    text-align: right;
}

.wl-list__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125em;
    height: 2.125em;
    padding: 0;
    font-size: 1em;
    line-height: 1;
    color: #5f5f68;
    background: #fff;
    border: 1px solid #e6e4df;
    border-radius: 6px;
    cursor: pointer;
}

.wl-list__menu-toggle:hover {
    border-color: #17171b;
    color: #17171b;
}

/* Filled while its menu is open, so the control reads as the thing the
   popover belongs to rather than as one more outlined button next to
   it. aria-expanded IS the state, so it is also the selector. */
.wl-list__menu-toggle[aria-expanded="true"] {
    color: #fff;
    background: #17171b;
    border-color: #17171b;
}

/* A finger is not a mouse pointer - the same floor the reorder buttons
   take, for the same reason. */
@media (pointer: coarse) {
    .wl-list__menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* `inset-inline-end: 0` rather than `right`: on an RTL store the menu
   hangs off the other edge of the control, which is the edge it opened
   from there. */
.wl-list__menu {
    position: absolute;
    z-index: 20;
    inset-inline-end: 0;
    min-width: 16.75em;
    padding: 0.375em;
    text-align: start;
    background: #fff;
    border: 1px solid #d9d7d1;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(23, 23, 27, 0.14);
}

/* A row of icon-then-word, not a block of text: the icon is what the
   eye finds first on a menu this short, and a fixed gap keeps every
   label on the same left edge whether its icon is a pencil or a bin. */
.wl-list__menu-item {
    display: flex;
    align-items: center;
    gap: 0.7em;
    width: 100%;
    padding: 0.625em 0.75em;
    font-size: 0.875em;
    font-weight: 600;
    line-height: 1.3;
    color: #17171b;
    text-align: start;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.wl-list__menu-item:hover,
.wl-list__menu-item:focus {
    background: #f5f4f1;
}

/* Never shrinks with the label: a long translation should wrap its
   words, not squash the picture beside them. */
.wl-list__menu-icon {
    flex: none;
    width: 1.14em;
    height: 1.14em;
}

/* Destructive, and the only item that is. The trash can inherits this
   through currentColor. */
.wl-list__menu-item--danger {
    color: #93261f;
}

/* The groups are fenced by real separators now rather than by a border
   on whichever item happened to come first after them. */
.wl-list__menu-sep {
    height: 1px;
    margin: 0.3em 0.625em;
    background: #efeeea;
}

/* WooCommerce's own `.woocommerce a.remove { display: block }` beats the
   UA stylesheet's `[hidden]` rule, so the link the store has just hidden
   goes on rendering - the same fight `itemRowStyle` exists to win for a
   removed row. Once the store is listening the menu owns this action. */
.wl-list .wl-list__cell.wl-list__actions a.wl-list__remove[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------
 * What the row says about itself, and the panels that edit it
 * ------------------------------------------------------------------ */

/* The readouts under the product name. Both are bound to the store, so
   they are what the row currently IS, not what it was when the page
   was painted. */
.wl-list .wl-list__items .wl-list__annotations {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em 0.6em;
    margin-block-start: 0.3em;
}

.wl-list__priority--pill {
    display: inline-block;
    padding: 0.05em 0.6em;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

/* In the list grid the pill is a fixed object on the title's line, not
   a label sized off whatever the theme's content font happens to be.
   No border: it rides beside a 15px product name, and a 10px chip with
   a border is 2px taller than the mockup's for no gain - the tint and
   the colour are what tell the three priorities apart. */
.wl-list .wl-list__items .wl-list__priority--pill {
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
    border: 0;
    /* Restated, not inherited from the rule above: this plugin's own
       `span.wl-list__priority { border-radius: 1em }` is (0,1,1) and
       outranks `.wl-list__priority--pill`'s 999px, which measured a
       10px radius on a 16px chip. */
    border-radius: 999px;
}

/* One rule per stored value rather than a colour on the pill itself: a
   priority the shopper cannot tell apart at a glance is a label, not a
   priority. Kept to borders and tints so a dark theme is not handed
   three unreadable chips. */
.wl-list__priority--pill[data-priority="high"] {
    color: #93261f;
    background: rgba(147, 38, 31, 0.08);
    border-color: rgba(147, 38, 31, 0.35);
}

.wl-list__priority--pill[data-priority="medium"] {
    color: #85541a;
    background: rgba(133, 84, 26, 0.08);
    border-color: rgba(133, 84, 26, 0.35);
}

.wl-list__priority--pill[data-priority="low"] {
    opacity: 0.75;
}

/* One line, clipped. The whole note is in the editor a click away; a
   row that grows to fit a 200-character note is the row height this
   layout exists to get back.

   Clamped, NOT `white-space: nowrap` + `text-overflow: ellipsis`. The
   name cell is a flex item, and a flex item's automatic minimum is its
   content's preferred width - for unwrappable text, the whole string.
   A 90-character note therefore widened the name cell until the price,
   quantity and buttons were pushed off the screen; `max-width: 100%`
   cannot stop it, because 100% of a cell the text is itself defining is
   circular. Clamping lets the text wrap, so its preferred width is one
   word, and then hides every line after the first. Measured on a
   two-sentence note, when this was still a table: 2190px wide, now
   1200. */
.wl-list__note-line {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 0.85em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    opacity: 0.75;
}

/* The popover widens for the editor: 14em is a sensible menu and a
   hopeless note field. */
.wl-list__menu--note {
    width: 22em;
    max-width: 78vw;
}

.wl-list__note-panel {
    padding: 0.5em 0.6em 0.6em;
}

.wl-list__note-label {
    display: block;
}

.wl-list__note-heading {
    display: block;
    margin-block-end: 0.35em;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
}

.wl-list__menu .wl-list__note {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.4;
    resize: vertical;
}

.wl-list__note-foot {
    display: flex;
    justify-content: flex-end;
    margin-block-start: 0.5em;
}

.wl-list__note-done {
    padding: 0.4em 0.9em;
    font-size: 0.85em;
    font-weight: 600;
    color: inherit;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    cursor: pointer;
}

/* The priority group, inside the menu. Four chips and not a submenu: a
   three-way choice does not earn a second level, and chips show which
   one is set without opening anything. */
.wl-list__chips {
    padding: 0.7em 0.75em 0.5em;
}

.wl-list__chips-label {
    display: block;
    margin-block-end: 0.5em;
    font-size: 0.6875em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a887f;
    opacity: 1;
}

.wl-list__chips-row {
    display: flex;
    gap: 0.3125em;
}

.wl-list__chip {
    flex: 1 1 0%;
    padding: 0.44em 0.25em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1.2;
    color: #5f5f68;
    background: #fff;
    border: 1px solid #e6e4df;
    border-radius: 6px;
    cursor: pointer;
}

.wl-list__chip:hover {
    border-color: #17171b;
    color: #17171b;
}

/* aria-pressed is the state, so it is also the selector: the two cannot
   drift apart the way a second `is-active` class would.

   The chosen chip is tinted in its OWN priority's colour rather than in
   a neutral grey, so the menu and the pill beside the product name say
   the same thing in the same ink. The values match
   .wl-list__priority--pill above; a chip and a pill for one priority
   that disagreed about its colour would be worse than either. */
.wl-list__chip[aria-pressed="true"] {
    font-weight: 700;
    color: #17171b;
    background: #f0efec;
    border-color: #17171b;
}

.wl-list__chip[aria-pressed="true"][data-priority="high"] {
    color: #93261f;
    background: #fdecec;
    border-color: #93261f;
}

.wl-list__chip[aria-pressed="true"][data-priority="medium"] {
    color: #85541a;
    background: #fdf3e3;
    border-color: #85541a;
}

.wl-list__chip[aria-pressed="true"][data-priority="low"] {
    color: #3f3f46;
    background: #f2f2f4;
    border-color: #6b6b74;
}

@media (pointer: coarse) {
    .wl-list__chip {
        min-height: 44px;
    }

    .wl-list__menu-item {
        min-height: 44px;
    }
}

/* ------------------------------------------------------------------
 * The selection bar
 *
 * Appears when the shopper ticks something and replaces both Actions
 * strips. Each action is a button that says what it does, rather than a
 * dropdown plus a verb - and none of them asks to be read on a list
 * nobody is editing, because the bar is not there until it applies.
 * ------------------------------------------------------------------ */

/* The selection half of the manage strip.
   -----------------------------------------------------------------------
   Neutral on purpose. This was a near-black bar with white text, which is a
   bold thing to force on a store whose palette we have never seen - and it
   was hardcoded rgba(0,0,0,0.9), not the theme's anything, so it could clash
   with every one of them equally. Lucas, 2026-09-21: "I like the black bar,
   but it's probably too bold a choice to force stores into."

   The surface is the card grey the rest of this screen is built from, and
   every colour here is a custom property so a store can move the lot with
   three declarations rather than fighting five rules. */
#wl-wrapper .wl-selbar,
.wl-selbar {
    --wl-selbar-bg: #f5f4f1;
    --wl-selbar-border: #ddd9d0;
    --wl-selbar-danger: #93261f;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    /* Grows into the space the resting half leaves, so Clear sits at the
       right edge exactly where "Add all to cart" did. */
    flex: 1 1 auto;
    justify-content: flex-end;
    margin: 0;
}

/* The tint is on the STRIP, not on this half: colouring only half of a row
   that is one surface reads as a rendering fault. */
#wl-wrapper .wl-manage-toolbar.is-selected {
    border-color: var(--wl-selbar-border, #ddd9d0);
    background: var(--wl-selbar-bg, #f5f4f1);
}

/* 1rem, not 1em: the strip's own controls are set at 0.85em, and a count
   inheriting that came out smaller than the sentence it is summarising. */
#wl-wrapper .wl-selbar__count,
.wl-selbar__count {
    font-size: 1rem;
    font-weight: 650;
}

#wl-wrapper .wl-selbar__actions,
.wl-selbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
}

/* Outlined on white, so the actions read as controls on the tinted strip
   rather than as a second row of primary buttons. Deliberately not the
   theme's `.button`: a theme's primary colour on four of these at once is
   the loudest thing on the screen. */
#wl-wrapper .wl-selbar__action,
.wl-selbar__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding: 0.45em 0.8em;
    font-size: 0.85em;
    /* Regular. Four bold buttons in a row is four things shouting, and the
       one that spends money cannot stand out among them. */
    font-weight: 400;
    line-height: 1.3;
    border-radius: 6px;
    cursor: pointer;
}

/* White and outlined - but only the secondary ones. The cart button carries
   WooCommerce's `alt` modifier so the THEME paints it, and these would beat
   the theme's own rules from under #wl-wrapper. */
#wl-wrapper .wl-selbar__action:not(.wl-selbar__action--cart),
.wl-selbar__action:not(.wl-selbar__action--cart) {
    background: #fff;
    border: 1px solid var(--wl-selbar-border, #ddd9d0);
}

/* The text colour is its own rule, excluding the danger one as well: written
   into the rule above, `color: inherit` sat at a higher specificity than
   `--danger` and quietly took Remove's red away. */
#wl-wrapper .wl-selbar__action:not(.wl-selbar__action--cart):not(.wl-selbar__action--danger),
.wl-selbar__action:not(.wl-selbar__action--cart):not(.wl-selbar__action--danger) {
    color: inherit;
}

#wl-wrapper .wl-selbar__action[hidden],
.wl-selbar__action[hidden] {
    display: none !important;
}

/* The exception, and the only one: this is the button that acts on the
   shopper's wallet, so it is the theme's primary rather than an outline.
   Only the GEOMETRY is taken back off the theme here - a theme's `.button`
   brings its own padding, size and min-height, and this one has to stay the
   height of the two beside it or the strip changes size between states. */
#wl-wrapper .wl-selbar .wl-selbar__action--cart,
.wl-selbar .wl-selbar__action--cart,
#wl-wrapper .wl-manage-toolbar__cart {
    box-sizing: border-box;
    min-height: 0;
    margin: 0;
    padding: 0.45em 0.8em;
    font-size: 0.85em;
    font-weight: 650;
    line-height: 1.3;
    text-transform: none;
    border-radius: 6px;
}

/* The resting and selected cart controls share their box above so theme
   padding cannot move the selection control between states. Their colors
   still come from the theme's primary button. */
#wl-wrapper .wl-manage-toolbar__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

#wl-wrapper .wl-manage-toolbar__cart[hidden] {
    display: none !important;
}

#wl-wrapper .wl-manage-toolbar__cart .wl-list__menu-icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* The icon is on a filled surface here, not beside dark text on white. */
#wl-wrapper .wl-selbar__action--cart .wl-list__menu-icon,
.wl-selbar__action--cart .wl-list__menu-icon {
    opacity: 1;
}

/* Sized to the text beside it rather than to the 16px it is drawn at, so a
   theme with a large body size scales both together. */
#wl-wrapper .wl-selbar__action .wl-list__menu-icon,
.wl-selbar__action .wl-list__menu-icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    opacity: 0.75;
}

#wl-wrapper .wl-selbar__action:hover,
#wl-wrapper .wl-selbar__action:focus,
.wl-selbar__action:hover,
.wl-selbar__action:focus {
    border-color: currentColor;
}

#wl-wrapper .wl-selbar__action--danger,
.wl-selbar__action--danger {
    color: var(--wl-selbar-danger, #93261f);
    border-color: #ecc9c9;
}

/* Beside the count. It used to carry `margin-inline-start: auto` to hold the
   far end of a bar that no longer exists. */
#wl-wrapper .wl-selbar__clear,
.wl-selbar__clear {
    padding: 0.45em 0.6em;
    font-size: 0.85em;
    font-weight: 600;
    color: inherit;
    opacity: 0.7;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

#wl-wrapper .wl-selbar__clear:hover,
#wl-wrapper .wl-selbar__clear:focus,
.wl-selbar__clear:hover,
.wl-selbar__clear:focus {
    opacity: 1;
}

@media (pointer: coarse) {
    .wl-selbar__action,
    .wl-selbar__clear {
        min-height: 44px;
    }
}

/* The strip the bar replaces. `hidden` alone loses to this stylesheet's
   own `#wl-wrapper .wl-clear { display: block }` and to a theme's row
   rules - the same fight every other reactive chrome element here has
   to win. */
.wl-bulk-fallback[hidden] {
    display: none !important;
}

/* `display: inline-block` two rules above beats the UA stylesheet's
   `[hidden]`, so a row with no priority painted a "NONE" pill - the same
   fight the remove link and the grid rows have already had here. Any
   rule that gives an element a display has to say this too. */
.wl-list__priority--pill[hidden],
.wl-list__note-line[hidden] {
    display: none !important;
}

/* WooCommerce renders availability as a paragraph with a cart-sized
   margin, which on a row this tight leaves it floating between the name
   and the note. Its words are the merchant's setting - "2 in stock" or
   "Only 2 left", depending on the store's stock display format - and
   not this stylesheet's business; its margin and its block layout are.

   One rule, not two. There used to be a second, `.wl-list__title-line
   .stock`, saying the same things in different numbers - two classes to
   this rule's four, so it lost every time. Measured: the title line's
   `font-size: 12px` never applied and the stock rendered at 0.85em. */
.wl-list .wl-list__cell.product-name .stock {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

/* Any rule of ours that gives an element a display has to answer
   `[hidden]` as well - the UA stylesheet's rule is the weakest one in
   the cascade, and this is the fourth element on this screen to paint
   itself while the store believed it was hidden. The bar showed
   "0 items selected" over a list nobody had ticked anything on. */
.wl-selbar[hidden] {
    display: none !important;
}

/* Striping belongs to the row, not to its cells. WooCommerce puts the
   tint on each `td`, which in the phone's grid layout paints a band
   behind some cells and leaves the gaps between them bare - the cells
   are turned off at the top of this section for that reason.

   `nth-child(even)` counts the hydration template as child one, so the
   tinted rows are the second, fourth and sixth children: the first,
   third and fifth rows a shopper sees. */
.wl-list .wl-list__item:nth-child(even) {
    background: #fbfaf8;
}

/* ------------------------------------------------------------------
 * The row menu as a bottom sheet
 *
 * A popover anchored to a 34px control is a desktop shape. On a phone
 * the same markup becomes a sheet: full width, at the bottom where a
 * thumb is, over a dimmed page. The scrim is the menu's own ::before
 * rather than an element of its own - there is nowhere in a table row
 * to put a sibling that could cover the page.
 * ------------------------------------------------------------------ */

@media (max-width: 768px) {
    .wl-list__menu {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1000;
        width: auto;
        min-width: 0;
        padding: 0.4em 0.75em 1.2em;
        border-width: 1px 0 0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
    }

    /* Widening for the note editor is a desktop affordance; the sheet is
       already the full width of the screen. */
    .wl-list__menu--note {
        width: auto;
        max-width: none;
    }

    .wl-list__menu::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(0, 0, 0, 0.45);
    }

    /* The grab handle. Decoration, and marked as such: it says "this
       pulls down" to a sighted shopper and nothing to a screen reader. */
    .wl-list__menu::after {
        content: "";
        display: block;
        width: 2.5em;
        height: 0.25em;
        margin: 0.1em auto 0.6em;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.2);
        order: -1;
    }

    .wl-list__menu {
        display: flex;
        flex-direction: column;
    }

    /* ::after is `order: -1`, so the handle sits above the panels even
       though a pseudo-element cannot be written before its siblings. */
    .wl-list__menu-list,
    .wl-list__note-panel {
        order: 1;
    }

    .wl-list__menu-item,
    .wl-list__chip {
        font-size: 1em;
    }

    .wl-list__menu-item {
        padding: 0.75em 0.7em;
    }
}

/* The sheet gives the menu a `display`, so it has to answer `[hidden]`
   too - the rule this file has now learned four times over. Written
   outside the media query because the panels inside it are toggled the
   same way at every width. */
.wl-list__menu[hidden],
.wl-list__menu-list[hidden],
.wl-list__note-panel[hidden],
.wl-list__menu-toggle[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------
 * Manage a List - the page header
 *
 * The screen used to open with four stacked strips: the list name as a
 * second heading under the page's own, a raw "Wishlist URL:" line, a
 * bordered row of share icons, and "Delete list | Preview List" as text
 * links. Four rules, four borders, and the two things a shopper came to
 * do were plain links at the bottom of it.
 *
 * One row instead. What the list IS on the left - how it is shared, how
 * many items, what they come to - and what can be done TO it on the
 * right. The heading above the row is the page's own; see
 * Render\PageHeading for why it says the list's name.
 * ------------------------------------------------------------------ */

/* The preview banner on View a List.
   -----------------------------------------------------------------------
   Ours, and deliberately not a `woocommerce-info` notice - see the comment
   in templates/view-a-list.php for the two ways that notice renders wrong
   on a block theme. Built from the same parts as the intro bar above it:
   the card's border and radius, and the outlined action the header uses,
   so the one banner on this screen does not arrive in a second dialect. */
#wl-wrapper .wl-preview {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 0 0 1.25em;
    padding: 0.85em 1em;
    border: 1px solid #e6e4df;
    border-radius: 10px;
    background: #fbfaf8;
}

/* Sized in px, not em: it is drawn at 18px and a theme with a large body
   size would otherwise scale a stroked icon into a blurry one. `flex: none`
   because the sentence beside it is what may wrap. */
#wl-wrapper .wl-preview__icon {
    flex: none;
    width: 18px;
    height: 18px;
    opacity: 0.55;
}

#wl-wrapper .wl-preview__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.9375em;
}

/* The same outlined control the header's Preview and Share are, for the
   same reason: leaving the page is not the thing the shopper came here to
   do, and a filled button says it is. */
#wl-wrapper .wl-preview__action {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0.5em 0.9em;
    border: 1px solid #d9d7d1;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 0.875em;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

#wl-wrapper .wl-preview__action:hover,
#wl-wrapper .wl-preview__action:focus {
    border-color: currentColor;
    text-decoration: none;
}

/* On a phone the sentence and the way out stack, and the action goes full
   width rather than sitting as a stub beside a wrapped sentence. */
@media (max-width: 600px) {
    #wl-wrapper .wl-preview {
        flex-wrap: wrap;
    }

    #wl-wrapper .wl-preview__text {
        flex: 1 1 60%;
    }

    #wl-wrapper .wl-preview__action {
        flex: 1 1 100%;
    }
}

#wl-wrapper .wl-intro__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75em 1.5em;
    margin: 0 0 1.25em;
}

#wl-wrapper .wl-intro__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em;
    margin: 0;
    font-size: 0.875em;
    /* Privacy pills supply their own foreground/background pair. Fading the
       whole row also fades that pair, making the Shared label unreadable. */
}

/* The separator earns its aria-hidden: it is punctuation between two
   facts, and a screen reader reading "middle dot" between them adds
   nothing. */
#wl-wrapper .wl-intro__sep {
    opacity: 0.5;
}

/* The privacy state, as a pill rather than a sentence. Colour carries
   the same three-way distinction the Settings tab spells out in words,
   so it is never the only signal - the tab is one click away and says
   it in full. */
#wl-wrapper .wl-intro__privacy {
    display: inline-flex;
    padding: 0.2em 0.7em;
    border-radius: 999px;
    background: #eceaff;
    color: #312a9c;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 1;
}

#wl-wrapper .wl-intro__privacy[data-sharing="Shared"] {
    background: #fdf3e3;
    color: #85541a;
}

#wl-wrapper .wl-intro__privacy[data-sharing="Private"] {
    background: #f0efec;
    color: #4a4943;
}

#wl-wrapper .wl-intro__actions {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Outlined, not filled. Nothing here is the thing the shopper came to
   do - that is in the toolbar below - and a page whose header carries
   two filled buttons has told them nothing about which one matters.
   `color: inherit` keeps them on the theme's text colour rather than
   its link colour, which is what makes them read as controls. */
#wl-wrapper .wl-intro__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 0.5em 0.9em;
    border: 1px solid #d9d7d1;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 0.875em;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

#wl-wrapper .wl-intro__action:hover,
#wl-wrapper .wl-intro__action:focus {
    border-color: currentColor;
    text-decoration: none;
}

/* Icon-only, so it is square and sized to the text buttons beside it
   rather than to its 16px glyph. The label lives in aria-label and in
   the native tooltip. */
#wl-wrapper .wl-intro__action--delete {
    width: 2.55em;
    padding-left: 0;
    padding-right: 0;
    color: #8a2b2b;
}

/* 1.4em tall, which is the LINE BOX the text controls beside it get - their
   own line-height. An SVG is a replaced element and creates no line box, so
   an icon-only control came out 1em + padding while Preview and Share came
   out 1.4em + padding: 32.7px against 38.8px, measured. The glyph itself
   stays 1em square and centres inside that height, because the default
   preserveAspectRatio fits it to the smaller axis. */
#wl-wrapper .wl-intro__action-icon {
    display: block;
    flex: none;
    width: 1em;
    height: 1.4em;
}

/* The share panel is a <details>. Its marker is removed in both
   spellings - Safari still wants the WebKit pseudo-element - because
   the summary is styled as a button and a disclosure triangle inside
   one reads as a rendering accident. */
#wl-wrapper .wl-intro__share {
    position: relative;
}

#wl-wrapper .wl-intro__share > summary {
    list-style: none;
}

#wl-wrapper .wl-intro__share > summary::-webkit-details-marker {
    display: none;
}

#wl-wrapper .wl-intro__share[open] > summary {
    border-color: currentColor;
}

/* Absolutely positioned so opening it does not push the tabs and the
   whole grid down the page. Right-aligned to its own control, which
   keeps it on screen when the header sits at the right edge. */
#wl-wrapper .wl-intro__share-panel {
    position: absolute;
    right: 0;
    z-index: 20;
    min-width: 17em;
    margin-top: 0.4em;
    padding: 0.9em 1em;
    border: 1px solid #e6e4df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* The shipped share list floats its items - see the .wl-share-links
   rules near the top of this file - which inside a panel this narrow
   leaves the icons hanging outside their own border. Flex here, at a
   specificity above the ID-scoped float. */
#wl-wrapper .wl-intro__share-panel .wl-share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    float: none;
    margin: 0 0 0.75em;
}

#wl-wrapper .wl-intro__share-panel .wl-share-links li {
    float: none;
    margin: 0;
}

/* The URL keeps the job the "Wishlist URL:" strip used to do, in the
   one place a shopper now goes to look for it. A readonly input rather
   than text: it can be selected in one click and copied with the
   keyboard, which the plain string never could. */
#wl-wrapper .wl-intro__share-panel .wl-share-url {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.8125em;
}

#wl-wrapper .wl-intro__share-panel .wl-share-url label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 600;
}

/* border-box, or the panel loses its right-hand padding. A content-box
   input at `width: 100%` is 100% of the panel's CONTENT width and then
   adds its own padding and border on top, so it ran 15px into the
   padding and sat flush against the panel's edge. */
#wl-wrapper .wl-share-url__input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.4em 0.5em;
    border: 1px solid #d9d7d1;
    border-radius: 4px;
    font-size: 1em;
}

/* A phone has no room for a header that is one row. The actions drop
   under the meta line and stay left-aligned with it rather than
   hugging the right edge on a line of their own. */
@media (max-width: 480px) {
    #wl-wrapper .wl-intro__bar {
        flex-direction: column;
        align-items: stretch;
    }

    #wl-wrapper .wl-intro__actions {
        flex-wrap: wrap;
    }

    /* Anchored to the row instead of the control: at this width the
       control is close enough to the left edge that a panel hung off
       it would run off the right one. */
    #wl-wrapper .wl-intro__share {
        position: static;
    }

    #wl-wrapper .wl-intro__share-panel {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

/* ------------------------------------------------------------------
 * Manage a List - the toolbar
 *
 * Three controls that belong together were in three places: "Sort by"
 * and a Go button on a row of their own, "Select all items" inside the
 * grid's header strip, and "Add All To Cart" stranded below the card.
 * One row now - what to act on at the left, how to order and what to do
 * with all of it at the right.
 *
 * It spans two forms. The sort field is a GET form and the cart button
 * posts the bulk form below; forms cannot nest, so the button reaches
 * its form by the `form` attribute instead of by containment.
 * ------------------------------------------------------------------ */

/* One strip, two states. The resting half and the selection half swap
   inside it, so the strip keeps its box and the grid below never moves -
   ticking a row used to insert a second strip above this one and push the
   list down 74.5px, measured, just as the cursor was on its way to the next
   checkbox.

   min-height is what holds the two states to one size: the resting half
   carries a <select> and a filled button, the selection half a row of
   outlined ones, and nothing guarantees those agree on a theme whose control
   padding we have not seen. The border is transparent at rest so that
   gaining one when a selection tints the strip costs no height either. */
#wl-wrapper .wl-manage-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 0.75em;
    box-sizing: border-box;
    min-height: 3.5em;
    margin: 0 0 0.9em;
    padding: 0.35em 0.6em;
    border: 1px solid transparent;
    border-radius: 8px;
}

/* The legacy float clearfix becomes an extra flex item and gap on the
   right. Flex layout already contains its children. */
#wl-wrapper .wl-manage-toolbar::after {
    content: none;
}

/* The resting half: everything that is about the list rather than about a
   selection. `auto` on the left margin of the sort form pushes this whole
   half to the right edge, where it was before the merge. */
#wl-wrapper .wl-manage-toolbar__resting {
    /* Allow the nested sort form to shrink inside narrow theme content. */
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 0.75em;
    flex: 1 1 auto;
    justify-content: flex-end;
}

#wl-wrapper .wl-manage-toolbar__resting[hidden] {
    display: none !important;
}

/* `auto` rather than a spacer element: it pushes everything after it to
   the right edge and keeps doing so as controls come and go - the cart
   button is gone on a store with purchases disabled. */
/* No `margin-right: auto` any more: Clear sits immediately after this, and
   an auto margin here would push it to the far right with everything else.
   The two halves of the strip are `flex: 1 1 auto` and right-align their own
   contents, which is what holds the sort and cart controls at the edge. */
#wl-wrapper .wl-manage-toolbar__all {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    /* #wl-wrapper label is display:block and bold, which is right for a
       form field's label and wrong for this. */
    font-weight: 400;
    cursor: pointer;
}

#wl-wrapper .wl-manage-toolbar__all input[type="checkbox"] {
    margin: 0;
}

#wl-wrapper .wl-manage-toolbar__sort {
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
}

/* A flex item, so a two-word label ("Sort by:", "In Category:") would
   be the first thing the row shrinks and wrap mid-label beside its
   control. */
#wl-wrapper .wl-manage-toolbar__sort .wl-toolbar__label {
    display: inline;
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

#wl-wrapper .wl-manage-toolbar__sort .wl-toolbar__control {
    margin: 0;
}

/* WebKit can count the selected option's untruncated text as scrollable
   overflow after the flex row shrinks a native select. Keep that text inside
   its control; the native dropdown still shows the complete option labels. */
#wl-wrapper .wl-manage-toolbar__sort select.wl-toolbar__control {
    overflow: hidden;
}

/* The sort note explains where the reorder arrows went while a sort is
   applied. It is a sentence, not a control, so it takes the whole of
   the next line rather than squeezing in between two buttons. */
#wl-wrapper .wl-manage-toolbar .wl-list__sort-note {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.8125em;
    opacity: 0.75;
}

/* Each of the three rules above gives an element a `display`, so each
   answers `[hidden]` itself - the UA sheet's own rule loses to any
   author display, and this stylesheet has now learned that five times.
   The toolbar hides on an empty list; Go hides once the store runs. */
#wl-wrapper .wl-selbar[hidden],
#wl-wrapper .wl-selbar__actions[hidden],
#wl-wrapper .wl-selbar__clear[hidden],
#wl-wrapper .wl-manage-toolbar[hidden],
#wl-wrapper .wl-manage-toolbar__all[hidden],
#wl-wrapper .wl-manage-toolbar__sort[hidden],
#wl-wrapper .wl-manage-toolbar__go[hidden] {
    display: none !important;
}

/* A phone puts Select all on its own line and the sort field and the
   cart button on the next, rather than wrapping them one at a time into
   a ragged three-line stack. */
@media (max-width: 600px) {
    #wl-wrapper .wl-manage-toolbar__all {
        /* Keep the checkbox centered in the same touch row when Clear appears. */
        box-sizing: border-box;
        min-height: 44px;
        flex-basis: 100%;
        margin-right: 0;
    }

    #wl-wrapper .wl-manage-toolbar__sort {
        flex-grow: 1;
    }

    #wl-wrapper .wl-manage-toolbar__sort .wl-toolbar__control {
        flex-grow: 1;
        min-width: 0;
    }

    /* Full width on its own line rather than a 136px button stranded
       beside the sort field. B-Phone.dc.html puts this control at the
       bottom of the screen and drops the toolbar entirely - that is a
       separate piece of work, but a full-width primary action is the
       part of it that costs one rule. */
    #wl-wrapper .wl-manage-toolbar__cart {
        flex-basis: 100%;
        min-height: 44px;
        text-align: center;
    }
}

/* A hidden input is still a flex item: `type="hidden"` stops it painting,
   not participating, so the zero-width field carrying wladdall-screen was
   taking a 12px gap after the last button and holding it off the right
   edge. Measured, not guessed - the row ended 18px short. */
#wl-wrapper .wl-manage-toolbar input[type="hidden"] {
    display: none;
}

/* ------------------------------------------------------------------
 * The title line
 *
 * The product's name, and the two things that qualify it: its priority
 * and its stock. Both used to take a line of their own - the priority
 * because it shared a wrapping flex row with the note, so its position
 * depended on how long that note happened to be, and the stock because
 * WooCommerce renders it as a paragraph. On a five-row list that cost
 * more vertical space than the products did.
 * ------------------------------------------------------------------ */

.wl-list .wl-list__items .wl-list__title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
}

/* Shrinks, never grows: the pill follows the name immediately rather
   than being pushed out to the far edge of a wide cell. */
.wl-list .wl-list__items .wl-list__title-line .wl-list__name {
    flex: 0 1 auto;
    min-width: 0;
}

.wl-list .wl-list__items .wl-list__title-line .stock.out-of-stock {
    color: #93261f;
    opacity: 1;
}

/* The note readout and its invitation both sit directly in the name
   cell now rather than inside an annotations block. The cell is a flex
   column with a 3px gap, so the spacing between the title line and
   whichever of these follows it belongs to the cell - a margin here
   would be added to that gap, not instead of it. */
.wl-list .wl-list__cell.product-name > .wl-list__note-line,
.wl-list .wl-list__cell.product-name > .wl-list__note-add {
    /* `flex-start`, because the cell is a flex column: a stretched
       <button> is as wide as the name above it and centres its own
       label, which put "Add a note" in the middle of the row. */
    align-self: flex-start;
    margin-block-start: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #5f5f68;
    opacity: 1;
}

/* WooCommerce's variation list - the attributes a variable product was
   saved with. It reads as a second annotation line, so it is sized like
   one rather than like the product's own name. */
.wl-list .wl-list__cell.product-name > .variation {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #5f5f68;
}

.wl-list .wl-list__cell.product-name > .variation dt,
.wl-list .wl-list__cell.product-name > .variation dd,
.wl-list .wl-list__cell.product-name > .variation p {
    display: inline;
    margin: 0;
    font-weight: inherit;
}

/* A gap after each value, so two attributes read as two pairs rather
   than as one sentence. */
.wl-list .wl-list__cell.product-name > .variation dd {
    margin-inline-end: 10px;
}

.wl-list .wl-list__cell.product-name > .variation dt {
    color: #8a887f;
}

/* A link, not a button, however it is marked up: it is an invitation to
   write something, sitting where the note it replaces would be. <button>
   because it acts on this page and goes nowhere - a bare anchor with no
   href is not focusable and not a control. */
.wl-list__note-add {
    display: inline-block;
    padding: 0;
    font-size: 0.85em;
    line-height: 1.35;
    color: inherit;
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
}

.wl-list__note-add:hover,
.wl-list__note-add:focus {
    opacity: 1;
}

/* display: inline-block above beats the UA sheet's [hidden], which is
   the sixth time this file has had to say so. Without it every row with
   a note would offer "Add a note" underneath it as well. */
.wl-list__note-add[hidden] {
    display: none !important;
}

/* The reorder glyphs are drawn now, not typed. A character triangle
   sits on its font's baseline rather than in the middle of its button,
   and is whichever glyph the visitor's font stack supplies. */
.wl-list__reorder-icon {
    display: block;
    margin: 0 auto;
}

/* Selected actions use a native disclosure; cart stays outside it. */
#wl-wrapper .wl-selbar__menu {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}
#wl-wrapper .wl-selbar__menu > summary {
    list-style: none;
    gap: 0.65em;
}
#wl-wrapper .wl-selbar__menu > summary::-webkit-details-marker { display: none; }
#wl-wrapper .wl-selbar__menu-panel {
    position: absolute;
    z-index: 30;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    width: 17em;
    max-width: calc(100vw - 40px);
    padding: 6px;
    background: #fff;
    border: 1px solid #ddd9d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}
#wl-wrapper .wl-selbar__menu-panel .wl-list__menu-item {
    min-height: 44px;
    margin: 0;
    white-space: normal;
}
#wl-wrapper .wl-selbar__menu > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    #wl-wrapper .wl-selbar__menu-panel { inset-inline-end: auto; inset-inline-start: 0; }
    #wl-wrapper .wl-manage-toolbar.is-selected .wl-manage-toolbar__all { flex-basis: auto; }
    #wl-wrapper .wl-manage-toolbar.is-selected .wl-selbar { flex-basis: 100%; }
    #wl-wrapper .wl-selbar__actions { width: 100%; }
    #wl-wrapper .wl-selbar__action--cart { flex: 1; justify-content: center; }
    #wl-wrapper .wl-selbar__action,
    #wl-wrapper .wl-selbar .wl-selbar__action--cart { min-height: 44px; box-sizing: border-box; }
}

/* Reuse the cart spinner and its reduced-motion treatment in a fixed icon slot. */
.wl-move__confirm .wl-move__confirm-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
}
.wl-move__confirm .wl-move__confirm-icon,
.wl-move__confirm .wl-move__confirm-icon span {
    display: inline-flex;
    width: 1.1em;
    height: 1.1em;
    flex: none;
}
.wl-move__confirm .wl-move__confirm-icon svg {
    width: 100%;
    height: 100%;
}
.wl-move__confirm .wl-move__confirm-icon [hidden] { display: none; }
