/*
 Theme Name:   African Foodmarket Child
 Description:  Woodmart Child Theme for AfricanFood Market
 Author:       WeLabs
 Author URI:   https://welabs.dev
 Template:     woodmart
 Version:      1.7.60
 Text Domain:  african-foodmarket-child
*/

/*
 General site styling lives in Woodmart (Theme Settings, Theme Settings → Custom CSS, Elementor/Woodmart widgets).
 This file only holds CSS for features that come from this child theme.
*/

/* Featured stores [afm_featured_stores] (inc/modules/featured-stores.php): banner edge-to-edge, name + meta below.
   Uses Woodmart's CSS variables; the name also carries Woodmart's .wd-entities-title. */
.afm-featured-stores .afm-store-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--bgcolor-white);
	border: 1px solid var(--brdcolor-gray-300);
	border-radius: var(--wd-brd-radius);
}
.afm-featured-stores .afm-store-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 625 / 300; /* Dokan's store banner size */
	object-fit: contain; /* never crop a store's own banner, e.g. wider ones */
}
.afm-featured-stores .afm-store-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--brdcolor-gray-200);
}
.afm-featured-stores .afm-store-card__name {
	margin: 0;
	font-size: 16px;
}
.afm-featured-stores .afm-store-card:hover .afm-store-card__name {
	color: var(--wd-entities-title-color-hover);
}
.afm-featured-stores .afm-store-card__meta {
	margin: 0;
	color: var(--wd-text-color);
	font-size: 13px;
}
@media (max-width: 767px) {
	.afm-featured-stores .afm-store-card__body {
		padding: 10px 12px 12px;
	}
	.afm-featured-stores .afm-store-card__name {
		font-size: 14px;
	}
	.afm-featured-stores .afm-store-card__meta {
		font-size: 12px;
	}
}

/* Vendor Store page ([dokan-stores], template dokan/store-lists-loop.php): the same store cards, with
   Dokan's open/closed status, rating and Follow button in a footer row. */
.afm-store-list .afm-store-card__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: inherit;
}
.afm-store-list .afm-store-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 0 16px 16px;
}
.afm-store-list .afm-store-card__badge {
	padding: 2px 10px;
	border-radius: 20px;
	background-color: var(--bgcolor-gray-100);
	color: var(--wd-title-color);
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
}
.afm-store-list .afm-store-card__badge--open {
	color: var(--wd-primary-color);
}
.afm-store-list .afm-store-card__rating {
	display: inline-flex;
	font-size: 12px;
}
.afm-featured-stores .afm-store-card__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #EAF2EC;
	color: var(--wd-primary-color);
}
.afm-featured-stores .afm-store-card__img--placeholder svg {
	width: 56px;
	height: 56px;
}
/* Dokan pulls its list wrapper 15px wider on each side for its own cards; keep it in line and below the filter box. */
#dokan-seller-listing-wrap {
	margin: 20px 0 0;
}
/* My Account → Vendors: nothing above the list there, so it starts level with the menu. */
.woocommerce-MyAccount-content #dokan-seller-listing-wrap {
	margin-top: 0;
}
/* Filter box and store map: Woodmart's rounding, like the cards. */
#dokan-store-listing-filter-wrap,
#dokan-geolocation-locations-map {
	border-radius: var(--wd-brd-radius);
}
/* Our cards have one layout, so Dokan's grid/list switch has nothing to switch. */
#dokan-store-listing-filter-wrap .toggle-view {
	display: none;
}

/* Become a Vendor page ([dokan-vendor-registration], template dokan/account/vendor-registration.php):
   three numbered sections with two-column fields and a full-width green Register button.
   The "or" divider and "Continue with Facebook" button below it: "Social login buttons" block. */
.afm-vendor-reg {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
}
.afm-vendor-reg .form-row,
.afm-vendor-reg .dokan-form-group {
	margin: 0;
	padding: 0;
}
.afm-vendor-reg__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.afm-vendor-reg__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}
.afm-vendor-reg__num {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: #EAF2EC;
	color: #175536;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.afm-vendor-reg__grid,
.afm-vendor-reg #dokan-address-fields-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.afm-vendor-reg__grid > .split-row,
.afm-vendor-reg #dokan-address-fields-wrapper > .dokan-from-group {
	display: contents;
}
.afm-vendor-reg .afm-vendor-reg__grid .form-row,
.afm-vendor-reg #dokan-address-fields-wrapper .dokan-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	float: none;
	width: auto;
	margin: 0;
}
.afm-vendor-reg #dokan-address-fields-wrapper > .dokan-form-group:nth-child(-n+2) {
	grid-column: 1 / -1;
}
.afm-vendor-reg #dokan-address-fields-wrapper .dokan-clearfix {
	display: none;
}
.afm-vendor-reg__grid label,
.afm-vendor-reg #dokan-address-fields-wrapper .control-label {
	margin: 0;
	font-weight: 500;
	color: var(--wd-title-color, #242424);
}
.afm-vendor-reg small {
	font-size: 12px;
	color: #666;
}
/* Shop URL: label left, Dokan's "available / not available" message right, then the field and the preview. */
.afm-vendor-reg .afm-vendor-reg__grid .afm-vendor-reg__shop-url {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
}
.afm-vendor-reg__shop-url .pull-left,
.afm-vendor-reg__shop-url .pull-right {
	float: none;
}
.afm-vendor-reg__shop-url .pull-right {
	margin-inline-start: auto;
}
.afm-vendor-reg__shop-url > input,
.afm-vendor-reg__shop-url > small {
	flex: 1 0 100%;
}
.afm-vendor-reg__footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid #edf0ee;
}
.afm-vendor-reg .afm-vendor-reg__terms {
	display: flex;
	align-items: center;
	gap: 10px;
}
/* Woodmart gives labels a 5px bottom margin, which pushed the checkbox below the middle of the text. */
.afm-vendor-reg__terms input,
.afm-vendor-reg__terms label {
	margin: 0;
}
.afm-vendor-reg__submit input[type="submit"] {
	width: 100%;
	min-height: 50px;
	background-color: var(--btn-accented-bgcolor);
	color: var(--btn-accented-color);
	border-radius: var(--btn-accented-brd-radius);
}
.afm-vendor-reg__submit input[type="submit"]:hover {
	background-color: var(--btn-accented-bgcolor-hover);
	color: var(--btn-accented-color-hover);
}
.afm-vendor-reg__submit input[type="submit"]:disabled {
	opacity: .55;
	cursor: not-allowed;
}
@media (max-width: 600px) {
	.afm-vendor-reg__grid,
	.afm-vendor-reg #dokan-address-fields-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Social login buttons (template dokan/global/social-registration.php): "or" divider + one full-width
   "Continue with …" button per Dokan Pro social login provider, on the My Account login and register forms
   and the Become a Vendor form. Facebook shows today's round logo instead of jsSocials' old square. */
.afm-social-login {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
}
.afm-vendor-reg__footer .afm-social-login {
	margin-top: 0;
}
.afm-social-login__or {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #666;
}
.afm-social-login__or::before,
.afm-social-login__or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e6e3dd;
}
html body .afm-social-login .jssocials-shares {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}
html body .afm-social-login .jssocials-share {
	display: block;
	margin: 0;
}
/* Beats jsSocials' flat theme (coloured square link, white text, darker on hover). */
html body .afm-social-login .jssocials-share .jssocials-share-link,
html body .afm-social-login .jssocials-share .jssocials-share-link:hover,
html body .afm-social-login .jssocials-share .jssocials-share-link:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid #dadfdb;
	border-radius: var(--btn-accented-brd-radius);
	background: #fff;
	color: var(--wd-title-color, #242424);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s ease;
}
html body .afm-social-login .jssocials-share .jssocials-share-link:hover,
html body .afm-social-login .jssocials-share .jssocials-share-link:focus {
	border-color: var(--wd-primary-color);
}
html body .afm-social-login .jssocials-share-logo {
	flex: 0 0 auto;
	width: auto;
	font-size: 18px;
}
html body .afm-social-login .jssocials-share-facebook .jssocials-share-logo {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
	border-radius: 50%;
	font-size: 0;
	background: #1877F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M15.12 5.32H17V2.14A26.11 26.11 0 0 0 14.26 2c-2.72 0-4.58 1.66-4.58 4.7v2.62H6.61v3.56h3.07V24h3.68V12.88h3.06l.46-3.56h-3.52V7.05c0-1.03.28-1.73 1.76-1.73z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
html body .afm-social-login .jssocials-share-facebook .jssocials-share-logo::before {
	content: none;
}

/* Section cards (inc/modules/section-cards.php): the block-editor pages listed in that module (About AfricanFood Market)
   shown as cards, like the Vegetables demo's info pages. Each section title starts a white card, the first card is the
   intro in mint, bulleted lists are tiles. Uses Woodmart's colour, radius and heading values. */
.afm-section-cards .afm-section {
	padding: 32px 36px;
	border-radius: var(--wd-brd-radius);
	background-color: var(--bgcolor-white);
}
.afm-section-cards .afm-section + .afm-section {
	margin-top: 20px;
}
.afm-section-cards .afm-section--intro {
	background-color: #EAF2EC; /* mint, as the pre-footer and the store card placeholder */
}
.afm-section-cards .afm-section > h2 {
	margin-bottom: 15px;
}
.afm-section-cards .afm-section > p {
	font-size: 15px;
	line-height: 1.75;
}
.afm-section-cards .afm-section--intro > h2 + p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--color-gray-800);
}
.afm-section-cards .afm-section > :last-child {
	margin-bottom: 0;
}
.afm-section-cards .afm-section a {
	color: var(--wd-primary-color);
}
.afm-section-cards .afm-section a:hover {
	text-decoration: underline;
}
.afm-section-cards .afm-section > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 10px;
	padding: 0;
	list-style: none;
}
.afm-section-cards .afm-section > ul > li {
	position: relative;
	margin: 0;
	padding: 12px 14px 12px 32px;
	border-radius: 8px;
	background-color: rgb(250,248,245); /* the page background (Theme Settings) */
	color: var(--color-gray-700);
	line-height: 1.45;
}
.afm-section-cards .afm-section > ul > li::before {
	content: "";
	position: absolute;
	top: 18px;
	inset-inline-start: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wd-primary-color);
}
@media (max-width: 768.98px) {
	.afm-section-cards .afm-section {
		padding: 24px 20px;
	}
	.afm-section-cards .afm-section > h2 {
		font-size: 20px;
	}
}

/* Document pages (inc/modules/document-pages.php): Terms and Conditions and the privacy policy as a white document
   card with "Last updated", hanging clause numbers and a sticky numbered contents list (current section marked by
   assets/js/document-pages.js). Phones: the contents fold into a "Contents" button above the text.
   Uses Woodmart's colour, radius and sticky-offset values. */
.afm-doc {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}
.afm-doc__toc {
	position: sticky;
	top: var(--wd-sticky-offset, 100px);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - var(--wd-sticky-offset, 100px) - 30px);
	padding: 22px 10px 14px 22px;
	border-radius: var(--wd-brd-radius);
	background-color: var(--bgcolor-white);
}
.afm-doc__toc-title {
	margin-bottom: 10px;
	color: var(--color-gray-400);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.afm-document-page .afm-doc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.afm-doc__toc ol {
	overflow-y: auto;
	padding-inline-end: 10px !important;
}
.afm-document-page .afm-doc ol li {
	margin: 0;
}
.afm-doc ol a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	padding: 6px 0;
	color: var(--color-gray-700);
	font-size: 14px;
	line-height: 1.35;
}
.afm-doc ol a:hover,
.afm-doc ol a.is-current {
	color: var(--wd-primary-color);
}
.afm-doc ol a.is-current {
	font-weight: 600;
}
.afm-doc__toc-num {
	color: var(--color-gray-400);
	font-variant-numeric: tabular-nums;
}
.afm-doc ol a:hover .afm-doc__toc-num,
.afm-doc ol a.is-current .afm-doc__toc-num {
	color: var(--wd-primary-color);
}
.afm-doc__toc-mobile,
.afm-doc__back {
	display: none;
}
.afm-doc__body {
	min-width: 0;
	padding: 40px 48px 44px;
	border-radius: var(--wd-brd-radius);
	background-color: var(--bgcolor-white);
}
.afm-doc__body p {
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.75;
}
.afm-doc__body a {
	color: var(--wd-primary-color);
}
.afm-doc__body p.afm-doc__updated {
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--brdcolor-gray-300);
	color: var(--color-gray-400);
	font-size: 13px;
}
.afm-doc__updated b {
	color: var(--wd-title-color);
	font-weight: 600;
}
.afm-doc__section {
	scroll-margin-top: 90px; /* clears Woodmart's sticky header when a contents link is followed */
}
.afm-doc__title {
	margin: 34px 0 14px;
	font-size: 22px;
}
.afm-doc__updated + .afm-doc__section > .afm-doc__title {
	margin-top: 0;
}
.afm-doc__num {
	color: var(--wd-primary-color);
	font-variant-numeric: tabular-nums;
}
.afm-doc__body p.afm-doc__clause {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 0 6px;
	margin-bottom: 10px;
}
.afm-doc__body p.afm-doc__clause--d3 {
	grid-template-columns: 64px minmax(0, 1fr);
	margin-inline-start: 58px;
}
.afm-doc__clause-num {
	color: var(--wd-title-color);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
	html:has(.afm-doc) {
		scroll-behavior: smooth;
	}
}
@media (max-width: 768.98px) {
	.afm-doc {
		display: block;
	}
	.afm-doc__toc {
		display: none;
	}
	.afm-doc__toc-mobile {
		display: block;
		margin-bottom: 14px;
		border-radius: var(--wd-brd-radius);
		background-color: var(--bgcolor-white);
		scroll-margin-top: 80px;
	}
	.afm-doc__toc-mobile summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 14px 18px;
		color: var(--wd-title-color);
		font-weight: 600;
		list-style: none;
		cursor: pointer;
	}
	.afm-doc__toc-mobile summary::-webkit-details-marker {
		display: none;
	}
	.afm-doc__toc-mobile summary::after {
		content: "+";
		color: var(--wd-primary-color);
		font-size: 20px;
		line-height: 1;
	}
	.afm-doc__toc-mobile[open] summary::after {
		content: "\2013";
	}
	.afm-doc__toc-mobile ol {
		max-height: 300px;
		overflow-y: auto;
		padding: 0 18px 12px !important;
	}
	.afm-doc__body {
		padding: 24px 18px;
	}
	.afm-doc__body p {
		font-size: 14px;
	}
	.afm-doc__title {
		font-size: 19px;
	}
	.afm-doc__body p.afm-doc__clause {
		grid-template-columns: 44px minmax(0, 1fr);
	}
	.afm-doc__body p.afm-doc__clause--d3 {
		grid-template-columns: 56px minmax(0, 1fr);
		margin-inline-start: 18px;
	}
	.afm-doc__back {
		display: inline-block;
		margin-top: 2px;
		color: var(--wd-primary-color);
		font-size: 13px;
	}
}

/* My Account addresses (template woocommerce/myaccount/my-address.php): the intro line is a mint info bar (the mint of
   the current menu item) with an info icon; each address is a white card like the
   dashboard's link tiles (Woodmart's rounding, the same soft shadow) with a round mint icon, a short line under the
   title, the address in plain text (Woodmart prints addresses in italics), the phone and email with small icons and an
   outline "Edit …" / "Add …" button at the bottom that fills green on hover. Phones: one card per row.
   The edit form (Addresses → Edit) sits in the same white card, with the same icon before its title. */
.afm-addresses-intro {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--wd-brd-radius);
	background-color: #EAF2EC;
	color: #175536;
	font-size: 14px;
	line-height: 1.5;
}
.afm-addresses-intro svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: var(--wd-primary-color);
}
.afm-addresses,
.afm-addresses.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}
/* Woodmart's .col2-set columns (padding-inline: 0) are more specific than one class. */
.afm-addresses > .afm-address-card.woocommerce-Address {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 24px;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.afm-address-card .afm-address-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}
.afm-address-card__icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: 50%;
	background-color: #EAF2EC;
	color: var(--wd-primary-color);
}
.afm-address-card__icon svg {
	width: 22px;
	height: 22px;
}
.afm-address-card__titles {
	min-width: 0;
}
.afm-address-card__head h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}
.afm-address-card__note {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--wd-text-color);
}
.afm-address-card .afm-address-card__address {
	margin: 0;
	font-style: normal;
	font-size: 15px;
	line-height: 1.65;
	color: #3A3A3A;
}
.afm-address-card .afm-address-card__address.is-empty {
	color: var(--wd-text-color);
}
.afm-address-card__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid #EFECE6;
	list-style: none;
	font-size: 14px;
	color: #3A3A3A;
}
.afm-address-card__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	overflow-wrap: anywhere;
}
.afm-address-card__contact svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--wd-primary-color);
}
.afm-address-card .afm-address-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin-top: auto;
	padding: 5px 16px;
	border-radius: 5px;
	box-shadow: inset 0 0 0 1.5px var(--wd-primary-color);
	color: var(--wd-primary-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}
.afm-address-card__button svg {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
}
.afm-address-card .afm-address-card__button:is(:hover, :focus-visible) {
	background-color: var(--wd-primary-color);
	color: #fff;
}
.woocommerce-edit-address .woocommerce-MyAccount-content > form {
	padding: 28px;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	font-size: 20px;
	line-height: 1.3;
}
.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2::before {
	content: "";
	flex: 0 0 44px;
	height: 44px;
	border-radius: 50%;
	background: #EAF2EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.woocommerce-edit-address .woocommerce-MyAccount-content > form:has([name^="shipping_"]) > h2::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}
.woocommerce-edit-address .woocommerce-address-fields > p:last-of-type {
	margin: 8px 0 0;
	padding-top: 24px;
	border-top: 1px solid #EFECE6;
}

/* My Account order cards (templates woocommerce/myaccount/orders.php, woocommerce/myaccount/downloads.php and
   dokan/rma/customer-rma-requests.php): Orders, Returns & Refunds, Downloads and Seller Support Tickets show each row as
   a white card like the Addresses cards (Woodmart's rounding, the same soft shadow) instead of a table row: a round mint
   icon, the main line in bold with a grey line under it (date and item count for orders), small grey labels over each
   value, statuses as coloured pills and the buttons on the right ("View" filled green, the others outline). When the
   content area is narrow (phones), each card stacks: icon, title and status on top, the other values in a row under a
   thin line, the buttons full width. Downloads and Support Tickets keep their plugin tables (the downloads table is
   also on the order page, and Dokan prints the tickets table from code), so their rows are turned into cards here. */
.afm-order-cards,
.afm-account-downloads,
.dokan-support-customer-listing .dokan-support-topics-list {
	container-type: inline-size;
}
.afm-order-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.afm-order-cards > .afm-order-card {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 18px 24px;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
	list-style: none;
}
.afm-order-card__icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: 50%;
	background-color: #EAF2EC;
	color: var(--wd-primary-color);
}
.afm-order-card__icon svg {
	width: 20px;
	height: 20px;
}
.afm-order-card__main {
	display: flex;
	flex: 1.3 1 0;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.afm-order-card .afm-order-card__number {
	color: var(--wd-title-color);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.afm-order-card a.afm-order-card__number:is(:hover, :focus-visible) {
	color: var(--wd-primary-color);
}
.afm-order-card__meta {
	color: var(--wd-text-color);
	font-size: 13px;
	line-height: 1.4;
}
.afm-order-card__field {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.afm-order-card__label {
	color: var(--wd-text-color);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.afm-order-card__value {
	color: #3A3A3A;
	font-size: 14px;
	line-height: 1.4;
}
.afm-order-card__field--order-total .afm-order-card__value {
	color: var(--wd-title-color);
	font-size: 16px;
	font-weight: 600;
}
.afm-order-card__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}
.afm-order-card__actions:empty {
	display: none;
}
.afm-order-cards .afm-order-card__actions .button,
.afm-account-downloads .woocommerce-table--order-downloads td.download-file .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 5px 16px;
	border-radius: 5px;
	background-color: transparent;
	box-shadow: inset 0 0 0 1.5px var(--wd-primary-color);
	color: var(--wd-primary-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.afm-order-cards .afm-order-card__actions .button:is(:hover, :focus-visible),
.afm-order-cards .afm-order-card__actions .button.view,
.afm-account-downloads .woocommerce-table--order-downloads td.download-file .button {
	background-color: var(--wd-primary-color);
	box-shadow: none;
	color: #fff;
}
.afm-order-cards .afm-order-card__actions .button.view:is(:hover, :focus-visible),
.afm-account-downloads .woocommerce-table--order-downloads td.download-file .button:is(:hover, :focus-visible) {
	background-color: #175536;
	color: #fff;
}

/* Status pills: grey by default (cancelled, refunded, abandoned, draft …). */
.afm-status,
.dokan-support-customer-listing .dokan-support-table .dokan-label {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background-color: #F1EFEC;
	color: #5C5C5C;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.afm-status--completed,
.afm-status--rma-completed,
.dokan-support-customer-listing .dokan-support-table .dokan-label-success {
	background-color: #E3EFE6;
	color: #175536;
}
.afm-status--processing,
.afm-status--rma-new,
.afm-status--rma-processing,
.afm-status--rma-reviewing {
	background-color: #E6EEF8;
	color: #1D4E89;
}
.afm-status--on-hold,
.afm-status--pending {
	background-color: #FBF0D9;
	color: #7A4E00;
}
.afm-status--failed,
.afm-status--rma-rejected {
	background-color: #FBE6E3;
	color: #9B2C1F;
}

/* Nothing to list (Returns & Refunds): a mint info bar like the Addresses intro. */
.afm-account-empty {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--wd-brd-radius);
	background-color: #EAF2EC;
	color: #175536;
	font-size: 14px;
	line-height: 1.5;
}
.afm-account-empty::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	background-color: var(--wd-primary-color);
	-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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	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='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Downloads and Support Tickets: their table rows become the same cards. */
.afm-account-downloads .woocommerce-table--order-downloads,
.dokan-support-customer-listing .dokan-support-table {
	display: block;
	width: 100%;
	margin: 0 0 24px;
	border: 0;
	background: none;
}
.afm-account-downloads .woocommerce-table--order-downloads thead,
.dokan-support-customer-listing .dokan-support-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody,
.dokan-support-customer-listing .dokan-support-table tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody tr,
.dokan-support-customer-listing .dokan-support-table tbody tr {
	margin: 0;
	padding: 18px 24px;
	border: 0;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.afm-account-downloads .woocommerce-table--order-downloads tbody tr::before,
.dokan-support-customer-listing .dokan-support-table tbody tr::before {
	content: "";
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #EAF2EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.dokan-support-customer-listing .dokan-support-table tbody tr::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td,
.dokan-support-customer-listing .dokan-support-table tbody td {
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #3A3A3A;
	font-size: 14px;
	line-height: 1.4;
	text-align: start;
}

/* Downloads: icon, product, remaining downloads, expiry date, download button. */
/* Woodmart's phone table style turns each row into a centred column; the card keeps its own layout. */
.afm-account-downloads .woocommerce-table--order-downloads tbody tr {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody tr::before {
	flex: 0 0 44px;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 4px;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td::before {
	content: attr(data-title);
	float: none;
	margin: 0;
	color: var(--wd-text-color);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-product {
	flex: 1.3 1 0;
	font-size: 15px;
	font-weight: 600;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-product a {
	color: var(--wd-title-color);
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-product a:is(:hover, :focus-visible) {
	color: var(--wd-primary-color);
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td:is(.download-product, .download-file)::before {
	display: none;
}
.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-file {
	flex: 0 0 auto;
}

/* Support Tickets: icon, ticket title with its number under it, store, status, date. */
.dokan-support-customer-listing .dokan-support-table tbody tr {
	display: grid;
	grid-template-areas: "icon title store status date" "icon num store status date";
	grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 2px 20px;
}
/* Dokan's phone CSS turns these rows into flex rows (.dokan-table.dokan-support-table tbody tr:not(.is-expanded)),
   which squeezed the card's cells into narrow columns; keep the grid. */
.dokan-support-customer-listing .dokan-table.dokan-support-table tbody tr:not(.is-expanded) {
	display: grid;
}
.dokan-support-customer-listing .dokan-support-table tbody tr::before {
	grid-area: icon;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(1) {
	grid-area: num;
	align-self: start;
	font-size: 13px;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(1) a {
	color: var(--wd-text-color);
	font-weight: 400;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(2) {
	grid-area: store;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(2) :is(strong, a) {
	color: #3A3A3A;
	font-weight: 500;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(3) {
	grid-area: title;
	align-self: end;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(3) a {
	color: var(--wd-title-color);
	font-size: 15px;
	font-weight: 600;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(3) a:is(:hover, :focus-visible),
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(2) a:is(:hover, :focus-visible) {
	color: var(--wd-primary-color);
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(4) {
	grid-area: status;
}
.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(5) {
	grid-area: date;
	color: var(--wd-text-color);
	font-size: 13px;
	text-align: end;
}

/* Support Tickets filter (All / Open / Closed): pill tabs, the current one mint. */
.dokan-support-customer-listing ul.dokan-support-topic-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	float: none;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.dokan-support-customer-listing ul.dokan-support-topic-counts li {
	margin: 0;
	padding: 0;
}
.dokan-support-customer-listing ul.dokan-support-topic-counts li::after {
	content: none;
}
.dokan-support-customer-listing ul.dokan-support-topic-counts li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: #fff;
	box-shadow: inset 0 0 0 1px #E2E6E3;
	color: var(--wd-title-color);
	font-size: 13px;
	font-weight: 600;
}
.dokan-support-customer-listing ul.dokan-support-topic-counts li a:is(:hover, :focus-visible) {
	color: var(--wd-primary-color);
}
.dokan-support-customer-listing ul.dokan-support-topic-counts li.active a {
	background-color: #EAF2EC;
	box-shadow: none;
	color: #175536;
}

/* Narrow content area (phones): the cards stack. */
@container (max-width: 700px) {
	.afm-order-cards > .afm-order-card,
	.afm-account-downloads .woocommerce-table--order-downloads tbody tr {
		flex-wrap: wrap;
		column-gap: 0;
		row-gap: 14px;
		padding: 16px;
	}
	.afm-order-card__icon {
		order: 0;
		margin-inline-end: 12px;
	}
	.afm-order-card__main {
		order: 1;
		flex: 1 1 140px;
	}
	.afm-order-card__field {
		order: 3;
		align-self: stretch;
		flex: 1 1 50%;
		flex-direction: row;
		align-items: baseline;
		gap: 6px;
		padding-top: 12px;
		border-top: 1px solid #EFECE6;
	}
	.afm-order-card__field .afm-order-card__label {
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}
	.afm-order-card__field .afm-order-card__label::after {
		content: ":";
	}
	.afm-order-cards .afm-order-card__field--order-status {
		order: 2;
		flex: 0 0 auto;
		margin-inline-start: 12px;
		padding-top: 0;
		border-top: 0;
	}
	.afm-order-card__field--order-status .afm-order-card__label,
	.afm-order-card__field--order-total .afm-order-card__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.afm-order-card__field--order-total {
		justify-content: flex-end;
	}
	.afm-order-card__field--order-total .afm-order-card__value {
		font-size: 17px;
	}
	/* The buttons share the width by their text ("Request Warranty" needs more room than "View") and wrap to a
	   second line when they don't fit, rather than squeezing into equal columns. */
	.afm-order-card__actions {
		order: 4;
		flex: 1 1 100%;
		flex-wrap: wrap;
	}
	.afm-order-cards .afm-order-card__actions .button {
		flex: 1 1 auto;
		min-height: 44px;
		padding-inline: 14px;
		white-space: normal;
		text-align: center;
	}

	.afm-account-downloads .woocommerce-table--order-downloads tbody tr::before {
		margin-inline-end: 12px;
	}
	.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-product {
		flex: 1 1 140px;
	}
	/* The thin lines are drawn as an inset shadow: a plugin stylesheet removes table cell top borders with !important. */
	.afm-account-downloads .woocommerce-table--order-downloads tbody td:is(.download-remaining, .download-expires) {
		flex: 1 1 50%;
		flex-direction: row;
		gap: 6px;
		padding-top: 12px;
		box-shadow: inset 0 1px 0 #EFECE6;
		font-size: 13px;
	}
	.afm-account-downloads .woocommerce-table--order-downloads tbody td:is(.download-remaining, .download-expires)::before {
		content: attr(data-title) ":";
		font-size: 13px;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}
	.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-file {
		flex: 1 1 100%;
	}
	.afm-account-downloads .woocommerce-table--order-downloads tbody td.download-file .button {
		width: 100%;
		min-height: 44px;
	}

	.dokan-support-customer-listing .dokan-support-table tbody tr {
		grid-template-areas: "icon title status" "icon num num" "store store date";
		grid-template-columns: 44px minmax(0, 1fr) auto;
		column-gap: 12px;
		padding: 16px;
	}
	.dokan-support-customer-listing .dokan-support-table tbody td:is(:nth-child(2), :nth-child(5)) {
		margin-top: 12px;
		padding-top: 12px;
		box-shadow: inset 0 1px 0 #EFECE6;
		font-size: 13px;
	}
	.dokan-support-customer-listing .dokan-support-table tbody td:is(:nth-child(4), :nth-child(5)) {
		justify-self: end;
	}
	/* Carries the line across the gap between the store and the date. */
	.dokan-support-customer-listing .dokan-support-table tbody td:nth-child(5) {
		margin-inline-start: -12px;
		padding-inline-start: 12px;
	}
}

/* My Account menu (template woocommerce/myaccount/navigation.php, icons in inc/modules/account-menu.php): the menu is a
   white card like the My Account cards (Woodmart's rounding, the same soft shadow) with a small line icon before each
   page, a count such as the open support tickets as a green badge, and Logout under a thin line. The current page's mint
   and the hover colour come from Theme Settings → Custom CSS, block "My Account menu". On phones the list sits behind one
   button that shows the current page ("Account menu"); assets/js/account-menu.js opens it. */
.woocommerce-MyAccount-navigation.afm-account-nav {
	padding: 10px;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.woocommerce-MyAccount-navigation.afm-account-nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li {
	margin: 0;
	padding: 0;
	border: 0;
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 8px;
	color: #3A3A3A;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li.is-active > a {
	font-weight: 600;
}
/* Woodmart's Dokan styles give the Returns & Refunds link an empty ::before, which took an extra gap before its icon. */
.woocommerce-MyAccount-navigation.afm-account-nav ul > li > a::before {
	display: none;
}
.afm-account-nav__icon {
	display: flex;
	flex: 0 0 18px;
}
.afm-account-nav__icon svg {
	width: 18px;
	height: 18px;
}
.afm-account-nav__label {
	flex: 1 1 auto;
	min-width: 0;
}
.afm-account-nav__badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background-color: var(--wd-primary-color);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li > a:hover .afm-account-nav__badge {
	background-color: #fff;
	color: var(--wd-primary-color);
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #EFECE6;
}
.woocommerce-MyAccount-navigation.afm-account-nav ul > li.woocommerce-MyAccount-navigation-link--customer-logout > a:not(:hover) {
	color: var(--wd-text-color);
}
.afm-account-nav__toggle {
	display: none;
}
/* No vertical line between the menu and the page (Woodmart's sidebar border); the grid gap is the space between them.
   Woodmart's "My Account" heading above the menu is removed in inc/modules/account-menu.php. */
.wd-my-account-wrapper > .wd-my-account-sidebar {
	padding-inline-end: 0;
	border-inline-end: 0;
}
/* Desktop: the menu column is only as wide as its longest page name (up to 300px) instead of Woodmart's fixed 3 of 12
   columns (about 330px, mostly empty), and the page takes the rest. Woodmart's 4/8 split stays on tablets, the stacked
   menu on phones. */
@media (min-width: 1025px) {
	.wd-my-account-wrapper.wd-grid-g {
		grid-template-columns: fit-content(300px) minmax(0, 1fr);
	}
	.wd-my-account-wrapper.wd-grid-g > .wd-grid-col {
		grid-column: auto;
	}
	.wd-my-account-wrapper.wd-grid-g > .wd-my-account-sidebar {
		min-width: 230px;
	}
}
@media (max-width: 767.98px) {
	.afm-account-nav.afm-has-toggle .afm-account-nav__toggle {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 0 14px;
		border: 0;
		border-radius: 8px;
		background: none;
		box-shadow: none;
		color: #175536;
		font: inherit;
		font-size: 15px;
		font-weight: 600;
		text-align: start;
		text-transform: none;
	}
	.afm-account-nav__hint {
		color: var(--wd-text-color);
		font-size: 12px;
		font-weight: 500;
	}
	.afm-account-nav__chevron {
		flex: 0 0 18px;
		color: var(--wd-text-color);
		transition: transform 0.2s ease;
	}
	.afm-account-nav.is-open .afm-account-nav__chevron {
		transform: rotate(180deg);
	}
	.afm-account-nav.afm-has-toggle:not(.is-open) ul {
		display: none;
	}
	.afm-account-nav.afm-has-toggle.is-open ul {
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px solid #EFECE6;
	}
}

/* My Account dashboard (template woocommerce/myaccount/dashboard.php, cards from inc/modules/account-dashboard.php): a round
   initial with "Hello, <name>" and "Not you? Log out", then every account section as a white card like the other account
   cards (Woodmart's rounding, the soft shadow) with the menu's icon in a mint circle, the name, a short grey status line
   and a green count where something is open. Four cards a row, three or two when the content area is narrower. */
.afm-dashboard-hello {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
}
.afm-dashboard-hello__avatar {
	display: flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	height: 52px;
	border-radius: 50%;
	background-color: var(--wd-primary-color);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}
.afm-dashboard-hello__text h2 {
	margin: 0 0 2px;
	font-size: 24px;
	line-height: 1.25;
}
.afm-dashboard-hello__text p {
	margin: 0;
	font-size: 14px;
	color: var(--wd-text-color);
}
.afm-dashboard-hello__text a {
	font-weight: 600;
	color: var(--wd-primary-color);
}
.afm-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.afm-dashboard {
	container-type: inline-size;
}
.afm-dashboard-cards li {
	margin: 0;
}
.afm-dashboard-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
	color: var(--wd-title-color);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.afm-dashboard-card:is(:hover, :focus-visible) {
	box-shadow: 0 0 0 1.5px var(--wd-primary-color), 0 6px 16px rgba(0, 0, 0, 0.08);
	color: var(--wd-title-color);
}
.afm-dashboard-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.afm-dashboard-card__icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: 50%;
	background-color: #EAF2EC;
	color: var(--wd-primary-color);
}
.afm-dashboard-card__icon svg {
	width: 20px;
	height: 20px;
}
.afm-dashboard-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	box-sizing: border-box;
	border-radius: 999px;
	background-color: var(--wd-primary-color);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.afm-dashboard-card__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.afm-dashboard-card__label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wd-title-color);
}
.afm-dashboard-card__note {
	font-size: 13px;
	line-height: 1.4;
	color: var(--wd-text-color);
}
@container (max-width: 860px) {
	.afm-dashboard-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@container (max-width: 600px) {
	.afm-dashboard-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.afm-dashboard-card {
		padding: 16px;
	}
}
/* Dokan's wholesale template prints <p>&nbsp;</p> as a spacer before its box, which only added a gap. */
.woocommerce-MyAccount-content > p:has(+ .dokan-account-migration-lists) {
	display: none;
}
.afm-dashboard .afm-dashboard-cards {
	margin-bottom: 0;
}
/* Dokan's "Become a Vendor" box under the cards: the same white card, with a mint store icon. */
.woocommerce-MyAccount-content .dokan-account-migration-lists {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	list-style: none;
}
.woocommerce-MyAccount-content .dokan-account-migration-lists li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 0;
	padding: 20px 24px;
	border: 0;
	border-radius: var(--wd-brd-radius);
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.woocommerce-MyAccount-content .dokan-account-migration-lists li::before {
	content: "";
	flex: 0 0 44px;
	height: 44px;
	border-radius: 50%;
	background: #EAF2EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9M4 9v11h16V9M3 9a3 3 0 0 0 6 0a3 3 0 0 0 6 0a3 3 0 0 0 6 0M10 20v-5h4v5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.woocommerce-MyAccount-content .dokan-account-migration-lists :is(.left-content, .right-content) {
	float: none;
	width: auto;
	padding: 0;
}
.woocommerce-MyAccount-content .dokan-account-migration-lists .left-content {
	flex: 1 1 260px;
}
.woocommerce-MyAccount-content .dokan-account-migration-lists .left-content p {
	margin: 0;
	font-size: 13px;
	color: var(--wd-text-color);
}
.woocommerce-MyAccount-content .dokan-account-migration-lists .left-content strong {
	font-size: 15px;
	color: var(--wd-title-color);
}
.woocommerce-MyAccount-content .dokan-account-migration-lists .right-content .btn {
	margin: 0;
	min-height: 42px;
	border-radius: 5px;
}
.woocommerce-MyAccount-content .dokan-account-migration-lists .dokan-clearfix {
	display: none;
}

/* ------------------------------------------------------------------------------------------------
 * Dokan alerts (SweetAlert2)
 * ------------------------------------------------------------------------------------------------
 * Dokan's message popups ("Your report has been submitted" after Report Abuse and the like). The OK
 * button's colour is set in inc/modules/dokan-alerts.php; here: rounded popup, the OK button the
 * size of our buttons, a green focus ring instead of SweetAlert's purple ring and Woodmart's
 * dotted keyboard outline (its --wd-otl-style variable), and a green tick.
 */
.swal2-container .swal2-popup {
	border-radius: 10px;
}
.swal2-container .swal2-html-container {
	font-size: 15px;
	color: var(--wd-title-color);
}
.swal2-container .swal2-actions .swal2-styled {
	min-height: 42px;
	padding: 5px 20px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
}
.swal2-container .swal2-actions .swal2-styled:focus {
	--wd-otl-style: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wd-primary-color) 30%, transparent);
}
.swal2-container .swal2-icon.swal2-success {
	border-color: var(--wd-primary-color);
	color: var(--wd-primary-color);
}
.swal2-container .swal2-icon.swal2-success .swal2-success-ring {
	border-color: color-mix(in srgb, var(--wd-primary-color) 25%, transparent);
}
.swal2-container .swal2-icon.swal2-success [class^="swal2-success-line"] {
	background-color: var(--wd-primary-color);
}
/* Dokan's buttons while disabled or working ("Reporting..." in the Report Abuse popup, which sits in a
 * disabled fieldset): Dokan's style.css gives them a light purple (#9475F0); Woodmart only recolours
 * the normal state. Keep Woodmart's accented button colours. */
body.dokan-theme-woodmart :is(.dokan-btn-theme, input[type="submit"].dokan-btn-theme):is(.disabled, [disabled]),
body.dokan-theme-woodmart fieldset[disabled] :is(.dokan-btn-theme, input[type="submit"].dokan-btn-theme) {
	color: var(--btn-accented-color);
	background-color: var(--btn-accented-bgcolor);
}

/* ------------------------------------------------------------------------------------------------
 * Product Q&A (Dokan Pro)
 * ------------------------------------------------------------------------------------------------
 * Single product → Questions & Answers tab (Dokan's React app, Tailwind classes). "Post your
 * Question" and the popup's Post button were Dokan red; the popup's close button got Woodmart's
 * button height and grey background (a tall grey pill). Dokan's Tailwind utilities are !important
 * but read variables, so only the variables are set here: our button green, size and corners, and
 * for the close button our text colour with a mint hover instead of red.
 */
#dokan-product-qa-frontend-root .bg-red-600,
.dokan-custom-modal:has(textarea[name="comment"]) .border-t button {
	--text-sm: 13px;
	--radius-md: var(--btn-accented-brd-radius, 5px);
	--colors-red-600: var(--btn-accented-bgcolor);
}
#dokan-product-qa-frontend-root .bg-red-600:hover,
.dokan-custom-modal:has(textarea[name="comment"]) .border-t button:hover {
	--colors-red-600: var(--btn-accented-bgcolor-hover);
}
.dokan-custom-modal button[aria-label="Close"] {
	min-height: 0;
	background-color: transparent;
	--color-gray-400: var(--wd-text-color);
	--color-red-50: #EAF2EC;
	--color-red-600: var(--wd-primary-color);
}
