.pss-search,
.pss-search * {
    box-sizing: border-box;
}

.pss-search {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    color: #202124;
    font-family: inherit;
}

.pss-search__title {
    margin: 0 0 18px;
    color: #1d1d1f;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.pss-search__form {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.pss-search__field-wrap {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d9dadd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pss-search__field-wrap:focus-within {
    border-color: var(--pss-accent, #e3b51f);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pss-accent, #e3b51f) 12%, transparent), 0 12px 34px rgba(15, 23, 42, 0.09);
}

.pss-search-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.pss-search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.pss-search__field-wrap > .pss-search-icon {
    margin-left: 18px;
    color: #737780;
}

.pss-search__input {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #1d1d1f;
    box-shadow: none !important;
    font: inherit;
    font-size: 1rem;
}

.pss-search__input::placeholder {
    color: #8a8d93;
    opacity: 1;
}

.pss-search__submit,
.pss-search__ai,
.pss-open-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .16s ease, opacity .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.pss-search__submit {
    align-self: stretch;
    min-width: 104px;
    margin: 6px;
    padding: 0 20px;
    background: var(--pss-accent, #e3b51f);
    color: var(--pss-accent-contrast, #1d1d1f);
}

.pss-search__ai {
    min-height: 58px;
    padding: 0 19px;
    border: 1px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 24%, #d9dadd);
    background: color-mix(in srgb, var(--pss-accent, #e3b51f) 6%, #fff);
    color: var(--pss-accent-text, #765e10);
    white-space: nowrap;
}

.pss-search__submit:hover,
.pss-search__ai:hover,
.pss-open-search:hover {
    transform: translateY(-1px);
}

.pss-search__submit:focus-visible,
.pss-search__ai:focus-visible,
.pss-open-search:focus-visible,
.pss-modal__close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 26%, transparent);
    outline-offset: 3px;
}

.pss-search button:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.pss-search__hint {
    margin: 10px 2px 0;
    color: #72767d;
    font-size: .88rem;
}

.pss-search__status {
    min-height: 25px;
    padding-top: 13px;
    color: #686c73;
    font-size: .92rem;
}

.pss-search.is-loading .pss-search__status::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 8px -2px 0;
    border: 2px solid #d6d7da;
    border-top-color: var(--pss-accent, #e3b51f);
    border-radius: 50%;
    animation: pss-spin .7s linear infinite;
}

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

.pss-search__answer {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    margin: 8px 0 20px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 18%, #e2e3e5);
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pss-accent, #e3b51f) 7%, #fff), #fff 58%);
}

.pss-search__answer[hidden] {
    display: none;
}

.pss-search__answer-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--pss-accent, #e3b51f);
    color: var(--pss-accent-contrast, #1d1d1f);
    font-size: 1.1rem;
}

.pss-search__answer-title {
    margin: 0 0 5px;
    color: var(--pss-accent-text, #765e10);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.pss-search__answer p {
    margin: 0;
    color: #26282c;
    font-size: 1rem;
    line-height: 1.6;
}

.pss-search__results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 12px;
}

.pss-search__results-heading h3 {
    margin: 0;
    color: #292b2f;
    font-size: 1rem;
}

.pss-search__results-heading span {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    background: #f0f1f2;
    color: #575b62;
    font-size: .78rem;
    font-weight: 800;
}

.pss-search__results-list {
    display: grid;
    gap: 12px;
}

.pss-result {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid #e3e4e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pss-result:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--pss-accent, #e3b51f) 24%, #e3e4e6);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .075);
}

.pss-result__media {
    display: block;
    min-height: 108px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f2f3;
}

.pss-result__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 108px;
    object-fit: cover;
}

.pss-result__image--placeholder {
    display: grid;
    place-items: center;
    color: #a6a9ae;
}

.pss-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 5px;
    color: #767a81;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pss-result__title {
    margin: 0 0 7px;
    font-size: 1.08rem;
    line-height: 1.28;
}

.pss-result__title a {
    color: #202124;
    text-decoration: none;
}

.pss-result__title a:hover {
    color: var(--pss-accent-text, #765e10);
}

.pss-result__excerpt {
    margin: 0 0 9px;
    color: #61656b;
    font-size: .9rem;
    line-height: 1.52;
}

.pss-result__link {
    color: var(--pss-accent-text, #765e10);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.pss-search mark {
    padding: 0 .08em;
    border-radius: 3px;
    background: color-mix(in srgb, var(--pss-accent, #e3b51f) 16%, #fff);
    color: inherit;
}

.pss-search__empty {
    padding: 28px;
    border: 1px dashed #d7d9dc;
    border-radius: 14px;
    color: #73777e;
    text-align: center;
}

.pss-open-search {
    min-height: 44px;
    padding: 0 17px;
    background: var(--pss-accent, #e3b51f);
    color: var(--pss-accent-contrast, #1d1d1f);
}

.pss-open-search .pss-search-icon {
    width: 15px;
    height: 15px;
}

.pss-modal[hidden] {
    display: none;
}

.pss-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: clamp(18px, 8vh, 78px) 18px 30px;
    overflow-y: auto;
}

.pss-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 15, 18, .62);
    backdrop-filter: blur(7px);
}

.pss-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: clamp(22px, 4vw, 40px);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}

.pss-modal__close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f2f3;
    color: #34363a;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

html.pss-modal-open,
html.pss-modal-open body {
    overflow: hidden;
}

@media (max-width: 720px) {
    .pss-search__form {
        flex-wrap: wrap;
    }

    .pss-search__field-wrap {
        flex-basis: 100%;
    }

    .pss-search__ai {
        width: 100%;
        min-height: 48px;
    }

    .pss-result {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
        padding: 11px;
    }

    .pss-result__media,
    .pss-result__image {
        min-height: 82px;
    }

    .pss-result__excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .pss-modal {
        padding: 0;
        place-items: stretch;
    }

    .pss-modal__dialog {
        width: 100%;
        min-height: 100vh;
        max-height: none;
        padding: 62px 16px 28px;
        border-radius: 0;
    }
}

@media (max-width: 460px) {
    .pss-search__submit {
        min-width: 82px;
        padding: 0 13px;
    }

    .pss-search__field-wrap > .pss-search-icon {
        margin-left: 14px;
    }

    .pss-search__input {
        padding: 0 10px;
        font-size: .94rem;
    }

    .pss-result {
        grid-template-columns: 1fr;
    }

    .pss-result__media {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pss-search *,
    .pss-open-search,
    .pss-modal * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

 
.pss-header-search-host {
    position: relative !important;
    overflow: visible !important;
}

.pss-header-search-toggle,
.pss-header-search-toggle * ,
.pss-menu-search-overlay,
.pss-menu-search-overlay * {
    box-sizing: border-box;
}

.pss-header-search-toggle {
    position: absolute !important;
    z-index: 9997 !important;
    top: var(--pss-toggle-top, 18px) !important;
    left: var(--pss-toggle-left, auto) !important;
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 75%, #9b7411) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0b2545 !important;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .11) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.pss-header-search-toggle:hover,
.pss-header-search-toggle.is-open {
    border-color: var(--pss-accent, #e3b51f) !important;
    background: var(--pss-accent, #e3b51f) !important;
    color: var(--pss-accent-contrast, #1d1d1f) !important;
    box-shadow: 0 9px 24px color-mix(in srgb, var(--pss-accent, #e3b51f) 22%, rgba(15, 23, 42, .15)) !important;
    transform: translateY(-1px);
}

.pss-header-search-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 28%, transparent) !important;
    outline-offset: 3px !important;
}

.pss-header-search-toggle .pss-search-icon {
    width: 17px;
    height: 17px;
}

.pss-header-search-toggle__close {
    display: none;
    margin-top: -2px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.pss-header-search-toggle.is-open .pss-search-icon {
    display: none;
}

.pss-header-search-toggle.is-open .pss-header-search-toggle__close {
    display: block;
}

.pss-menu-search-overlay {
    position: absolute !important;
    z-index: 9996 !important;
    top: var(--pss-overlay-top, 18px) !important;
    left: var(--pss-overlay-left, 32%) !important;
    display: flex !important;
    width: var(--pss-overlay-width, 55%) !important;
    min-width: 280px !important;
    height: var(--pss-overlay-height, 52px) !important;
    min-height: 48px !important;
    align-items: center !important;
    padding: 0 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(34px) scaleX(.92);
    transform-origin: right center;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .25, 1), visibility 0s linear .24s;
}

.pss-header-search-is-open .pss-menu-search-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scaleX(1);
    transition-delay: 0s;
}

.pss-header-search-is-open .pss-menu-search-overlay::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -8px -10px;
    border: 1px solid rgba(16, 38, 67, .08);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

.pss-header-search__form {
    position: relative;
    display: flex;
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    align-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pss-accent, #e3b51f) 72%, #a7a9ad);
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pss-header-search__form:focus-within {
    border-color: var(--pss-accent, #e3b51f);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pss-accent, #e3b51f) 20%, transparent);
}

.pss-header-search__form > .pss-search-icon {
    width: 16px;
    height: 16px;
    margin-left: 18px;
    color: #5e6670;
}

.pss-header-search__input {
    width: 100%;
    min-width: 0;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0b2545 !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 44px !important;
}

.pss-header-search__input::placeholder {
    color: #7c8087;
    opacity: 1;
}

.pss-header-search__input::-webkit-search-cancel-button {
    opacity: .55;
}

.pss-header-search__submit {
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 1px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--pss-accent, #e3b51f) !important;
    color: var(--pss-accent-contrast, #1d1d1f) !important;
    cursor: pointer;
    font: inherit !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transition: transform .16s ease, filter .16s ease;
}

.pss-header-search__submit:hover {
    filter: brightness(.97);
    transform: scale(1.04);
}

.pss-header-search__submit:focus-visible,
.pss-header-search__input:focus-visible {
    outline: none !important;
}

@media (max-width: 900px) {
    .pss-header-search-toggle {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    .pss-menu-search-overlay {
        min-width: 240px !important;
    }
}

@media (max-width: 767px) {
    .pss-menu-search-overlay {
        position: fixed !important;
        z-index: 100001 !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px) !important;
        left: 12px !important;
        width: calc(100vw - 24px) !important;
        height: 50px !important;
        min-width: 0 !important;
    }

    .pss-header-search-is-open .pss-menu-search-overlay::before {
        inset: -6px;
    }
}

 
.pss-global-trigger {
    position: fixed;
    z-index: 99990;
    top: 22px;
    right: 24px;
}

.admin-bar .pss-global-trigger {
    top: 54px;
}

.pss-global-trigger .pss-open-search--global {
    position: relative;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.pss-global-trigger .pss-open-search--global > span:last-child {
    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;
    white-space: nowrap !important;
    border: 0 !important;
}

.pss-global-trigger .pss-open-search--global .pss-search-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 782px) {
    .pss-global-trigger {
        top: 14px;
        right: 14px;
    }

    .admin-bar .pss-global-trigger {
        top: 60px;
    }

    .pss-global-trigger .pss-open-search--global {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
}
