body.sr-lock {
    overflow: hidden;
}

.sr-pop {
    position: fixed;
    inset: 0;
    z-index: 99999999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.sr-pop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sr-cvr {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgb(var(--primary-text-code) / .42);
    cursor: default;
}

.sr-box {
    width: min(986px, calc(100vw - 48px));
    max-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 39px 36px 36px;
    border-radius: 9px;
    background: var(--sp-fill);
    color: var(--primary-text);
    box-shadow: 0 24px 70px rgb(var(--primary-text-code) / .16);
    transform: translateY(-12px);
    transition: transform .26s ease;
}

.sr-pop.is-open .sr-box {
    transform: translateY(0);
}

.sr-head {
    min-height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.sr-head h2 {
    width: 100%;
    margin: 0;
    color: var(--primary-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
}

.sr-x {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--background);
	color:var(--primary-text);
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.sr-form {
    width: 100%;
    margin: 0;
}

.sr-in {
    width: 100%;
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
	border:1px solid var(--diver);
    border-radius: 5px;
    background: var(--sp-fill);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sr-in:focus-within {
	border-color:var(--focus-ring);
    box-shadow: 0 0 0 2px rgb(var(--primary-text-code) / .035);
}

.sr-in input {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 49px 0 15px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--primary-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 43px;
    text-align: start;
}

.sr-in input::-webkit-search-cancel-button {
    display: none;
}

.sr-in input::placeholder {
	color:var(--secondarytext);
    opacity: 1;
}

.sr-go {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-text);
    font-size: 17px;
    cursor: pointer;
    transform: translateY(-50%);
}

.sr-keys {
    margin-top: 28px;
    text-align: start;
}

.sr-keys h3,
.sr-res-h h3 {
    margin: 0;
    color: var(--primary-text);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
}

.sr-keys > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.sr-key {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
	border:1px solid var(--diver);
    border-radius: 999px;
    background: var(--sp-fill);
	color:var(--secondarytext);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.sr-res {
    margin-top: 28px;
}

.sr-res-h {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 17px;
}

.sr-prds {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sr-prds > .pr-card,
.sr-prds > .sr-sk {
    width: calc((100% - 72px) / 4);
    flex: 0 0 calc((100% - 72px) / 4);
}

.sr-prds .pr-med {
    border-radius: 7px;
}

.sr-prds .pr-hot,
.sr-prds .pr-acts,
.sr-prds .pr-cart {
    display: none !important;
}

.sr-prds .pr-sale {
    inset-block-start: 10px;
    inset-inline-start: 10px;
    min-width: 46px;
    height: 23px;
    padding-inline: 7px;
    font-size: 11px;
}

.sr-prds .pr-body {
    padding-block-start: 10px;
    text-align: start;
}

.sr-prds .pr-ttl {
    min-height: 43px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.sr-prds .pr-prc {
    margin-block-start: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.sr-prds .pr-prc del {
    margin-inline-end: 5px;
    font-size: 11px;
    font-weight: 400;
}

.sr-sk {
    min-width: 0;
}

.sr-sk span {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 7px;
	background:linear-gradient(100deg,var(--background) 20%,var(--yc-surface-muted) 40%,var(--background) 60%);
    background-size: 220% 100%;
    animation: srShine 1.25s linear infinite;
}

.sr-sk b,
.sr-sk em {
    display: block;
    height: 10px;
    margin-top: 10px;
    border-radius: 4px;
	background:var(--background);
}

.sr-sk em {
    width: 58%;
    height: 9px;
    margin-top: 8px;
}

.sr-empty {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--secondarytext);
    text-align: center;
}

.sr-empty i {
    font-size: 30px;
}

.sr-empty strong {
    font-size: 13px;
    font-weight: 500;
}

.sr-more-w {
    min-height: 65px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--media-placeholder);
}

.sr-more {
    min-width: 150px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 2px;
	background:var(--primary-text);
    color: var(--sp-fill);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.sr-more[hidden] {
    display: none;
}

.sr-pop.is-more .sr-more {
    opacity: .58;
    pointer-events: none;
}

.sr-x:focus-visible,
.sr-go:focus-visible,
.sr-key:focus-visible,
.sr-more:focus-visible {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

@media (hover: hover) {
    .sr-x:hover {
		background:var(--background);
        transform: translateY(-50%) rotate(5deg);
    }

    .sr-key:hover {
		border-color:var(--diver);
        color: var(--primary-text);
		background:var(--yc-surface-muted);
    }

    .sr-more:hover {
        opacity: .88;
        transform: translateY(-1px);
    }
}

@keyframes srShine {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 900px) {
    .sr-box {
        width: min(760px, calc(100vw - 36px));
        padding-inline: 28px;
    }

    .sr-prds {
        gap: 18px;
    }

    .sr-prds > .pr-card,
    .sr-prds > .sr-sk {
        width: calc((100% - 36px) / 3);
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 767px) {
    .sr-pop {
        padding: 0;
    }

    .sr-box {
        width: 100%;
        max-height: 100%;
        min-height: 100%;
        padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
        border-radius: 0;
        box-shadow: none;
        transform: translateY(18px);
    }

    .sr-head {
        min-height: 44px;
        margin-bottom: 20px;
        padding-inline-end: 52px;
    }

    .sr-head h2 {
        font-size: 21px;
    }

    .sr-x {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .sr-in {
        height: 48px;
    }

    .sr-in input {
        height: 46px;
        line-height: 46px;
        font-size: 14px;
    }

    .sr-keys {
        margin-top: 23px;
    }

    .sr-keys h3,
    .sr-res-h h3 {
        font-size: 17px;
    }

    .sr-res {
        margin-top: 24px;
    }

    .sr-prds {
        gap: 19px 10px;
    }

    .sr-prds > .pr-card,
    .sr-prds > .sr-sk {
        width: calc((100% - 10px) / 2);
        flex-basis: calc((100% - 10px) / 2);
    }

    .sr-prds .pr-ttl {
        min-height: 40px;
        font-size: 13px;
    }

    .sr-more-w {
        margin-top: 20px;
    }
}

@media (max-width: 390px) {
    .sr-box {
        padding-inline: 12px;
    }

    .sr-key {
        padding-inline: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-pop,
    .sr-box,
    .sr-x,
    .sr-key,
    .sr-more {
        transition: none !important;
    }

    .sr-sk span {
        animation: none !important;
    }
}

/* =========================
   Mobile App Experience
========================= */
@media (max-width:767px) {
    .sr-box {
        height:100dvh;
        max-height:100dvh;
        min-height:0;
        overflow-y:auto;
        overflow-x:hidden;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }

    .sr-x,
    .sr-go {
        width:44px;
        height:44px;
        touch-action:manipulation;
    }

    .sr-go {
        inset-inline-end:8px;
        right:auto;
    }

    .sr-in input {
        padding-inline-start:14px;
        padding-inline-end:56px;
    }

    .sr-keys > div {
        flex-wrap:nowrap;
        overflow-x:auto;
        overscroll-behavior-inline:contain;
        scroll-snap-type:x proximity;
        scrollbar-width:none;
        padding-block:2px 5px;
    }

    .sr-keys > div::-webkit-scrollbar {
        display:none;
    }

    .sr-key {
        min-height:44px;
        flex:0 0 auto;
        scroll-snap-align:start;
        padding:9px 14px;
    }

    .sr-prds > .pr-card,
    .sr-prds > .sr-sk,
    .sr-prds .pr-body {
        min-width:0;
    }

    .sr-more {
        min-height:48px;
    }
}

@media (max-width:390px) {
    .sr-head h2 {
        font-size:19px;
    }

    .sr-prds {
        gap:16px 8px;
    }

    .sr-prds > .pr-card,
    .sr-prds > .sr-sk {
        width:calc((100% - 8px) / 2);
        flex-basis:calc((100% - 8px) / 2);
    }
}
