/* The Web Custom Functions - makasiart.com */

/* ---------- Product page: long description ---------- */
/* The long description block carries the class "twcf-long-desc" in the product template.
   Headings inside it keep the handwritten font. */
.twcf-long-desc .et_pb_text_inner,
.twcf-long-desc .et_pb_text_inner p,
.twcf-long-desc .et_pb_text_inner li,
.twcf-long-desc .et_pb_text_inner span,
.twcf-long-desc .et_pb_text_inner a,
.twcf-long-desc .et_pb_text_inner td,
.twcf-long-desc .et_pb_text_inner strong,
.twcf-long-desc .et_pb_text_inner em {
	font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
}

/* The site language is Bulgarian, so Montserrat would switch to its Bulgarian letter
   shapes (т drawn like m, к like k). Turn that off to get the standard Cyrillic shapes. */
.twcf-long-desc .et_pb_text_inner,
.twcf-long-desc .et_pb_text_inner *,
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .woocommerce *,
body.woocommerce-checkout .select2-container,
body.woocommerce-checkout .select2-container * {
	font-feature-settings: "locl" 0;
}

.twcf-long-desc .et_pb_text_inner,
.twcf-long-desc .et_pb_text_inner p,
.twcf-long-desc .et_pb_text_inner li {
	font-size: 17px !important;
	line-height: 1.7 !important;
	font-weight: 400;
}

/* ---------- Checkout: Montserrat for texts, fields and buttons ---------- */
/* Headings (h1-h4) are left out so they keep the handwritten font. */
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .woocommerce p,
body.woocommerce-checkout .woocommerce label,
body.woocommerce-checkout .woocommerce span,
body.woocommerce-checkout .woocommerce a,
body.woocommerce-checkout .woocommerce li,
body.woocommerce-checkout .woocommerce td,
body.woocommerce-checkout .woocommerce th,
body.woocommerce-checkout .woocommerce div,
body.woocommerce-checkout .woocommerce strong,
body.woocommerce-checkout .woocommerce input,
body.woocommerce-checkout .woocommerce select,
body.woocommerce-checkout .woocommerce textarea,
body.woocommerce-checkout .woocommerce button,
body.woocommerce-checkout .woocommerce .button,
body.woocommerce-checkout .select2-container,
body.woocommerce-checkout .select2-container span,
body.woocommerce-checkout .select2-results__option {
	font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
}

/* ---------- Checkout: larger, easier to read ---------- */
body.woocommerce-checkout #main-content .container {
	width: 92%;
	max-width: 1240px;
}

body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .woocommerce p,
body.woocommerce-checkout .woocommerce li,
body.woocommerce-checkout .woocommerce td,
body.woocommerce-checkout .woocommerce th {
	font-size: 16px;
	line-height: 1.6;
}

body.woocommerce-checkout .woocommerce form .form-row label {
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 6px;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {
	font-size: 16px !important;
	min-height: 52px;
	padding: 14px 16px;
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {
	padding: 0 16px;
	display: flex;
	align-items: center;
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	font-size: 16px;
	padding: 0;
	line-height: 1.4;
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	height: 50px;
}

body.woocommerce-checkout .woocommerce h3 {
	font-size: 40px;
	line-height: 1.3;
	padding-bottom: 12px;
}

body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout h1.main_title {
	font-size: 52px;
	line-height: 1.2;
}

body.woocommerce-checkout .woocommerce table.shop_table th,
body.woocommerce-checkout .woocommerce table.shop_table td {
	padding: 14px 16px;
}

body.woocommerce-checkout .woocommerce .woocommerce-info,
body.woocommerce-checkout .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info {
	font-size: 17px !important;
}

body.woocommerce-checkout .woocommerce #payment #place_order {
	font-size: 17px !important;
	font-weight: 600;
	padding: 18px 40px !important;
	letter-spacing: 0.5px;
}

@media (max-width: 767px) {
	body.woocommerce-checkout #main-content .container {
		width: 94%;
	}

	body.woocommerce-checkout .woocommerce h3 {
		font-size: 30px;
	}

	body.woocommerce-checkout .woocommerce #payment #place_order {
		width: 100%;
		float: none;
	}
}

/* ---------- Blog posts: body text ---------- */
/* Headings inside the article keep the handwritten font. */
.single-post .et_pb_post_content,
.single-post .et_pb_post_content p,
.single-post .et_pb_post_content li,
.single-post .et_pb_post_content span,
.single-post .et_pb_post_content a,
.single-post .et_pb_post_content td,
.single-post .et_pb_post_content strong,
.single-post .et_pb_post_content em,
.single-post .et_pb_post_content blockquote,
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li {
	font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
	font-feature-settings: "locl" 0;
}

.single-post .et_pb_post_content,
.single-post .et_pb_post_content p,
.single-post .et_pb_post_content li,
.single-post .entry-content p,
.single-post .entry-content li {
	font-size: 17px !important;
	line-height: 1.75 !important;
	font-weight: 400;
}

/* ---------- Blog slider: equal cards, Montserrat excerpt ---------- */
/* Applies to a blog slider module that carries the class "twcf-blog-slider". */
.twcf-blog-slider .swiper-container {
	height: auto !important;
}

.twcf-blog-slider .swiper-wrapper {
	align-items: stretch !important;
	height: auto !important;
}

.twcf-blog-slider .swiper-slide {
	height: auto !important;
	display: flex !important;
}

.twcf-blog-slider article.dipl_blog_slider_post {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	height: auto;
}

.twcf-blog-slider .dipl_blog_slider_image_wrapper img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.twcf-blog-slider .dipl_blog_slider_content_wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Title: always two lines high, so the texts below start level. */
.twcf-blog-slider .dipl_blog_slider_post_title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	line-height: 1.3 !important;
	min-height: 2.6em;
	padding-bottom: 0;
	margin-bottom: 12px;
}

.twcf-blog-slider .dipl_blog_slider_content {
	flex: 1 1 auto;
}

.twcf-blog-slider .dipl_blog_slider_content,
.twcf-blog-slider .dipl_blog_slider_content p {
	font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
	font-feature-settings: "locl" 0;
	font-size: 15px !important;
	line-height: 1.7 !important;
	font-weight: 400;
}

.twcf-blog-slider .dipl_blog_slider_content p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
	padding-bottom: 0;
}

.twcf-blog-slider .dipl_blog_slider_read_more_link {
	margin-top: 20px;
}

/* ---------- Homepage: category tiles and the Christmas block ---------- */
/* New category tiles use ordinary product photos; give them the same 3:4 shape as the others. */
.mk-tile-new .et_pb_main_blurb_image img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}

/* The Christmas block: button in the exact middle of the picture. */
#page-container .et_pb_row.mk-xmas-block {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	min-height: 426px;
}

#page-container .et_pb_row.mk-xmas-block:after {
	display: none;
}

#page-container .mk-xmas-block .et_pb_column {
	float: none;
	width: 100%;
	margin: 0;
}

#page-container .mk-xmas-block .et_pb_button_module_wrapper {
	margin: 0 !important;
}

@media (max-width: 767px) {
	#page-container .et_pb_row.mk-xmas-block {
		min-height: 300px;
	}
}

/* ---------- Winter: snowflake divider under the big homepage headings ---------- */
/* Shown only in season (html.twcf-winter is set in the browser) and only where the page allows it. */
html.twcf-winter body.twcf-divider #main-content .et_pb_text h3:last-of-type::after {
	content: "";
	display: block;
	width: 240px;
	max-width: 80%;
	height: 32px;
	margin: 4px 0 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 32'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%23d9b49d' stroke-width='1.5' d='M8 16H96M144 16H232'/%3E%3Cg stroke='%239fb6c9' stroke-width='1.4' transform='translate(120 16)'%3E%3Cpath d='M0-13V13M-4-9 0-5 4-9M-4 9 0 5 4 9'/%3E%3Cpath transform='rotate(60)' d='M0-13V13M-4-9 0-5 4-9M-4 9 0 5 4 9'/%3E%3Cpath transform='rotate(120)' d='M0-13V13M-4-9 0-5 4-9M-4 9 0 5 4 9'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='104' cy='16' r='1.6' fill='%23d9b49d'/%3E%3Ccircle cx='136' cy='16' r='1.6' fill='%23d9b49d'/%3E%3C/svg%3E") left center / contain no-repeat;
}

html.twcf-winter body.twcf-divider #main-content .et_pb_text_align_center h3:last-of-type::after {
	margin-left: auto;
	margin-right: auto;
	background-position: center;
}
