/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
@font-face {
    font-family: ct_font_northwell;
    src: url(/wp-content/uploads/2026/07/Northwell.ttf);

    ascent-override: 100%;
    descent-override: 0%;
    line-gap-override: 0%;
}
/*覆蓋主題細化斷點*/
@media (max-width: 1024px) {
    #header [data-device=desktop] {
        display: none;
    }	
    #header [data-device=mobile] {
        display: block !important;
    }
    #offcanvas [data-device=desktop] {
        display: none;
    }	
    #offcanvas [data-device=mobile] {
        display: block !important;
    }
}
[class*=header-menu] .menu{
	column-gap: clamp(1em, 1.5vw, 2em);
}
/*覆蓋主題寬度*/
[class*=ct-container]>article, .ct-container, .ct-container-narrow{
	--theme-container-width: min(100%, calc(100vw - 80px)) !important;
}
@media (max-width: 767px){
	[class*=ct-container]>article, .ct-container, .ct-container-narrow{
		--theme-container-width: min(100%, calc(100vw - 40px)) !important;
	}
}
/*Elementor 標題行距*/
h1.elementor-heading-title, h2.elementor-heading-title, h3.elementor-heading-title,
 h4.elementor-heading-title, p.elementor-heading-title, span.elementor-heading-title{
	line-height:var(--theme-line-height);
}
/*斷行*/
.word-break h1, .word-break h2, .word-break h3, .word-break p, .word-break span, .word-break .elementor-widget-container, .word-break{
	word-break: keep-all;
}
/*手寫字*/
.author-box .author-box-name, .handwriting h1, .handwriting h2, .handwriting h3, .handwriting p, .handwriting span, .handwriting .elementor-widget-container, .handwriting{
	font-family: ChenYuLuoYan, 'Noto Serif TC', Sans-Serif;
}
/*pagination*/
[data-pagination=simple].ct-pagination .page-numbers.current, [data-pagination=next_prev].ct-pagination .page-numbers.current {
    background: none;
	color: var(--theme-palette-color-1);
}
[data-pagination=simple].ct-pagination .page-numbers, [data-pagination=next_prev].ct-pagination .page-numbers{
	border: none !important;
}
[data-pagination=simple].ct-pagination .page-numbers:hover, [data-pagination=next_prev].ct-pagination .page-numbers:hover{
	color: var(--theme-palette-color-1);
}
/*custun badge*/
.custom-badge{
	position: absolute;
	z-index: 2;
	font-size: 0.85em;
    font-weight: 500;
	pointer-events: none;
}
.custom-badge.custom-badge-color-1{
	background-color: var(--theme-palette-color-1);
	color: #fff;
}
.custom-badge.custom-badge-color-2{
	background-color: var(--theme-palette-color-7);
	color: var(--theme-palette-color-4);
}
.custom-badge.custom-badge-color-3{
	background-color: var(--theme-palette-color-5);
	color: #fff;
}
.custom-badge.custom-badge-round{
	top:.75em;
	left:.75em;
	border-radius:50%;
	width:70px;
	height:70px;
	text-align: center;
    line-height: 70px;
}
.custom-badge.custom-badge-flag-horizontal{
	line-height: 3;
    top: 0.75em;
	left: 0;
	padding: 0 1.5em 0 1em;
    border-radius: 0 50px 50px 0;
}
.custom-badge.custom-badge-flag-straight {
    writing-mode: vertical-lr;
	line-height: 3;
    top: 0;
    left: .75em;
    padding: 1em 0 1.5em 0;
    border-radius: 0 0 50px 50px;
}
.products .out-of-stock-badge{
	inset:0 !important;
    pointer-events: none;
    height: 100% !important;
	border-radius:0 !important;
	background-color:rgba(255,255,255,0.75);
	color: var(--theme-palette-color-3);
}
.custom-out-of-stock-badge{
    pointer-events: none;
	color: #fff;
    background-color: #3a3530;
    font-weight: 500;
    font-size: 0.85em;
    display: block;
    text-align: center;
    border-radius: 4px;
}
/*評論*/
.review-variant-name{
	color: var(--theme-palette-color-5);
    font-size: 0.85em;
	font-style: italic;
}
/**/
blockquote{
    --twist: url(/wp-content/uploads/2026/08/blockquote.svg);
    font-family: 'Noto Serif TC', serif !important;
    font-size: 1.125em !important;
    font-weight: 700 !important;
    color: var(--theme-palette-color-1);
    border: none !important;
    background: var(--twist) no-repeat left center / .75em 2em;
    margin-top: 1.5em !important;
}
/*login*/
#nsl-custom-login-form-1 .nsl-container.nsl-container-block.nsl-container-embedded-login-layout-below{
	padding: 0;
}
#nsl-custom-login-form-1 .nsl-container-buttons{
	padding: 0 1.4em 1.4em 1.4em;
    width: 100%;
}
/*cart menu*/
.ct-cart-content .woocommerce-mini-cart__buttons{
	grid-template-columns: 1fr;
}
.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout){
	display: none;
}
/*checkout*/
.ct-woocommerce-checkout span.select2-container .select2-selection--single .select2-selection__rendered{
	border: none;
}

.woocommerce-page.woocommerce-checkout .woocommerce #order_review table.shop_table tfoot th{
	width: calc(100% - 140px) !important;
}
/*post*/
/*.is-layout-constrained > .wp-block-image.size-full:where(:not(.alignleft):not(.alignright):not(.alignfull)){
	width: fit-content;
    margin-left: 0 !important;
}*/

.wp-block-table thead th{
	background-color: var(--theme-palette-color-1);
	color: #fff;
}