.stoic-pep-overlay[hidden] { display: none !important; }
.stoic-pep-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
}
body.stoic-pep-open { overflow: hidden; }
.stoic-pep-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.stoic-pep-modal h2 { margin: 0 42px 8px 0; }
.stoic-pep-intro { margin: 0 0 22px; }
.stoic-pep-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.stoic-pep-products { display: grid; gap: 12px; }
.stoic-pep-product {
    display: grid;
    grid-template-columns: auto 82px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.stoic-pep-product.is-selected {
    border-color: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}
.stoic-pep-product > input { width: 18px; height: 18px; }
.stoic-pep-image img { width: 82px; height: 82px; object-fit: cover; border-radius: 6px; }
.stoic-pep-details { display: grid; gap: 4px; }
.stoic-pep-price { font-weight: 600; }
.stoic-pep-description { font-size: .9em; opacity: .75; }
.stoic-pep-qty-wrap { display: grid; gap: 4px; justify-items: center; font-size: .85em; }
.stoic-pep-qty { width: 68px !important; min-width: 68px; }
.stoic-pep-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.stoic-pep-error { margin: 14px 0 0; color: #b42318; font-weight: 600; }
@media (max-width: 620px) {
    .stoic-pep-modal { padding: 22px 16px; }
    .stoic-pep-product { grid-template-columns: auto 64px 1fr; }
    .stoic-pep-image img { width: 64px; height: 64px; }
    .stoic-pep-qty-wrap { grid-column: 2 / -1; display: flex; justify-content: flex-start; align-items: center; gap: 8px; }
    .stoic-pep-actions { flex-direction: column-reverse; }
    .stoic-pep-actions .button { width: 100%; }
}
