/**
 * Chaya Suite — notices, basket, checkout and account finish.
 * Scoped to WooCommerce markup so theme layouts stay intact.
 */

:root {
	--cc-brand: var(--fs-color-primary, #0e4a42);
	--cc-ink: #22423a;
	--cc-soft: #f2f6f3;
	--cc-line: rgba(14, 74, 66, 0.14);
	--cc-card: #fff;
	--cc-radius: 18px;
	--cc-shadow: 0 18px 40px -30px rgba(14, 74, 66, 0.5);
}

/* --- notices ---------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper {
	position: relative;
	z-index: 2;
	clear: both;
}

.woocommerce-message.message-wrapper,
.woocommerce-info.message-wrapper,
.woocommerce-error.message-wrapper,
.woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-notices-wrapper > .woocommerce-info,
.woocommerce-notices-wrapper > .woocommerce-error {
	margin: 0 0 18px;
	padding: 0;
	border: 1px solid var(--cc-line);
	border-radius: 14px;
	background: var(--cc-soft);
	box-shadow: none;
	color: var(--cc-ink);
	text-align: left;
}

.woocommerce-error.message-wrapper,
.woocommerce-notices-wrapper > .woocommerce-error {
	border-color: rgba(176, 58, 46, 0.22);
	background: #fbf3f1;
	color: #6d2a22;
}

.message-wrapper:focus,
.message-wrapper:focus-visible,
.woocommerce-message:focus,
.woocommerce-error:focus,
.woocommerce-info:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(14, 74, 66, 0.16);
}

.message-wrapper .message-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	width: auto;
	max-width: none;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.message-wrapper .message-container > i,
.message-wrapper .message-container > .icon-checkmark,
.message-wrapper .message-container > .icon-question,
.message-wrapper .message-container > .icon-cancel {
	display: inline-grid;
	place-items: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin: 0;
	border-radius: 50%;
	background: var(--cc-brand);
	color: #fff;
	font-size: 12px;
}

.woocommerce-error .message-container > i {
	background: #b03a2e;
}

.message-wrapper .message-container a:not(.button),
.message-wrapper a.restore-item {
	color: var(--cc-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.message-wrapper .message-container .button {
	order: 9;
	margin: 0 0 0 auto;
	border-radius: 999px;
	font-size: 12px;
}

/* The basket page's own column sits 50px up into the heading; notices
   then cover the heading. Keep the heading clear. */
.woocommerce-cart .col-inner:has(> .woocommerce),
.woocommerce-checkout .col-inner:has(> .woocommerce) {
	margin-top: 0 !important;
}

/* Site custom CSS pushes both basket columns 180px down; the heading
   above already gives the space. */
.woocommerce-cart .woocommerce .row > .col.cart-auto-refresh,
.woocommerce-cart .woocommerce .row > .cart-collaterals.col {
	margin-top: 0;
}

/* --- empty basket ----------------------------------------------------- */

.woocommerce-cart .woocommerce .text-center.pt.pb {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 36px 24px 40px !important;
	border: 1px solid var(--cc-line);
	border-radius: 24px;
	background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--cc-soft) 100%);
	box-shadow: var(--cc-shadow);
	text-align: center;
}

.chaya-empty-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.chaya-empty-cart__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 8px rgba(14, 74, 66, 0.06), 0 14px 30px -18px rgba(14, 74, 66, 0.6);
	color: var(--cc-brand);
	animation: chaya-breathe 4.8s ease-in-out infinite;
}

.chaya-empty-cart__icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.chaya-empty-cart__title {
	margin: 0 0 4px;
	color: var(--cc-brand);
	font-size: 1.45em;
}

.woocommerce-cart .text-center.pt.pb .cart-empty,
.woocommerce-cart .text-center.pt.pb .woocommerce-info {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	background: none;
	color: #5b6f68;
	font-size: 15px;
}

.woocommerce-cart .text-center.pt.pb .cart-empty .message-container {
	justify-content: center;
	padding: 0;
	text-align: center;
}

.woocommerce-cart .text-center.pt.pb .cart-empty .message-container > i {
	display: none;
}

.woocommerce-cart .return-to-shop {
	margin: 0;
}

.woocommerce-cart .return-to-shop .button {
	margin: 0;
	padding: 0 26px;
	border-radius: 999px;
	line-height: 46px;
	min-height: 46px;
}

.chaya-empty-cart__hint {
	margin: 18px 0 0;
	color: #5b6f68;
	font-size: 14px;
}

.chaya-empty-cart__hint a {
	color: var(--cc-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@keyframes chaya-breathe {
	50% {
		box-shadow: 0 0 0 14px rgba(14, 74, 66, 0.03), 0 14px 30px -18px rgba(14, 74, 66, 0.6);
	}
}

/* --- basket with items ------------------------------------------------ */

.woocommerce-cart .woocommerce-cart-form .cart-wrapper,
.woocommerce-cart .cart-collaterals .cart-sidebar,
.woocommerce-cart .cart_totals {
	text-align: left;
}

.woocommerce-cart .woocommerce-cart-form {
	padding: 6px 20px 16px;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	box-shadow: var(--cc-shadow);
}

.woocommerce-cart .shop_table.cart th {
	color: var(--cc-brand);
	font-size: 11px;
	letter-spacing: 0.12em;
}

.woocommerce-cart .shop_table.cart td {
	vertical-align: middle;
}

.woocommerce-cart .shop_table .product-thumbnail img {
	border-radius: 12px;
	background: var(--cc-soft);
}

.woocommerce-cart .shop_table .product-name a {
	color: var(--cc-ink);
	font-weight: 500;
	line-height: 1.35;
}

.woocommerce-cart .shop_table.cart td.product-name {
	min-width: 130px;
}

/* Mid-size screens: the unit price repeats the subtotal for single items,
   and its column squeezes the product name onto four lines. */
@media (min-width: 850px) and (max-width: 1239px) {
	.woocommerce-cart .woocommerce-cart-form {
		padding: 4px 14px 14px;
	}

	.woocommerce-cart .shop_table.cart th.product-price,
	.woocommerce-cart .shop_table.cart td.product-price {
		display: none;
	}

	.woocommerce-cart .shop_table.cart td.product-thumbnail {
		width: 64px;
	}
}

.woocommerce-cart .shop_table td.product-remove a.remove {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--cc-line);
	border-radius: 50%;
	color: #8a9a95 !important;
	font-size: 17px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.woocommerce-cart .shop_table td.product-remove a.remove:hover {
	border-color: #b03a2e;
	background: #b03a2e;
	color: #fff !important;
}

.woocommerce .quantity {
	overflow: hidden;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	background: #fff;
}

.woocommerce .quantity input.qty,
.woocommerce .quantity .button {
	border: 0 !important;
	background: transparent;
	box-shadow: none;
}

.woocommerce-cart .cart-collaterals .cart-sidebar,
.woocommerce-cart .cart-collaterals > .col-inner {
	padding: 22px 22px 18px;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	background: linear-gradient(180deg, #fff 0%, var(--cc-soft) 100%);
	box-shadow: var(--cc-shadow);
}

.woocommerce-cart .cart_totals .shop_table th {
	color: var(--cc-ink);
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 52px;
	border-radius: 999px;
	font-size: 15px;
	letter-spacing: 0.04em;
	box-shadow: 0 14px 30px -16px rgba(14, 74, 66, 0.8);
}

.woocommerce-cart .coupon input.input-text {
	border-radius: 999px;
}

.woocommerce-cart .coupon .button,
.woocommerce-cart button[name="update_cart"] {
	border-radius: 999px;
}

/* --- checkout --------------------------------------------------------- */

.woocommerce-checkout form.checkout .col-inner.has-border,
.woocommerce-checkout #order_review_heading + #order_review,
.woocommerce-checkout .checkout-sidebar {
	border: 1px solid var(--cc-line) !important;
	border-radius: var(--cc-radius);
	background: linear-gradient(180deg, #fff 0%, var(--cc-soft) 100%);
	box-shadow: var(--cc-shadow);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
	color: var(--cc-brand);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.woocommerce-checkout form.checkout .input-text,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout .select2-container .select2-selection {
	min-height: 46px;
	border-color: var(--cc-line);
	border-radius: 12px;
	box-shadow: none;
}

.woocommerce-checkout form.checkout .input-text:focus,
.woocommerce-checkout form.checkout select:focus {
	border-color: var(--cc-brand);
	box-shadow: 0 0 0 3px rgba(14, 74, 66, 0.12);
}

.woocommerce-checkout #payment {
	border-radius: 14px;
	background: #fff;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 10px 4px;
}

/* --- account ---------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	background: #fff;
	box-shadow: var(--cc-shadow);
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--cc-ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--cc-soft);
	color: var(--cc-brand);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	font-weight: 600;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
	padding: 26px;
	border: 1px solid var(--cc-line) !important;
	border-radius: var(--cc-radius);
	background: #fff;
	box-shadow: var(--cc-shadow);
}

.woocommerce-account .woocommerce-orders-table {
	overflow: hidden;
	border-radius: 14px;
}

/* --- phones ----------------------------------------------------------- */

@media (max-width: 849px) {
	.woocommerce-cart .woocommerce-cart-form {
		padding: 4px 12px 12px;
	}

	.woocommerce-cart .cart-collaterals .cart-sidebar,
	.woocommerce-cart .cart-collaterals > .col-inner {
		margin-top: 18px;
		padding: 18px 16px 14px;
	}

	.woocommerce-cart .woocommerce .text-center.pt.pb {
		padding: 28px 18px 30px !important;
	}

	.message-wrapper .message-container {
		padding: 11px 13px;
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chaya-empty-cart__icon {
		animation: none;
	}
}
