/*
Theme Name: Awinyo Block
Theme URI: https://awinyoteen.com/
Author: Awinyo Teen
Description: A publication-first block theme for Awinyo Teen articles, premium writing, and subscriber reading paths.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awinyo-block
*/

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	min-height: 100vh;
}

.awinyo-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(17, 100, 102, 0.28);
	border-top: 5px solid var(--wp--preset--color--secondary);
	border-radius: 8px;
	overflow: hidden;
}

.awinyo-card,
.awinyo-premium-card {
	box-shadow: 0 16px 38px rgba(29, 27, 24, 0.08);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.awinyo-card:hover,
.awinyo-card:focus-within {
	border-color: rgba(17, 100, 102, 0.58);
	box-shadow: 0 20px 44px rgba(29, 27, 24, 0.13);
	transform: translateY(-2px);
}

.awinyo-premium-card:hover,
.awinyo-premium-card:focus-within {
	border-color: rgba(159, 47, 36, 0.58);
	box-shadow: 0 20px 44px rgba(29, 27, 24, 0.13);
	transform: translateY(-2px);
}

.awinyo-kicker {
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.awinyo-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
}

.awinyo-footer-links li {
	margin: 0;
}

.awinyo-footer-links a {
	border: 1px solid rgba(159, 47, 36, 0.26);
	border-radius: 999px;
	color: var(--wp--preset--color--accent);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.55rem 0.75rem;
	text-decoration: none;
}

.awinyo-footer-links a:hover,
.awinyo-footer-links a:focus {
	background: rgba(159, 47, 36, 0.08);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.awinyo-premium-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(159, 47, 36, 0.28);
	border-top: 5px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	overflow: hidden;
}

.awinyo-current-card {
	border-left: 5px solid var(--wp--preset--color--accent);
}

.awinyo-access-badge,
.awinyo-card-terms a {
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.awinyo-access-badge {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	gap: 0.4rem;
	line-height: 1;
	padding: 0.42rem 0.58rem;
}

.awinyo-access-badge-icon {
	background: currentColor;
	display: inline-block;
	flex: 0 0 auto;
	height: 0.95rem;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	width: 0.95rem;
}

.awinyo-access-badge-icon-open {
	mask-image: url("assets/icons/open-padlock.svg");
	-webkit-mask-image: url("assets/icons/open-padlock.svg");
}

.awinyo-access-badge-icon-locked {
	mask-image: url("assets/icons/locked-padlock.svg");
	-webkit-mask-image: url("assets/icons/locked-padlock.svg");
}

.awinyo-access-badge-open {
	background: rgba(17, 100, 102, 0.12);
	color: var(--wp--preset--color--secondary);
}

.awinyo-access-badge-locked {
	background: rgba(159, 47, 36, 0.12);
	color: var(--wp--preset--color--gold);
}

.awinyo-card-note {
	border-top: 1px solid rgba(111, 64, 43, 0.24);
	color: var(--wp--preset--color--accent) !important;
	margin-top: 1rem;
	padding-top: 0.75rem;
}

.awinyo-card .wp-block-post-title,
.awinyo-premium-card .wp-block-post-title {
	line-height: 1.12;
	margin-top: 0.85rem;
}

.awinyo-card .wp-block-post-title a,
.awinyo-premium-card .wp-block-post-title a {
	color: var(--wp--preset--color--accent);
	font-weight: 800;
	text-decoration: none;
}

.awinyo-card .wp-block-post-title a:hover,
.awinyo-card .wp-block-post-title a:focus,
.awinyo-premium-card .wp-block-post-title a:hover,
.awinyo-premium-card .wp-block-post-title a:focus {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

.awinyo-card .wp-block-post-excerpt,
.awinyo-premium-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--ink);
	font-size: 0.94rem;
}

.awinyo-article-search {
	margin-left: auto;
	margin-right: auto;
	margin-top: 1.5rem;
	max-width: 42rem;
}

.awinyo-article-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	overflow: hidden;
}

.awinyo-article-search .wp-block-search__input {
	border: 0;
	min-height: 3rem;
	padding: 0.75rem 1rem;
}

.awinyo-article-search .wp-block-search__button {
	border-radius: 0;
	font-weight: 800;
	margin-left: 0;
	min-height: 3rem;
}

.awinyo-archive-choice {
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(29, 27, 24, 0.04);
	height: 100%;
}

.awinyo-archive-choice h2 {
	margin-top: 0.65rem;
}

.awinyo-archive-choice-open {
	background: var(--wp--preset--color--paper);
}

.awinyo-archive-choice-premium {
	background: var(--wp--preset--color--surface);
}

.awinyo-category-sidebar {
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(111, 64, 43, 0.32);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(29, 27, 24, 0.09);
	padding: 1rem;
}

.awinyo-category-sidebar-free {
	background: rgba(17, 100, 102, 0.105);
	border-color: rgba(17, 100, 102, 0.42);
	border-top: 5px solid var(--wp--preset--color--secondary);
	box-shadow: inset 4px 0 0 rgba(17, 100, 102, 0.16), 0 18px 42px rgba(29, 27, 24, 0.09);
}

.awinyo-category-sidebar-premium {
	background: rgba(159, 47, 36, 0.095);
	border-color: rgba(159, 47, 36, 0.42);
	border-top: 5px solid var(--wp--preset--color--accent);
	box-shadow: inset 4px 0 0 rgba(159, 47, 36, 0.14), 0 18px 42px rgba(29, 27, 24, 0.09);
}

.awinyo-category-sidebar h2 {
	border-bottom: 1px solid rgba(111, 64, 43, 0.22);
	color: var(--wp--preset--color--ink);
	margin-top: 0;
	padding-bottom: 0.85rem;
}

.awinyo-sidebar-story {
	border-bottom: 1px solid rgba(111, 64, 43, 0.2);
	display: grid;
	gap: 0.7rem;
	grid-template-columns: 5rem minmax(0, 1fr);
	padding: 0.85rem 0;
}

.awinyo-sidebar-story .wp-block-post-featured-image {
	margin: 0;
}

.awinyo-sidebar-story .wp-block-post-featured-image img {
	border-radius: 6px;
	height: 4rem;
	object-fit: cover;
	width: 5rem;
}

.awinyo-sidebar-story h3 {
	font-size: 0.92rem !important;
	line-height: 1.25;
	margin: 0;
}

.awinyo-sidebar-story a {
	color: var(--wp--preset--color--accent);
	font-weight: 800;
	text-decoration: none;
}

.awinyo-sidebar-story a:hover,
.awinyo-sidebar-story a:focus {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.awinyo-single {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.awinyo-single .wp-block-post-title {
	font-size: clamp(2rem, 7vw, var(--wp--preset--font-size--xx-large)) !important;
}

.awinyo-single iframe,
.awinyo-single img,
.awinyo-single video,
.awinyo-single table,
.awinyo-single pre {
	max-width: 100%;
}

.awinyo-single .wp-block-table,
.awinyo-single .wp-block-preformatted,
.awinyo-single pre {
	overflow-x: auto;
}

.wp-block-button__link {
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.awinyo-magnetic-button {
	transform: translate3d(var(--awinyo-button-pull-x, 0), var(--awinyo-button-pull-y, 0), 0);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 180ms ease, transform 120ms ease-out;
	will-change: transform;
}

.awinyo-magnetic-button:hover,
.awinyo-magnetic-button:focus-visible {
	box-shadow: 0 0.75rem 1.5rem rgba(29, 27, 24, 0.13);
}

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

	.wp-block-button__link,
	.awinyo-magnetic-button {
		transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
		transform: none;
	}
}

@media (max-width: 1024px) {
	.awinyo-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 600;
}

.awinyo-account-link {
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 4px;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.68rem 0.9rem;
	text-decoration: none;
}

.awinyo-account-link:hover,
.awinyo-account-link:focus {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.awinyo-site-header-inner {
	gap: 1rem;
}

.awinyo-site-header-actions {
	gap: 0.8rem;
}

.awinyo-site-header-actions .wp-block-navigation__responsive-container-open {
	align-items: center;
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 4px;
	color: var(--wp--preset--color--ink);
	height: 2.75rem;
	justify-content: center;
	padding: 0.65rem;
	width: 2.75rem;
}

.awinyo-site-header-actions .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
	padding: 0.85rem;
}

.awinyo-site-header-actions .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	padding: 1.25rem;
}

.awinyo-site-header-actions .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	gap: 1.1rem;
	padding-top: 3.25rem;
}

.awinyo-site-header-actions .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.2rem;
}

.awinyo-mobile-nav-item {
	display: none;
}

.awinyo-locked-article {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--outline);
	border-left: 5px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	margin-top: 2rem;
	padding: 1.5rem;
}

.awinyo-locked-kicker {
	color: var(--wp--preset--color--gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.awinyo-locked-excerpt p {
	color: var(--wp--preset--color--ink);
	font-size: 1.12rem;
	margin-top: 0;
}

.awinyo-locked-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.awinyo-locked-button {
	border-radius: 4px;
	display: inline-flex;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.78rem 1rem;
	text-decoration: none;
}

.awinyo-locked-button-primary {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--paper);
}

.awinyo-locked-button-secondary {
	border: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.awinyo-locked-note {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	margin-bottom: 0;
}

.awinyo-related {
	border-top: 1px solid var(--wp--preset--color--outline);
	margin-top: 3rem;
	padding-top: 2rem;
}

.awinyo-related-header {
	margin-bottom: 1rem;
}

.awinyo-related-kicker {
	color: var(--wp--preset--color--gold);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.awinyo-related h2 {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.awinyo-related-grid {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.awinyo-related-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	overflow: hidden;
}

.awinyo-related-card-link {
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding-bottom: 0.72rem;
	text-decoration: none;
}

.awinyo-related-card-link:hover .awinyo-related-title,
.awinyo-related-card-link:focus .awinyo-related-title {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.awinyo-related-image {
	background: var(--wp--preset--color--surface);
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.awinyo-related-image img,
.awinyo-related-image-placeholder {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.awinyo-related-image-placeholder {
	background:
		linear-gradient(135deg, rgba(159, 47, 36, 0.12), rgba(17, 100, 102, 0.14)),
		var(--wp--preset--color--surface);
}

.awinyo-related-card .awinyo-access-badge {
	font-size: 0.68rem;
	font-weight: 800;
	margin: 0.18rem 0.72rem 0;
	padding: 0.36rem 0.48rem;
}

.awinyo-related-title {
	color: var(--wp--preset--color--accent);
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0.1rem 0.72rem 0;
}

.awinyo-related-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.2rem;
}

.awinyo-related-topics a {
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 999px;
	color: var(--wp--preset--color--secondary);
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.58rem 0.78rem;
	text-decoration: none;
}

.awinyo-related-topics a:hover,
.awinyo-related-topics a:focus {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--secondary);
}

.awinyo-checkout-toolbar {
	align-items: flex-start;
	margin-bottom: 1.35rem;
	padding-top: 0.25rem;
}

.awinyo-checkout-heading {
	margin: 0;
}

.awinyo-checkout-title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
}

.awinyo-checkout-security-note {
	color: var(--wp--preset--color--muted);
	font-size: 0.84rem;
	line-height: 1.4;
	margin: 0.45rem 0 0;
	padding-left: 1.25rem;
	position: relative;
}

.awinyo-checkout-security-note::before {
	color: var(--wp--preset--color--secondary);
	content: "\2713";
	font-size: 0.86rem;
	font-weight: 800;
	left: 0;
	position: absolute;
	top: 0;
}

.awinyo-checkout-cart-link {
	font-size: 0.86rem;
	font-weight: 800;
	margin: 0.25rem 0 0;
}

.awinyo-checkout-cart-link a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.awinyo-checkout-cart-link a::before {
	content: "\2039 ";
}

.awinyo-checkout-cart-link a:hover,
.awinyo-checkout-cart-link a:focus {
	text-decoration: underline;
}

.woocommerce-checkout .wp-block-woocommerce-checkout {
	align-items: flex-start;
	gap: clamp(1.4rem, 3vw, 2.4rem);
}

.woocommerce-checkout .wc-block-components-sidebar,
.woocommerce-checkout .wc-block-components-main {
	margin-top: 0;
}

.woocommerce-checkout .wc-block-components-main {
	border-radius: 8px;
	flex-basis: 64%;
}

.woocommerce-checkout .wc-block-components-sidebar {
	flex-basis: 36%;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.woocommerce-checkout .wc-block-checkout__sidebar {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--outline);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--outline) 80%, transparent);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(29, 27, 24, 0.08);
}

.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
	padding: clamp(1.1rem, 2.4vw, 1.65rem);
	padding-top: clamp(4.6rem, 6vw, 5.25rem);
	position: relative;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block::before {
	align-items: center;
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	color: var(--wp--preset--color--paper);
	content: "1";
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 800;
	height: 1.35rem;
	justify-content: center;
	left: clamp(1.1rem, 2.4vw, 1.65rem);
	line-height: 1;
	position: absolute;
	top: clamp(1.15rem, 2.4vw, 1.65rem);
	width: 1.35rem;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block::after {
	color: var(--wp--preset--color--ink);
	content: "Your details";
	font-size: 1rem;
	font-weight: 800;
	left: calc(clamp(1.1rem, 2.4vw, 1.65rem) + 2.1rem);
	line-height: 1.25;
	position: absolute;
	top: clamp(1.1rem, 2.4vw, 1.55rem);
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	overflow: hidden;
}

.woocommerce-checkout .wc-block-checkout__sidebar {
	overflow: hidden;
	padding-left: 0;
	padding-right: 0;
	position: sticky;
	top: 1rem;
}

.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	position: static;
}

.woocommerce-checkout .wc-block-components-checkout-step {
	border-bottom: 1px solid var(--wp--preset--color--outline);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--outline) 72%, transparent);
	margin: 0 0 1.3rem;
	padding: 0 0 1.3rem;
}

.woocommerce-checkout .wc-block-components-checkout-step:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.woocommerce-checkout .wc-block-components-checkout-step:first-child .wc-block-components-checkout-step__heading {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
}

.woocommerce-checkout .wc-block-components-checkout-step:first-child .wc-block-components-checkout-step__heading::before {
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	content: "";
	flex: 0 0 0.45rem;
	height: 0.45rem;
	margin-top: 0.42rem;
	width: 0.45rem;
}

.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__button-text {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
}

.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-size: 1rem;
	margin: 0;
}

.woocommerce-checkout .wc-block-components-checkout-step__description {
	color: var(--wp--preset--color--muted);
	font-size: 0.83rem;
	line-height: 1.4;
	margin-top: 0.2rem;
}

.woocommerce-checkout .wc-block-components-address-form,
.woocommerce-checkout .wc-block-components-checkout-step__container {
	margin-top: 0.9rem;
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label,
.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label {
	color: var(--wp--preset--color--ink);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
}

.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.woocommerce-checkout .wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--outline);
	border-color: color-mix(in srgb, var(--wp--preset--color--outline) 85%, var(--wp--preset--color--ink));
	border-radius: 7px;
	box-shadow: none;
	color: var(--wp--preset--color--ink);
	min-height: 3rem;
}

.woocommerce-checkout .wc-block-components-text-input input::placeholder,
.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--muted) 70%, var(--wp--preset--color--paper));
}

.woocommerce-checkout .wc-block-components-text-input input:focus,
.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 2px rgba(159, 47, 36, 0.16);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent);
	outline: none;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__button-text,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-sidebar-layout__title {
	font-size: 1rem;
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > div:first-child,
.woocommerce-checkout .wc-block-components-sidebar-layout__title,
.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title {
	border-bottom: 1px solid var(--wp--preset--color--outline);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--outline) 76%, transparent);
	padding: 1rem 1.15rem;
}

.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-checkout .wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--outline);
	border-color: color-mix(in srgb, var(--wp--preset--color--outline) 76%, transparent);
}

.woocommerce-checkout .wc-block-components-order-summary {
	padding: 0.85rem 1.15rem 0.3rem;
}

.woocommerce-checkout .wc-block-components-order-summary-item {
	column-gap: 0.75rem;
	padding: 0.85rem 0;
}

.woocommerce-checkout .wc-block-components-order-summary-item + .wc-block-components-order-summary-item {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--outline) 70%, transparent);
}

.woocommerce-checkout .wc-block-components-order-summary-item__description {
	padding-top: 0;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description,
.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
	font-size: 0.86rem;
	line-height: 1.35;
}

.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
.woocommerce-checkout .wc-block-components-order-summary-item__short-description {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--paper);
	color: var(--wp--preset--color--paper);
	font-weight: 800;
	min-height: 1.2rem;
	min-width: 1.2rem;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image {
	align-items: center;
	background: var(--wp--preset--color--surface);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, var(--wp--preset--color--paper));
	border-radius: 7px;
	display: flex;
	flex: 0 0 2.35rem;
	height: 2.35rem;
	justify-content: center;
	min-height: 2.35rem;
	min-width: 2.35rem;
	overflow: visible;
	position: relative;
	width: 2.35rem;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image img {
	border-radius: 5px;
	height: 1.55rem;
	max-height: 1.55rem;
	max-width: 1.55rem;
	object-fit: contain;
	width: 1.55rem;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Subscription"]) img,
.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Individual article"]) img {
	opacity: 0;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Subscription"])::before,
.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Individual article"])::before {
	background: var(--wp--preset--color--accent);
	content: "";
	height: 1.25rem;
	left: 50%;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	width: 1.25rem;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Subscription"])::before {
	mask-image: url("assets/icons/subscription-product.svg");
	-webkit-mask-image: url("assets/icons/subscription-product.svg");
}

.woocommerce-checkout .wc-block-components-order-summary-item__image:has(img[alt="Individual article"])::before {
	background: var(--wp--preset--color--secondary);
	mask-image: url("assets/icons/article-product.svg");
	-webkit-mask-image: url("assets/icons/article-product.svg");
}

.woocommerce-checkout .wc-block-components-order-summary-coupon-form {
	padding: 0.9rem 1.15rem 1rem;
}

.woocommerce-checkout .wc-block-components-totals-coupon__button,
.woocommerce-checkout .wc-block-components-button:not(.is-link).wc-block-components-totals-coupon__button {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	min-height: 2.85rem;
}

.woocommerce-checkout .wc-block-components-totals-item {
	padding-left: 1.15rem;
	padding-right: 1.15rem;
}

.woocommerce-checkout .wc-block-components-totals-footer-item {
	background: var(--wp--preset--color--surface);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 82%, var(--wp--preset--color--paper));
	padding-bottom: 1.05rem;
	padding-top: 1.05rem;
}

.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	border-radius: 7px;
	font-weight: 800;
	min-height: 3rem;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--paper);
	margin: 1rem 1.15rem 0;
	width: calc(100% - 2.3rem);
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 88%, var(--wp--preset--color--ink));
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 88%, var(--wp--preset--color--ink));
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading {
	cursor: wait;
	opacity: 1;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-button__text {
	align-items: center;
	color: transparent;
	display: inline-flex;
	gap: 0.65rem;
	justify-content: center;
	min-width: 15rem;
	visibility: visible;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-button__text::before {
	animation: awinyo-checkout-spinner 0.8s linear infinite;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: var(--wp--preset--color--paper);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 1rem;
	width: 1rem;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-button__text::after {
	color: var(--wp--preset--color--paper);
	content: "Connecting to Pesapal...";
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-button__text > svg,
.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-checkout-place-order-button__icon,
.woocommerce-checkout .wc-block-components-checkout-place-order-button--loading .wc-block-components-spinner {
	display: none;
	visibility: hidden;
}

@keyframes awinyo-checkout-spinner {
	to {
		transform: rotate(360deg);
	}
}

.woocommerce-checkout .wc-block-components-payment-methods,
.woocommerce-checkout .wc-block-components-payment-method-label,
.woocommerce-checkout .wc-block-components-checkout-place-order-button + div {
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
}

.woocommerce-account .woocommerce {
	align-items: start;
	display: grid;
	gap: clamp(1.1rem, 2.5vw, 1.8rem);
	grid-template-areas: "nav content";
	grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
	left: 50%;
	margin-left: auto;
	margin-right: auto;
	max-width: 1100px;
	position: relative;
	transform: translateX(-50%);
	width: min(1100px, calc(100vw - 2rem));
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	box-shadow: 0 16px 38px rgba(29, 27, 24, 0.06);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	align-self: start;
	float: none;
	grid-area: nav;
	overflow: hidden;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0.45rem;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation a {
	border-radius: 6px;
	color: var(--wp--preset--color--ink);
	display: block;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.78rem 0.85rem;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	grid-area: content;
	min-width: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-content:has(.awinyo-account-dashboard) > p {
	display: none;
}

.awinyo-account-dashboard {
	display: grid;
	gap: 1rem;
}

.awinyo-account-hero {
	background: var(--wp--preset--color--surface);
	border-left: 5px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	padding: clamp(1rem, 2.3vw, 1.35rem);
}

.awinyo-account-kicker {
	color: var(--wp--preset--color--gold);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 0.55rem;
	text-transform: uppercase;
}

.awinyo-account-hero h2,
.awinyo-account-panel h3 {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.awinyo-account-hero h2 {
	font-size: 1.55rem;
}

.awinyo-account-hero p:last-child {
	color: var(--wp--preset--color--muted);
	margin-bottom: 0;
}

.awinyo-account-panel {
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	overflow: hidden;
}

.awinyo-account-panel-heading {
	align-items: center;
	border-bottom: 1px solid var(--wp--preset--color--outline);
	display: flex;
	gap: 0.8rem;
	justify-content: space-between;
	padding: 0.78rem 1rem;
	text-transform: uppercase;
}

.awinyo-account-panel-heading h3 {
	color: var(--wp--preset--color--gold);
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.awinyo-account-panel-heading span {
	color: var(--wp--preset--color--muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.awinyo-account-article-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.awinyo-account-article-list li + li {
	border-top: 1px solid var(--wp--preset--color--outline);
}

.awinyo-account-article-list a {
	display: grid;
	gap: 0.28rem;
	padding: 0.95rem 1rem;
	text-decoration: none;
}

.awinyo-account-article-list span {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	line-height: 1.25;
}

.awinyo-account-article-list small {
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	line-height: 1.35;
}

.awinyo-account-article-list a:hover span,
.awinyo-account-article-list a:focus span {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.awinyo-account-empty {
	padding: 1rem;
}

.awinyo-account-empty p {
	color: var(--wp--preset--color--muted);
	margin-top: 0;
}

.awinyo-account-empty a {
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

.woocommerce-account .woocommerce-EditAccountForm {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.woocommerce-account .woocommerce-MyAccount-content .u-columns,
.woocommerce-account .woocommerce-MyAccount-content .col2-set {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.woocommerce-account .woocommerce-MyAccount-content .u-column1,
.woocommerce-account .woocommerce-MyAccount-content .u-column2,
.woocommerce-account .woocommerce-MyAccount-content .col-1,
.woocommerce-account .woocommerce-MyAccount-content .col-2 {
	float: none;
	max-width: none;
	width: auto;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row,
.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
	float: none;
	margin: 0;
	width: auto;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset,
.woocommerce-account .woocommerce-EditAccountForm p:last-child,
.woocommerce-account .woocommerce-EditAccountForm .clear {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 8px;
	margin: 0.4rem 0 0;
	padding: 1rem;
}

.woocommerce-account .woocommerce-EditAccountForm legend {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	padding: 0 0.4rem;
}

.woocommerce-account .woocommerce-EditAccountForm label {
	color: var(--wp--preset--color--ink);
	display: block;
	font-size: 0.84rem;
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.woocommerce-account .woocommerce-EditAccountForm input.input-text,
.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"] {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 7px;
	box-sizing: border-box;
	color: var(--wp--preset--color--ink);
	min-height: 3rem;
	padding: 0.72rem 0.85rem;
	width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm .button {
	background: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 7px;
	color: var(--wp--preset--color--paper);
	font-weight: 800;
	min-height: 3rem;
	padding: 0.75rem 1rem;
}

@media (max-width: 781px) {
	header.wp-block-group.alignfull {
		padding-bottom: 0.7rem !important;
		padding-top: 0.7rem !important;
	}

	.awinyo-site-header-inner {
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: 0.8rem;
	}

	.awinyo-site-header-inner > .wp-block-group:first-child {
		align-items: center !important;
		flex: 1 1 auto;
		flex-wrap: nowrap !important;
		gap: 0.7rem;
		min-width: 0;
	}

	.awinyo-site-header-inner > .wp-block-group:first-child .wp-block-site-logo {
		flex: 0 0 auto;
	}

	.awinyo-site-header-inner > .wp-block-group:first-child .wp-block-site-logo img {
		height: 44px;
		width: 44px;
	}

	.awinyo-site-header-inner > .wp-block-group:first-child .wp-block-group {
		min-width: 0;
	}

	.awinyo-site-header-inner .wp-block-site-title {
		line-height: 1.1;
		margin: 0;
		white-space: nowrap;
	}

	.awinyo-site-header-inner .wp-block-site-title a {
		font-size: 1rem;
	}

	.awinyo-site-header-inner .wp-block-site-tagline {
		display: none;
	}

	.awinyo-site-header-actions {
		align-items: center !important;
		flex: 0 0 auto;
		flex-wrap: nowrap !important;
		gap: 0;
		justify-content: flex-end;
	}

	.awinyo-site-header-actions .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.awinyo-site-header-actions .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.awinyo-site-header-actions .wp-block-navigation__responsive-container-open {
		height: 2.6rem;
		width: 2.6rem;
	}

	.awinyo-site-header-actions > .wp-block-buttons,
	.awinyo-site-header-actions .awinyo-account-link,
	.awinyo-site-header-actions .wc-block-mini-cart,
	.awinyo-site-header-actions .wp-block-woocommerce-mini-cart,
	.awinyo-site-header-actions [class*="mini-cart"],
	.awinyo-site-header-actions [class*="cart"] {
		display: none;
	}

	.awinyo-site-header-actions .wp-block-navigation__responsive-container.is-menu-open .awinyo-mobile-nav-item {
		display: flex;
	}

	.awinyo-single {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		padding-top: 1.75rem !important;
	}

	.awinyo-single .wp-block-post-featured-image.alignwide {
		margin-left: 0;
		margin-right: 0;
	}

	.awinyo-single .wp-block-post-featured-image img {
		aspect-ratio: 4 / 3;
		width: 100%;
	}

	.awinyo-single .wp-block-post-title {
		font-size: clamp(1.75rem, 10vw, 2.35rem) !important;
		line-height: 1.08;
	}

	.awinyo-single .wp-block-columns {
		flex-wrap: nowrap !important;
		gap: 0.75rem;
	}

	.awinyo-single .wp-block-comments {
		overflow-wrap: anywhere;
	}

	.awinyo-locked-article {
		padding: 1rem;
	}

	.awinyo-locked-actions {
		display: grid;
	}

	.awinyo-locked-button {
		justify-content: center;
		text-align: center;
	}

	.awinyo-checkout-toolbar {
		gap: 0.85rem;
	}

	.awinyo-checkout-title {
		font-size: 1.45rem;
	}

	.awinyo-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
		position: static;
	}

	.woocommerce-checkout .wc-block-checkout__sidebar {
		position: static;
	}

	.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
		padding: 1rem;
		padding-top: 4.6rem;
	}

	.woocommerce-checkout .wc-block-components-main,
	.woocommerce-checkout .wc-block-components-sidebar {
		flex-basis: 100%;
	}

	.woocommerce-checkout .wc-block-components-order-summary-item__image {
		height: 2.15rem;
		width: 2.15rem;
	}

	.woocommerce-account .woocommerce {
		display: block;
		left: auto;
		transform: none;
		width: min(100%, calc(100vw - 1.5rem));
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 1rem;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 0.35rem;
		overflow-x: auto;
		padding: 0.45rem;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}

	.awinyo-account-panel-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.woocommerce-account .woocommerce-EditAccountForm {
		display: block;
	}

	.woocommerce-account .woocommerce-MyAccount-content .u-columns,
	.woocommerce-account .woocommerce-MyAccount-content .col2-set {
		display: block;
	}

	.woocommerce-account .woocommerce-EditAccountForm .form-row {
		margin-bottom: 1rem;
	}
}
