:root {
	--cmmai-navy: #082f5b;
	--cmmai-navy-2: #0d3e70;
	--cmmai-orange: #ff6b32;
	--cmmai-orange-dark: #ed5722;
	--cmmai-green: #19a76f;
	--cmmai-bg: #f3f6fa;
	--cmmai-card: #fff;
	--cmmai-text: #173552;
	--cmmai-muted: #6e7f91;
	--cmmai-line: #e4eaf0;
	--cmmai-font: 17px;
	--cmmai-content-padding: 28px;
}

body.woocommerce-account .woocommerce {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	font-size: var(--cmmai-font);
	line-height: 1.6;
}

body.woocommerce-account .woocommerce-my-account-wrapper {
	box-sizing: border-box !important;
	grid-column: 1 / -1;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	align-content: start !important;
}

body.woocommerce-account .wd-my-account-sidebar,
body.woocommerce-account .wd-my-account-content {
	box-sizing: border-box !important;
	min-width: 0 !important;
	min-height: 0 !important;
	align-self: start !important;
}

body.woocommerce-account .woocommerce *,
body.woocommerce-account .woocommerce *::before,
body.woocommerce-account .woocommerce *::after {
	box-sizing: border-box;
}

body.woocommerce-account .woocommerce::before {
	display: none !important;
	content: "";
}

body.woocommerce-account .woocommerce::after,
body.woocommerce-account .woocommerce-my-account-wrapper::after {
	display: table !important;
	clear: both !important;
	content: "";
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 13px 15px;
	border-radius: 11px;
	color: var(--cmmai-text);
	font-size: 0.92em;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none !important;
	white-space: normal;
	overflow-wrap: anywhere;
	transition: color 0.2s, background 0.2s;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
	background: #eff5fa;
	color: var(--cmmai-orange);
}

body.woocommerce-account .woocommerce-MyAccount-content {
	height: auto !important;
	min-height: 0 !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: var(--cmmai-content-padding) !important;
	overflow: visible !important;
	border-radius: 24px;
	background: var(--cmmai-bg);
	color: var(--cmmai-text);
	container-type: inline-size;
}

body.woocommerce-account .woocommerce-MyAccount-content > * {
	max-width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(h1, h2, h3, h4, p) {
	overflow-wrap: break-word;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(button, input, select, textarea) {
	font-size: inherit;
}

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

/*
 * WoodMart prints a second dashboard shortcut grid inside the content area.
 * The real WooCommerce navigation stays in the desktop sidebar; only this
 * duplicated shortcut block is removed.
 */
body.cmmai-account-dashboard .woocommerce-MyAccount-content .wd-my-account-links,
body.cmmai-account-dashboard .woocommerce-MyAccount-content .woodmart-my-account-links {
	display: none !important;
}

.cmmai-icon {
	display: block;
	width: 1.35em;
	height: 1.35em;
	flex: 0 0 auto;
}

.cmmai-notice {
	margin: 0 0 18px;
	padding: 13px 15px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 700;
}

.cmmai-notice-success {
	border-color: #bcebd8;
	background: #eafff5;
	color: #08734c;
}

.cmmai-notice-error {
	border-color: #ffc7c7;
	background: #fff1f1;
	color: #a6231b;
}

.cmmai-hello {
	display: flex;
	flex-direction: column;
	margin-bottom: 18px;
	padding: 22px 26px;
	border-radius: 19px;
	background: linear-gradient(135deg, var(--cmmai-navy), var(--cmmai-navy-2));
	box-shadow: 0 12px 30px rgba(8, 47, 91, 0.17);
	color: #fff;
}

.cmmai-hello small {
	font-size: 0.82em;
	opacity: 0.78;
}

.cmmai-hello strong {
	font-size: 1.45em;
	line-height: 1.35;
}

.cmmai-hello span {
	margin-top: 3px;
	font-size: 0.82em;
	opacity: 0.78;
}

.cmmai-section-title {
	margin: 25px 0 12px;
	color: var(--cmmai-text);
	font-size: 1.05em;
	font-weight: 800;
}

.cmmai-menu-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

/*
 * ปรับตาม "ความกว้างจริงของกล่องเนื้อหา" ไม่ใช่เฉพาะความกว้างหน้าจอ
 * จึงไม่บีบการ์ดเป็นแท่งแคบเมื่อธีมหรือ Elementor มี Sidebar ครอบอยู่
 */
@container (max-width: 620px) {
	.cmmai-menu-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 360px) {
	.cmmai-menu-grid {
		grid-template-columns: 1fr;
	}

	.cmmai-menu-card {
		min-height: 92px;
	}
}

.cmmai-menu-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 142px;
	padding: 18px 12px;
	border: 1px solid rgba(19, 54, 83, 0.05);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 7px 19px rgba(20, 45, 70, 0.055);
	color: var(--cmmai-text) !important;
	text-align: center;
	text-decoration: none !important;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cmmai-menu-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(20, 45, 70, 0.11);
}

.cmmai-menu-icon {
	display: grid;
	width: 50px;
	height: 50px;
	margin-bottom: 9px;
	place-items: center;
	border-radius: 50%;
	background: var(--cmmai-orange);
	color: #fff;
}

.cmmai-menu-icon .cmmai-icon {
	width: 25px;
	height: 25px;
}

.cmmai-menu-copy {
	display: block;
}

.cmmai-menu-copy strong,
.cmmai-menu-copy small {
	display: block;
}

.cmmai-menu-copy strong {
	font-size: 0.85em;
	line-height: 1.4;
}

.cmmai-menu-copy small {
	display: none;
	color: var(--cmmai-muted);
	font-size: 0.72em;
	font-weight: 500;
}

.cmmai-chevron {
	display: none;
}

.cmmai-layout-list .cmmai-menu-grid {
	grid-template-columns: 1fr;
	gap: 0;
	overflow: hidden;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(20, 45, 70, 0.055);
}

.cmmai-layout-list .cmmai-menu-card {
	flex-direction: row;
	justify-content: flex-start;
	min-height: 78px;
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--cmmai-line);
	border-radius: 0;
	box-shadow: none;
	text-align: left;
}

.cmmai-layout-list .cmmai-menu-card:last-child {
	border-bottom: 0;
}

.cmmai-layout-list .cmmai-menu-icon {
	width: 43px;
	height: 43px;
	margin: 0 13px 0 0;
}

.cmmai-layout-list .cmmai-menu-icon .cmmai-icon {
	width: 21px;
	height: 21px;
}

.cmmai-layout-list .cmmai-menu-copy {
	flex: 1;
}

.cmmai-layout-list .cmmai-menu-copy strong,
.cmmai-layout-list .cmmai-menu-copy small {
	display: block;
}

.cmmai-layout-list .cmmai-chevron {
	display: block;
	color: #a7b3bf;
	font-size: 1.45em;
}

/* Replacement navigation shown below the page data. */
.cmmai-bottom-account-menu {
	position: relative;
	z-index: 1;
	display: block;
	clear: both;
	width: 100%;
	height: auto;
	margin-top: 30px;
	margin-bottom: 28px;
	padding-top: 2px;
	overflow: visible;
	border-top: 1px solid var(--cmmai-line);
}

.cmmai-icon-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.cmmai-icon-list-item {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	padding: 12px 14px;
	border: 1px solid rgba(19, 54, 83, 0.06);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(20, 45, 70, 0.045);
	color: var(--cmmai-text) !important;
	text-decoration: none !important;
}

.cmmai-icon-list-item:hover,
.cmmai-icon-list-item.is-current {
	border-color: rgba(255, 107, 50, 0.28);
	background: #fff9f6;
}

.cmmai-icon-list-icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--cmmai-orange);
	color: #fff;
}

.cmmai-icon-list-icon .cmmai-icon {
	width: 22px;
	height: 22px;
}

.cmmai-icon-list-item span:nth-child(2),
.cmmai-icon-list-item strong,
.cmmai-icon-list-item small {
	display: block;
	min-width: 0;
}

.cmmai-icon-list-item strong {
	font-size: 0.82em;
	line-height: 1.35;
}

.cmmai-icon-list-item small {
	margin-top: 2px;
	color: var(--cmmai-muted);
	font-size: 0.68em;
	line-height: 1.35;
}

.cmmai-icon-list-item > b {
	color: #a7b3bf;
	font-size: 1.45em;
	font-weight: 400;
}

.cmmai-installment-card,
.cmmai-payment-box,
.cmmai-payment-history,
.cmmai-order-card,
.cmmai-documents-form,
.cmmai-contract-card,
.cmmai-complete-profile,
.cmmai-empty-state {
	margin: 18px 0;
	padding: 22px;
	border: 1px solid rgba(19, 54, 83, 0.055);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(20, 45, 70, 0.06);
}

.cmmai-product-summary {
	display: flex;
	align-items: center;
	gap: 15px;
}

.cmmai-product-summary > img,
.cmmai-product-placeholder {
	display: grid;
	width: 82px;
	height: 82px;
	flex: 0 0 82px;
	place-items: center;
	border-radius: 15px;
	background: #f1f4f7;
	object-fit: cover;
}

.cmmai-product-placeholder {
	color: #9cabb8;
}

.cmmai-product-placeholder .cmmai-icon {
	width: 31px;
	height: 31px;
}

.cmmai-product-copy {
	min-width: 0;
	flex: 1;
}

.cmmai-product-copy h3,
.cmmai-product-copy p,
.cmmai-product-copy small {
	display: block;
	margin: 0;
}

.cmmai-product-copy h3 {
	color: var(--cmmai-text);
	font-size: 1.1em;
	line-height: 1.35;
}

.cmmai-product-copy p,
.cmmai-product-copy small {
	color: var(--cmmai-muted);
	font-size: 0.8em;
}

.cmmai-status-badge,
.cmmai-purchase-badge,
.cmmai-order-status {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.72em;
	font-weight: 800;
	line-height: 1.3;
}

.cmmai-status-badge {
	background: #fff0e8;
	color: var(--cmmai-orange-dark);
}

.cmmai-status-badge.is-active {
	background: #f28c28;
	color: #fff;
}

.cmmai-status-badge.is-complete {
	background: #16a34a;
	color: #fff;
}

.cmmai-progress-label {
	display: flex;
	justify-content: space-between;
	margin-top: 19px;
	color: var(--cmmai-muted);
	font-size: 0.8em;
}

.cmmai-progress-label strong {
	color: var(--cmmai-text);
}

.cmmai-progress-track {
	height: 8px;
	margin: 7px 0 17px;
	overflow: hidden;
	border-radius: 20px;
	background: #e8edf2;
}

.cmmai-progress-track i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--cmmai-orange);
}

.cmmai-installment-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.cmmai-installment-stats > div {
	min-width: 0;
	padding: 13px;
	border-radius: 13px;
	background: #f3f5f8;
}

.cmmai-installment-stats small,
.cmmai-installment-stats strong {
	display: block;
}

.cmmai-installment-stats small {
	color: var(--cmmai-muted);
	font-size: 0.73em;
}

.cmmai-installment-stats strong {
	color: var(--cmmai-text);
	font-size: 1em;
	line-height: 1.35;
}

.cmmai-next-payment {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 14px;
	padding: 17px;
	border-radius: 16px;
	background: var(--cmmai-navy);
	color: #fff;
}

.cmmai-next-payment > div {
	min-width: 0;
	flex: 1;
}

.cmmai-next-payment small,
.cmmai-next-payment strong,
.cmmai-next-payment span {
	display: block;
}

.cmmai-next-payment small,
.cmmai-next-payment span {
	font-size: 0.75em;
	opacity: 0.8;
}

.cmmai-next-payment strong {
	color: var(--cmmai-orange);
	font-size: 1.45em;
	line-height: 1.3;
}

.cmmai-next-payment a,
.cmmai-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border: 0;
	border-radius: 11px;
	background: var(--cmmai-orange);
	box-shadow: 0 7px 17px rgba(255, 107, 50, 0.22);
	color: #fff !important;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.cmmai-next-payment a:hover,
.cmmai-primary-button:hover {
	background: var(--cmmai-orange-dark);
}

.cmmai-paid-complete {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding: 15px;
	border-radius: 14px;
	background: #eafff5;
	color: #08734c;
}

.cmmai-text-link {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	color: var(--cmmai-navy) !important;
	font-size: 0.82em;
	font-weight: 800;
	text-decoration: none !important;
}

.cmmai-page-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 18px;
}

.cmmai-page-heading h2,
.cmmai-page-heading p {
	margin: 0;
}

.cmmai-page-heading h2 {
	color: #102e4a;
	font-size: 1.75em;
	line-height: 1.3;
}

.cmmai-page-heading p {
	margin-top: 4px;
	color: var(--cmmai-muted);
	font-size: 0.88em;
}

.cmmai-orders {
	display: grid;
	gap: 15px;
}

.cmmai-order-card {
	margin: 0;
}

.cmmai-order-card header,
.cmmai-order-card footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.cmmai-order-card header > div:first-child small,
.cmmai-order-card header > div:first-child strong,
.cmmai-order-card footer small,
.cmmai-order-card footer strong {
	display: block;
}

.cmmai-order-card header > div:first-child small,
.cmmai-order-card footer small,
.cmmai-order-date {
	color: var(--cmmai-muted);
	font-size: 0.75em;
}

.cmmai-order-card header > div:first-child strong {
	color: var(--cmmai-text);
	font-size: 1.2em;
}

.cmmai-order-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.cmmai-purchase-badge.is-installment {
	background: #fff0e8;
	color: var(--cmmai-orange-dark);
}

.cmmai-purchase-badge.is-cash {
	background: #e9f9f3;
	color: #08734c;
}

.cmmai-order-status {
	background: #eef3f7;
	color: #506579;
}

.cmmai-order-date {
	margin: 3px 0 13px;
	padding-bottom: 11px;
	border-bottom: 1px solid var(--cmmai-line);
}

.cmmai-order-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
}

.cmmai-order-product > img,
.cmmai-order-product-image {
	display: grid;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	place-items: center;
	border-radius: 12px;
	background: #f2f5f8;
	object-fit: cover;
	color: #9babb9;
}

.cmmai-order-product > div {
	min-width: 0;
}

.cmmai-order-product strong,
.cmmai-order-product small,
.cmmai-order-plan {
	display: block;
}

.cmmai-order-product small,
.cmmai-order-plan {
	color: var(--cmmai-muted);
	font-size: 0.76em;
}

.cmmai-order-card footer {
	margin-top: 12px;
	padding-top: 13px;
	border-top: 1px solid var(--cmmai-line);
}

.cmmai-order-card footer a {
	padding: 9px 14px;
	border: 1px solid var(--cmmai-orange);
	border-radius: 10px;
	color: var(--cmmai-orange-dark) !important;
	font-size: 0.8em;
	font-weight: 800;
	text-decoration: none !important;
}

.cmmai-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
}

.cmmai-pagination a,
.cmmai-pagination span {
	padding: 8px 12px;
	border-radius: 9px;
	background: #fff;
	color: var(--cmmai-text);
	font-size: 0.8em;
	font-weight: 700;
	text-decoration: none !important;
}

.cmmai-payment-box {
	text-align: center;
}

.cmmai-payment-box h3 {
	margin: 0;
	font-size: 1.2em;
}

.cmmai-payment-box > p {
	margin: 5px 0 12px;
}

.cmmai-qr {
	display: block;
	width: min(270px, 100%);
	height: auto;
	margin: 12px auto 7px;
	padding: 8px;
	border: 1px solid var(--cmmai-line);
	border-radius: 14px;
	background: #fff;
}

.cmmai-payment-box > small {
	display: block;
	color: var(--cmmai-muted);
	font-size: 0.76em;
}

.cmmai-qr-missing {
	margin: 14px auto;
	padding: 18px;
	border: 1px dashed #cbd5df;
	border-radius: 13px;
	background: #f7f9fb;
	color: var(--cmmai-muted);
}

.cmmai-contact-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 17px;
}

.cmmai-contact-actions a {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	min-height: 64px;
	padding: 14px 16px;
	border: 1px solid var(--cmmai-line);
	border-radius: 12px;
	color: var(--cmmai-text) !important;
	text-align: left;
	text-decoration: none !important;
}

.cmmai-contact-actions a.is-primary {
	border-color: var(--cmmai-orange);
	background: var(--cmmai-orange) !important;
	color: #fff !important;
}

.cmmai-contact-actions a.is-line-help {
	border-color: #06c755;
	background: #06c755 !important;
	box-shadow: 0 7px 17px rgba(6, 199, 85, 0.22);
	color: #fff !important;
}

.cmmai-contact-actions a.is-line-help:hover,
.cmmai-contact-actions a.is-line-help:focus-visible {
	border-color: #05ad4a;
	background: #05ad4a !important;
	color: #fff !important;
}

.cmmai-contact-actions a.is-messenger {
	border-color: #0084ff;
	background: #0084ff !important;
	box-shadow: 0 7px 17px rgba(0, 132, 255, 0.22);
	color: #fff !important;
}

.cmmai-contact-actions a.is-messenger:hover,
.cmmai-contact-actions a.is-messenger:focus-visible {
	border-color: #006fd8;
	background: #006fd8 !important;
	color: #fff !important;
}

.cmmai-contact-actions .cmmai-icon {
	width: 24px;
	height: 24px;
}

.cmmai-contact-actions span {
	min-width: 0;
}

.cmmai-contact-actions strong,
.cmmai-contact-actions small {
	display: block;
}

.cmmai-contact-actions strong {
	font-size: 0.96em;
	line-height: 1.35;
}

.cmmai-contact-actions small {
	margin-top: 2px;
	font-size: 0.78em;
	line-height: 1.35;
	opacity: 0.75;
}

.cmmai-payment-history {
	padding: 14px 18px;
}

.cmmai-payment-history > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 4px 12px;
}

.cmmai-payment-history > header h3 {
	margin: 0;
	font-size: 1.05em;
}

.cmmai-payment-history > header span {
	color: var(--cmmai-muted);
	font-size: 0.75em;
}

.cmmai-payment-row {
	display: grid !important;
	grid-template-columns: 42px minmax(0, 1fr) minmax(128px, auto) !important;
	align-items: center;
	gap: 10px;
	padding: 12px 4px;
	border-top: 1px solid var(--cmmai-line);
	direction: ltr;
}

.cmmai-payment-state {
	display: grid;
	grid-column: 1;
	grid-row: 1;
	width: 34px;
	height: 34px;
	min-width: 34px;
	margin: 0 !important;
	float: none !important;
	place-items: center;
	border-radius: 50%;
	background: #dbe2e9;
	color: #718291;
}

.cmmai-payment-state .cmmai-icon {
	width: 18px;
	height: 18px;
}

.cmmai-payment-row.is-paid .cmmai-payment-state {
	background: var(--cmmai-green);
	color: #fff;
}

.cmmai-payment-row.is-current .cmmai-payment-state {
	background: var(--cmmai-orange);
	color: #fff;
}

.cmmai-payment-row strong,
.cmmai-payment-row small {
	display: block;
}

.cmmai-payment-copy {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	text-align: left !important;
}

.cmmai-payment-copy > strong {
	white-space: nowrap;
}

.cmmai-payment-row small {
	color: var(--cmmai-muted);
	font-size: 0.7em;
}

.cmmai-payment-amount {
	grid-column: 3;
	grid-row: 1;
	min-width: 128px;
	width: max-content !important;
	margin: 0 !important;
	float: none !important;
	position: static !important;
	text-align: right !important;
}

.cmmai-payment-amount strong,
.cmmai-payment-amount small {
	width: max-content;
	max-width: none;
	margin-left: auto;
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
}

.cmmai-payment-row.is-paid .cmmai-payment-amount small {
	color: var(--cmmai-green);
}

.cmmai-payment-row.is-current .cmmai-payment-amount small {
	color: var(--cmmai-orange-dark);
}

.cmmai-documents-form {
	display: block !important;
	width: 100%;
	margin-top: 0;
}

.cmmai-documents-form [hidden] {
	display: none !important;
}

.cmmai-document-row {
	display: flex !important;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-width: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--cmmai-line);
	direction: ltr;
	text-align: left;
}

.cmmai-document-icon {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	border-radius: 12px;
	background: #fff0e8;
	color: var(--cmmai-orange-dark);
}

.cmmai-document-copy {
	min-width: 0;
	flex: 1 1 auto;
	direction: ltr !important;
	text-align: left !important;
}

.cmmai-document-copy strong,
.cmmai-document-copy small,
.cmmai-document-copy > span {
	display: block !important;
	float: none !important;
	width: auto;
	margin-right: 0;
	margin-left: 0;
	text-align: left !important;
}

.cmmai-document-copy small {
	color: var(--cmmai-muted);
	font-size: 0.84em;
	line-height: 1.5;
}

.cmmai-document-copy strong {
	color: var(--cmmai-text);
	font-size: 1em;
	line-height: 1.45;
}

.cmmai-document-copy > span {
	width: fit-content;
	margin-top: 5px;
	font-size: 0.78em;
	font-weight: 800;
	line-height: 1.4;
}

.cmmai-document-copy .is-uploaded {
	color: var(--cmmai-green);
}

.cmmai-document-copy .is-missing {
	color: #a26b23;
}

.cmmai-document-copy .cmmai-selected-file {
	max-width: 100%;
	color: var(--cmmai-navy-2);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.cmmai-document-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	direction: ltr;
}

.cmmai-document-actions a,
.cmmai-document-actions label span {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 11px;
	border: 1px solid var(--cmmai-line);
	border-radius: 9px;
	background: #fff;
	color: var(--cmmai-text);
	font-size: 0.82em;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
	cursor: pointer;
}

.cmmai-document-actions input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.cmmai-upload-note {
	margin: 14px 0 0;
	color: var(--cmmai-muted);
	font-size: 0.84em;
	line-height: 1.5;
}

.cmmai-upload-feedback {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-size: 0.88em;
	font-weight: 800;
	line-height: 1.5;
}

.cmmai-upload-feedback.is-success {
	border-color: #bcebd8;
	background: #eafff5;
	color: #08734c;
}

.cmmai-upload-feedback.is-warning {
	border-color: #f5d7a1;
	background: #fff9eb;
	color: #8a5a13;
}

.cmmai-upload-feedback.is-error {
	border-color: #ffc7c7;
	background: #fff1f1;
	color: #a6231b;
}

.cmmai-upload-progress {
	margin-top: 14px;
	padding: 13px 14px;
	border: 1px solid #dfe8f1;
	border-radius: 12px;
	background: #f7faff;
}

.cmmai-upload-progress > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--cmmai-navy);
	font-size: 0.86em;
	font-weight: 800;
}

.cmmai-upload-progress-track {
	display: block;
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #dce7f2;
}

.cmmai-upload-progress-track i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cmmai-orange), #ff9a58);
	transition: width 0.18s ease;
}

.cmmai-upload-progress.is-complete {
	border-color: #bcebd8;
	background: #eafff5;
}

.cmmai-upload-progress.is-complete > div {
	color: #08734c;
}

.cmmai-upload-progress.is-complete .cmmai-upload-progress-track i {
	background: var(--cmmai-green);
}

.cmmai-contracts {
	display: grid;
	gap: 13px;
}

.cmmai-contract-card {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.cmmai-pdf-badge {
	padding: 15px 10px;
	border-radius: 11px;
	background: #df3c3c;
	color: #fff;
	font-size: 0.8em;
	font-weight: 900;
}

.cmmai-contract-card > div {
	min-width: 0;
	flex: 1;
}

.cmmai-contract-card h3,
.cmmai-contract-card p {
	margin: 0;
}

.cmmai-contract-card h3 {
	font-size: 1em;
}

.cmmai-contract-card p {
	color: var(--cmmai-muted);
	font-size: 0.75em;
}

.cmmai-contract-card > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--cmmai-orange);
	color: #fff !important;
	font-size: 0.76em;
	font-weight: 800;
	text-decoration: none !important;
}

.cmmai-contract-card > a .cmmai-icon {
	width: 18px;
	height: 18px;
}

.cmmai-complete-profile {
	max-width: 840px;
	margin: 0 auto;
}

.cmmai-complete-icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin: 0 auto 10px;
	place-items: center;
	border-radius: 50%;
	background: #fff0e8;
	color: var(--cmmai-orange-dark);
}

.cmmai-complete-icon .cmmai-icon {
	width: 31px;
	height: 31px;
}

.cmmai-complete-profile > h2,
.cmmai-complete-profile > p {
	margin: 4px auto;
	text-align: center;
}

.cmmai-complete-profile > h2 {
	font-size: 1.55em;
}

.cmmai-complete-profile > p {
	max-width: 660px;
	color: var(--cmmai-muted);
	font-size: 0.86em;
}

.cmmai-complete-profile form {
	margin-top: 20px;
}

.cmmai-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}

.cmmai-form-grid label span {
	display: block;
	margin-bottom: 5px;
	font-size: 0.8em;
	font-weight: 800;
}

.cmmai-form-grid input {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #d7e0e8;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
}

.cmmai-form-grid input:focus {
	border-color: var(--cmmai-orange);
	outline: 3px solid rgba(255, 107, 50, 0.13);
}

.cmmai-form-note {
	margin: 9px 0 0;
	color: var(--cmmai-muted);
	font-size: 0.73em;
}

.cmmai-complete-profile .cmmai-primary-button,
.cmmai-documents-form .cmmai-primary-button {
	width: 100%;
	margin-top: 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content .cmmai-documents-form button.cmmai-primary-button {
	min-height: 54px;
	border: 0 !important;
	background: var(--cmmai-orange) !important;
	box-shadow: 0 7px 17px rgba(255, 107, 50, 0.24) !important;
	color: #fff !important;
	font-size: 0.94em !important;
	font-weight: 800 !important;
	opacity: 1 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .cmmai-documents-form button.cmmai-primary-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .cmmai-documents-form button.cmmai-primary-button:focus-visible {
	background: var(--cmmai-orange-dark) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .cmmai-documents-form button.cmmai-primary-button:disabled {
	background: #ff956d !important;
	cursor: wait;
}

.cmmai-empty-state {
	padding: 38px 20px;
	text-align: center;
}

.cmmai-empty-state > .cmmai-icon {
	width: 50px;
	height: 50px;
	margin: auto;
	color: #a6b4c1;
}

.cmmai-empty-state h3,
.cmmai-empty-state p {
	margin: 7px 0 0;
}

.cmmai-empty-state p {
	color: var(--cmmai-muted);
	font-size: 0.82em;
}

@media (min-width: 901px) {
	body.woocommerce-account .woocommerce {
		display: block !important;
		width: 100% !important;
	}

	body.woocommerce-account .woocommerce-my-account-wrapper {
		display: grid !important;
		grid-template-columns: minmax(240px, 25%) minmax(0, 1fr) !important;
		align-items: start !important;
		gap: 30px !important;
	}

	body.woocommerce-account .woocommerce-my-account-wrapper > .wd-my-account-sidebar,
	body.woocommerce-account .woocommerce-my-account-wrapper > .wd-my-account-content,
	body.woocommerce-account .woocommerce > .wd-my-account-sidebar,
	body.woocommerce-account .woocommerce > .wd-my-account-content {
		float: none !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		width: 100% !important;
	}

	.cmmai-bottom-account-menu {
		display: none !important;
	}
}

@media (max-width: 900px) {
	body.woocommerce-account .woocommerce {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.woocommerce-account .woocommerce-my-account-wrapper,
	body.woocommerce-account .wd-my-account-sidebar,
	body.woocommerce-account .wd-my-account-content {
		display: block !important;
		float: none !important;
		height: auto !important;
		min-height: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		overflow: visible !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		display: none !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex !important;
		gap: 5px;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 1px !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		width: auto !important;
		flex: 0 0 auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		width: auto !important;
		min-width: max-content;
		padding: 10px 12px;
		font-size: 14px;
		white-space: nowrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		display: block !important;
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		clear: both !important;
		padding: max(16px, calc(var(--cmmai-content-padding) * 0.7)) !important;
		border-radius: 18px;
	}

	.cmmai-menu-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cmmai-contact-actions {
		grid-template-columns: 1fr;
	}

	.cmmai-bottom-account-menu {
		margin-bottom: 0;
		padding-bottom: calc(82px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 600px) {
	.cmmai-icon-list {
		grid-template-columns: 1fr;
	}

	.cmmai-bottom-account-menu {
		margin-top: 24px;
	}
	.cmmai-hello {
		padding: 19px 20px;
	}

	.cmmai-installment-card,
	.cmmai-payment-box,
	.cmmai-payment-history,
	.cmmai-order-card,
	.cmmai-documents-form,
	.cmmai-contract-card,
	.cmmai-complete-profile,
	.cmmai-empty-state {
		padding: 16px;
		border-radius: 16px;
	}

	.cmmai-page-heading h2 {
		font-size: 1.45em;
	}

	.cmmai-product-summary {
		display: grid;
		grid-template-columns: 68px minmax(0, 1fr);
		align-items: start;
		gap: 11px;
	}

	.cmmai-product-summary > img,
	.cmmai-product-placeholder {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 68px;
		height: 68px;
		flex-basis: 68px;
	}

	.cmmai-product-copy {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
	}

	.cmmai-product-copy h3 {
		word-break: normal !important;
		overflow-wrap: normal !important;
		hyphens: none !important;
	}

	.cmmai-status-badge {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
		white-space: normal;
	}

	.cmmai-installment-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cmmai-installment-stats > div:last-child {
		grid-column: 1 / -1;
	}

	.cmmai-next-payment {
		display: block;
	}

	.cmmai-next-payment a {
		width: 100%;
		margin-top: 11px;
	}

	.cmmai-payment-row {
		grid-template-columns: 37px minmax(0, 1fr) minmax(102px, auto) !important;
		gap: 7px;
	}

	.cmmai-payment-amount {
		min-width: 102px;
	}

	.cmmai-payment-amount strong {
		font-size: 0.85em;
	}

	.cmmai-document-row {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 11px;
	}

	.cmmai-document-actions {
		width: 100%;
		margin-left: 0;
		padding-left: 59px;
		justify-content: flex-start;
	}

	.cmmai-contract-card {
		flex-wrap: wrap;
	}

	.cmmai-contract-card > div {
		flex-basis: calc(100% - 65px);
	}

	.cmmai-contract-card > a {
		width: 100%;
		justify-content: center;
	}

	.cmmai-form-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: 12px !important;
	}

	.cmmai-menu-card {
		min-height: 116px;
		padding: 15px 8px;
	}

	.cmmai-menu-icon {
		width: 46px;
		height: 46px;
	}

	.cmmai-order-card header,
	.cmmai-order-card footer {
		align-items: flex-start;
	}
}
