/* Compatible Models */
.compatible-products {
    margin-top: 20px;
    background: #fff;

}

.compatible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background-color: #DCE4E8;
    padding: 5px 10px;
    border-radius: 5px;
}

.compatible-header span {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.compatible-header .js-toggle {
    color: #007bff;
    font-size: 14px;
    text-decoration: none;
}

.compatible-header .js-toggle:hover {
    text-decoration: underline;
}

/* 商品列表 */
.compatible-list {
    display: grid;
   gap:10px;
        grid-template-columns: repeat(3, 1fr);
    
}

/* 收起状态 */
.compatible-products.collapsed .compatible-list {
    max-height: 280px;
}

/* 展开状态 */
.compatible-products.expanded .compatible-list {
    max-height: 5000px;
}

/* 单个商品 */
.compatible-item {
    padding: 10px;
    min-height: 96px;
    border-radius: 6px;
    border: 1px solid #D9D9D9;
    box-sizing: border-box;
    background: #fff;
    transition: all .2s;
    display: flex;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.compatible-item.selected {
    border-color: #F58220;
    outline: 1px solid #F58220;
}

.compatible-item .compatible-check-icon {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #F58220;
    color: #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 6px;
    border-bottom-right-radius: 5px;
    font-size: 12px;
    display: none;
}

.compatible-item.selected .compatible-check-icon {
    display: flex;
}

.compatible-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.compatible-item img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.compatible-item .title {
    font-size: 14px;
    color: #333;
    line-height: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    min-height: 40px;
}

.compatible-item .brand {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}
.compatible-item .icon-ziyuan {
    color: #515151;
}
.compatible-item .price {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #FF001E;
}

.compatible-item button {
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.compatible-item button:hover {
    opacity: .9;
}
#compatibleBox .rfq_add_btn_qj_msg {
    color: #0D79DE!important;
    font-size: 14px!important;
    padding: 0px!important;
    line-height: 30px;
}
#compatibleBox .cart_add_btn_qj {
    border-radius: 6px!important;
    border: 1px solid  #D9D9D9!important;
    padding: 3px 10px!important;
}
.oc-accessories-wrapper .rfq_add_btn_qj_msg {
    color: #0D79DE !important;
    font-size: 12px !important;
    padding: 0px !important;
    line-height: 22px;
}
/* Original and Compatible Models (New UI) */
/* Grid View 样式 */
.oc-list.oc-grid-view {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 10px;
}
.oc-list.oc-grid-view .oc-item {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
    text-align: left;
    transition: all 0.2s;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 124px;
}
.oc-list.oc-grid-view .oc-item:hover {
    border-color: #F58220;
}
.oc-list.oc-grid-view .oc-item.selected {
    border-color: #F58220;
    outline: none;
}
.oc-list.oc-grid-view .oc-item .oc-img {
    width: 100%;
    height: 46px;
    object-fit: cover;
    margin-bottom: 10px;
}
.oc-list.oc-grid-view .oc-item .oc-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oc-list.oc-grid-view .oc-item .oc-title:hover {
    text-decoration: underline;
}
.oc-list.oc-grid-view .oc-item .oc-price {
    color: #ff0013;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}
.oc-list.oc-grid-view .oc-item .oc-inquiry {
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    margin-top: auto;
}
.oc-list.oc-grid-view .oc-check-icon {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0 17px 18px;
    border-color: transparent transparent #F58220 transparent;
    display: none;
    border-bottom-right-radius:6px;
}
.oc-list.oc-grid-view .oc-item.selected .oc-check-icon i{
    position: absolute;
    right: 1px;
    bottom: -20px;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    line-height: 2;
    z-index: 1;
}
.oc-list.oc-grid-view .oc-item.selected .oc-check-icon{
    display: flex;
}

/* List View 样式 */
.oc-list.oc-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.oc-list.oc-list-view .oc-item {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}
.oc-list.oc-list-view .oc-item:hover {
    border-color: #F58220;
}
.oc-list.oc-list-view .oc-item.selected {
    border-color: #F58220;
    outline: none;
}
.oc-list.oc-list-view .oc-item .oc-img {
    width: 44px;
    height: 26px;
    object-fit: cover;
}
.oc-list.oc-list-view .oc-item .oc-info {
    flex: 1;
    overflow: hidden;
}
.oc-list.oc-list-view .oc-item .oc-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oc-list.oc-list-view .oc-item .oc-title:hover {
    text-decoration: underline;
}
.oc-list.oc-list-view .oc-item .oc-price {
    color: #E50012;
    font-weight: bold;
    font-size: 16px;
    min-width: 80px;
    text-align: right;
}
.oc-list.oc-list-view .oc-item .oc-inquiry {
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}
.oc-list.oc-list-view .oc-check-icon {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0 17px 18px;
    border-color: transparent transparent #F58220 transparent;
    display: none;
    border-radius: 6px;
}
.oc-list.oc-list-view .oc-item.selected .oc-check-icon i{
    position: absolute;
    right: 1px;
    bottom: -20px;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    line-height: 2;
    z-index: 1;
}
.oc-list.oc-list-view .oc-item.selected .oc-check-icon {
    display: flex;
}


.variations {
    padding-top: 10px;
}

.variations-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-item {
    position: relative;
    min-width: 90px;
    /* height: 37px; */
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: all .2s;
    
}

.option-item:hover {
    border-color: #ff8a00;
}

.option-item.active {
    border-color: #ff8a00;
    background: #fffdf8;
    font-weight: 700;
    color: #ff7e00;
}

.option-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #ff8a00 transparent;
    border-bottom-right-radius: 3px;
}

.option-item.active i.icon-duigou {
    position: absolute;
    right: 1px;
    bottom: 0;
    color: #fff;
    font-size: 8px;
    line-height: 1;
    z-index: 1;
    display: block;
}

.option-item i.icon-duigou {
    display: none;
}
.price_box {
    font-size: 24px;
    font-weight: bold;
    color: rgb(209, 18, 52);
    margin-top: 5px;
}
.rfq-disabled {
    cursor: default !important;
    border-color: #E5E5E5 !important;
}

.rfq-disabled:hover {
    border-color: #E5E5E5 !important;
    box-shadow: none !important;
}
.is-more-price {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 150px;
}
.supplier_information {
    position: relative;
    padding: 10px 20px;
    background: #F1FAF8;
    border-radius: 8px;
    margin-bottom: 5px;
}
.supplier-arrow {
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #F1FAF8;
}

.supplier-tips {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.supplier-verified {
    display: flex;
    align-items: center;
    color: #009951;
    font-weight: 700;
}

.supplier-country img {
    width: 16px;
    height: 15px;
    object-fit: contain;
}

.supplier-name a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: underline;
}

.supplier-years {
    color: #666;
    font-size: 14px;
}

.supplier-badges {
    display: flex;

}
.supplier-info-detail {
    position: absolute;
    top: calc(100% + 10px);
    left: -27px;
    width: calc(100% + 54px);
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(0, 0, 8, 0.38);
    z-index: 999;
}
.supplier-info-detail::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 140px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
.supplier-info-detail .website_title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}
.supplier-info-detail .icon-shanchu {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.supplier-info-detail .supplier-tips {
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #E5E5E5;
}
.supplier-info-detail .supplier-statistics {
    padding: 10px;
    background: #FFFACD;
    border-radius: 8px;
    border: 1px dashed #E5E5E5;
}
.supplier-info-detail .supplier-statistics  .count-box {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}
.supplier-info-detail .supplier-statistics .statistics-title {
    font-size:18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}
.supplier-info-detail .supplier-statistics .count-box i {
    color: #FF8000;
    margin-right: 4px;
    font-size: 12px;
}

.supplier-info-detail .key-brands .brands-title {
    font-size:16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    margin-top: 20px;
}
.supplier-info-detail .key-brands .brands-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    padding-left: 0px;
    padding-bottom: 8px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #E5E5E5;
}
.supplier-info-detail .key-brands .brands-list .brand-item {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 5px 15px;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 2, 2, 0.15);
}
.supplier-info-detail .key-brands .brands-list .brand-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 17px solid transparent;
    border-right: 11px solid #fff;
}

.supplier-info-detail .key-brands .brands-list .see-more-btn {
    cursor: pointer;
    margin-top: 8px; 
    font-size: 13px;
    color: #FF7E00;
}

