/* Chaty文字沒有內距*/
.chaty-tooltip p{margin:0;}

/* 結帳頁面：稅率 隱藏 */
.woocommerce-js table.shop_table td small {
    display: none;
}


/* .cart_item 後面那列 AND 不帶 .cart_item 才隱藏 */
#checkout-cart-content table.shop_table
tr.woocommerce-cart-form__cart-item + tr:not(.woocommerce-cart-form__cart-item){
    display:none !important;
}



@media (min-width: 769px) {
  .sorting-category-wrapper,
  .woocommerce-ordering {
    display: flex;
    justify-content: flex-end; /* 將內容向右對齊 */
  }

  .sorting-category-wrapper select,
  .woocommerce-ordering select {
    width: 180px;      /* 設定固定寬度 */
    padding: 8px 12px;
    font-size: 16px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .woocommerce-result-count {
    margin-right: auto; /* 確保結果數量在最左側 */
  }
}










@media (max-width: 768px) {
  .sorting-category-wrapper {
    display: block;             /* 改為垂直排列 */
    width: 100%;
  }

  .sorting-category-wrapper select,
  .woocommerce-ordering select {
    display: block;
    width: 100%;                /* 滿版寬度 */
    margin-bottom: 10px;        /* 下方增加間距 */
    padding: 8px 12px;
    font-size: 16px;
    height: 40px;
    background-color: #ffffff;  /* 統一白色背景 */
    border: 1px solid #ccc;     /* 增加邊框讓選單更明顯 */
    box-sizing: border-box;
  }
}


.woocommerce .select2-container .select2-selection--single {
    border-radius: 10px;
    height: 35px !important;      /* ← 視需要加 !important */
    padding: 0 12px;              /* 讓左右留白 */
}
.woocommerce .select2-selection__rendered { line-height: 35px !important; }
.woocommerce .select2-selection__arrow    { height: 35px !important; }


	.woocommerce-checkout .form-row{
		position: relative;          /* 讓錯誤訊息絕對定位於此 */
		margin-bottom: 24px;         /* 與下一列留距，值 ≈ 欄位高 + 訊息高 */
	}

	/*────────────────── 錯誤訊息樣式 ──────────────────*/
	.woocommerce-checkout .checkout-inline-error-message{
		position: absolute;
		left: 0;                     /* 跟隨欄位起始 */
		top: calc(100% + 2px);       /* 貼欄位下緣再留 2px 空隙 */
		width: 100%;                 /* 吃滿整列，字不被裁切 */
		font-size: 12px;
		line-height: 1.3;
		color: #d63637;              /* WooCommerce 預設錯誤紅 */
		padding-left: 2px;           /* 微縮排，看起來較整齊 */
		margin: 0;                   /* 清掉預設 margin */
		pointer-events: none;        /* 避免點擊干擾 */
		word-break: break-word;      /* 超長單字自動換行 */
		white-space: normal;         /* 中文自動換行 */
		z-index: 2;                  /* 確保 Select2 箭頭不蓋住文字 */
	}

	/*────────────────── 行動裝置下，左右雙欄欄位修正 ──────────────────*/
	@media (min-width: 768px){
		/* 讓半寬欄位的錯誤訊息不跨到旁邊欄位 */
		.woocommerce-checkout .form-row-first,
		.woocommerce-checkout .form-row-last{
			padding-right: 12px;     /* 與訊息對齊更好看，可視情況微調 */
		}
	}





#billing_email_field .woocommerce-input-wrapper {
    display: block; /* 確保電子郵件輸入框獨立一行 */
}

/* 針對訂閱勾選框和文字 */
#woo_ml_subscribe, #woo_ml_subscribe + label {
    display: inline-block; /* 讓勾選框和文字在同一行 */
    vertical-align: middle; /* 垂直置中 */
    margin-top: 8px; /* 控制和上方間距，讓其單獨一行 */
}

#woo_ml_subscribe {
    margin-right: 3px; /* 勾選框與文字的距離 */
}/* 控制紅色框選區域的上、下間距 */

#ship-to-different-address {
    padding-top: 0px; /* 調整上方間距 */
  }
  
  /* 控制紅色框選區域的上、下間距 */


.page .has-post-thumbnail .post-thumb img {
    display: none;} /*首頁縮圖隱藏*/ 

.woocommerce-message {
  display: none;} /*購物車通知取消*/


.woocommerce .elementor-1508 .elementor-element.elementor-element-5a1ad29a form.cart .variations {
    width: 80%;
    margin-bottom: 13px;}/*商品singlepage多選項定位調整*/ 
    

    .woocommerce ul.products li.product .button, .woocommerce-page ul.products li.product .button {
  text-transform: capitalize;
  border-radius: 3px 3px 3px 3px;
  border-color:#E5E9EC;
  margin-top: 11px;
  margin-bottom: 20px;
  font-size: 13px;
  position:absolute;
  right:0px;
  padding:4px 8px 4px 8px;}/*商品singlepage加入購物車按鈕調整*/ 

.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price {
  font-size: 15px;
    font-family: "Josefin Sans", Sans-serif;
    display: flex;
    margin-top:8px;
    width: 40%;
    position:absolute;
    left:0px;}/*商品價格調整*/ 


    
.woocommerce .added_to_cart {
    display: none;}/*商品singlepage加入購物車後隱藏*/ 
    
.ast-separate-container .post-navigation {
    display: none;}/*文章單頁上一篇下一篇按鈕隱藏*/ 
    

.elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-wrapper {
    display: flex;}  /*食譜手機版食材作法位置修正*/ 

.elementor-widget-text-editor {
    color: #00324B;}/*訂單完成感謝頁顏色調整*/ 
    
.elementor-3374 .elementor-element.elementor-element-1b7c23c5 img {
   overflow: hidden;}

.elementor-widget-container ul {
    margin-left: 5%;}/*商品頁面ul右移5％*/ 


  .woocommerce form .form-row input.input-text {
    padding: 10px
  }/*註冊頁面padding*/ 



@media (max-width: 767px){
.elementor-1508 .elementor-element.elementor-element-bec2410 {
    width: 50%;
}}/*header寬度調整*/ 

@media (max-width: 767px){
.elementor-1508 .elementor-element.elementor-element-19226bb {
    width: 50%;
}}/*header寬度調整*/ 


.elementor-7840 .elementor-element.elementor-element-f6539da {
  width: 100%;
}

@media (max-width: 544px){
.elementor-element .elementor-wc-products .woocommerce[class*="columns-"] ul.products li.product {
    margin-top: 40px;
}}


.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price {
  display: flex;
  position: inherit;

}

.elementor-1646 .elementor-element.elementor-element-42254d82.elementor-wc-products .attachment-woocommerce_thumbnail {
    margin-bottom: 5%;
}




/* Make item descriptions 60%+ of the table width */
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table thead th:nth-of-type(odd),
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table .cart_item td:nth-of-type(odd) {
        flex: 1 0 60%
      
}
/* Fix tfoot headings ( subtotal, shipping etc.) to occupy maximum of 130px */
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot th {
    flex: 0 0 30%;
}
/* Corect text alignment on right hand columns */
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table .cart_item td:nth-of-type(even),
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot td:nth-of-type(odd),
.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table thead th:nth-of-type(even){
    text-align: right;
}



@media only screen and (max-width: 1024px){
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu > li.mega-menu-column {
    width: 100%;
}}/*mega munu小農送禮*/ 
 
 

 .elementor-1646 .elementor-element.elementor-element-42254d82.elementor-wc-products ul.products li.product .woocommerce-loop-product__title {
    color: #00324B;
}/*商品頁面標題改成黑色*/ 
