.pcmad-store-shell #main-content ul.products li.product:has(> .pcmad-stock-row) > a.woocommerce-loop-product__link {
    height: auto;
    padding-block-end: 0;
}

.pcmad-store-shell #main-content ul.products li.product:has(> .pcmad-stock-row) {
    display: flex;
    flex-direction: column;
}

.pcmad-stock-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 9px;
    padding-inline: clamp(10px, 1.4vw, 16px);
}

.pcmad-store-shell #main-content .pcmad-stock-row .pcmad-card-stock { margin: 0; }
.pcmad-stock-row > :is(.pcmad-stock-action, .pcmad-stock-interest-link, .pcmad-quote-action) { margin-inline-start: auto; }
.pcmad-stock-row :is(.pcmad-stock-interest-link, .pcmad-quote-action) {
    margin-inline-end: 0;
    color: #444;
    font-size: 12px;
    font-weight: 650;
    text-underline-offset: 3px;
}
.pcmad-store-shell #main-content .pcmad-stock-row :is(.pcmad-stock-interest-link, .pcmad-quote-action) {
    text-decoration: underline #777 !important;
}
.pcmad-store-shell #main-content .pcmad-stock-row :is(.pcmad-stock-interest-link, .pcmad-quote-action):hover {
    text-decoration-color: #92c159 !important;
}
.pcmad-stock-row :is(.pcmad-stock-interest-link, .pcmad-quote-action)::before {
    width: 6px;
    height: 6px;
    background: #777;
    content: '';
}
.pcmad-stock-action .pcmad-stock-interest-link { margin-inline-start: 0; }

@media (min-width: 1000px) and (pointer: fine) {
    .pcmad-stock-row :is(.pcmad-stock-interest-link, .pcmad-quote-action) { min-height: 30px; }
}

.pcmad-stock-interest-link,
:where(.pcmad-stock-row) .pcmad-quote-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    margin-inline: clamp(10px, 1.4vw, 16px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pcm-ink, #171717);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.pcmad-stock-action .pcmad-stock-result {
    margin: 5px clamp(10px, 1.4vw, 16px) 12px;
    font-size: 13px;
    font-weight: 650;
}

.pcmad-stock-interest-link:hover,
#pcmad-stock-interest a:hover {
    text-decoration: underline;
    text-decoration-color: var(--pcm-green, #92c159);
    text-underline-offset: 3px;
}

#pcmad-stock-interest {
    margin: 18px 0 22px;
    padding: clamp(14px, 3vw, 20px);
    border: 1px solid var(--pcm-line, #dedede);
    border-radius: 8px;
    background: var(--pcm-surface, #f4f4f4);
    scroll-margin-top: 120px;
    color: var(--pcm-ink, #171717);
    line-height: 1.5;
}

#pcmad-stock-interest summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

#pcmad-stock-interest summary::-webkit-details-marker { display: none; }
#pcmad-stock-interest summary::after { content: '+'; }
#pcmad-stock-interest[open] summary::after { content: '−'; }
#pcmad-stock-interest[open] summary { margin-bottom: 10px; }
:is(#pcmad-stock-interest, #pcmad-stock-popup) p { margin: 0; padding: 0; }
:is(#pcmad-stock-interest, #pcmad-stock-popup) form { display: grid; gap: 8px; margin-top: 12px; }
#pcmad-stock-interest:not(details) form { margin-top: 0; }
:is(#pcmad-stock-interest, #pcmad-stock-popup) label { font-weight: 650; }
:is(#pcmad-stock-interest, #pcmad-stock-popup) a { color: var(--pcm-ink, #171717); text-decoration: underline; }
:is(#pcmad-stock-interest, #pcmad-stock-popup) .pcmad-stock-privacy { font-size: 13px; color: var(--pcm-muted, #555); }
:is(#pcmad-stock-interest, #pcmad-stock-popup) .pcmad-stock-result { margin-top: 8px; font-weight: 650; }
:is(#pcmad-stock-interest, #pcmad-stock-popup, .pcmad-stock-action) [hidden] { display: none !important; }
#pcmad-stock-popup .pcmad-stock-product { margin-bottom: 8px; color: var(--pcm-ink, #171717); font-weight: 700; }

:is(#pcmad-stock-interest, #pcmad-stock-popup) input[type="email"] {
    min-width: 0;
    min-height: 44px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--pcm-line, #dedede);
    border-radius: 6px;
    background: #fff;
    color: var(--pcm-ink, #171717);
    font: inherit;
    font-size: 16px;
}

:is(#pcmad-stock-interest, #pcmad-stock-popup) button[type="submit"] {
    justify-self: start;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--pcm-green, #92c159);
    color: var(--pcm-ink, #171717);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

:is(#pcmad-stock-interest, #pcmad-stock-popup) button[type="submit"]:hover { background: #333; color: #fff; }
:is(#pcmad-stock-interest, #pcmad-stock-popup, .pcmad-stock-action) button:disabled { opacity: .65; cursor: wait; }
.pcmad-stock-cancel {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pcm-ink, #171717);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.pcmad-stock-interest-link:focus-visible,
.pcmad-stock-cancel:focus-visible,
:is(#pcmad-stock-interest, #pcmad-stock-popup) :is(a, button, input, summary):focus-visible {
    outline: 2px solid var(--pcm-green, #92c159);
    outline-offset: 2px;
}
