
/* ISTORZ SEARCH QUICK VIEW V28 */

/* =========================
   Search modal
========================= */

body.ig-preview-page #searchModal {
    padding:clamp(24px,7vh,80px) 18px 18px!important;
}

body.ig-preview-page #searchModal .search-backdrop {
    background:rgba(12,20,30,.52)!important;
    backdrop-filter:blur(5px)!important;
}

body.ig-preview-page #searchModal .search-card {
    width:100%!important;
    max-width:880px!important;
    background:#fff!important;
    color:#25282d!important;
    border:0!important;
    border-radius:16px!important;
    box-shadow:0 20px 70px rgba(0,0,0,.18)!important;
}

body.ig-preview-page #searchModal .search-head {
    padding:20px!important;
    gap:12px!important;
}

body.ig-preview-page #searchModal .search-icon {
    width:48px!important;
    height:48px!important;
    background:#edf5fc!important;
    color:#0068bd!important;
    border-radius:10px!important;
    font-size:20px!important;
}

body.ig-preview-page #searchModal #searchModalInput {
    height:48px!important;
    font-family:'Cairo',sans-serif!important;
    font-size:17px!important;
    font-weight:700!important;
    color:#25282d!important;
}

body.ig-preview-page #searchModal .search-close {
    width:40px!important;
    height:40px!important;
    border-radius:50%!important;
    background:#f1f3f5!important;
    border:0!important;
    color:#25282d!important;
    font-size:20px!important;
    flex-shrink:0!important;
}

body.ig-preview-page #searchModal .search-body {
    max-height:65vh!important;
    padding:16px 20px 24px!important;
    overscroll-behavior:contain!important;
}

body.ig-preview-page #searchModal .search-divider {
    background:#e5e7eb!important;
    margin:0 20px!important;
}

/* Search results */

body.ig-preview-page .grv-search-results-list {
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
}

body.ig-preview-page .grv-search-results-list .grv-search-item {
    display:flex!important;
    align-items:center!important;
    gap:16px!important;
    padding:10px!important;
    background:#fff!important;
    border:1px solid transparent!important;
    border-bottom:1px solid #e9edf0!important;
    border-radius:8px!important;
    color:#25282d!important;
    box-shadow:none!important;
    transform:none!important;
}

body.ig-preview-page .grv-search-results-list .grv-search-item:hover,
body.ig-preview-page .grv-search-results-list .grv-search-item:focus-visible {
    background:#f2f7fc!important;
    border-color:#c9deef!important;
    box-shadow:none!important;
}

body.ig-preview-page .grv-search-results-list .grv-search-img-wrap {
    width:92px!important;
    height:92px!important;
    flex:0 0 92px!important;
    aspect-ratio:1/1!important;
    border-radius:7px!important;
    background:#f1f3f5!important;
    border:0!important;
    overflow:hidden!important;
}

body.ig-preview-page .grv-search-img-wrap img {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
}

body.ig-preview-page .grv-search-info {
    min-width:0!important;
    flex:1!important;
}

body.ig-preview-page .grv-search-title {
    color:#25282d!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.7!important;
}

body.ig-preview-page .grv-search-price .new-price {
    color:#25282d!important;
    font-size:16px!important;
    font-weight:800!important;
}

body.ig-preview-page .grv-search-price .old-price {
    color:#747b84!important;
    font-size:12px!important;
}

body.ig-preview-page .grv-search-arrow {
    color:#0068bd!important;
}

body.ig-preview-page .grv-search-badge.preorder {
    background:#eaf3fc!important;
    border-color:#c9deef!important;
    color:#0068bd!important;
}

body.ig-preview-page #searchModal .spark,
body.ig-preview-page .grv-search-state-icon {
    background:#edf5fc!important;
    color:#0068bd!important;
    border-radius:50%!important;
    box-shadow:none!important;
}

body.ig-preview-page #searchModal .search-empty {
    padding:40px 12px!important;
}

body.ig-preview-page #searchModal .search-empty h3 {
    color:#25282d!important;
    font-size:18px!important;
}

body.ig-preview-page #searchModal .search-empty p,
body.ig-preview-page .grv-search-state {
    color:#68717d!important;
    font-size:14px!important;
}

/* =========================
   Quick view modal
========================= */

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-backdrop {
    background:rgba(12,20,30,.58)!important;
    backdrop-filter:blur(4px)!important;
}

html body.ig-browse-preview #qvcAmbient {
    display:none!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-dialog {
    width:min(1020px,94vw)!important;
    height:min(760px,86vh)!important;
    margin:7vh auto!important;
    border:0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 24px 80px rgba(0,0,0,.22)!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-header,
html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-footer,
html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-bodywrap {
    background:#fff!important;
    background-image:none!important;
    box-shadow:none!important;
}

html body.ig-browse-preview #qvcModal .qvc-header {
    padding:20px 24px!important;
    border-bottom:1px solid #e5e7eb!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-title {
    font-size:clamp(18px,2vw,25px)!important;
    color:#25282d!important;
    font-weight:800!important;
    line-height:1.6!important;
    white-space:normal!important;
}

html body.ig-browse-preview #qvcModal .qvc-close {
    background:#f1f3f5!important;
    color:#25282d!important;
    border:0!important;
    border-radius:50%!important;
    box-shadow:none!important;
}

html body.ig-browse-preview #qvcModal .qvc-bodywrap {
    padding:24px!important;
    min-height:0!important;
    overflow:auto!important;
}

html body.ig-browse-preview #qvcModal .qvc-layout {
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;
    gap:24px!important;
    align-items:start!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-details {
    padding:0!important;
    background:#fff!important;
    border:0!important;
    box-shadow:none!important;
    min-width:0!important;
}

html body.ig-browse-preview #qvcModal .qvc-price {
    background:#edf5fc!important;
    border:1px solid #d5e5f3!important;
    border-radius:8px!important;
    color:#024F6D!important;
    font-size:14px!important;
    line-height:1.8!important;
    padding:12px!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-desc {
    color:#424b56!important;
    font-size:14px!important;
    line-height:2!important;
    overflow-wrap:anywhere!important;
}

html body.ig-browse-preview #qvcModal .qvc-desc img {
    max-width:100%!important;
    height:auto!important;
    border-radius:8px!important;
}

html body.ig-browse-preview #qvcModal .qvc-yt-wrap {
    width:100%!important;
    max-width:100%!important;
    aspect-ratio:16/9!important;
    border-radius:9px!important;
}

html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-gallery {
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    min-width:0!important;
    border:0!important;
    background:#f4f6f8!important;
    border-radius:10px!important;
    box-shadow:none!important;
}

html body.ig-browse-preview #qvcModal .qvc-mainimg {
    order:-1!important;
    padding:12px!important;
    aspect-ratio:1/1!important;
    min-height:0!important;
}

html body.ig-browse-preview #qvcModal .qvc-mainimg img {
    width:100%!important;
    height:100%!important;
    max-height:440px!important;
    object-fit:contain!important;
    border-radius:8px!important;
    box-shadow:none!important;
}

html body.ig-browse-preview #qvcModal .qvc-thumbs {
    display:flex!important;
    flex-direction:row!important;
    gap:8px!important;
    padding:10px 12px!important;
    overflow-x:auto!important;
    border:0!important;
}

html body.ig-browse-preview #qvcModal .qvc-thumb {
    width:60px!important;
    height:60px!important;
    flex:0 0 60px!important;
    border-radius:6px!important;
    box-shadow:none!important;
}

html body.ig-browse-preview #qvcModal .qvc-thumb.active {
    border-color:#0068bd!important;
}

html body.ig-browse-preview #qvcModal .qvc-footer {
    padding:16px 24px!important;
    border-top:1px solid #e5e7eb!important;
}

html body.ig-browse-preview #qvcModal #qvcGo {
    min-height:48px!important;
    max-width:400px!important;
    margin-inline:auto!important;
    background:#0068bd!important;
    color:#fff!important;
    border:0!important;
    border-radius:999px!important;
    box-shadow:none!important;
    font-weight:800!important;
    font-size:15px!important;
    text-decoration:none!important;
}

html body.ig-browse-preview #qvcModal #qvcGo:hover {
    background:#00569d!important;
}

/* Mobile */

@media(max-width:767px) {

    body.ig-preview-page #searchModal {
        padding:4vh 10px 10px!important;
    }

    body.ig-preview-page #searchModal .search-head {
        padding:12px!important;
        gap:8px!important;
    }

    body.ig-preview-page #searchModal #searchModalInput {
        font-size:16px!important;
    }

    body.ig-preview-page #searchModal .search-body {
        max-height:72vh!important;
        padding:8px 12px 14px!important;
    }

    body.ig-preview-page .grv-search-results-list .grv-search-item {
        gap:10px!important;
        padding:8px 2px!important;
    }

    body.ig-preview-page .grv-search-results-list .grv-search-img-wrap {
        width:70px!important;
        height:70px!important;
        flex-basis:70px!important;
    }

    body.ig-preview-page .grv-search-title {
        font-size:13px!important;
    }

    body.ig-preview-page .grv-search-price .new-price {
        font-size:14px!important;
    }

    html body.bg-gray-50.ig-browse-preview #qvcModal .qvc-dialog {
        width:calc(100% - 20px)!important;
        height:92vh!important;
        height:92dvh!important;
        margin:4vh auto!important;
        margin:4dvh auto!important;
        border-radius:12px!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-layout {
        grid-template-columns:minmax(0,1fr)!important;
        gap:18px!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-gallery {
        grid-row:1!important;
        width:100%!important;
        max-width:340px!important;
        margin-inline:auto!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-bodywrap {
        padding:14px!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-mainimg {
        max-height:270px!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-mainimg img {
        max-height:246px!important;
    }

    html body.ig-browse-preview #qvcModal .qvc-header,
    html body.ig-browse-preview #qvcModal .qvc-footer {
        padding:12px 14px!important;
    }
}

body.ig-preview-page #searchModal :focus-visible,
body.ig-browse-preview #qvcModal :focus-visible {
    outline:2px solid #0068bd!important;
    outline-offset:2px!important;
}

@media(prefers-reduced-motion:reduce) {

    body.ig-preview-page #searchModal *,
    body.ig-browse-preview #qvcModal * {
        animation-duration:.01ms!important;
        transition-duration:.01ms!important;
    }
}
