/* Tallizen 頁腳欄位版面調整:
   PC (>=1025px): middle 5 欄並排 — 關於 | 購物指南 | 依高度選 | 依尺碼選 | 依場合選
   平板 (720-1024px): 3 欄
   手機 (480-719px): 2 欄 (依高度選 / 依尺碼選 並排同一行)
   窄手機 (<=480px): 單欄堆疊, 避免文字擠壓成單字掛行
*/

/* PC: 5 欄等寬, 高度對齊 */
@media (min-width:1025px){
	.site-footer-row.site-footer-row-columns-5 .site-footer-section,
	.site-footer-row.site-footer-row-columns-5 .footer-widget-area,
	.site-footer-row.site-footer-row-columns-5 .footer-widget-area > *{
		min-width:0;
	}
	.site-footer-row.site-footer-row-columns-5 .footer-widget-area h2.widget-title{
		font-size:17px;
	}
}

/* 平板: 3 欄 */
@media (min-width:720px) and (max-width:1024px){
	.site-middle-footer-inner-wrap.site-footer-row{
		display:grid !important;
		grid-template-columns:repeat(3,minmax(0,1fr)) !important;
		gap:0 20px !important;
	}
	.site-middle-footer-inner-wrap .site-footer-middle-section{
		grid-column:span 1 !important;
		float:none !important;
		width:auto !important;
		min-width:0;
	}
}

/* 手機 480-719px: 2 欄, 依高度選 / 依尺碼選 並排同一行
   (Kadence 選擇器 .site-footer-row-container-inner .site-footer-row.xxx 特異性 0,4,0
    高於本檔 0,2,0, 故 grid-template-columns 需 !important) */
@media (min-width:480px) and (max-width:719px){
	.site-middle-footer-inner-wrap.site-footer-row{
		display:grid !important;
		grid-template-columns:repeat(2,minmax(0,1fr)) !important;
		gap:0 18px !important;
	}
	.site-middle-footer-inner-wrap .site-footer-middle-section{
		grid-column:span 1 !important;
		float:none !important;
		width:auto !important;
		min-width:0;
	}
	.site-middle-footer-inner-wrap .site-footer-middle-section-3 .footer-widget-area-inner,
	.site-middle-footer-inner-wrap .site-footer-middle-section-4 .footer-widget-area-inner{
		height:100%;
	}
	.site-middle-footer-inner-wrap .site-footer-middle-section-3 h2.widget-title,
	.site-middle-footer-inner-wrap .site-footer-middle-section-4 h2.widget-title{
		font-size:16px;
	}
	.site-middle-footer-inner-wrap .site-footer-middle-section-3 ul li,
	.site-middle-footer-inner-wrap .site-footer-middle-section-4 ul li{
		line-height:1.85;
	}
	.site-bottom-footer-inner-wrap.site-footer-row{
		display:grid !important;
		grid-template-columns:repeat(2,minmax(0,1fr)) !important;
		gap:0 18px !important;
	}
	.site-bottom-footer-inner-wrap .site-footer-section{
		grid-column:span 1 !important;
		float:none !important;
		width:auto !important;
		min-width:0;
	}
}

/* 窄手機 <=480px: 單欄堆疊, 文字不擠壓 */
@media (max-width:479px){
	.site-middle-footer-inner-wrap.site-footer-row,
	.site-bottom-footer-inner-wrap.site-footer-row{
		display:block !important;
	}
	.site-middle-footer-inner-wrap .site-footer-section,
	.site-bottom-footer-inner-wrap .site-footer-section{
		float:none !important;
		width:100% !important;
		max-width:100%;
		margin-bottom:22px;
	}
	.site-middle-footer-inner-wrap .site-footer-section:last-child,
	.site-bottom-footer-inner-wrap .site-footer-section:last-child{
		margin-bottom:0;
	}
	.site-middle-footer-inner-wrap .site-footer-section-3,
	.site-middle-footer-inner-wrap .site-footer-section-4{
		display:inline-block !important;
		width:calc(50% - 9px) !important;
		vertical-align:top;
		margin-right:18px;
	}
	.site-middle-footer-inner-wrap .site-footer-section-4{
		margin-right:0;
	}
	.site-middle-footer-inner-wrap .site-footer-section-3 .footer-widget-area-inner,
	.site-middle-footer-inner-wrap .site-footer-section-4 .footer-widget-area-inner{
		height:auto;
	}
	.site-middle-footer-inner-wrap .site-footer-section-3 h2.widget-title,
	.site-middle-footer-inner-wrap .site-footer-section-4 h2.widget-title{
		font-size:15px;
		white-space:nowrap;
	}
	.site-middle-footer-inner-wrap .site-footer-section-3 ul li,
	.site-middle-footer-inner-wrap .site-footer-section-4 ul li{
		line-height:1.8;
		font-size:14px;
	}
	.site-middle-footer-inner-wrap .site-footer-section-3 ul,
	.site-middle-footer-inner-wrap .site-footer-section-4 ul{
		padding-left:14px;
	}
}
