.woo-selected-variation-item-name{
    font-size:16px;
}
.list-item-size span.woo-selected-variation-item-name:hover+.list-item-size label .item-size-text,
.list-item-size label .item-size-text:hover+.list-item-size span.woo-selected-variation-item-name,
.list-item-size label .item-size-text:hover,.list-item-size span.woo-selected-variation-item-name:hover{
    color:rgb(0, 0, 0) !important;
}

.wooshop.product-gallery-summary{
  align-items: flex-start;gap: 2rem;
}
.wooshop.product-gallery-summary .woocommerce-product-gallery{
  position: sticky;margin-top:30px;align-self: flex-start;
}
.custom_size_line{
    position:absolute;
    bottom:-2px;
    border-bottom:solid 2px rgb(194, 0, 0);
    width:100%;
    left:0px;
}

.woocommerce #content .ast-woocommerce-container div.product div.images, .woocommerce .ast-woocommerce-container div.product div.images, .woocommerce-page #content .ast-woocommerce-container div.product div.images, .woocommerce-page .ast-woocommerce-container div.product div.images {
    width: 61.8%;
}

.custom_size_price_html .custom_size_price_html{
  color:#000 !important;

}

.woocommerce-js div.product div.images .flex-control-thumbs li img{
  opacity: 0.8;
}
.promotion-section-swiper .swiper-button-next,.promotion-section-swiper .swiper-button-prev {
    
    background: rgba(0, 0, 0, 0.1);
}

.promotion-section-swiper .swiper-button-next svg{
    margin-left: 10px;
    margin-top: 10px;
}
.promotion-section-swiper .swiper-button-prev svg{
    margin-left: 10px;
    margin-top: 10px;
}
.product-comment-uploadedItemWrap{
    bottom: -10px;left: 3rem !important;
}


	.woocommerce-product-gallery .flex-viewport{
		margin-left: 64px;
		max-height: 680px;
	}
	.woocommerce-product-gallery__image .woocommerce-product-gallery__image{
		width: 55px;
		height: 55px;
		object-fit: cover;
		border-right-width: 5px;
		border-right-color: #fff;
	}
	.woocommerce-product-gallery__container .woocommerce-product-gallery__image-item{
		width: auto !important;
    	display: inline-block !important;
	}
	.woocommerce-product-gallery__container .left{
		width: 55px;
		height: 55px;    	
	}
	.woocommerce-product-gallery__image-box .pcImages {
		display: flex;
	}
	.woocommerce-product-gallery__image-box .pcImages img {
    	margin-right: 10px;
    	width: 38px !important;
    	height: 24px !important;
	}
	.woocommerce-product-gallery__container .woocommerce-product-gallery__image-icon{
		width:55px;color:#fff;position: absolute;top: 0;height: 630px;
		overflow-y: auto;
		::-webkit-scrollbar { display: none; }    	
    	scrollbar-width: none; /* Firefox：隐藏滚动条 */
    	-ms-overflow-style: none; /* IE/Edge：隐藏滚动条 */
	}
  
  .woocommerce-product-gallery__container .woocommerce-product-gallery__image-icon img{
    width: 55px; height: 55px;object-fit: cover;opacity: 0.85;cursor: pointer;
  }
  .woocommerce-product-gallery__container .woocommerce-product-gallery__image-icon img:first-child{
    opacity: 1;
  }
	.woocommerce-product-gallery__container .woocommerce-product-gallery__image-icon::-webkit-scrollbar {
		display: none;
	}
@media screen and (max-width:920px) {

    .custom-size.end-50{
        right:15px !important;
    }
    .reviews-modal{
        padding: 0px 15px;
    }
    .reviews-modal .modal-dialog{
        width: 100%;  
        border-radius: 4px;      
        max-width: 100%;
    }
    .reviews-modal .stars{
        gap: 0px;
    }
    .swiper-slide{
      height: auto !important;
    }
    .reviews-modal .stars .star{
        padding: 12px 5px;
    }
    .product-comment-uploadedItemWrap{
        bottom: -10px;left: 1rem !important;
    }

    .wooshop.product-gallery-summary{
      align-items: flex-start;gap: 3rem;
    }
    .wooshop.product-gallery-summary .woocommerce-product-gallery{
      position: relative !important;margin-top:30px;align-self: flex-start;
    }
    .woocommerce #content .ast-woocommerce-container div.product div.images, .woocommerce .ast-woocommerce-container div.product div.images, .woocommerce-page #content .ast-woocommerce-container div.product div.images, .woocommerce-page .ast-woocommerce-container div.product div.images {
      width: 100%;
    }
    .woocommerce-product-gallery__container .woocommerce-product-gallery__image-icon{
        width: 55px;
        height: 55px;
    }
    .woocommerce-product-gallery__container{
      display: none;
    }
    .woocommerce-product-gallery .flex-viewport{
      margin-left:0px;
    }
}

.item-size{
   color:rgb(194, 0, 0); 
   cursor:pointer; top:0px;bottom:5px;   
   left: calc(100% - 50%);
}
.item-size .item-text{
    color:rgb(194, 0, 0);
    font-size:16px;
    cursor: pointer;
}
.item-size-text{
    cursor: pointer;
}
.item-size-text:hover{
    color:rgb(194, 0, 0) !important;
}
.item-size .custom_Size_line{
    border-bottom: solid 2px rgb(194, 0, 0) !important;
    /*transition: color 0.3s;*/
    width: 100%;
    left: 0px;
}

.custom-size-width,.custom-size-height{
    color: #374151;
    font-size: 16px;
    border-width: 1px;
    border-radius: 3px !important;
    box-shadow: rgba(0, 0, 0, 0) 0 0 0 0, rgba(0, 0, 0, 0) 0 0 0 0, rgba(0, 0, 0, 0.05) 0 1px 2px 0;
    background-color: #fff;
    border-color: #d1d5db;
}

.custom-size-width.focused,.custom-size-height.focused{
    border: solid 2px rgb(0, 0, 0) !important;
}

.custom-size-width:focus,.custom-size-height:focus{
    border: solid 2px rgb(0, 0, 0) !important;
    transition: all .0s linear !important;
}

.item-size .custom_Size_line::after{
    border-bottom: solid 2px rgb(194, 0, 0);
    /*transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;*/
}

.item-size:hover .item-text{
    color:rgb(194, 0, 0);
}
.item-size:hover .custom_Size_line{
    border-bottom: solid 2px rgb(194, 0, 0);
}

/** 商品尺寸 */
.list-item-size .size-with
{
    font-size:14px;
    color:#444;
}

.list-item-size .size-height
{
    color:#444;
}

.has-error{
    border:solid 2px #f04949 !important;
}
.has-error-width-tip,
.has-error-height-tip,
.has-error-tip{
    position: absolute;
    margin:6px 0px;
    color: #f04949;
    font-size: 12px;
    height:50px;
    line-height: 1.4;
}


/* 触发按钮 */
.open-btn {
    background: #1e2b3c;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.2s;
}
.open-btn:hover {
    background: #2c3e50;
    transform: scale(1.02);
}
.product-comment-uploadHandler
{
    border: 1px dashed rgba(0, 0, 0, .45);
    text-align: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 250, 251, 1);
    padding: 20px 0;
    cursor: pointer;
    box-sizing: border-box;
    word-break: break-word;
    position: relative;
}
.reviews-modal p.stars{
    display: none;
}
.product-comment-uploadHandler input {
    
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 12;
}
.product-comment-ImageItem{
    position: relative;
    width: 48px;
    height: 48px;
}

.product-comment-ImageItem img{
    width:100%;
    height:100%;
    object-fit: cover;
}

.product-comment-ImageItem-delIcon {
    position: absolute;
    top: -3px;
    right: -5px;
    width: 16px;
    height: 16px;
    line-height: 1;
    z-index: 1;
    background-color: var(--plugin-product-comment-color_text);
    border-radius: 50%;
    cursor: pointer;
}
.progress-2 {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.reviews-modal .react-hint--top{
    transform: translateY(0px);
}
.reviews-modal .react-hint__content{
    padding: 5px;
    position: absolute;
    z-index: 9999;
    cursor: default;
    -webkit-animation: .5s fadeIn;
    animation: .5s fadeIn;
}
.reviews-modal .react-hint__content {
    padding: 10px;
    border-radius: 5px;
    background: #000;
    color: #fff;
}
.reviews-modal .react-hint:after {
    content: '';
    width: 0;
    height: 0;
    margin: auto;
    display: block;
    position: absolute;
    transform: rotate(180deg);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid transparent;
}
.reviews-modal .tips2 .react-hint{
    display: none;
}
.open-tips2:hover + .react-hint{
    display: block;
    transform: translateY(6px);
    -webkit-animation: .5s fadeIn;
    animation: .5s fadeIn;
}
.reviews-modal .react-hint--top:after {
    top: auto;
    border-bottom: none;
    border-top-color: #000;
}

.product-comment-uploadedItem{
    width: 48px;
    height: 48px;
    position: relative;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    display: block;
  }
  100% {
    opacity: 1;
    display: block;
  }
}

.reviews-modal .react-hint {
    z-index: 9999;
    cursor: default;
    -webkit-animation: .5s fadeIn;
    animation: .5s fadeIn;
}

.reviews-modal input:hover, .reviews-modal input:focus,
.reviews-modal textarea:hover, .reviews-modal textarea:focus {
    box-shadow: 0 0 0 0.085rem #000 !important;;
    outline: none;
    offset-anchor: 0;
}
.product-comment-stepBarWrap{
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 16px;
    padding: 0 40px;
    margin-top: 10px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr;
}
.product-comment-stepBar{
    opacity: 1;
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: #2c2c2c;
    opacity: 0.2;
}

.product-comment-stepBar.active{
    opacity: 1;
}
.product-comment-uploadHandler .tips1{
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: 8px;
}
.product-comment-uploadHandler .tips2{
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
}


/* ---------- 弹层容器 ---------- */
#ratingModal.modal, #diy-modal-window.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    z-index: 1000;
}
#ratingModal.modal.active {
    visibility: visible;
    opacity: 1;
}

/* 遮罩 */
#ratingModal .modal,#diy-modal-window .modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0px);
    animation: .3s modal-fadeIn forwards ease;
}

@keyframes modal-slideInBottom {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes modal-slideOutBottom {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes modal-slideInTop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes modal-slideOutTop {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes modal-slideInLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes modal-slideOutLeft{
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes modal-slideInRight {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes modal-slideOutRight{
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}


@keyframes modal-fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes modal-fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes modal-zoomIn {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes modal-zoomOut {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.5);
  }
}
/* 弹窗内容 */
#ratingModal  .modal-dialog, #diy-modal-window .modal-dialog {
    position: relative;
    animation: .3s modal-fadeIn forwards ease;
    width: 90%;
    max-width: 55%;
    background: white;
    border-radius: 0px;
    box-shadow: 0 30px 50px rgba(0,0,0,0);
    padding: 24px;
    /*transform: scale(0.8);*/
    transform: translate3d(0, 0, 0);
    /*transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);*/
    z-index: 2;
}
#ratingModal .modal.active .modal-dialog, #diy-modal-window .modal.active .modal-dialog {
    transform: scale(1);
}

/* 头部 */
#ratingModal .modal-header, #diy-modal-window .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
#ratingModal .modal-header.modal-header-review, #diy-modal-window .modal-header.modal-header-review {
    position: absolute;
}
#ratingModal .modal-header h2, #diy-modal-window .modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center; 
    color: #0a1a2a;
    line-height: 1.3;
}
#ratingModal .modal-close, #diy-modal-window .modal-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: #8899aa;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s, transform 0.2s;
}
#ratingModal .modal-close:hover, #diy-modal-window .modal-close:hover {
    color: #1e2b3c;
    transform: rotate(90deg);
}

.reviews-modal .modal-header, #diy-modal-window .modal-header {
    border-bottom:0px solid #e9ecf0;
}

/* 评分星星区域 */
.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 8px;
}
.star {
    /*flex:1;*/
    display: flex;    
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 40px;
}
.star:hover {
    background: #eef2f7;
    transform: translateY(-2px);
}

.reviews-modal svg{color: #f7b500;}
/*
.star[data-value="1"]:hover { background: #ffe3e0; }
.star[data-value="3"]:hover { background: #fff0dd; }
.star[data-value="5"]:hover { background: #e0f0e3; }
*/
.star:hover { background: #fff; }
.star-icon {
    font-size: 2.4rem;
    color: #f5b342;  /* 金色 */
    text-shadow: 0 2px 5px rgba(245,180,50,0.3);
}
.star-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 6px;
}
.star-text:empty {
    display: none;  /* 隐藏空的文本标签 */
}

/* 移动端适应 */
@media (max-width: 480px) {
    .modal-dialog { padding: 20px; }
    .modal-header h2 { font-size: 1.4rem; }
    .star-icon { font-size: 2rem; }
    .star-text { font-size: 0.8rem; }
}
