.obso-ps-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    font-family: inherit;
}

.obso-ps-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 0 !important;
    border-bottom: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    transition: border-color 0.15s ease;
}

.obso-ps-form:focus-within {
    border-bottom-color: #000 !important;
}

.obso-ps-input {
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 16px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1a1a;
    outline: none;
}

.obso-ps-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.obso-ps-submit {
    flex: 0 0 auto;
    padding: 12px 16px !important;
    border: 0 !important;
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: color 0.15s ease;
    text-transform: none;
}

.obso-ps-submit:hover,
.obso-ps-submit:focus {
    background: transparent !important;
    color: #6b6b6b !important;
    box-shadow: none !important;
    opacity: 1;
}

.obso-ps-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
}

.obso-ps-item,
.obso-ps-empty,
.obso-ps-viewall {
    margin: 0;
    padding: 0;
    list-style: none;
}

.obso-ps-item-link,
.obso-ps-viewall-link {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.obso-ps-item-link:hover,
.obso-ps-item.is-active .obso-ps-item-link {
    background: #f4f4f4;
}

.obso-ps-item-link mark {
    background: #fff3a3;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.obso-ps-empty {
    padding: 10px 16px;
    color: #6a6a6a;
    font-size: 13px;
    font-style: italic;
}

/* Skeleton loading rows shown the instant typing begins */
.obso-ps-skeleton {
    padding: 12px 16px;
    list-style: none;
    margin: 0;
}
.obso-ps-skeleton-bar {
    display: block;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ececec 0%, #f6f6f6 50%, #ececec 100%);
    background-size: 200% 100%;
    animation: obso-ps-shimmer 1.1s ease-in-out infinite;
    width: 80%;
}
.obso-ps-skeleton:nth-child(2) .obso-ps-skeleton-bar { width: 65%; }
.obso-ps-skeleton:nth-child(3) .obso-ps-skeleton-bar { width: 72%; }
.obso-ps-skeleton:nth-child(4) .obso-ps-skeleton-bar { width: 58%; }
@keyframes obso-ps-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .obso-ps-skeleton-bar { animation: none; }
}

.obso-ps-viewall {
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.obso-ps-viewall-link {
    font-weight: 600;
    color: #0a58ca;
}

.obso-ps-viewall-link:hover {
    background: #f4f8ff;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
