/* 主题相关 */
.woocommerce-js div.product form.cart .variations {
	padding-bottom: 10px;
}
.woocommerce-js div.product form.cart .variations th {
	display: table-cell;
	vertical-align: middle;
	padding-top: 0 !important;
	padding-right: 10px;
	
}
.theme-astra.cfvsw-label-stacked tr td.value {
	padding: 8px 0 !important;
}
.woocommerce-js .variations select {
	padding: 0.70em;
	background-position: 96% 50%;
}
.woocommerce-js div.product form.cart .reset_variations {
	display: none !important;
}
.button.single_add_to_cart_button {
	background-image: linear-gradient(315deg, var(--ast-global-color-0) 0, var(--ast-global-color-1) 100%) !important;
	border: 0 !important;
	padding: 14px 20px !important;
}
#buttion_product_buy_now {
	background: #eef6ff;
    border: 1px solid var(--ast-global-color-0) !important;
    color: var(--ast-global-color-0);
	background-image: none !important;
	padding: 13px 20px !important;
}
.woocommerce-js div.product form.cart div.quantity {
	height: 40px;
	margin-bottom: 1.1em !important; 
}
.comment-avatar {
	float: left;
	height: 3.6em;
	width: 3.6em;
	background-image: linear-gradient(315deg, var(--ast-global-color-0) 0, var(--ast-global-color-1) 100%);
	border-radius: 3.6em;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
}
.comment-avatar .avatar-letter {
	font-size: 1.12em;
}

/* 之前的改动 */
.unit-price {
  margin-bottom: 0 !important;
}
button[type="submit"].single_add_to_cart_button {
    margin-right: 6px !important;
}
.single_add_to_cart_button {
    opacity: 1 !important;
}
.woocommerce-variation.single_variation, .sku_wrapper {
    display: none !important;
}
.woocommerce-js div.product form.cart .variations th {
	margin-top: 0;
	margin-bottom: 0;
}
.woocommerce-js div.product form.cart .variations label {
	font-size: 16px;
	font-weight: 500;
}
@media (max-width: 544px) {
    .button.single_add_to_cart_button, #buttion_product_buy_now {
    	min-width: calc(100vw - 182px);
    }
    .woocommerce-js div.product form.cart .variations label {
		font-size: 14px;
	}
	.woocommerce-js div.product .woocommerce-tabs ul.tabs {
        display: flex;
    }
    .woocommerce-js div.product .woocommerce-tabs ul.tabs li {
        margin-right: 1rem !important;
    }
}
.awdr-bulk-customizable-table th, .awdr-bulk-customizable-table td {
    text-align: left;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 50%;
}
.ast-single-product-payments ul li {
    width: 100% !important;
    max-width: 340px;
}
.ast-single-product-payments ul li img {
    height: auto !important;
}
.woocommerce-js div.product form.cart .single_variation_wrap p {
	font-size: 16px;
	display: inline-block;
}
.woocommerce-variation-price .woocommerce-Price-amount {
	font-size: 1.5em !important;
}
.woocommerce-variation-price .total-price {
	margin-left: 15px;
}
.product .woocommerce-tabs ul.tabs {
    font-size: 16px;
}
.woocommerce-Tabs-panel--description {
    display: block !important;
}
/* ----文章详情内容---- */
.single-product .entry-content ul, .single-product .entry-content ol  {
    margin-left: 30px;
}
.single-product .entry-content {
	h2, h3, h4, h5, h6 {
		margin-top: 1em;
	}
}

.product_title.entry-title {
    font-size: 1.56em;
}
.entry-content h1 {
    font-size: 28px !important;
}

.entry-content h2 {
    font-size: 24px !important;
}

.entry-content h3 {
    font-size: 22px !important;
}

.entry-content h4 {
    font-size: 20px !important;
}

.entry-content h5 {
    font-size: 18px !important;
}

.entry-content h6 {
    font-size: 16px !important;
}
.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.woocommerce-Tabs-panel--description, .woocommerce-Tabs-panel--ps_custom_tab1, .woocommerce-Tabs-panel--faqs_tab, .comment-text .description, .specs-list {
	dd, dl, dt, li, ol, ul, p, div {
		font-size: 15px !important;
		a {
			font-size: 15px !important;
		}
	}
}

@media (max-width: 921px) {
    .entry-content h1 {
        font-size: 26px !important;
    }
    
    .entry-content h2 {
        font-size: 22px !important;
    }
    
    .entry-content h3 {
        font-size: 20px !important;
    }
    
    .entry-content h4 {
        font-size: 18px !important;
    }
    
    .entry-content h5 {
        font-size: 16px !important;
    }
    
    .entry-content h6 {
        font-size: 14px !important;
    }
	.woocommerce-Tabs-panel--description, .woocommerce-Tabs-panel--ps_custom_tab1, .woocommerce-Tabs-panel--faqs_tab, .comment-text .description, .specs-list {
		dd, dl, dt, li, ol, ul, p, div {
			font-size: 15px !important;
			a {
				font-size: 15px !important;
			}
		}
	}
}
@media (max-width: 544px) {
    .entry-content h1 {
        font-size: 24px !important;
    }
    
    .entry-content h2 {
        font-size: 20px !important;
    }
    
    .entry-content h3 {
        font-size: 18px !important;
    }
    
    .entry-content h4 {
        font-size: 16px !important;
    }
    
    .entry-content h5 {
        font-size: 15px !important;
    }
    
    .entry-content h6 {
        font-size: 14px !important;
    }
	.woocommerce-Tabs-panel--description, .woocommerce-Tabs-panel--ps_custom_tab1, .woocommerce-Tabs-panel--faqs_tab, .comment-text .description, .specs-list {
		dd, dl, dt, li, ol, ul, p, div {
			font-size: 13px !important;
			a {
				font-size: 13px !important;
			}
		}
	}
}

/* Specifications */
.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid #eceff3;
    border-left: none;
    border-top: none;
    background: #fff;
    margin-bottom: 24px;
}
@media (max-width: 912px) {
    .specs-list {
        grid-template-columns: 1fr;
    }
    .spec-placeholder {
        display: none !important;
    }
}
.spec-item {
    display: flex;
    border-left: 1px solid #eceff3;
    border-top: 1px solid #eceff3;
    min-height: 48px;
}
.spec-name,
.spec-value {
    flex: 1;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    word-break: break-word;
    border-right: 1px solid #eceff3;
}
.spec-name {
	background-color: #f9fafc;
    color: #333;
    max-width: 40%;
}
.spec-value {
    background-color: #fff;
    color: #444;
    border-right: none;
}

/* 评论区图片 */
.commentlist {
    column-count: 2;
    column-gap: 12px;
    margin-bottom: 20px !important;
}
.commentlist li {
    break-inside: avoid;
    border-bottom: 0 !important;
	margin-bottom: 12px !important;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.2) !important;
}
.commentlist .review-images-gallery img {
    width: 100%;
    cursor: pointer;
}
.commentlist .mri-review-body {
    padding: 10px 10px 14px;
}
.commentlist .mri-author {
    font-size: 16px;
    font-weight: bold;
}
.commentlist .mri-verified {
    display: inline-flex;
    font-weight: 400;
    font-size: 12px;
    white-space: nowrap;
    align-items: center;
    margin-left: 4px;
}
.commentlist .mri-verified .verified-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: black;
    border-radius: 50%;
    position: relative;
    margin-right: 2px;
}
.commentlist .mri-verified .verified-icon::after {
    content: '';
    position: absolute;
    left: 4px; 
    top: 1.5px;
    width: 4px; 
    height: 7px; 
    border: solid white;
    border-width: 0 1px 1px 0; 
    transform: rotate(45deg);
}
.commentlist .review-rating {
    height: 20px;
    display: flex;
    margin-top: 4px;
    margin-bottom: 6px;
}
.commentlist .mri-time {
    font-size: 12px;
}
.commentlist .mri-review-content p {
    line-height: 1.6em;
    font-size: 13px;
	margin-bottom: 0 !important;
}
@media (min-width: 767px) {
    .commentlist {
        column-count: 3;
    }
}
@media (min-width: 921px) {
    .commentlist {
        column-count: 4;
        column-gap: 14px;
    }
    .commentlist li {
        margin-bottom: 14px !important;
    }
    .commentlist .mri-review-content p {
        line-height: 1.6em;
        font-size: 14px;
    }
}

/* 评论区上传模块 */
.upload-placeholder {
    display: inline-block;
    cursor: pointer;
    border: 1px dashed #ccc;
    border-radius: 4px;
    width: 80px;
    height: 80px;
    text-align: center;
    vertical-align: top;
    margin-right: 8px;
    background-color: #f9f9f9;
    position: relative;
    margin-bottom: 8px;
}
.upload-placeholder input[type="file"] {
    display: none;
}
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    color: #666;
}
.upload-box span {
    font-size: 20px;
    line-height: 20px;
    font-weight: bold;
}

#review-image-preview {
    display: inline-block;
    margin-bottom: 8px;
}
#review-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.review-thumb-wrapper {
    display: inline-block;
    position: relative;
    margin-right: 10px;
}
.review-thumb-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.review-thumb-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}
.upload-heading {
    font-size: 1.2em;
    font-weight: 500;
    padding-right: .5em;
}

/* 购物区域添加自定义内容（口味说明、运输、聊天按钮） */
.flavor-description {
    background: #eef6ff;
    color: #004080;
    font-size: 13px;
    line-height: 17px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.shipping-info {
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
}
.shipping-info__item {
    display: flex;
    margin-bottom: 8px;
    border-radius: 4px;
}
.shipping-info__item i {
    color: var(--ast-global-color-3);
    width: 16px;
    height: 16px;
    margin-top: 3px;
    margin-right: 8px;
    flex-shrink: 0;
}
.shipping-info__item > span {
    display: inline-block;
    font-size: 14px;
    line-height: 22px;
}
.shipping-info__highlight {
    color: #2cb742;
}
.whatsapp-chat-button {
    width: 100%;
    background-color: rgb(45, 183, 66);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    align-items: center;
    max-width: 360px;
    font-family: sans-serif;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.whatsapp-chat-button:hover, .whatsapp-chat-button:focus {
    color: white;
    text-decoration: none;
}
.whatsapp-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: inline-block;
}
.chat-info {
    display: flex;
    flex-direction: column;
    display: inline-block;
}
.chat-status {
    font-size: 14px;
    display: flex;
    align-items: center;
}
.agent-name {
    margin-right: 4px;
}
.status-online {
    background-color: rgb(98, 201, 113);;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    padding: 2px 6px;
    border-radius: 4px;
}
.chat-text {
    font-weight: bold;
    font-size: 14px;
}
/* product_meta */
.woocommerce-js div.product .product_meta {
    display: flex;
    flex-direction: column;
}
.woocommerce-js div.product .product_meta > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
} 

.ps-standalone-tabs {
    padding-top: 0 !important;
}

.awdr-bulk-customizable-table table {
    margin-bottom: 1em;
}
.trustpilot-horizontal {
    display: inline-flex;
    justify-content: center;
    border: 1px solid #52b47f;
    padding: 8px;
    border-radius: 4px;
    background: #fafffc;
    margin-bottom: 1em;
}
.trustpilot-horizontal img {
    width: 70%;
}

.woocommerce-js.single-product .sale>span.onsale {
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 0 10px 0;
    padding: 0 6px;
    min-height: 2.8em;
    line-height: 2.8em;
}
