/* Component-scoped styles; existing theme search inputs retain their design. */
.okpc-ps-panel {
    --okpc-ps-accent: #146c46;
    --okpc-ps-muted: #66736c;
    position: fixed;
    z-index: 2147483000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #dce6df;
    border-radius: 16px;
    background: #fff;
    color: #15281c;
    box-shadow: 0 18px 50px rgb(17 45 29 / 17%), 0 3px 10px rgb(17 45 29 / 5%);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: start;
    animation: okpc-ps-enter 140ms ease-out;
    color-scheme: light;
}
.okpc-ps-panel[hidden], .okpc-ps-panel [hidden] { display: none !important; }
.okpc-ps-panel *, .okpc-ps-panel *::before, .okpc-ps-panel *::after { box-sizing: border-box; }
.okpc-ps-list {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c6d7ca transparent;
    padding: 5px;
}
.okpc-ps-panel a {
    color: inherit;
    text-decoration: none !important;
    box-shadow: none;
    margin: 0;
    border: 0;
    border-radius: 10px;
    outline-offset: -3px;
}
.okpc-ps-panel a:focus-visible { outline: 2px solid var(--okpc-ps-accent); }
.okpc-ps-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 12px 10px;
    transition: background 100ms ease;
}
.okpc-ps-product + .okpc-ps-product { border-top: 1px solid #f0f4f1; }
.okpc-ps-panel a.is-active { background: #eff7f1; }
.okpc-ps-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #edf0ee;
    border-radius: 10px;
    background: #fff;
}
.okpc-ps-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}
.okpc-ps-media svg, .okpc-ps-all svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    flex: 0 0 21px;
}
.okpc-ps-media svg { width: 27px; height: 27px; color: #a6b7aa; }
.okpc-ps-details { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.okpc-ps-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #17271d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: start;
}
.okpc-ps-title .okpc-ps-match {
    margin: 0;
    padding: 0;
    border-radius: 2px;
    color: inherit;
    background: #e1f0e6;
    font: inherit;
    font-weight: 750;
}
.okpc-ps-sku { color: var(--okpc-ps-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.okpc-ps-stock { color: var(--okpc-ps-muted); font-size: 11px; line-height: 1.4; }
.okpc-ps-stock.is-instock { color: var(--okpc-ps-accent); }
.okpc-ps-stock.is-outofstock { color: #8c4740; }
.okpc-ps-stock.is-onbackorder { color: #88632b; }
.okpc-ps-price {
    display: flex;
    flex: 0 1 104px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 2px 5px;
    max-width: 34%;
    color: #174b2e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-align: end;
}
.okpc-ps-price del { width: 100%; color: #7f8882; font-size: 11px; font-weight: 400; opacity: 1; }
.okpc-ps-price ins { color: inherit; text-decoration: none; background: none; }
.okpc-ps-price bdi { white-space: nowrap; }
.okpc-ps-price .screen-reader-text, .okpc-ps-live {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.okpc-ps-all {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--okpc-ps-accent) !important;
    font-weight: 700;
    background: #f5f9f6;
}
.okpc-ps-list .okpc-ps-all { margin-top: 4px; }
.okpc-ps-all .okpc-ps-arrow { margin-inline-start: auto; font-size: 20px; line-height: 1; }
.okpc-ps-panel[dir="ltr"] .okpc-ps-arrow { transform: rotate(180deg); }
.okpc-ps-message {
    flex: 0 0 auto;
    padding: 16px 18px;
    color: var(--okpc-ps-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.okpc-ps-message.is-loading { display: flex; align-items: center; gap: 10px; }
.okpc-ps-message.is-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid #d5e7da;
    border-top-color: var(--okpc-ps-accent);
    border-radius: 50%;
    animation: okpc-ps-spin 750ms linear infinite;
}
.okpc-ps-hint {
    flex: 0 0 auto;
    padding: 7px 16px;
    border-top: 1px solid #eef3ef;
    color: #65746a;
    background: #fcfdfc;
    font-size: 10px;
    text-align: center;
}
/* The optional shortcode ships with a complete, compact search form. */
.okpc-ps-form {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: 720px;
    margin: 0;
    padding: 5px;
    border: 1px solid #cddbd1;
    border-radius: 12px;
    background: #fff;
}
.okpc-ps-form:focus-within { border-color: #146c46; box-shadow: 0 0 0 3px rgb(20 108 70 / 10%); }
.okpc-ps-form input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    color: #17271d;
    background: #fff;
    box-shadow: none;
    outline: none;
    font: inherit;
    font-size: 16px;
}
.okpc-ps-form button[type="submit"] {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 20px;
    border: 0;
    border-radius: 8px;
    background: #146c46;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.okpc-ps-form button[type="submit"]:hover { background: #105b3b; }
.okpc-ps-form button[type="submit"]:focus-visible { outline: 2px solid #146c46; outline-offset: 3px; }
@keyframes okpc-ps-spin { to { transform: rotate(360deg); } }
@keyframes okpc-ps-enter { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
    .okpc-ps-panel { border-radius: 12px; }
    .okpc-ps-product { min-height: 84px; padding: 10px 7px; gap: 9px; }
    .okpc-ps-media { width: 54px; height: 54px; flex-basis: 54px; }
    .okpc-ps-title { font-size: 13px; }
    .okpc-ps-price { flex-basis: 80px; max-width: 30%; font-size: 13px; }
    .okpc-ps-hint { display: none; }
    .okpc-ps-form button[type="submit"] { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .okpc-ps-panel, .okpc-ps-message.is-loading::before { animation: none; }
    .okpc-ps-product { transition: none; }
}
@media (forced-colors: active) {
    .okpc-ps-panel { border: 1px solid CanvasText; }
    .okpc-ps-panel a.is-active { outline: 2px solid Highlight; }
}
