/* Full-page search dropdown overlay */

.fps-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(100vh - 100%);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--bsi-color-light-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 998;
    font-family: 'Montserrat';
}

.fps-overlay[hidden] {
    display: none;
}

.header-container { position: relative; }

html.fps-open,
body.fps-open {
    overflow: hidden !important;
    height: 100vh;
}

body.fps-open #search_autocomplete,
body.fps-open .search-autocomplete {
    display: none !important;
}

.fps-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.fps-col {
    flex: 1 1 0;
    min-width: 0;
}

.fps-col-left { flex: 1.4 1 0; }
.fps-col-mid  { flex: 1 1 0; }
.fps-col-right { flex: 1 1 0; }

.fps-col-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bsi-color-dark-blue);
}
.fps-col-header .fps-title {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.fps-title {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 100;
    text-transform: uppercase;
    color: var(--bsi-color-dark-blue);
    margin: 0 0 23px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bsi-color-dark-blue);
    letter-spacing: 0.05em;
}

.fps-view-all {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    color: var(--bsi-color-dark-blue);
    text-decoration: underline;
}
.fps-view-all:hover { color: var(--hover-color); }

.fps-close {
    background: transparent;
    border: 0;
    color: var(--bsi-color-dark-blue);
    font-size: 17px;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fps-close .fps-close-label {
    text-decoration: underline;
}
.fps-close::after {
    content: var(--bsi-fullpagesearch-Close-Icon);
    font-family: var(--bsi-fullpagesearch-icons);
    font-size: 24px;
}

.fps-right-group {
    flex: 2.2 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fps-right-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bsi-color-dark-blue);
}
.fps-right-group-header .fps-title {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}
.fps-right-group-body {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.fps-right-group-body .fps-col {
    flex: 1 1 0;
    min-width: 0;
}
.fps-close:hover { color: var(--hover-color); }

/* Product list */
.fps-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fps-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}
.fps-product:last-child { border-bottom: 0; }

.fps-product-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.fps-product-info {
    flex: 1;
    min-width: 0;
}

.fps-product-name {
    display: block;
    font-size: 13px;
    color: var(--bsi-color-med-blue);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 6px;
}
.fps-product-name:hover { color: var(--hover-color); text-decoration: underline; }

.fps-product-info .regular-price {
    display: block;
    margin-bottom: 8px;
}

.fps-select-btn {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--bsi-color-dark-blue);
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    color: var(--bsi-color-dark-blue);
    text-decoration: none;
    background: #fff;
}
.fps-select-btn:hover {
    background: var(--bsi-color-dark-blue);
    color: #fff;
}

/* Middle suggest list */
.fps-suggest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fps-suggest-list li {
    padding: 4px 0;
    font-size: 13px;
}
.fps-suggest-list li::before {
    content: var(--bsi-icon-search);
    font-family: var(--bsi-icons);
    color: var(--bsi-color-med-blue);
    margin-right: 8px;
}
.fps-overlay[data-logged-in="1"] .fps-suggest-list[data-state="idle"] li::before {
    content: var(--bsi-fullpagesearch-Recent-Icon);
    font-family: var(--bsi-fullpagesearch-icons);
}
.fps-suggest-list a {
    color: var(--bsi-color-med-blue);
    text-decoration: none;
}
.fps-suggest-list a:hover { color: var(--hover-color); text-decoration: underline; }
.fps-match { font-weight: 700; color: var(--bsi-color-dark-blue); }

/* Right panels */
.fps-col-right { display: flex; flex-direction: column; gap: 16px; }

.fps-panel {
    background: var(--bsi-bg-light-blue);
    padding: 16px 30px;
    padding-bottom: 50px;
    border-radius: 2px;
}
.fps-link-list {
    list-style: none;
    padding: 0;
    margin: 0;

}
.fps-link-list li {
    padding: 3px 0;
    font-size: 13px;
}
.fps-link-list li::before {
    content: "\2197";
    color: var(--bsi-color-med-blue);
    margin-right: 6px;
    text-decoration: underline;
    font-weight: 600;
    font-family: auto;
}
.fps-link-list a {
    font-weight: 600;
    color: black;
    text-decoration: none;
}
.fps-link-list a:hover { color: var(--hover-color); text-decoration: underline; }

@media (max-width: 760px) {
    .fps-right-group-body {
        flex-direction: column;
    }
    .fps-right-group-body .fps-col {
        flex: 1 1 auto;
        width: 100%;
    }
    .fps-product {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 610px) {
	.fps-right-group-header, .fps-col-header {
		flex-wrap: wrap;
		justify-content: flex-end;
		text-align: end;
	}

	.fps-col-header .fps-title, .fps-right-group-header .fps-title {
		width: 100%;
	}
}
