/* ==========================================================================
   Kantola Seeds — store styles
   WooCommerce's own stylesheets are not loaded (see inc/assets.php), so this
   file covers every store element: notices, buttons, forms, the shop archive,
   the product page, the cart, and the frames of checkout and My Account.
   ========================================================================== */

/* === Notices ============================================================= */

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 18px;
	background: var(--k-mint);
	color: var(--k-deep);
	list-style: none;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background: var(--k-sage);
	color: var(--k-ink-soft);
}

.woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
	background: var(--k-danger-surface);
	color: var(--k-danger);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	min-height: 40px;
	padding-inline: 18px;
	font-size: 14px;
}

.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus {
	outline: none;
}

.woocommerce-store-notice,
p.demo_store {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 50;
	margin: 0;
	padding: 12px 20px;
	background: var(--k-deep);
	color: #fff;
	text-align: center;
}

.woocommerce-store-notice a,
p.demo_store a {
	color: #fff;
}

/* === Buttons ============================================================= */

.woocommerce .button,
.woocommerce-page .button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--k-pill);
	background: var(--k-green);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.woocommerce .button:hover,
.woocommerce-page .button:hover {
	background: var(--k-deep);
	color: #fff;
}

.woocommerce .button.alt,
.woocommerce-page .button.alt,
.woocommerce #place_order {
	background: var(--k-amber);
	color: var(--k-ink);
}

.woocommerce .button.alt:hover,
.woocommerce-page .button.alt:hover,
.woocommerce #place_order:hover {
	background: var(--k-amber-hover);
	color: var(--k-ink);
}

.woocommerce .button:disabled,
.woocommerce .button.disabled,
.woocommerce .button[aria-disabled='true'] {
	opacity: 0.5;
	cursor: not-allowed;
}

.woocommerce .button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.woocommerce .kantola-card-add,
.woocommerce-page .kantola-card-add {
	width: 44px;
	min-height: 0;
	height: 44px;
	padding: 0;
}

/* === Form rows =========================================================== */

.woocommerce form .form-row {
	display: block;
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.woocommerce form .form-row .required {
	color: var(--k-danger);
	text-decoration: none;
}

.woocommerce form .form-row .optional {
	color: var(--k-muted);
	font-weight: 400;
}

.woocommerce form .form-row label.checkbox,
.woocommerce form .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
	border-color: var(--k-danger);
}

.woocommerce form .form-row .checkout-inline-error-message {
	margin-top: 6px;
	color: var(--k-danger);
	font-size: 14px;
}

.woocommerce form .password-input {
	position: relative;
	display: block;
}

.woocommerce form .show-password-input {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--k-pill);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356634f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.600-7 10-7 10 7 10 7-3.600 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center no-repeat;
}

.woocommerce-password-strength {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--k-sage);
	font-size: 14px;
	font-weight: 600;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
	background: var(--k-danger-surface);
	color: var(--k-danger);
}

.woocommerce-password-hint,
.woocommerce form .form-row .description,
.woocommerce form em {
	color: var(--k-muted);
	font-size: 14px;
	font-style: normal;
}

.woocommerce form fieldset {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border: 0;
	border-top: 1px solid var(--k-border);
}

.woocommerce form legend {
	padding: 0;
	font-family: var(--k-display);
	font-size: 19px;
	font-weight: 700;
}

.select2-container--default .select2-selection--single {
	height: 52px;
	border: 1px solid var(--k-border-strong);
	border-radius: var(--k-radius-sm);
	background: var(--k-field);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 44px 0 16px;
	color: var(--k-ink);
	line-height: 50px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 10px;
	height: 50px;
}

.select2-dropdown {
	border-color: var(--k-border-strong);
	border-radius: var(--k-radius-sm);
	overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--k-green);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	min-height: 44px;
}

/* === Quantity stepper ==================================================== */

.quantity {
	display: inline-flex;
	align-items: center;
	height: 56px;
	padding: 0 6px;
	border: 1px solid var(--k-border-strong);
	border-radius: var(--k-pill);
	background: var(--k-surface);
}

.quantity:has(input[type='hidden']) {
	display: none;
}

.quantity input.qty {
	width: 40px;
	min-height: 0;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.kantola-qty-button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--k-pill);
	background: transparent;
	color: var(--k-ink);
	font-size: 22px;
	line-height: 1;
}

.kantola-qty-button:hover {
	background: var(--k-ground);
}

/* === Shop archive ======================================================== */

.kantola-shop__section {
	padding-top: 40px;
}

.kantola-shop__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}

.kantola-filters {
	flex: 1 1 248px;
	max-width: 100%;
}

.kantola-shop__results {
	flex: 999 1 560px;
	min-width: 0;
}

.kantola-filters__toggle {
	display: none;
	width: 100%;
}

.kantola-filters__panel {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.kantola-filters__group h2 {
	margin-bottom: 14px;
	font-size: 20px;
	letter-spacing: 0;
}

.kantola-filters__categories {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
}

.kantola-filters__categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 12px;
	color: var(--k-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.kantola-filters__categories a span:last-child {
	font-size: 14px;
	font-weight: 500;
}

.kantola-filters__categories a:hover {
	background: #ebefe2;
}

.kantola-filters__categories a.is-active {
	background: var(--k-mint);
	color: var(--k-deep);
}

.kantola-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.widget_price_filter .price_slider {
	position: relative;
	height: 4px;
	margin: 10px 11px 26px;
	border-radius: 4px;
	background: var(--k-border-strong);
}

.widget_price_filter .ui-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 4px;
	background: var(--k-green);
}

.widget_price_filter .ui-slider-handle {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 3px solid var(--k-green);
	border-radius: var(--k-pill);
	background: #fff;
	cursor: ew-resize;
	touch-action: none;
}

.widget_price_filter .price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
}

.widget_price_filter .price_slider_amount input[type='text'] {
	flex: 1 1 90px;
	min-height: 44px;
}

.widget_price_filter .price_slider_amount .button {
	order: 2;
	min-height: 44px;
	padding-inline: 20px;
	border-color: var(--k-green);
	background: transparent;
	color: var(--k-green);
	font-size: 14px;
}

.widget_price_filter .price_slider_amount .button:hover {
	background: var(--k-green);
	color: #fff;
}

.widget_price_filter .clear {
	display: none;
}

.kantola-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.kantola-toolbar__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.woocommerce-result-count {
	color: var(--k-muted);
	font-size: 15px;
}

.kantola-per-page {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
}

.kantola-per-page > span {
	margin-right: 4px;
	color: var(--k-muted);
}

.kantola-per-page a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: var(--k-pill);
	color: var(--k-ink);
	font-weight: 600;
	text-decoration: none;
}

.kantola-per-page a:hover {
	background: #ebefe2;
}

.kantola-per-page a.is-active {
	background: var(--k-green);
	color: #fff;
	font-weight: 700;
}

.woocommerce-ordering select {
	width: auto;
	min-height: 44px;
	border-radius: var(--k-pill);
	background-color: var(--k-surface);
	font-size: 14px;
	font-weight: 600;
}

.kantola-view-switch {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--k-border-strong);
	border-radius: var(--k-pill);
	background: var(--k-surface);
}

.kantola-view-switch button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--k-pill);
	background: transparent;
	color: var(--k-ink);
}

.kantola-view-switch button[aria-pressed='true'] {
	background: var(--k-green);
	color: #fff;
}

.kantola-shop__results ul.products {
	grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}

.kantola-shop__results ul.products.is-list {
	grid-template-columns: 1fr;
}

.is-list .kantola-product-card {
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

.is-list .kantola-product-card__media {
	flex: 0 0 min(220px, 38%);
}

.is-list .kantola-product-card__media img {
	height: 100%;
}

.is-list .kantola-product-card__body {
	padding: 10px 10px 10px 0;
}

.is-list .kantola-product-card__title {
	min-height: 0;
}

.woocommerce-no-products-found .woocommerce-info {
	margin: 0;
}

@media (max-width: 860px) {
	.kantola-shop__layout {
		gap: 24px;
	}

	.kantola-filters__toggle {
		display: inline-flex;
	}

	.kantola-filters__panel {
		display: none;
		margin-top: 24px;
	}

	.kantola-filters__panel.is-open {
		display: flex;
	}

	.kantola-view-switch {
		display: none;
	}
}

/* === Product page ======================================================== */

.kantola-product-page {
	padding: 16px 0 88px;
}

.kantola-product-page .kantola-breadcrumb {
	margin-bottom: 24px;
}

.kantola-product-page div.product {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 32px 56px;
}

.kantola-product-page div.product > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.kantola-product-page div.product > .kantola-product-gallery {
	grid-column: 1;
}

.kantola-product-page div.product > .summary {
	grid-column: 2;
}

@media (max-width: 860px) {
	.kantola-product-page div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.kantola-product-page div.product > .kantola-product-gallery,
	.kantola-product-page div.product > .summary {
		grid-column: 1;
	}
}

.kantola-product-gallery {
	position: relative;
}

.kantola-product-gallery .kantola-badge {
	top: 20px;
	left: 20px;
	padding: 6px 12px;
	font-size: 13px;
}

.woocommerce-product-gallery {
	position: relative;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery > .flex-viewport,
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border: 1px solid var(--k-border);
	border-radius: var(--k-radius-lg);
	background: var(--k-surface);
}

/* Padding sits on each slide: on the viewport it would expose the next slide. */
.woocommerce-product-gallery__image {
	padding: 32px;
}

.woocommerce-product-gallery__image a {
	display: block;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border: 1px solid var(--k-border);
	border-radius: var(--k-pill);
	background: var(--k-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2315240f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.500-3.500M11 8v6M8 11h6'/%3E%3C/svg%3E") center no-repeat;
	text-indent: -999px;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	width: 88px;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 6px;
	border: 2px solid var(--k-border);
	border-radius: 16px;
	background: var(--k-surface);
	object-fit: cover;
	cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
	border-color: var(--k-green);
}

.kantola-product-page .summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kantola-product-page .summary > .kantola-eyebrow {
	align-self: flex-start;
	margin-bottom: -10px;
	text-decoration: none;
}

.kantola-product-page .product_title {
	font-size: clamp(34px, 3.6vw, 50px);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.kantola-product-tagline {
	margin-top: -10px;
	color: var(--k-muted);
	font-size: 17px;
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.woocommerce-product-rating a {
	color: var(--k-muted);
}

.kantola-product-page .summary .price {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0 12px;
	font-family: var(--k-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.kantola-product-page .summary .price ins {
	text-decoration: none;
}

.kantola-product-page .summary .price del {
	color: var(--k-muted);
	font-family: var(--k-body);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
}

.woocommerce-product-details__short-description {
	color: var(--k-ink-soft);
}

.woocommerce-product-details__short-description > * + * {
	margin-top: 12px;
}

.kantola-quick-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
	gap: 10px;
}

.kantola-quick-facts div {
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--k-sage);
}

.kantola-quick-facts dt {
	color: var(--k-ink-soft);
	font-size: 13px;
}

.kantola-quick-facts dd {
	font-weight: 700;
}

.kantola-product-page form.cart:not(.variations_form):not(.grouped_form),
.kantola-product-page .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.kantola-product-page .single_add_to_cart_button {
	flex: 1 1 200px;
	min-height: 56px;
	font-size: 17px;
}

.kantola-product-page .single_add_to_cart_button::before {
	content: '';
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kantola-product-page .summary .kantola-wishlist-toggle {
	width: 56px;
	height: 56px;
}

.kantola-product-page table.variations {
	width: 100%;
	margin-bottom: 16px;
	border-collapse: collapse;
}

.kantola-product-page table.variations th,
.kantola-product-page table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.kantola-product-page table.variations th {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.kantola-product-page table.variations td {
	margin-bottom: 14px;
}

.kantola-product-page .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
}

.kantola-product-page .woocommerce-variation {
	margin-bottom: 16px;
}

.kantola-product-page .stock {
	font-weight: 600;
	color: var(--k-leaf);
}

.kantola-product-page .stock.out-of-stock {
	color: var(--k-danger);
}

.kantola-product-page table.group_table {
	width: 100%;
	margin-bottom: 16px;
	border-collapse: collapse;
}

.kantola-product-page table.group_table td {
	padding: 10px 8px 10px 0;
	border-bottom: 1px solid var(--k-border);
	vertical-align: middle;
}

.kantola-product-note {
	color: var(--k-muted);
	font-size: 14px;
}

.product_meta {
	padding-top: 20px;
	border-top: 1px solid var(--k-border);
	font-size: 15px;
}

.kantola-product-meta {
	display: grid;
	gap: 8px;
}

.kantola-product-meta > div {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
}

.kantola-product-meta dt {
	color: var(--k-muted);
}

.kantola-product-meta__share {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

/* Description, specifications, reviews */

.kantola-product-details {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-top: 40px;
}

.kantola-anchor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--k-border);
}

.kantola-anchor-nav a {
	padding: 11px 20px;
	border-radius: var(--k-pill);
	color: var(--k-ink);
	font-weight: 600;
	text-decoration: none;
}

.kantola-anchor-nav a:hover {
	background: #ebefe2;
}

.kantola-anchor-nav a.is-active {
	background: var(--k-green);
	color: #fff;
	font-weight: 700;
}

.kantola-product-details__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 56px;
}

.kantola-product-description {
	flex: 999 1 560px;
	min-width: 0;
	max-width: none;
	font-size: 16px;
}

.kantola-product-description > * {
	max-width: 68ch;
}

.kantola-product-description > h2:first-child {
	margin-top: 0;
}

/* Ordered lists in a description read as numbered growing steps. */
.kantola-product-description ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: none;
	padding: 0;
	list-style: none;
	counter-reset: kantola-step;
}

.kantola-product-description ol > li {
	position: relative;
	margin: 0;
	padding: 18px 20px 18px 72px;
	border: 1px solid var(--k-border);
	border-radius: 18px;
	background: var(--k-surface);
	font-size: 15px;
	counter-increment: kantola-step;
}

.kantola-product-description ol > li::before {
	content: counter(kantola-step);
	position: absolute;
	top: 16px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--k-pill);
	background: var(--k-mint);
	color: var(--k-deep);
	font-weight: 700;
}

.kantola-product-description ol > li strong:first-child {
	display: block;
	color: var(--k-ink);
	font-size: 16px;
}

.kantola-spec-sheet {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: var(--k-radius-lg);
	background: var(--k-deep);
	color: var(--k-on-dark);
}

.kantola-spec-sheet h2 {
	color: #fff;
	font-size: 24px;
}

.kantola-spec-sheet table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.kantola-spec-sheet th,
.kantola-spec-sheet td {
	padding: 12px 0;
	border-top: 1px solid var(--k-dark-border);
	vertical-align: top;
}

.kantola-spec-sheet th {
	padding-right: 16px;
	color: var(--k-on-dark-muted);
	font-weight: 400;
	text-align: left;
}

.kantola-spec-sheet td {
	color: #fff;
	font-weight: 600;
	text-align: right;
}

.kantola-spec-sheet a {
	color: #fff;
}

#reviews.woocommerce-Reviews {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 28px;
	border: 1px solid var(--k-border);
	border-radius: 24px;
	background: var(--k-surface);
}

.woocommerce-Reviews-title,
#review_form .comment-reply-title {
	display: block;
	margin-bottom: 12px;
	font-family: var(--k-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

.woocommerce-Reviews .woocommerce-noreviews {
	margin: 0;
	padding: 0;
	background: none;
	color: var(--k-muted);
}

.woocommerce-Reviews ol.commentlist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
}

.woocommerce-Reviews .comment_container {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--k-border);
	border-radius: 18px;
}

.woocommerce-Reviews .comment_container .avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--k-pill);
}

.woocommerce-Reviews .comment-text {
	flex: 1;
	min-width: 0;
}

.woocommerce-Reviews .comment-text .meta {
	margin-block: 4px 8px;
	color: var(--k-muted);
	font-size: 14px;
}

#review_form .comment-respond {
	padding: 0;
	border: 0;
	border-radius: 0;
}

#review_form .comment-form-rating label {
	margin-bottom: 4px;
}

p.stars {
	line-height: 1;
}

p.stars a {
	position: relative;
	display: inline-block;
	width: 32px;
	height: 32px;
	overflow: hidden;
	color: transparent;
	font-size: 28px;
	text-decoration: none;
}

p.stars a::before {
	content: '★';
	position: absolute;
	inset: 0;
	color: #d99a16;
	line-height: 32px;
	text-align: center;
}

p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
	color: var(--k-border-strong);
}

p.stars:not(.selected):not(:hover) a::before {
	color: var(--k-border-strong);
}

.kantola-product-page section.related,
.kantola-product-page section.up-sells {
	margin-top: 48px;
}

.kantola-product-page section.related > h2,
.kantola-product-page section.up-sells > h2 {
	margin-bottom: 28px;
	font-size: clamp(30px, 3.2vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* === Cart ================================================================ */

.kantola-cart {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	align-items: start;
	gap: 28px 32px;
}

/* The form's children join the grid so the notice can span both columns
   while staying inside the form WooCommerce refreshes over AJAX. */
.kantola-cart > .woocommerce-cart-form {
	display: contents;
}

.kantola-cart .kantola-min-order {
	grid-column: 1 / -1;
}

.kantola-cart__main {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.kantola-cart > .cart-collaterals {
	grid-column: 2;
	min-width: 0;
}

@media (max-width: 960px) {
	.kantola-cart {
		grid-template-columns: minmax(0, 1fr);
	}

	.kantola-cart > .cart-collaterals {
		grid-column: 1;
	}
}

.kantola-min-order {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	padding: 22px 26px;
	border: 1px solid var(--k-notice-border);
	border-radius: 24px;
	background: var(--k-notice);
	color: var(--k-notice-ink);
}

.kantola-min-order__copy {
	flex: 999 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
}

.kantola-min-order__title {
	color: var(--k-ink);
	font-family: var(--k-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.kantola-min-order__meter {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kantola-min-order__bar {
	height: 12px;
	overflow: hidden;
	border-radius: var(--k-pill);
	background: #f1dda0;
}

.kantola-min-order__bar span {
	display: block;
	height: 100%;
	border-radius: var(--k-pill);
	background: var(--k-green);
}

.kantola-min-order__scale {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
}

.kantola-cart-items {
	padding: 8px 24px;
	border: 1px solid var(--k-border);
	border-radius: 24px;
	background: var(--k-surface);
	list-style: none;
}

.kantola-cart-items .cart_item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding: 18px 0;
}

.kantola-cart-items .cart_item + .cart_item {
	border-top: 1px solid var(--k-border);
}

.kantola-cart-items .product-thumbnail img {
	display: block;
	width: 104px;
	height: 104px;
	border-radius: 16px;
	object-fit: cover;
}

.kantola-cart-items .product-name {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.kantola-cart-items__name {
	color: var(--k-ink);
	font-family: var(--k-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.kantola-cart-items__meta,
.kantola-cart-items dl.variation {
	color: var(--k-muted);
	font-size: 14px;
}

.kantola-cart-items dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
}

.kantola-cart-items dl.variation dt {
	font-weight: 600;
}

.kantola-cart-items .remove {
	display: inline-block;
	margin-top: 4px;
	padding: 6px 0;
	color: var(--k-danger);
	font-size: 14px;
	font-weight: 600;
}

.kantola-cart-items .quantity {
	height: 48px;
	padding: 0 2px;
}

.kantola-cart-items .kantola-qty-button {
	font-size: 20px;
}

.kantola-cart-items .product-subtotal {
	min-width: 80px;
	font-size: 20px;
	font-weight: 700;
	text-align: right;
}

.kantola-cart__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.kantola-cart__actions .coupon {
	flex: 0 1 380px;
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 6px 0 20px;
	border: 1px solid var(--k-border-strong);
	border-radius: var(--k-pill);
	background: var(--k-surface);
}

.kantola-cart__actions .coupon .input-text {
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.kantola-cart__actions .coupon .button {
	min-height: 40px;
	padding-inline: 18px;
	background: var(--k-mint);
	color: var(--k-deep);
	font-size: 14px;
}

.kantola-cart__actions .coupon .button:hover {
	background: #cfe0b8;
	color: var(--k-deep);
}

.woocommerce .kantola-cart__update {
	min-height: 52px;
	border-color: var(--k-border-strong);
	background: transparent;
	color: var(--k-ink);
}

.woocommerce .kantola-cart__update:hover {
	border-color: var(--k-green);
	background: transparent;
	color: var(--k-ink);
}

/* Cart totals */

.kantola-cart-totals {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border: 1px solid var(--k-border);
	border-radius: 24px;
	background: var(--k-surface);
}

.kantola-cart-totals h2 {
	font-size: 26px;
}

.kantola-cart-totals table,
.kantola-cart-totals tbody {
	display: block;
	width: 100%;
}

.kantola-cart-totals tr {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	border-top: 1px solid var(--k-border);
}

.kantola-cart-totals tr:first-child {
	padding-top: 0;
	border-top: 0;
}

.kantola-cart-totals tr:last-child {
	padding-bottom: 0;
}

.woocommerce .kantola-cart-totals table.shop_table th,
.woocommerce .kantola-cart-totals table.shop_table td {
	padding: 0;
	border: 0;
}

.kantola-cart-totals th {
	color: var(--k-muted);
	font-weight: 400;
	text-align: left;
	white-space: nowrap;
}

.woocommerce .kantola-cart-totals table.shop_table td {
	font-weight: 700;
	text-align: right;
}

.kantola-cart-totals .order-total {
	align-items: baseline;
}

.kantola-cart-totals .order-total th {
	color: var(--k-ink);
	font-weight: 700;
}

.kantola-cart-totals .order-total td strong {
	font-family: var(--k-display);
	font-size: 32px;
	letter-spacing: -0.02em;
}

.kantola-cart-totals .includes_tax {
	display: block;
	color: var(--k-muted);
	font-size: 13px;
	font-weight: 400;
}

.woocommerce ul#shipping_method {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
}

.woocommerce ul#shipping_method li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.woocommerce-shipping-destination,
.woocommerce-shipping-contents {
	max-width: 240px;
	margin: 4px 0 0 auto;
	color: var(--k-muted);
	font-size: 14px;
	font-weight: 400;
}

.woocommerce-shipping-destination strong {
	font-weight: 400;
}

.shipping-calculator-button,
.woocommerce-remove-coupon {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
}

.shipping-calculator-form {
	margin-top: 12px;
	text-align: left;
}

.shipping-calculator-form p {
	margin-bottom: 10px;
}

.wc-proceed-to-checkout {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
}

.woocommerce .checkout-button.is-locked,
.woocommerce .checkout-button.is-locked:hover {
	background: #e3e7dc;
	color: #4a5744;
	opacity: 1;
	cursor: not-allowed;
}

.kantola-min-order-hint {
	color: var(--k-muted);
	font-size: 14px;
	text-align: center;
}

.kantola-cart-suggestions {
	margin-top: 72px;
}

.kantola-cart-suggestions .kantola-heading {
	margin-bottom: 28px;
}

.woocommerce .blockUI.blockOverlay {
	border-radius: 24px;
	background: rgba(246, 247, 242, 0.7) !important;
	opacity: 1 !important;
}

@media (max-width: 560px) {
	.kantola-cart-items {
		padding-inline: 16px;
	}

	.kantola-cart-items .product-thumbnail img {
		width: 80px;
		height: 80px;
	}

	.kantola-cart-items .product-name {
		flex-basis: 150px;
	}

	.kantola-cart-items .product-subtotal {
		flex: 1;
	}
}

/* === Checkout frame ====================================================== */

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
	margin-bottom: 0;
}

form.checkout_coupon,
form.woocommerce-form-login,
form.woocommerce-form-register,
form.woocommerce-ResetPassword {
	max-width: 520px;
	margin: 0 0 24px;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--k-border);
	border-radius: 24px;
	background: var(--k-surface);
}

form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

form.checkout_coupon > p:first-child {
	flex-basis: 100%;
	color: var(--k-muted);
}

form.checkout_coupon .form-row {
	flex: 1 1 200px;
	margin: 0;
}

form.checkout_coupon .form-row-last {
	flex: 0 0 auto;
}

form.checkout_coupon .clear {
	display: none;
}

.kantola-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
	align-items: start;
	gap: 24px;
}

.kantola-checkout > * {
	grid-column: 1;
	min-width: 0;
}

.kantola-checkout > .kantola-checkout__review {
	grid-column: 2;
	grid-row: 1 / span 4;
	position: sticky;
	top: 24px;
}

@media (max-width: 960px) {
	.kantola-checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.kantola-checkout > .kantola-checkout__review {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.woocommerce form .form-row-wide,
.woocommerce form .form-row.notes {
	grid-column: 1 / -1;
}

@media (max-width: 560px) {
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout-payment .payment_box {
	color: var(--k-ink-soft);
	font-size: 14px;
}

.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
	color: var(--k-muted);
	font-size: 14px;
}

.woocommerce .woocommerce-checkout #place_order {
	width: 100%;
	min-height: 56px;
}

/* Order received */

.woocommerce-order > .woocommerce-notice,
.woocommerce-thankyou-order-received {
	margin-bottom: 24px;
	padding: 20px 24px;
	border-radius: 20px;
	background: var(--k-mint);
	color: var(--k-deep);
	font-family: var(--k-display);
	font-size: 22px;
	font-weight: 600;
}

ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 12px;
	margin-bottom: 32px;
	list-style: none;
}

ul.woocommerce-order-overview li {
	padding: 16px 18px;
	border: 1px solid var(--k-border);
	border-radius: 18px;
	background: var(--k-surface);
	color: var(--k-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	color: var(--k-ink);
	font-size: 17px;
}

/* === My Account frame ==================================================== */

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	align-items: start;
	gap: 32px 40px;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 12px;
	color: var(--k-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover {
	background: #ebefe2;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--k-mint);
	color: var(--k-deep);
}

.woocommerce-MyAccount-content {
	min-width: 0;
}

.woocommerce-MyAccount-content > p {
	margin-bottom: 16px;
}

@media (max-width: 860px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.woocommerce-MyAccount-navigation a {
		border: 1px solid var(--k-border);
		border-radius: var(--k-pill);
		background: var(--k-surface);
	}
}

.woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 24px;
	max-width: 1064px;
}

.woocommerce-account .u-columns form {
	max-width: none;
	margin: 0;
}

.woocommerce-account .woocommerce > h2,
.woocommerce-account .u-column1 > h2,
.woocommerce-account .u-column2 > h2 {
	margin-bottom: 16px;
	font-size: 28px;
}

.woocommerce-form-login__rememberme {
	margin-right: 16px;
}

.woocommerce-LostPassword {
	margin-top: 12px;
	font-size: 14px;
}

.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Generic WooCommerce tables (downloads, payment methods, order pay) */

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 12px 8px 12px 0;
	border-bottom: 1px solid var(--k-border);
	text-align: left;
}

.woocommerce table.shop_table th:last-child,
.woocommerce table.shop_table td:last-child {
	padding-right: 0;
	text-align: right;
}

.woocommerce address {
	font-style: normal;
}

/* === Order tracking results ============================================== */

.kantola-tracking-page .woocommerce > p,
.kantola-tracking-page .woocommerce .order-info {
	color: var(--k-ink-soft);
}

.kantola-tracking-page .woocommerce mark {
	background: none;
	color: var(--k-ink);
	font-weight: 700;
}

.kantola-tracking-page .woocommerce h2 {
	margin-block: 24px 12px;
	font-size: 22px;
}
