/*
Theme Name: Ninfea Theme
Theme URI: https://ninfeastore.com
Author: Ninfea
Author URI: https://ninfeastore.com
Description: Custom WordPress theme bootstrap for the Ninfea editorial commerce project.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: ninfea
*/

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-text-primary);
	font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	font-synthesis: none;
}

a,
button,
input,
select,
textarea,
summary {
	touch-action: manipulation;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

label {
	display: block;
	color: var(--color-text-primary);
	line-height: 1.5;
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

legend {
	padding: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: var(--focus-ring-width) solid var(--focus-ring-color);
	outline-offset: var(--focus-ring-offset);
	box-shadow: var(--focus-ring-shadow);
}

textarea.n-input {
	min-height: 8rem;
	padding-block: var(--space-16);
	resize: vertical;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.screen-reader-text:active {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	white-space: normal;
}

.skip-link {
	position: absolute;
	top: var(--space-16);
	left: var(--space-16);
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	padding: var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
	color: var(--color-text-primary);
	text-decoration: none;
}

.site-main {
	display: block;
}

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	box-sizing: border-box;
	width: min(calc(100% - 2rem), 72rem);
	margin: 1rem auto !important;
	padding: 1rem 1.25rem !important;
	border: 1px solid var(--color-brand-primary) !important;
	border-left-width: 3px !important;
	border-radius: 0 !important;
	background: var(--color-surface-alt) !important;
	color: var(--color-text-primary) !important;
	box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--color-brand-primary) !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.wc-block-components-notice-banner .button {
	float: right;
	margin-left: 1rem;
	color: var(--color-brand-primary) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* WooCommerce feedback: icon, copy and action stay in separate layout columns. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	position: relative;
	display: grid !important;
	grid-template-columns: 1.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem 1rem;
	min-height: 4.5rem;
	padding: 1rem 1.25rem !important;
	border: 1px solid var(--color-border) !important;
	border-left: 3px solid var(--color-brand-primary) !important;
	background: var(--color-background) !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: static !important;
	content: "" !important;
	box-sizing: border-box;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 !important;
	border: 1.5px solid var(--color-brand-primary);
	border-radius: 50%;
	background: transparent;
}

.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
	content: none !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.wc-block-components-notice-banner .button {
	float: none !important;
	grid-column: 3;
	margin: 0 !important;
	padding: 0.7rem 1rem !important;
	border: 0 !important;
	background: var(--color-brand-primary) !important;
	color: var(--color-text-inverse) !important;
	text-decoration: none !important;
}

@media (max-width: 600px) {
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error,
	.wc-block-components-notice-banner {
		grid-template-columns: 1.25rem minmax(0, 1fr);
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button,
	.wc-block-components-notice-banner .button {
		grid-column: 1 / -1;
		width: 100%;
	}
}

.woocommerce-message::before,
.woocommerce-info::before {
	display: grid;
	place-items: center;
	content: "✓" !important;
	color: var(--color-brand-primary) !important;
	font-family: inherit !important;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.woocommerce-error::before {
	display: grid;
	place-items: center;
	content: "!" !important;
	color: var(--color-brand-secondary) !important;
	font-family: inherit !important;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

/* Success state for products added to cart. */
.woocommerce-message {
	border-color: #afc5a5 !important;
	border-left-color: #66805d !important;
	background: #e5efdf !important;
}

.woocommerce-message::before {
	border-color: #66805d;
	color: #4f6947 !important;
}

@media (max-width: 600px) {
	.woocommerce-message .button {
		justify-self: start;
		width: auto;
		min-width: 7.5rem;
		max-width: 11rem;
		padding-inline: 1.25rem !important;
	}
}
