/*
Theme Name: Dorsi Theme
Theme URI: https://example.com/dorsi-theme
Author: Dorsi Team
Author URI: https://example.com
Description: WordPress theme for Dorsi, built with TailwindCSS and local Montserrat fonts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dorsi-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

body.woocommerce-checkout .wp-block-mailpoet-marketing-optin-block {
	display: none;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-terms-block {
	display: none;
}

body.woocommerce-checkout .prose-custom,
body.woocommerce-checkout .prose-custom * {
	font-family: Montserrat, sans-serif;
}

body.woocommerce-checkout .prose-custom {
	max-width: none;
}

body.woocommerce-checkout .woocommerce {
	color: var(--dorsi-heading);
}

body.woocommerce-checkout .woocommerce-checkout {
	display: grid;
	gap: 1.5rem;
}

body.woocommerce-checkout .woocommerce-notices-wrapper {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
	max-width: 100%;
	margin: 0;
	padding: 1.15rem 1.4rem;
	border: 1px solid var(--shop-border);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 12px 32px rgba(17, 37, 56, 0.05);
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin: 0;
	padding: 0 0 0 1.8rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0.98rem;
	line-height: 1.5;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
	left: 0;
	top: 0.1rem;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: end;
	margin-top: 1rem;
	padding: 1.35rem 1.5rem 1.5rem;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon > p {
	margin: 0;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .form-row-first {
	width: 100%;
	float: none;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .form-row-last {
	width: auto;
	float: none;
	margin-bottom: 0;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .input-text {
	min-height: 3.45rem;
	border: 1px solid rgba(17, 37, 56, 0.14);
	border-radius: 1rem;
	padding: 0.9rem 1.1rem;
	background: #fff;
	color: var(--dorsi-heading);
	box-shadow: none;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .input-text::placeholder {
	color: rgba(17, 37, 56, 0.45);
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .button,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button.button,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button[type="submit"] {
	min-height: 3.45rem;
	padding: 0.9rem 1.8rem;
	border: 0;
	border-radius: 9999px;
	background: var(--dorsi-button);
	color: #fff;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none;
}

body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .button:hover,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .button:focus,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button.button:hover,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button.button:focus,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button[type="submit"]:hover,
body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button[type="submit"]:focus {
	background: rgba(17, 37, 56, 0.92);
}

body.woocommerce-checkout form.checkout {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout #order_review {
	min-width: 0;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
}

body.woocommerce-checkout .col2-set .col-2 {
	margin-top: 1.5rem;
}

body.woocommerce-checkout .col2-set {
	display: grid;
	gap: unset !important;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .dorsi-classic-checkout-consents {
	padding: 1.75rem;
	border: 1px solid var(--shop-border);
	border-radius: 1.75rem;
	background: #fff;
	box-shadow: 0 20px 60px rgba(17, 37, 56, 0.08);
}

body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .dorsi-classic-checkout-consents > h3,
body.woocommerce-checkout #payment .wc_payment_methods > li > label {
	margin: 0 0 1.25rem;
	color: var(--dorsi-heading);
	font-size: clamp(1.2rem, 1rem + 0.9vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: left;
}

body.woocommerce-checkout #order_review_heading {
	margin: 0 0 1rem;
	padding: 0 0 0.25rem;
}

body.woocommerce-checkout .form-row {
	margin-bottom: 1rem;
}

body.woocommerce-checkout .form-row label {
	margin-bottom: 0.45rem;
	color: var(--dorsi-heading);
	font-size: 0.96rem;
	font-weight: 500;
	line-height: 1.4;
}

body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
	min-height: 3.35rem;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(17, 37, 56, 0.14);
	border-radius: 1rem;
	background: #fff;
	box-shadow: none;
	color: var(--dorsi-heading);
	font-size: 1rem;
	line-height: 1.3;
}

body.woocommerce-checkout .form-row textarea {
	min-height: 8.5rem;
}

body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
	width: calc(50% - 0.55rem);
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > p.form-row:nth-of-type(-n+3) {
	width: 100%;
	float: none;
	clear: both;
}

body.woocommerce-checkout .form-row .input-text:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--default .select2-selection--single:focus {
	border-color: var(--dorsi-heading);
	outline: none;
	box-shadow: 0 0 0 3px rgba(17, 37, 56, 0.08);
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 0;
	color: var(--dorsi-heading);
	line-height: 1.7;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 0.85rem;
}

body.woocommerce-checkout .shop_table {
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}

body.woocommerce-checkout .shop_table thead th,
body.woocommerce-checkout .shop_table tbody td,
body.woocommerce-checkout .shop_table tfoot th,
body.woocommerce-checkout .shop_table tfoot td {
	padding: 1rem 0;
	border-top: 1px solid var(--shop-border);
}

body.woocommerce-checkout .shop_table thead th {
	padding-top: 0;
	border-top: 0;
	color: rgba(17, 37, 56, 0.72);
	font-size: 0.92rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

body.woocommerce-checkout .shop_table tbody td,
body.woocommerce-checkout .shop_table tfoot th,
body.woocommerce-checkout .shop_table tfoot td {
	font-size: 1rem;
	color: var(--dorsi-heading);
}

body.woocommerce-checkout .shop_table .product-name {
	font-weight: 600;
}

body.woocommerce-checkout .shop_table .product-total,
body.woocommerce-checkout .shop_table tfoot td {
	text-align: right;
}

body.woocommerce-checkout .shop_table tfoot tr.order-total th,
body.woocommerce-checkout .shop_table tfoot tr.order-total td {
	font-size: 1.15rem;
	font-weight: 700;
}

body.woocommerce-checkout #payment {
	margin-top: 1.5rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	border: 0;
}

body.woocommerce-checkout #payment ul.payment_methods > li {
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--shop-border);
	border-radius: 1.25rem;
	background: #f8fbfd;
}

body.woocommerce-checkout #payment ul.payment_methods > li + li {
	margin-top: 0.9rem;
}

body.woocommerce-checkout #payment div.payment_box {
	margin: 0.9rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(17, 37, 56, 0.8);
}

body.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

body.woocommerce-checkout .dorsi-classic-checkout-consents {
	margin: 1.5rem 0 0;
}

body.woocommerce-checkout .dorsi-classic-checkout-consents .form-row {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

body.woocommerce-checkout .dorsi-classic-checkout-consents .form-row + .form-row {
	margin-top: 1rem;
}

body.woocommerce-checkout .dorsi-classic-checkout-consents label.checkbox {
	position: relative;
	display: block;
	padding-left: 2.2rem;
	margin: 0;
	color: var(--dorsi-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.55;
}

body.woocommerce-checkout .dorsi-classic-checkout-consents input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 0.2rem;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--dorsi-heading);
}

body.woocommerce-checkout .dorsi-classic-checkout-consents a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(17, 37, 56, 0.35);
	text-underline-offset: 0.16em;
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
	margin: 0 0 1.5rem;
	padding: 1rem 1.2rem 1rem 3rem;
	border: 1px solid rgba(17, 37, 56, 0.12);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 37, 56, 0.06);
	color: var(--dorsi-heading);
}

.single-product .dorsi-product-notices {
	margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.single-product .dorsi-product-notices:empty {
	display: none;
}

.single-product .dorsi-product-notices .woocommerce-notices-wrapper {
	display: grid;
	gap: 0.9rem;
}

.single-product .dorsi-product-notices .woocommerce-NoticeGroup,
.single-product .dorsi-product-notices .woocommerce-NoticeGroup-checkout {
	margin: 0;
}

.single-product .dorsi-product-notices .woocommerce-error,
.single-product .dorsi-product-notices .woocommerce-info,
.single-product .dorsi-product-notices .woocommerce-message {
	position: relative;
	display: grid;
	gap: 0.85rem 1.1rem;
	margin: 0;
	padding: 1rem 1.15rem 1rem 3.25rem;
	border: 1px solid rgba(17, 37, 56, 0.12);
	border-radius: 1.35rem;
	background: #fff;
	box-shadow: 0 18px 42px rgba(17, 37, 56, 0.08);
	color: var(--dorsi-heading);
	font-size: 0.98rem;
	line-height: 1.55;
}

@media (min-width: 768px) {
	.single-product .dorsi-product-notices .woocommerce-error,
	.single-product .dorsi-product-notices .woocommerce-info,
	.single-product .dorsi-product-notices .woocommerce-message {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

.single-product .dorsi-product-notices .woocommerce-message {
	border-color: rgba(120, 162, 0, 0.24);
	background: linear-gradient(180deg, #ffffff 0%, #fbfdf7 100%);
}

.single-product .dorsi-product-notices .woocommerce-info {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.single-product .dorsi-product-notices .woocommerce-error {
	border-color: rgba(180, 52, 52, 0.22);
	background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.single-product .dorsi-product-notices .woocommerce-error::before,
.single-product .dorsi-product-notices .woocommerce-info::before,
.single-product .dorsi-product-notices .woocommerce-message::before {
	top: 50%;
	left: 1.15rem;
	transform: translateY(-50%);
	font-size: 1rem;
	line-height: 1;
}

.single-product .dorsi-product-notices .woocommerce-message::before {
	color: #89a800;
}

.single-product .dorsi-product-notices .woocommerce-info::before {
	color: #112538;
}

.single-product .dorsi-product-notices .woocommerce-error::before {
	color: #b43434;
}

.single-product .dorsi-product-notices .woocommerce-error a,
.single-product .dorsi-product-notices .woocommerce-info a,
.single-product .dorsi-product-notices .woocommerce-message a {
	color: inherit;
}

.single-product .dorsi-product-notices .woocommerce-error .button,
.single-product .dorsi-product-notices .woocommerce-info .button,
.single-product .dorsi-product-notices .woocommerce-message .button,
.single-product .dorsi-product-notices .woocommerce-error .wc-forward,
.single-product .dorsi-product-notices .woocommerce-info .wc-forward,
.single-product .dorsi-product-notices .woocommerce-message .wc-forward {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.8rem 1.5rem !important;
	border: 1px solid rgba(17, 37, 56, 0.08) !important;
	border-radius: 9999px !important;
	background: #eef2f7 !important;
	color: #112538 !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	box-shadow: none !important;
}

@media (min-width: 768px) {
	.single-product .dorsi-product-notices .woocommerce-error .button,
	.single-product .dorsi-product-notices .woocommerce-info .button,
	.single-product .dorsi-product-notices .woocommerce-message .button,
	.single-product .dorsi-product-notices .woocommerce-error .wc-forward,
	.single-product .dorsi-product-notices .woocommerce-info .wc-forward,
	.single-product .dorsi-product-notices .woocommerce-message .wc-forward {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
	}
}

.single-product .dorsi-product-notices .woocommerce-error .button:hover,
.single-product .dorsi-product-notices .woocommerce-info .button:hover,
.single-product .dorsi-product-notices .woocommerce-message .button:hover,
.single-product .dorsi-product-notices .woocommerce-error .wc-forward:hover,
.single-product .dorsi-product-notices .woocommerce-info .wc-forward:hover,
.single-product .dorsi-product-notices .woocommerce-message .wc-forward:hover {
	background: #112538 !important;
	color: #ffffff !important;
}

.single-product .dorsi-product-notice-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 0.9rem;
}

.single-product .dorsi-product-notice-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid rgba(17, 37, 56, 0.12);
	border-radius: 9999px;
	background: #eef2f7;
	color: #112538;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.single-product .dorsi-product-notice-action--primary {
	background: #112538;
	border-color: #112538;
	color: #ffffff;
}

.single-product .dorsi-product-notice-action:hover {
	background: #112538;
	border-color: #112538;
	color: #ffffff;
}

@media (max-width: 767px) {
	.single-product .dorsi-product-notices .woocommerce-error,
	.single-product .dorsi-product-notices .woocommerce-info,
	.single-product .dorsi-product-notices .woocommerce-message {
		display: grid;
		padding: 1rem 1rem 1rem 3rem;
	}

	.single-product .dorsi-product-notices .woocommerce-error .button,
	.single-product .dorsi-product-notices .woocommerce-info .button,
	.single-product .dorsi-product-notices .woocommerce-message .button,
	.single-product .dorsi-product-notices .woocommerce-error .wc-forward,
	.single-product .dorsi-product-notices .woocommerce-info .wc-forward,
	.single-product .dorsi-product-notices .woocommerce-message .wc-forward {
		width: 100%;
	}

	.single-product .dorsi-product-notice-actions {
		justify-content: stretch;
	}

	.single-product .dorsi-product-notice-action {
		width: 100%;
	}
}

body.woocommerce-checkout .woocommerce-NoticeGroup,
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
	width: 100%;
	margin-top: 0.35rem;
}

body.woocommerce-checkout #payment .place-order {
	display: block;
	padding: 2rem 0 0.25rem;
	text-align: center;
}

body.woocommerce-checkout #place_order {
	display: block;
	width: 100% !important;
	margin: 1.5rem auto 0 auto;
	min-height: 3.75rem;
	padding: 0.95rem 2rem;
	border: 0;
	border-radius: 9999px;
	background: var(--dorsi-button);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.woocommerce-checkout .woocommerce_checkout_place_order {
	margin: 1.5rem 0 0;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus {
	background: rgba(17, 37, 56, 0.92);
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
	margin-top: 1rem;
	color: rgba(17, 37, 56, 0.72);
	font-size: 0.94rem;
	line-height: 1.55;
}

@media (min-width: 1024px) {
	body.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
		align-items: start;
		column-gap: 2.5rem;
		row-gap: 2rem;
	}

	body.woocommerce-checkout .woocommerce-NoticeGroup,
	body.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.woocommerce-checkout #customer_details {
		grid-column: 1;
		grid-row: 2;
		display: grid;
		gap: 1.5rem;
	}

	body.woocommerce-checkout #order_review_heading {
		display: none;
	}

	body.woocommerce-checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
	}
}

@media (max-width: 767px) {
	body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
		grid-template-columns: 1fr;
		gap: 0.85rem;
		padding: 1.15rem 1.1rem 1.2rem;
	}

	body.woocommerce-checkout .woocommerce-billing-fields,
	body.woocommerce-checkout .woocommerce-additional-fields,
	body.woocommerce-checkout .woocommerce-checkout-review-order,
	body.woocommerce-checkout .dorsi-classic-checkout-consents {
		padding: 1.2rem;
		border-radius: 1.25rem;
	}

	body.woocommerce-checkout .form-row-first,
	body.woocommerce-checkout .form-row-last {
		width: 100%;
		float: none;
	}

	body.woocommerce-checkout .woocommerce-billing-fields > h3,
	body.woocommerce-checkout .woocommerce-additional-fields > h3,
	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout .dorsi-classic-checkout-consents > h3 {
		font-size: 1.1rem;
	}

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

	body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .form-row-last,
	body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon .button,
	body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button.button,
	body.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon button[type="submit"] {
		width: 100%;
	}
}
