/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
.ui-datepicker {
    display: none;
    z-index: 999999 !important;
}
.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: .2em 0;
}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 2px;
    width: 1.8em;
    height: 1.8em;
    cursor: pointer;
}
.ui-datepicker .ui-datepicker-next-hover span, .ui-datepicker .ui-datepicker-prev-hover span {
    border-color: transparent #ff8400 transparent transparent;
}
.ui-datepicker .ui-datepicker-prev {
    left: 2px;
}
.ui-datepicker .ui-datepicker-next {
    right: 2px;
}
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -5px;
    font-size: 0px;
    width: 0px;
    height: 0px;
    border: solid;
    border-width: 5px 8px 5px 0;
    border-color: transparent #ff9635 transparent transparent;
}
.ui-datepicker .ui-datepicker-next span {
    margin-left: 0px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #ff9635;
}
.ui-datepicker .ui-datepicker-title {
    margin: 0 2.3em;
    line-height: 1.8em;
    text-align: center;
}
.ui-datepicker .ui-datepicker-title select {
    font-size: 1em;
    margin: 1px 0;
}
.ui-datepicker select.ui-datepicker-month-year {
    width: 100%;
}
.ui-datepicker table {
    width: 100%;
    font-size: .9em;
}
.ui-datepicker td span, .ui-datepicker td a {
    display: block;
    padding: 4px;
    text-align: right;
    text-decoration: none;
    color: #000000;
}
.ui-datepicker .ui-datepicker-buttonpane button {
    float: right;
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: left;
}
.ui-datepicker-rtl {
    direction: rtl;
}
.ui-datepicker-rtl .ui-datepicker-prev {
    right: 2px;
    left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next {
    left: 2px;
    right: auto;
}
.ui-datepicker-rtl .ui-datepicker-prev:hover {
    right: 1px;
    left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next:hover {
    left: 1px;
    right: auto;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane {
    clear: right;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
    float: left;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: right;
}
.ui-datepicker-rtl .ui-datepicker-group {
    float: right;
}
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header {
    border-right-width: 0;
    border-left-width: 1px;
}
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
    border-right-width: 0;
    border-left-width: 1px;
}
.ui-timepicker-div .ui-widget-header {
    margin-bottom: 8px;
}
.ui-timepicker-div dl {
    text-align: left;
}
.ui-timepicker-div dl dt {
    height: 25px;
    margin-bottom: -22px;
}
.ui-timepicker-div dl .ui_tpicker_time_label {
    margin-bottom: -25px;
}
.ui-timepicker-div dl dd {
    margin: 0 10px 10px 65px;
}
.ui-timepicker-div td {
    font-size: 90%;
}
.ui-tpicker-grid-label {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}
.ui-datepicker {
    padding: 15px;
    border: #ffffff 4px solid;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #efefef;
    -webkit-box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.35);
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.35);
}
.ui-datepicker .ui-datepicker-header {
    background: transparent;
    border: none;
    padding-bottom: 10px;
}
.ui-datepicker .ui-datepicker-title .ui-datepicker-month {
    width: 47%;
    margin-right: 6%;
}
.ui-datepicker .ui-datepicker-title .ui-datepicker-year {
    width: 47%;
}
.ui-datepicker .ui-datepicker-calendar td {
    border: #cfcfcf 1px solid;
}
.ui-datepicker .ui-datepicker-calendar td a {
    padding: 4px;
    display: block;
}
.ui-datepicker .ui-datepicker-calendar td .ui-state-hover {
    background: #f9eae7;
}
.ui-datepicker .ui-datepicker-calendar {
    background: #ffffff;
    border: #cfcfcf 1px solid;
    border-collapse: collapse;
}
.ui-datepicker .ui-datepicker-calendar th {
    background: #efefef;
    border: #cfcfcf 1px solid;
    padding: 4px;
    text-transform: uppercase;
}
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-week-col {
    text-align: center;
    border: #cfcfcf 1px solid;
}
.ui-datepicker {
    width: auto;
}
.ui-datepicker .ui-datepicker-calendar .ui-datepicker-today {
    background: #f3d7d2;
}
.ui-datepicker .ui-datepicker-calendar .ui-state-active {
    background: #ffdf66;
}
.ui-timepicker-div .ui-widget-header {
    margin-bottom: 8px;
}
.ui-timepicker-div dl {
    text-align: left;
}
.ui-timepicker-div dl dd {
    margin: 0 0 10px 65px;
}
.ui-timepicker-div td {
    font-size: 90%;
}
.ui-tpicker-grid-label {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}
.ui-slider {
    position: relative;
    text-align: left;
}
.ui-slider-horizontal .ui-slider-handle {
    margin-left: -5px;
}
.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    cursor: default;
}
.ui-slider-horizontal {
    height: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: none;
    background: #dadada;
}
.ui-slider-handle {
    height: 10px;
    width: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #f98b25;
    display: block;
    position: absolute;
}
.ui-timepicker-div {
    padding: 10px 0 5px 0;
}
.ui-datepicker .ui-datepicker-buttonpane {
    overflow: hidden;
    padding-top: 10px;
    border-top: #cfcfcf 1px solid;
}
.ui-datepicker .ui-datepicker-calendar .ui-state-disabled {
    background: #f9f9f9;
}
.ui-datepicker .ui-datepicker-calendar .ui-state-disabled span {
    color: #959595;
}
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
    position: absolute; /*must have*/
    z-index: -1; /*must have*/
    filter: mask(); /*must have*/
    top: -4px; /*must have*/
    left: -4px; /*must have*/
    width: 200px; /*must have*/
    height: 200px; /*must have*/
}

.ui-timepicker-div .ui_tpicker_unit_hide {
    display:none;
}
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_Blog
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

.mp-blog-icon:before {
    background-repeat: no-repeat;
    color: #999999;
    content: '';
    display: inline-flex;
    width: 12px;
    height: 12px;
    opacity: 50%;
    position: relative;
    top: 2px;
}
.mp-blog-calendar-times:before {
    background-image: url("../../frontend/glpbio/global/en_US/Mageplaza_Blog/media/images/calendar-times.svg");
}
.mp-blog-user:before {
    background-image: url("../../frontend/glpbio/global/en_US/Mageplaza_Blog/media/images/user.svg");
}
.mp-blog-comments:before {
    background-image: url("../../frontend/glpbio/global/en_US/Mageplaza_Blog/media/images/comments.svg");
}
.mp-blog-traffic:before {
    background-image: url("../../frontend/glpbio/global/en_US/Mageplaza_Blog/media/images/eye.svg");
}
.mp-blog-thumbs-up:before {
    background-image: url("../../frontend/glpbio/global/en_US/Mageplaza_Blog/media/images/thumbs-up.svg");
}
.block-search {
  margin-bottom: 0;
}
.block-search .block-title {
  display: none;
}
.block-search .block-content {
  margin-bottom: 0;
}
.block-search .label {
  text-decoration: none;
  display: inline-block;
  float: right;
}
.block-search .label > span {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.block-search .label:before {
  -webkit-font-smoothing: antialiased;
  font-size: 35px;
  line-height: 33px;
  color: #8f8f8f;
  content: '\e615';
  font-family: 'icons-blank-theme';
  vertical-align: middle;
  display: inline-block;
  font-weight: normal;
  overflow: hidden;
  speak: none;
  text-align: center;
}
.block-search .label:hover:before {
  color: #333333;
}
.block-search .label:active:before {
  color: #333333;
}
.block-search .label.active + .control input {
  position: static;
}
.block-search .action.search {
  display: none;
}
.block-search .control {
  border-top: 1px solid #d1d1d1;
  clear: both;
  margin: 0 -15px -1px;
  padding: 0 15px;
}
.block-search input {
  left: -300%;
  margin: 15px 0;
  position: absolute;
}
.block-search .nested {
  display: none;
}
.search-autocomplete {
  display: none;
  margin-top: -15px;
  overflow: hidden;
  position: absolute;
  z-index: 3;
}
.search-autocomplete ul {
  margin: 0;
  padding: 0;
  list-style: none none;
}
.search-autocomplete ul li {
  border-top: 1px solid #e5e5e5;
  cursor: pointer;
  margin: 0;
  padding: 5px 40px 5px 10px;
  position: relative;
  text-align: left;
  white-space: normal;
}
.search-autocomplete ul li:not(:empty) {
  border-top: 0;
  border: 1px solid #c2c2c2;
  background: #ffffff;
}
.search-autocomplete ul li:first-child {
  border-top: none;
}
.search-autocomplete ul li:hover,
.search-autocomplete ul li.selected {
  background: #e8e8e8;
}
.search-autocomplete ul li .amount {
  color: #999999;
  position: absolute;
  right: 7px;
  top: 5px;
}
.form.search.advanced .fields.range .field:first-child {
  position: relatsearchive;
}
.form.search.advanced .fields.range .field:first-child .control {
  padding-right: 25px;
}
.form.search.advanced .fields.range .field:first-child .control:after {
  content: ' \2013 ';
  display: inline-block;
  position: absolute;
  right: 0;
  text-align: center;
  top: 6px;
  width: 25px;
}
.form.search.advanced .fields.range .field:last-child {
  position: relative;
}
.form.search.advanced .fields.range .field:last-child div.mage-error[generated] {
  left: 0;
  position: absolute;
  top: 32px;
}
.form.search.advanced .fields.range .field.with-addon .control {
  padding-right: 45px;
}
.form.search.advanced .group.price .addon .addafter {
  background: none;
  border: 0;
  padding-top: 6px;
  position: absolute;
  right: 0;
  top: 0;
}
.search.summary {
  margin-bottom: 10px;
}


.account.page-layout-2columns-left .columns {
    display: block;
    flex-wrap: wrap;
    box-sizing: border-box;	
	margin: 10px 0 10px 0;
	min-height:400px; height:auto!important; height:400px;
}
.account.page-layout-2columns-left .sidebar-main{
    width: 240px;
    float: left;	    
    -webkit-flex-basis: 100%;
    flex-basis: 100%;
	-webkit-flex-grow: 1;
    flex-grow: 1;	
    -ms-flex-order: 1;
    -webkit-order: 1;
    order: 1;
}
.account.page-layout-2columns-left .column.main {
    width: 720px;
	float: right;
    -webkit-flex-basis: 100%;
    flex-basis: 100%;
    -webkit-flex-grow: 1;
    flex-grow: 1;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;	
}

.block-content:before,.block-content:after{
	content: '';
    display: table;
}
.box-information,
.box-billing-address {
  width: 48.8%;
  margin-bottom: 20px;
  clear: left;
  float: left;
}
.box-newsletter, .box-shipping-address{
    width: 48.8%;
	margin-bottom: 20px;
	float: right;
}

.actions-toolbar .primary, .actions-toolbar .secondary {
    display: inline-block;
}
.actions-toolbar {
    margin-left: 25.8%;
}
.actions-toolbar .primary {
    float: left;
}
.actions-toolbar .primary .action {
    margin: 0 5px 0 0;
}
.action.primary {
    background-image: none;
    background: #0a4369;
    border: 1px solid #10354e;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
	line-height: 28px;
    box-sizing: border-box;
    vertical-align: middle;
}
.actions-toolbar .secondary {
    float: right;
}

.account-nav .item {
    margin: 3px 0 0;
}
.items {
    margin: 0;
    padding: 0;
    list-style: none none;
}

.account-nav .item {
    margin: 3px 0 0;
}
.items {
    margin: 0;
    padding: 0;
    list-style: none none;
}

/* Tools */
.no-display   { display:none; }

/*peifang CSS 20220323*/
#ingredient {
  background: #fff;
  border:1px #ddd solid;
  padding: 10px;
}
#ingredient  table td {
  padding: 5px;
}
#ingredient input {
  width: 20px;
  height: 20px;
  border: 2px #77C9FF solid;
}
#ingredient select {
  width: 60px;
  height: 25px;
  border: 2px #77C9FF solid;
}
#ingredient #calcDiv1Foot {
  padding-top: 20px;
  padding-bottom: 10px;
}
#ingredient .button_commom {
  padding: 8px 20px;
  background: #0076df;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  margin-right: 20px;
  font-size: 14px;
}
#ingredient .button_commom:hover {
  text-decoration: none;
  background: #1E5F89;
}

#inResult {
  background: #fff;
  border:1px #ddd solid;
  padding: 10px;
  margin: 10px 0;
}
#inResult .dashed{
  display: none;
}
#inResult  table td {
  padding: 5px;
}
#inResult input {
  width: 60px;
  height: 20px;
  border-top:none;
  border-right: none;
  border-bottom:1px  #333 solid;
  border-left: none;
  background: none;
  text-align: center;
  color: red;
  font-weight: bold;
}
#inResult .red {
  color: red;
  font-weight: bold;
}

#calcDiv ul {overflow: hidden;}
#calcDiv ul li {float: left; margin-right: 30px;}

/* img ratio */
.header .logo img {aspect-ratio: 46/13;}
.col-img span img {aspect-ratio: 27/8; width:324px;}
/* from catalog/catalog.css */
.clear {clear:both;}
/* from ajaxsearch.css */
.header .form-search label { text-indent: -9999px; text-align: left; display:none;}
/* product list */
#products-list span.product-structure { display:none;  }
#products-list span.hover { display:block; }
#products-list span.product-structure img { width:130px; }
/* home bxslider */
.bx-wrapper .bx-viewport {border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;transform: translatez(0);}
.bx-wrapper {position: relative;}
.bx-wrapper img {max-width: 100%;}
#slider-banner .bx-wrapper img {aspect-ratio: 385/148;}
#slider-product .bx-wrapper img {aspect-ratio: 99/122;}
/*home table*/
#tabbed-nav {position: relative; overflow: hidden;}
.z-state-closed li {display: none;}
.z-tabs-nav {overflow: hidden; position: relative; z-index: 30;}
.cms-home .z-tabs-nav li {float: left; width: 33.3%; background: #03689B;}
.z-tabs-nav li.z-active {background: #ea5504}
.z-tabs-nav li a {display: block; padding: 10px 15px; text-align: center; color: #fff; font-size: 14px; border-left:1px #fff solid;}
.z-tabs-nav li:first-child a {border: none}
.z-container {position: relative; zoom:1; }
.home-tab-viewpoint {background: #fff;}
.z-tabs > .z-container > .z-content.z-active {z-index: 8;}
.z-tabs > .z-container > .z-content {position: absolute; width: 100%; height: 100%; overflow: hidden; padding: 0; z-index: 7; display: none;}
.z-tabs > .z-container > .z-content, .z-tabs > .z-container > .z-content > .z-content-inner {zoom: 1;}
/* sitemap */
#sitemap table, #sitemap tr {border: 1px solid;}
#sitemap li:nth-child(-n+2) {border-top: 0;}
#sitemap td:nth-child(odd) {vertical-align: middle; text-align: left; padding-left: 20px; width: 300px;}
#sitemap li {width: 407px; list-style: inside; float: left; padding-left: 20px; border-top: 1px solid; border-left: 1px solid; line-height: 30px;}

/* 导航样式保持不变 */
.nav ul {
    margin-bottom: 0;
}

.nav ul li {
    margin-bottom: 0;
}.slick-dots li button:focus,.slick-dots li button:hover,.slick-list:focus{outline:0}.slick-list,.slick-slider,.slick-track{display:block;position:relative}.slick-loading .slick-slide,.slick-loading .slick-track{visibility:hidden}.slick-list{overflow:hidden;margin:0;padding:0}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-list,.slick-slider .slick-track{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.slick-track{top:0;left:0;margin:0 auto}.slick-track:after,.slick-track:before{display:table;content:''}.slick-slide,.slick-slide.slick-loading img{display:none}.slick-track:after{clear:both}.slick-slide{float:left;height:100%;min-height:1px;vertical-align:middle}[dir=rtl] .slick-slide{float:right}.slick-slide.dragging img{pointer-events:none}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}.slick-loading .slick-list{position:relative;background:0 0}.slick-loading .slick-list:before{position:absolute;top:50%;left:50%;display:block;content:'';border-radius:100%;border-style:solid;border-width:3px;height:25px;width:25px;border-color:rgba(0,0,0,.2);border-top-color:#5c5c5c;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);animation:loading 1s infinite linear}@keyframes loading{0%{-webkit-transform:translate(-50%,-50%) rotate(0);transform:translate(-50%,-50%) rotate(0)}100%{-webkit-transform:translate(-50%,-50%) rotate(359.9deg);transform:translate(-50%,-50%) rotate(359.9deg)}}.slick-next.slick-disabled,.slick-prev.slick-disabled{opacity:.25}.slick-dotted.slick-slider{margin-bottom:30px}.slick-dots{position:absolute;left:0;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center}.slick-dots li{position:relative;display:inline-block;width:20px;height:20px;margin:0 5px;padding:0;cursor:pointer}.slick-dots li button,.slick-slider .slick-arrow{display:block;cursor:pointer;outline:0;box-shadow:none}.slick-dots li button{font-size:0;line-height:0;width:20px;height:20px;padding:5px;color:transparent;border:0;background:0 0}.slick-dots li button:focus:before,.slick-dots li button:hover:before{opacity:1}.slick-dots li button:before{font-size:16px;line-height:20px;position:absolute;top:0;left:0;width:20px;height:20px;content:'•';text-align:center;opacity:.25;color:#000;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.slick-dots li.slick-active button:before{opacity:.75;color:#000}.slick-slider{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;padding:0 20px}.slick-slider .slick-arrow{position:absolute;top:50%;padding:0;width:15px;height:22px;font-size:0;line-height:0;-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);color:transparent;border:none;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uMi40QTEgMSAwIDAgMSAxLjYuMmwxMiAxMGExIDEgMCAwIDEgMCAxLjZsLTEyIDEwYTEgMSAwIDAgMS0xLjItMS42TDExLjMzMyAxMSAuNCAxLjhBMSAxIDAgMCAxIC4yLjR6IiBmaWxsPSIjQzRDNEM0Ii8+PC9zdmc+) center no-repeat !important;-webkit-transition:background .3s ease;-moz-transition:background .3s ease;-ms-transition:background .3s ease;transition:background .3s ease}.slick-slider .slick-arrow:after,.slick-slider .slick-arrow:before{content:''}.slick-slider .slick-arrow:hover{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uMi40QTEgMSAwIDAgMSAxLjYuMmwxMiAxMGExIDEgMCAwIDEgMCAxLjZsLTEyIDEwYTEgMSAwIDAgMS0xLjItMS42TDExLjMzMyAxMSAuNCAxLjhBMSAxIDAgMCAxIC4yLjR6IiBmaWxsPSIjMTYxNjE2Ii8+PC9zdmc+) center no-repeat}.slick-slider .slick-arrow.slick-next{right:0}.slick-slider .slick-arrow.slick-prev{left:0;-webkit-transform:rotate(180deg) translate(0,50%);-moz-transform:rotate(180deg) translate(0,50%);-ms-transform:rotate(180deg) translate(0,50%);transform:rotate(180deg) translate(0,50%)}.slick-initialized .slick-slide{float:none!important;display:inline-block!important;height:auto;}.product-items.slick-slider>.slick-list{padding:15px 0}.product-items.slick-slider .slick-slide .product-item{display:block!important;margin:auto!important;max-width:205px}.sidebar.sidebar-additional{width:100%}/*
 * Amasty Xsearch Enhanced Styles - High Specificity Version
 * Using high-specificity selectors instead of !important for better maintainability
 * Integrates Amasty search with glpbio theme
 */

/* =================================
   CSS VARIABLES
   ================================= */
:root {
    --amsearch-color-primary: #007bff;
    --amsearch-color-primary-hover: #0056b3;
    --amsearch-color-border: #ddd;
    --amsearch-color-background: #fff;
    --amsearch-color-text: #333;
    --amsearch-color-placeholder: #666;
}

/* =================================
   SEARCH WRAPPER & FORM STYLES
   ================================= */
body .glpbio-search-enhanced.amsearch-wrapper-block.header-search-wrapper {
    position: relative;
    width: 100%;
}

body .glpbio-search-enhanced .amsearch-form-block.mini-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--amsearch-color-background);
    border: 1px solid var(--amsearch-color-border);
    border-radius: 4px;
    padding: 0;
    margin: 0;
    height: 38px;
    min-height: 38px;
}

/* =================================
   INPUT & BUTTON STYLES
   ================================= */
body .glpbio-search-enhanced .amsearch-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

body .glpbio-search-enhanced .amsearch-input-wrapper .tslabel {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

body .glpbio-search-enhanced .amsearch-input {
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.3;
    background: transparent;
    flex-grow: 1;
    width: auto;
    min-width: 380px;
    color: var(--amsearch-color-text);
    height: 36px;
}

body .glpbio-search-enhanced .amsearch-input:focus {
    box-shadow: none;
    border: none;
}

body .glpbio-search-enhanced .amsearch-input::placeholder {
    color: var(--amsearch-color-placeholder);
}

/* Clear button */
body .glpbio-search-enhanced .amsearch-button.-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .glpbio-search-enhanced .amsearch-button.-close:before {
    content: "×";
    font-size: 18px;
    color: #666;
}

/* Search button */
body .glpbio-search-enhanced .amsearch-button.-loupe {
    background: var(--amsearch-color-primary);
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
    height: 38px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body .glpbio-search-enhanced .amsearch-button.-loupe:hover {
    background: var(--amsearch-color-primary-hover);
    transform: none;
}

body .glpbio-search-enhanced .amsearch-button.-loupe.-disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

body .glpbio-search-enhanced .amsearch-button.-loupe span span {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

/* Loading spinner for search button */
body .glpbio-search-enhanced .amsearch-button.-loupe.loading {
    background: var(--amsearch-color-primary);
    cursor: wait;
}

body .glpbio-search-enhanced .amsearch-button.-loupe.loading span span {
    opacity: 0;
}

body .glpbio-search-enhanced .amsearch-button.-loupe.loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================================
   覆盖全局按钮样式
   ================================= */
body .glpbio-search-enhanced .amsearch-button span {
    background: none;
}

/* =================================
   SEARCH RESULTS CONTAINER
   ================================= */
body .glpbio-search-enhanced .amsearch-result-section,
body .header-search-wrapper.glpbio-search-enhanced .amsearch-result-section,
body .amsearch-wrapper-block.glpbio-search-enhanced .amsearch-result-section,
body section.amsearch-result-section {
    position: absolute;
    top: 100%;
    left: -10%;
    right: auto;
    width: 120%;
    background: var(--amsearch-color-background);
    border: 1px solid var(--amsearch-color-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 450px;
    min-height: auto;
    height: auto;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    flex: none;
    grid-column: unset;
    grid-row: unset;
    margin-top: -1px;
    contain: none;
}

/* Visibility states */
body .glpbio-search-enhanced .amsearch-result-section[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 当搜索结果容器为空或没有内容时隐藏边框 */
body .glpbio-search-enhanced .amsearch-result-section:empty {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* 当搜索结果容器没有可见子元素时隐藏边框 */
body .glpbio-search-enhanced .amsearch-result-section:not(:has(.amsearch-items-section:not(:empty), .amsearch-products-section:not(:empty))) {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

body .glpbio-search-enhanced .amsearch-result-section[style*="display: block"],
body .glpbio-search-enhanced .amsearch-result-section:not([style*="display: none"]),
body .glpbio-search-enhanced .amsearch-result-section[data-bind*="visible"] {
    display: block;
    visibility: visible;
    height: auto;
    min-height: auto;
    max-height: 450px;
    overflow-y: auto;
    contain: none;
}

/* Override KnockoutJS inline styles */
body .glpbio-search-enhanced .amsearch-result-section[data-bind*="visible"][style] {
    position: absolute;
    top: 100%;
    z-index: 9999;
    height: auto;
    min-height: auto;
    max-height: 450px;
    contain: none;
}

/* =================================
   CONTAINER POSITIONING CONTEXT
   ================================= */
body .header-search-wrapper.glpbio-search-enhanced,
body .amsearch-wrapper-block.glpbio-search-enhanced {
    position: relative;
    overflow: visible;
    height: auto;
    min-height: 0;
    isolation: isolate;
    z-index: 1000;
}

body .glpbio-search-enhanced .amsearch-form-block {
    position: relative;
    isolation: isolate;
    overflow: visible;
    z-index: 1001;
    background: var(--amsearch-color-background);
    height: auto;
    min-height: auto;
}

/* =================================
   RESULT CONTENT STYLING
   ================================= */
body .glpbio-search-enhanced .amsearch-result-section .amsearch-items-section,
body .glpbio-search-enhanced .amsearch-result-section .amsearch-products-section {
    max-height: 420px;
    min-height: 50px;
    height: auto;
    overflow-y: auto;
    padding: 0;
    background: var(--amsearch-color-background);
}

/* Force minimum height when results are visible and have content */
body .glpbio-search-enhanced .amsearch-result-section:not([style*="display: none"]):has(.amsearch-items-section:not(:empty), .amsearch-products-section:not(:empty)) {
    min-height: 50px;
    height: auto;
}

/* 确保没有内容时完全隐藏 */
body .glpbio-search-enhanced .amsearch-result-section:not([style*="display: none"]):not(:has(.amsearch-items-section:not(:empty), .amsearch-products-section:not(:empty))) {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* Ensure content areas have proper height */
body .glpbio-search-enhanced .amsearch-result-section[data-bind*="visible"] .amsearch-items-section,
body .glpbio-search-enhanced .amsearch-result-section[data-bind*="visible"] .amsearch-products-section {
    min-height: 30px;
    height: auto;
}

/* =================================
   CATEGORY SECTION STYLING
   ================================= */
body .glpbio-search-enhanced .amsearch-items-section {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    background: #fafafa;
}

body .glpbio-search-enhanced .amsearch-item-container {
    border-bottom: 1px solid #e5e5e5;
}

body .glpbio-search-enhanced .amsearch-item-container:last-child {
    border-bottom: none;
}

body .glpbio-search-enhanced .amsearch-block-header {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

body .glpbio-search-enhanced .amsearch-block-header .amsearch-title {
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .glpbio-search-enhanced .amsearch-tab-items {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-item:hover {
    background: #f8f9fa;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-item:last-child {
    border-bottom: none;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-link {
    color: var(--amsearch-color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-link:hover {
    color: var(--amsearch-color-primary-hover);
    text-decoration: underline;
}

body .glpbio-search-enhanced .amsearch-tab-items .amsearch-description {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =================================
   PRODUCTS SECTION STYLING
   ================================= */
body .glpbio-search-enhanced .amsearch-products-section {
    padding: 0;
    background: #fff;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-block-header {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-title {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-count {
    background: var(--amsearch-color-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-link.-view-all {
    color: var(--amsearch-color-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-link.-view-all:hover {
    color: var(--amsearch-color-primary-hover);
    text-decoration: underline;
}

body .glpbio-search-enhanced .amsearch-products-section .amsearch-link.-view-all .amsearch-count {
    background: #6c757d;
    margin-left: 4px;
}

body .glpbio-search-enhanced .amsearch-product-list {
    list-style: none;
    padding: 16px;
    margin: 0;
    display: grid;
    gap: 16px;
}

/* Grid layout for products */
body .glpbio-search-enhanced .amsearch-products-section.-grid .amsearch-product-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* List layout for products */
body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-product-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Product item styling */
body .glpbio-search-enhanced .amsearch-product-list .amsearch-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

body .glpbio-search-enhanced .amsearch-product-list .amsearch-item:hover {
    border-color: var(--amsearch-color-primary);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

/* Product image */
body .glpbio-search-enhanced .amsearch-item .amsearch-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

body .glpbio-search-enhanced .amsearch-product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

body .glpbio-search-enhanced .amsearch-product-image-container .product-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

body .glpbio-search-enhanced .amsearch-product-image-container .product-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body .glpbio-search-enhanced .amsearch-item:hover .product-image-photo {
    transform: scale(1.05);
}

/* Product details */
body .glpbio-search-enhanced .amsearch-description {
    padding: 12px;
}

body .glpbio-search-enhanced .amsearch-description .product-item-link {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body .glpbio-search-enhanced .amsearch-description .product-item-link:hover {
    color: var(--amsearch-color-primary);
}

body .glpbio-search-enhanced .amsearch-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

body .glpbio-search-enhanced .product-item-description {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price styling */
body .glpbio-search-enhanced .amsearch-wrapper-inner {
    margin-top: auto;
}

body .glpbio-search-enhanced .price-box {
    margin: 0;
}

body .glpbio-search-enhanced .minimal-price {
    margin: 0;
    font-size: 14px;
}

body .glpbio-search-enhanced .price-label {
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

body .glpbio-search-enhanced .price-wrapper .price {
    color: var(--amsearch-color-primary);
    font-weight: 700;
    font-size: 16px;
}

/* List view specific styling */
body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-item {
    display: flex;
    align-items: center;
    padding: 12px;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-product-image-container {
    width: 80px;
    height: 80px;
    padding-bottom: 0;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-description {
    flex-grow: 1;
    padding: 0;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .product-item-link {
    font-size: 14px;
    margin-bottom: 4px;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .product-item-description {
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
}

body .glpbio-search-enhanced .amsearch-products-section.-list .price-wrapper .price {
    font-size: 14px;
}

/* =================================
   INTERACTION STATES
   ================================= */
body .glpbio-search-enhanced .amsearch-form-block.-opened {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body .glpbio-search-enhanced .amsearch-input-wrapper.-dynamic-width {
    transition: width 0.3s ease;
}

/* =================================
   OVERRIDE DYNAMIC INLINE STYLES
   ================================= */
body .glpbio-search-enhanced .amsearch-product-image-container[class*="amsearch-product-image-container-"] {
    width: 100%;
}

body .glpbio-search-enhanced .amsearch-product-image-container[class*="amsearch-product-image-container-"] .product-image-wrapper {
    padding-bottom: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
    body .glpbio-search-enhanced .amsearch-input {
        min-width: 200px;
        font-size: 16px;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe {
        padding: 6px 12px;
        height: 38px;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe span span {
        font-size: 12px;
    }
    
    body .glpbio-search-enhanced .amsearch-result-section {
        max-height: 350px;
        left: -5%;
        width: 110%;
    }
    
    body .glpbio-search-enhanced .amsearch-products-section.-grid .amsearch-product-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    body .glpbio-search-enhanced .amsearch-product-list {
        padding: 12px;
    }
    
    body .glpbio-search-enhanced .amsearch-block-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    body .glpbio-search-enhanced .amsearch-tab-items .amsearch-item {
        padding: 10px 12px;
    }
    
    body .glpbio-search-enhanced .amsearch-form-block.mini-search {
        height: 36px;
        min-height: 36px;
    }
    
    body .glpbio-search-enhanced .amsearch-input {
        height: 34px;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe {
        height: 36px;
    }
}

@media (max-width: 480px) {
    body .glpbio-search-enhanced .amsearch-input {
        min-width: 150px;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe span span {
        display: none;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe:after {
        content: "🔍";
        font-size: 14px;
    }
    
    body .glpbio-search-enhanced .amsearch-result-section {
        max-height: 300px;
        left: 0;
        width: 100%;
    }
    
    body .glpbio-search-enhanced .amsearch-products-section.-grid .amsearch-product-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-result-section .amsearch-items-section,
    body .glpbio-search-enhanced .amsearch-result-section .amsearch-products-section {
        max-height: 250px;
    }
    
    body .glpbio-search-enhanced .amsearch-product-list {
        padding: 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-description {
        padding: 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-description .product-item-link {
        font-size: 13px;
    }
    
    body .glpbio-search-enhanced .price-wrapper .price {
        font-size: 14px;
    }
    
    body .glpbio-search-enhanced .amsearch-block-header {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    body .glpbio-search-enhanced .amsearch-tab-items .amsearch-item {
        padding: 8px 10px;
    }
    
    body .glpbio-search-enhanced .amsearch-tab-items .amsearch-link {
        font-size: 13px;
    }
    
    body .glpbio-search-enhanced .amsearch-tab-items .amsearch-description {
        font-size: 11px;
    }
    
    /* Simplified list view for mobile */
    body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-image {
        width: 60px;
        height: 60px;
        margin-right: 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-product-image-container {
        width: 60px;
        height: 60px;
    }
    
    body .glpbio-search-enhanced .amsearch-products-section.-list .amsearch-item {
        padding: 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-form-block.mini-search {
        height: 34px;
        min-height: 34px;
    }
    
    body .glpbio-search-enhanced .amsearch-input {
        height: 32px;
        padding: 4px 8px;
    }
    
    body .glpbio-search-enhanced .amsearch-button.-loupe {
        height: 34px;
        min-width: 40px;
        padding: 4px 8px;
    }
}

/* =================================
   ANIMATION & TRANSITIONS
   ================================= */
body .glpbio-search-enhanced .amsearch-result-section {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body .glpbio-search-enhanced .amsearch-item {
    transition: all 0.2s ease;
}

body .glpbio-search-enhanced .amsearch-link {
    transition: color 0.2s ease;
}

/* =================================
   ACCESSIBILITY
   ================================= */
body .glpbio-search-enhanced .amsearch-link:focus {
    outline: 2px solid var(--amsearch-color-primary);
    outline-offset: 2px;
}

body .glpbio-search-enhanced .amsearch-item:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* =================================
   SPECIAL COMPONENTS
   ================================= */
body .glpbio-search-enhanced .amsearch-button.-full-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--amsearch-color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}

body .glpbio-search-enhanced .amsearch-button.-full-close:before {
    content: "×";
    font-size: 24px;
    color: #333;
}

body .glpbio-search-enhanced .focusable-trap {
    position: fixed;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* =================================
   COMPATIBILITY & CLEANUP
   ================================= */
body .glpbio-search-enhanced #search_autocomplete.search-autocomplete {
    display: none;
}

body .glpbio-search-enhanced .amsearch-input-wrapper[data-bind*="loader"] {
    position: relative;
}

/* =================================
   PRINT STYLES
   ================================= */
@media print {
    body .glpbio-search-enhanced .amsearch-result-section {
        display: none;
    }
}/** css related to Uppy **/
.uppy-Dashboard-progressindicators,
.uppy-Dashboard-close,
.uppy-Dashboard-dropFilesHereHint,
.uppy-Dashboard-inner{
    display:none;
}

.image.image-placeholder #fileUploader{
    border:500px solid transparent;
    bottom:0;
    cursor:pointer;
    font-size:10em;
    height:100%;
    left:0;
    opacity:0;
    position:absolute;
    right:0;
    top:0;
    width:100%;
    z-index:3
}
