/* Rooted & Still theme additions. */

[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------- admin bar */
body.admin-bar .site-header {
	top: 32px;
}
body.admin-bar #theme-cart-drawer.theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
	body.admin-bar #theme-cart-drawer.theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* ---------------------------------------------------------- pointer cursor */
a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
select,
summary,
label[for],
.theme-product-thumb,
.theme-attr-pill,
.theme-qty-minus,
.theme-qty-plus,
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-cart-qty-update],
[data-menu-toggle],
[data-badge-toggle],
[data-badge-close],
[data-back-to-top],
[data-shop-cat],
[data-shop-more],
[data-theme-anchor] {
	cursor: pointer;
}

/* --------------------------------------------------------------- icon svg */
svg[aria-hidden="true"] {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	overflow: visible;
}

/* ---------------------------------------------------------------- identity */
.site-logo-img {
	height: var(--logo-height, 36px) !important;
	width: auto !important;
	display: block;
}
.site-logo-text {
	line-height: var(--logo-height, 36px);
	display: block;
}

/* -------------------------------------------------------------- navigation */
.theme-nav-link {
	position: relative;
	display: inline-block;
}
.theme-nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.375rem;
	width: 1rem;
	height: 2px;
	border-radius: 9999px;
	background: hsl(var(--accent));
	opacity: 0;
	transform: translateX(-50%) scaleX(0);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
	pointer-events: none;
}
.theme-nav-link.theme-nav-active::after {
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}
.site-header:not(.theme-header-solid) .theme-nav-link::after {
	background: hsl(var(--background));
}
.theme-nav-list li {
	display: inline-flex;
}
.theme-nav-list .current-menu-item > a {
	color: hsl(var(--primary));
}

/* --------------------------------------------------------------- structure */
.theme-page-main {
	padding-top: 7.5rem;
	padding-bottom: 4rem;
}
.theme-page-container {
	min-width: 0;
}
.page-title {
	font-family: "Newsreader", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.05;
	color: hsl(var(--foreground));
	margin-bottom: 2rem;
}
.entry-content {
	min-width: 0;
}

/* ------------------------------------------------------------- reveal fall */
body.is-customizer [data-reveal],
body.is-customizer [data-reveal].is-revealed {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
.no-js [data-reveal] {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------ product cards */
.theme-product-card-wrap {
	display: flex;
	min-width: 0;
}
.theme-product-card-wrap > .theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}
.theme-product-card-wrap .theme-product-card > a:last-child {
	flex: 1;
}
.theme-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
}
.theme-product-card__image-wrapper img {
	display: block;
}
.theme-product-grid .theme-product-card-wrap {
	height: 100%;
}
.theme-card-link {
	display: block;
}

/* --------------------------------------------------------- product details */
.theme-product-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}
.theme-product-details li {
	position: relative;
	padding-left: 1rem;
	line-height: 1.6;
}
.theme-product-details li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 4px;
	height: 4px;
	border-radius: 9999px;
	background: hsl(var(--primary));
}
.theme-product-details p {
	margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------ single product */
.single-product .theme-product-layout,
.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}
.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}
.single-product .theme-qty-block {
	margin-bottom: 1.5rem;
}
.single-product .theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--foreground) / 0.2);
	border-radius: 9999px;
}
.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button,
.single-product .theme-add-to-cart-area .theme-buy-now,
.single-product .theme-add-to-cart-area a.button,
.single-product .theme-add-to-cart-area button.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 100%;
	min-width: 100%;
	min-height: 3rem;
	height: 3rem;
	padding: 0 1.75rem !important;
	margin: 0;
	line-height: 1.25;
	font-size: 14px;
	font-weight: 500;
	border-radius: 9999px;
	text-decoration: none;
	white-space: nowrap;
}
@media (min-width: 640px) {
	.single-product .theme-add-to-cart-area {
		flex-direction: row;
		align-items: stretch;
	}
	.single-product .theme-add-to-cart-area .single_add_to_cart_button,
	.single-product .theme-add-to-cart-area .theme-buy-now,
	.single-product .theme-add-to-cart-area a.button,
	.single-product .theme-add-to-cart-area button.button {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}
.single-product .theme-quantity-wrapper .theme-qty-minus,
.single-product .theme-quantity-wrapper .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1rem;
	background: transparent;
	border: 0;
	line-height: 1;
}
.single-product .theme-quantity-wrapper .theme-qty-input,
.single-product .theme-quantity-wrapper input.qty {
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	padding: 0.625rem 0;
	margin: 0;
	height: auto;
	border: 0;
	box-shadow: none;
	background: transparent;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	color: hsl(var(--foreground));
	-moz-appearance: textfield;
	appearance: textfield;
}
.single-product .theme-quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.single-product .theme-quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product .theme-product-thumb img {
	display: block;
}

/* Add to cart states */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}
a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* Variations */
.theme-attr-select-hidden {
	display: none !important;
}
.single-product .variations.shop_attributes {
	display: none;
}
.theme-attr-pill.bg-primary {
	color: hsl(var(--primary-foreground));
}
.woocommerce-variation-price {
	font-size: 20px;
	font-weight: 500;
	color: hsl(var(--foreground) / 0.9);
	margin-bottom: 1.5rem;
}
.woocommerce-variation-availability {
	margin-bottom: 1rem;
	font-size: 14px;
	color: hsl(var(--foreground) / 0.7);
}
.woocommerce-variation-add-to-cart {
	display: block;
}

/* -------------------------------------------------------------- cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.3);
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}
#theme-cart-drawer.theme-cart-drawer {
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}
body.cart-open #theme-cart-drawer.theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}
#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}
.theme-cart-count:empty {
	display: none;
}
.theme-cart-thumb {
	display: block;
}
.theme-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-cart-item-meta p {
	margin: 0;
}
body.cart-open {
	overflow: hidden;
}

/* ------------------------------------------------------- floating badge */
#theme-floating-badge {
	transition: opacity 0.5s ease, transform 0.5s ease;
}
#theme-floating-badge.opacity-0 {
	opacity: 0;
}

/* ---------------------------------------------------- WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--ivory));
	color: hsl(var(--foreground));
	font-size: 14px;
	font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.woocommerce-store-notice {
	display: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------ WooCommerce archive */
.theme-pagination .woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	border: 0;
	padding: 0;
	margin: 0;
}
.theme-pagination .woocommerce-pagination li {
	border: 0;
}
.theme-pagination .woocommerce-pagination a,
.theme-pagination .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.25);
	font-size: 14px;
	color: hsl(var(--foreground));
	text-decoration: none;
}
.theme-pagination .woocommerce-pagination .current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ------------------------------------------------------------- checkout */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	border-radius: 1rem;
	padding: 1.75rem;
	border: 1px solid hsl(var(--foreground) / 0.1);
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	background-color: transparent;
}
body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary__title {
	font-family: "Newsreader", Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"] {
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: 0.375rem !important;
	background-color: hsl(var(--ivory)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--foreground) / 0.45) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}
body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	color: hsl(var(--foreground) / 0.75) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem !important;
	border-color: hsl(var(--border)) !important;
	background: hsl(var(--ivory)) !important;
	color: hsl(var(--foreground)) !important;
	font-size: 14px !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: hsl(var(--foreground)) !important;
}
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-size: 14px !important;
	color: hsl(var(--foreground)) !important;
}

/* Cart / account / thank you alignment */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-top: 7.5rem;
	padding-bottom: 4rem;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
	max-width: 100%;
}
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
	color: hsl(var(--foreground));
}
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	border: 1px solid hsl(var(--primary)) !important;
}

/* Thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: "Newsreader", Georgia, serif;
	font-weight: 400;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	padding: 1.5rem;
	margin: 0 0 2.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	background: hsl(var(--linen));
}
body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: hsl(var(--foreground) / 0.6);
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	color: hsl(var(--foreground));
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	font-size: 14px;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
}
body.theme-thankyou-page .woocommerce-order-details__title {
	margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	color: hsl(var(--foreground));
	margin-bottom: 2rem;
}
