/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* 📅 日期差區塊樣式 */
.date-diff-block .resultText {
  font-size: 24px;
  font-weight: bold;
  color: #007BFF;
  margin-top: 8px;
  text-align: center;
  line-height: 1.6;
}

.date-diff-block .resultText small {
  font-size: 14px;
  color: #FF3B30;
  font-weight: normal;
  margin-left: 2px;
}

/* ✅ IG WebView 字體跑版修正（強化版） */
html, body {
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
  font-size: 16px !important;
}

body.is-instagram {
  font-family: "PingFang TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* ✅ IG WebView 標題與區塊調整 */
body.is-instagram .page-title,
body.is-instagram .section-title,
body.is-instagram .woocommerce-products-header,
body.is-instagram h1,
body.is-instagram h2,
body.is-instagram h3 {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* ✅ IG WebView 元素統一 box-sizing */
body.is-instagram *,
body.is-instagram *::before,
body.is-instagram *::after {
  box-sizing: border-box !important;
}

/* ✅ 提示條樣式（.ig-tip） */
body.is-instagram .ig-tip {
  background: #fffae6;
  color: #c00;
  font-size: 14px;
  padding: 12px 16px;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* 針對 IG 瀏覽器用小一號字體 */
.ig-webview body {
  font-size: 15px;
}
.ig-webview h1, 
.ig-webview h2, 
.ig-webview h3, 
.ig-webview .product-title, 
.ig-webview .btn, 
.ig-webview .product-price {
  font-size: 90% !important;
  line-height: 1.4;
}
.ig-webview .woocommerce-loop-product__title {
  font-size: 14px !important;
}

.ig-warning {
  display: none;
  background: #fff3cd;
  color: #856404;
  font-size: 14px;
  padding: 10px;
  text-align: center;
}

/* ✅ 修正：確保只在 IG WebView 顯示 */
html.ig-webview .ig-warning {
  display: block;
}


