﻿/*common*/
:root {
    font-size: 5.208333vw;
}

@font-face {
    font-family: "Roboto";
    src: url("../ttf/Roboto-Regulardoh6.ttf") format("truetype");
}

@font-face {
    font-family: "Anton";
    src: url("../ttf/Anton-Regularh32b.ttf") format("truetype");
}

body {
    margin: 0;
    font-family: 'Roboto';
}

/*去除标签的原始样式*/
ul ,ol{
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

input {
    background: none;
    outline: none;
    border: none;
    font-family: 'Roboto';
}

select {
    /*将默认的select选择框样式清除*/
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: none;
    font-family: 'Roboto';
    padding-right: 15px;
    background: url('https://powder.samaterials.com/assets/image/arrow-down-black.png') 95% center no-repeat;
    background-size: 15px 15px;
}

textarea {
    border: none;
    outline: none;
    /*边线不显示*/
    font-family: 'Roboto';
}

button {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    background-color: #fff;
    cursor: pointer;
    font-family: 'Roboto';
}

p {
    padding: 0;
    margin: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: normal;
}

input[type='checkbox'] {
    position: relative;
    width: 12px;
    height: 12px;
}

input[type=checkbox]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 15px;
    text-align: center;
    color: white;
    font-size: 12px;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #1E73BD;
}

input[type=checkbox]:checked::before {
    color: #fff;
    background-color: #1E73BD;
    content: '√';
}

/*富文本编辑器的样式统一修改   为不影响全局，所有的rich-text中的样式都+.rich-text  start*/
.rich-text {
    font-family: 'Roboto';
    max-width: 1200px;
}

.margin-auto-rich-text {
    margin: auto;
}

.rich-text p {}

.rich-text a {
    color: #1E73BD;
    text-decoration: underline;
}

.rich-text table {
    border-collapse: collapse;
    font-size: 16px;
}

.rich-text img {
    width: 100%;
}

/*.rich-text tr {*/
/*    border: 1px solid #98C4EB!important;*/
/*}*/
.rich-text thead th {
    border: 1px solid #98C4EB !important;
    padding: 14px 20px;
    text-align: left;
    background-color: rgba(152, 196, 235, 0.4);
}

.rich-text tbody td {
    border: 1px solid #98C4EB !important;
    padding: 14px 20px;
}

.rich-text tbody tr:nth-of-type(even) {
    background: rgba(30, 115, 189, 0.04);
}

.rich-text h2 {
    color: #1D1F21;
    font-weight: bold;
    font-size: 28px;
}

.rich-text ul li {
    /*list-style-type: square;*/
}

.rich-text ul li::marker {
    content: '· ';
    color: #44494E;
    font-size: 20px;
}
/* 1行显示省略号 */
.text-ellipsis-1 {
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 控制内容不超出容器边界 */
    text-overflow: ellipsis; /* 显示省略号 */
}

/* 2行显示省略号 */
.text-ellipsis-2 {
    display: -webkit-box; /* 必须指定display属性 */
    overflow: hidden; /* 必须指定overflow属性 */
    text-overflow: ellipsis; /* 显示省略号 */
    -webkit-line-clamp: 2; /* 最多显示的行数 */
    -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}

/* 3行显示省略号 */
.text-ellipsis-3 {
    display: -webkit-box; /* 必须指定display属性 */
    overflow: hidden; /* 必须指定overflow属性 */
    text-overflow: ellipsis; /* 显示省略号 */
    -webkit-line-clamp: 3; /* 最多显示的行数 */
    -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}
/* 4行显示省略号 */
.text-ellipsis-4 {
    display: -webkit-box; /* 必须指定display属性 */
    overflow: hidden; /* 必须指定overflow属性 */
    text-overflow: ellipsis; /* 显示省略号 */
    -webkit-line-clamp: 4; /* 最多显示的行数 */
    -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}


/*pc*/
@media only screen and (min-width: 1026px) {

    .rich-text h2 {
        font-size: 28px;
    }
    .mobile-show{
        display:none !important;
    }
}

/*mobile*/
@media only screen and (max-width: 1199px) {
    
    .rich-text {
        width: 95%;
        margin: auto;
    }

    .rich-text p {
        font-size: 14px;
        line-height: 2;
    }

    .rich-text a {
        color: #1E73BD;
        font-size: 14px;
        line-height: 2;
        text-decoration: underline;
    }

    .rich-text th {}

    .rich-text tbody td {
        padding: 7px 10px;
    }

    .rich-text tr {}

    .rich-text h2 {
        font-size: 20px;
    }

    .rich-text table {
        border-collapse: collapse;
        font-size: 14px;
    }
    
}

@media screen and (max-width: 1025px) {
    :root {
        font-size: 13.3333vw;
    }
    .product-detail-richtext-powder{
        padding: 0.2rem 0.34rem;
    }
    .pc-show{
        display:none !important;
    }
}

/*富文本编辑器的样式统一修改   为不影响全局，所有的rich-text中的样式都+.rich-text  end*/

/* inquery 和 add to cart */
.sam-atc-inq-wrapper {
    display: flex;
    margin: auto;
    margin-bottom: 0.45rem;
    width: 1.5rem;
    height: 0.4rem;
    cursor: pointer;
}

.sam-main-product-wrapper .sam-atc-inq-wrapper {
    margin: 0;
}

.oc-sam-featured-products .sam-atc-inq-wrapper {
    margin-bottom: 0;
}

.sam-main-product-wrapper .sam-atc-inq-wrapper {
    width: 3.76rem;
    height: 0.73rem;
}

.sam-main-product-wrapper .sam-atc-inq-wrapper .sam-atc-wrapper {
    width: 1.28rem;

}

.sam-main-product-wrapper .sam-atc-inq-wrapper .sam-inq-wrapper {
    width: 2.49rem;
}

.sam-atc-inq-wrapper .sam-inq-wrapper img {
    height: 100%;
}

.sam-atc-inq-wrapper .sam-atc-wrapper img {
    height: 100%;
}

.sam-atc-inq-wrapper .sam-atc-hover,
.sam-atc-inq-wrapper .sam-inq-hover {
    display: none;
}

.sam-atc-inq-wrapper .sam-atc-wrapper {
    display: flex;
    width: 0.5rem;
}

.sam-atc-inq-wrapper .sam-inq-wrapper {
    display: flex;
    width: 1rem;
}

.sam-atc-inq-wrapper .sam-atc-wrapper:hover .sam-atc {
    display: none;
}

.sam-atc-inq-wrapper .sam-atc-wrapper:hover .sam-atc-hover {
    display: block;
}

.sam-atc-inq-wrapper .sam-inq-wrapper:hover .sam-inq {
    display: none;
}

.sam-atc-inq-wrapper .sam-inq-wrapper:hover .sam-inq-hover {
    display: block;
}

.sam-rich-text {
    font-family: 'Roboto';
    font-style: normal;
    font-size: max(0.16rem, 16px);
    line-height: 1.5;
    color: #333;
    overflow-x: auto;
}

@media screen and (max-midth: 1200px) {
    .sam-rich-text {
        padding: 0 0.34rem;
    }
}

.sam-rich-text a {
    color: #2C63A0;
}

.sam-rich-text p {
    font-family: 'Roboto';
    font-style: normal;
    font-size: max(0.16rem, 16px);
    line-height: 1.5;
    color: #333;
    margin: 0.2rem 0;
}

.sam-rich-text h1 {
    font-family: 'Anton';
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.48rem;
    color: #333;

}

.sam-rich-text h2 {
    font-family: 'Anton';
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.36rem;
    color: #333;
}

.sam-rich-text h3 {
    font-family: 'Anton';
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.28rem;
    color: #333;

}

.sam-rich-text h4 {
    font-family: 'Anton';
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.18rem;
    color: #333;

}

.sam-rich-text h5 {
    font-family: 'Anton';
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.16rem;
    color: #333;

}

.sam-rich-text blockquote {
    font-family: 'Roboto';
    line-height: 1.5;
    font-size: 0.24rem;
}
.sam-rich-text ul,.sam-rich-text ol{
    margin: revert;
    padding: revert;
    padding-left: 0.3rem;
    list-style:revert;
}
.sam-rich-text li{
    list-style-type: inherit;
    color: #333;
    font-size: max(12px,0.24rem);
    line-height: 0.4rem;
}
.sam-rich-text {
    /*width: 100%;*/
    object-fit: cover;
}
.sam-rich-text img{
    max-width: 100%;
}
.sam-table-wrappers{
    overflow-x: auto;
}
