/**
 * Trinite Agrovet - My Account page.
 *
 * Styles myaccount-page.php and the re-skinned WooCommerce myaccount
 * templates in woocommerce/myaccount/. Loaded only on the My Account page and
 * every one of its endpoints, on top of woocommerce.css (shared WooCommerce
 * brand styling) and single-product.css (the shared tp-* component system:
 * shell, eyebrow, breadcrumb band, pill buttons, CTA band, trust cards), so
 * those are inherited rather than redefined here. This file only adds the
 * tp-btn--primary variant (used across My Account but not needed elsewhere
 * yet) plus everything specific to the account dashboard/orders/addresses/
 * account-details/login experience.
 *
 * Brand: deep green #0B542B / #176B3A, dark green #081C15, amber #F59E0B,
 * ink #17222D, muted #5F676E, border #E6E9E5, tints #F5F6F4 / #FAF8F2 /
 * #F3F7F3 / #ECF4EE.
 * Type: Montserrat (headings, labels, buttons), Inter (body, inputs).
 */

.tmyacc {
	background-color: #FFFFFF;
}

/* ---------------------------------------------------------------
   0. Shared primary button (missing from single-product.css)
   --------------------------------------------------------------- */
.tp-single .tp-btn--primary {
	background-color: #0B542B;
	border-color: #0B542B;
	color: #FFFFFF;
}

.tp-single .tp-btn--primary:hover {
	background-color: #176B3A;
	border-color: #176B3A;
	color: #FFFFFF;
}

/* ---------------------------------------------------------------
   1. Compact hero
   --------------------------------------------------------------- */
.tmyacc-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 34px;
	padding-bottom: 34px;
}

.tmyacc-hero__text {
	max-width: 640px;
}

.tp-single .tmyacc-hero__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.14;
	letter-spacing: -.5px;
	color: #FFFFFF;
	margin: 11px 0 9px;
}

.tp-single .tmyacc-hero__title span {
	color: #F59E0B;
}

.tmyacc-hero__text-copy {
	font-size: 16.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .85);
	margin: 0;
	max-width: 600px;
}

.tmyacc-hero__label {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.55;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	text-align: right;
	color: rgba(255, 255, 255, .82);
	margin: 0;
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------
   2. Main two-column layout (sidebar nav + content)
   --------------------------------------------------------------- */
.tmyacc-main {
	padding: 46px 0 60px;
	background-color: #FFFFFF;
}

.tmyacc-layout {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.woocommerce-MyAccount-navigation.tmyacc-nav,
.woocommerce-MyAccount-content.tmyacc-content {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
}

.tmyacc-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ---------------------------------------------------------------
   3. Sidebar: navigation + help card
   --------------------------------------------------------------- */
.tmyacc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: sticky;
	top: 20px;
}

.tmyacc-nav {
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
	padding: 10px;
	box-sizing: border-box;
}

.tmyacc-nav ul {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmyacc-nav__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-single .tmyacc-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	color: #17222D;
	text-decoration: none;
	border-radius: 8px;
	padding: 12px 14px;
	transition: background-color .18s ease, color .18s ease;
}

.tmyacc-nav__link:hover {
	background-color: #F3F7F3;
	color: #0B542B;
}

.tmyacc-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: #0B542B;
}

.tmyacc-nav__icon svg {
	width: 19px;
	height: 19px;
}

.tmyacc-nav__link[aria-current="page"],
.tmyacc-nav__item.is-active .tmyacc-nav__link {
	background-color: #0B542B;
	color: #FFFFFF;
}

.tmyacc-nav__link[aria-current="page"] .tmyacc-nav__icon,
.tmyacc-nav__item.is-active .tmyacc-nav__link .tmyacc-nav__icon {
	color: #FFFFFF;
}

/* Help card under the nav */
.tmyacc-help {
	background-color: #FAF8F2;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
	padding: 22px 20px 24px;
	box-sizing: border-box;
}

.tp-single .tmyacc-help__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: #17222D;
	margin: 0 0 8px;
}

.tmyacc-help__text {
	font-size: 13.5px;
	line-height: 1.65;
	color: #5F676E;
	margin: 0 0 18px;
}

.tmyacc-help__btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
}

.tp-single .tmyacc-help .tp-btn {
	width: 100%;
	font-size: 13.5px;
	padding: 12px 16px;
}

.tp-single .tmyacc-help__link {
	display: block;
	text-align: center;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #176B3A;
	text-decoration: underline;
}

.tp-single .tmyacc-help__link:hover {
	color: #F59E0B;
}

/* ---------------------------------------------------------------
   4. Welcome card (dashboard)
   --------------------------------------------------------------- */
.tmyacc-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 26px;
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 14px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
	padding: 30px 32px;
	box-sizing: border-box;
}

.tmyacc-welcome__main {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
	flex: 1 1 320px;
}

.tmyacc-welcome__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	border-radius: 999px;
	overflow: hidden;
	background-color: #ECF4EE;
	color: #0B542B;
	border: 3px solid #ECF4EE;
	box-sizing: border-box;
}

.tmyacc-welcome__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

.tmyacc-welcome__avatar svg {
	width: 32px;
	height: 32px;
}

.tmyacc-welcome__copy {
	min-width: 0;
}

.tp-single .tmyacc-welcome__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -.3px;
	color: #17222D;
	margin: 3px 0 6px;
}

.tmyacc-welcome__text {
	font-size: 14.5px;
	line-height: 1.65;
	color: #5F676E;
	margin: 0;
	max-width: 46ch;
}

.tmyacc-welcome__accent {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	flex: 0 0 auto;
	background-color: #0B542B;
	color: #FFFFFF;
	border-radius: 12px;
	padding: 20px 26px;
	min-width: 168px;
	box-sizing: border-box;
}

.tmyacc-welcome__accent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .16);
}

.tmyacc-welcome__accent-icon svg {
	width: 19px;
	height: 19px;
}

.tmyacc-welcome__accent p {
	margin: 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
}

/* ---------------------------------------------------------------
   5. Quick action cards
   --------------------------------------------------------------- */
.tmyacc-quick {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tmyacc-quick__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
	padding: 24px 20px;
	text-decoration: none;
	box-sizing: border-box;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.tmyacc-quick__card:hover {
	box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
	border-color: #CBE0D2;
}

.tmyacc-quick__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background-color: #ECF4EE;
	color: #0B542B;
}

.tmyacc-quick__icon svg {
	width: 20px;
	height: 20px;
}

.tp-single .tmyacc-quick__card h3 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.3;
	color: #17222D;
	margin: 2px 0 0;
}

.tmyacc-quick__card p {
	font-size: 13px;
	line-height: 1.55;
	color: #5F676E;
	margin: 0;
}

/* ---------------------------------------------------------------
   6. Section headers (shared: orders, addresses, account info)
   --------------------------------------------------------------- */
.tmyacc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 20px;
}

.tp-single .tmyacc-section__head h2 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -.2px;
	color: #17222D;
	margin: 0 0 4px;
}

.tmyacc-section__head p {
	font-size: 14px;
	line-height: 1.6;
	color: #5F676E;
	margin: 0;
}

.tp-single .tmyacc-section__all {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	color: #176B3A;
	text-decoration: none;
	white-space: nowrap;
}

.tp-single .tmyacc-section__all:hover {
	color: #F59E0B;
}

/* ---------------------------------------------------------------
   7. Status badges
   --------------------------------------------------------------- */
.tmyacc-badge {
	display: inline-flex;
	align-items: center;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .3px;
	border-radius: 999px;
	padding: 7px 13px;
	white-space: nowrap;
}

.tmyacc-badge--green {
	color: #0B542B;
	background-color: #ECF4EE;
	border: 1px solid #CBE0D2;
}

.tmyacc-badge--orange {
	color: #8A5A00;
	background-color: #FDF3DF;
	border: 1px solid #F3D79A;
}

.tmyacc-badge--red {
	color: #8A2D1E;
	background-color: #FBEDEA;
	border: 1px solid #F1CFC7;
}

.tmyacc-badge--neutral {
	color: #5F676E;
	background-color: #F3F6F1;
	border: 1px solid #E6E9E5;
}

/* ---------------------------------------------------------------
   8. Orders table (desktop) + mobile cards + empty state
   --------------------------------------------------------------- */
.tmyacc-orders__table-wrap {
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
	overflow: hidden;
	overflow-x: auto;
}

table.tmyacc-orders__table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-family: "Inter", system-ui, sans-serif;
	margin: 0;
}

table.tmyacc-orders__table thead th {
	text-align: left;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5F676E;
	background-color: #FAF8F2;
	padding: 15px 20px;
	border-bottom: 1px solid #E6E9E5;
}

table.tmyacc-orders__table tbody td {
	padding: 16px 20px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #17222D;
	border-bottom: 1px solid #E6E9E5;
	vertical-align: middle;
}

table.tmyacc-orders__table tbody tr:last-child td {
	border-bottom: 0;
}

table.tmyacc-orders__table tbody tr:hover {
	background-color: #FAFCFA;
}

table.tmyacc-orders__table td a {
	color: #0B542B;
	font-weight: 600;
	text-decoration: none;
}

table.tmyacc-orders__table td a:hover {
	color: #F59E0B;
}

.tmyacc-orders__actions {
	text-align: right;
	white-space: nowrap;
}

.tp-single table.tmyacc-orders__table .tp-btn {
	padding: 9px 16px;
	font-size: 12.5px;
}

.tp-single table.tmyacc-orders__table .tp-btn + .tp-btn {
	margin-left: 8px;
}

.tmyacc-orders__cards {
	display: none;
	flex-direction: column;
	gap: 14px;
}

.tmyacc-order-card {
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
	padding: 18px 18px 20px;
	box-sizing: border-box;
}

.tmyacc-order-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 14px;
	color: #17222D;
}

.tmyacc-order-card__num {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #17222D;
}

.tmyacc-order-card__total {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	color: #0B542B;
}

.tp-single .tmyacc-order-card .tp-btn,
.tp-single .tmyacc-order-card__btn {
	width: 100%;
	margin-top: 4px;
}

/* Pagination */
.tmyacc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 24px 0 0;
}

/* Empty state (orders, downloads) */
.tmyacc-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	background-color: #FAF8F2;
	border: 1px solid #E6E9E5;
	border-radius: 14px;
	padding: 40px 34px;
	box-sizing: border-box;
}

.tmyacc-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background-color: #ECF4EE;
	color: #0B542B;
}

.tmyacc-empty__icon svg {
	width: 24px;
	height: 24px;
}

.tmyacc-empty p {
	font-size: 15px;
	line-height: 1.65;
	color: #5F676E;
	margin: 0;
	max-width: 52ch;
}

/* ---------------------------------------------------------------
   9. Order summary / updates / detail (view-order.php)
   --------------------------------------------------------------- */
.tmyacc-order-summary__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tp-single .tmyacc-order-summary__head h2 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	color: #17222D;
	margin: 10px 0 4px;
}

.tmyacc-order-summary__head p {
	font-size: 13.5px;
	color: #5F676E;
	margin: 0;
}

.tp-single .tmyacc-order-updates h3 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: #17222D;
	margin: 0 0 14px;
}

.tmyacc-order-updates__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tmyacc-order-updates__list li {
	list-style: none;
	margin: 0;
}

.woocommerce-OrderUpdate-inner {
	background-color: #FAF8F2;
	border: 1px solid #E6E9E5;
	border-radius: 10px;
	padding: 14px 16px;
}

.woocommerce-OrderUpdate-meta {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #8B9298;
	margin: 0 0 6px;
}

.woocommerce-OrderUpdate-description p {
	font-size: 14px;
	line-height: 1.6;
	color: #17222D;
	margin: 0;
}

.tp-single .tmyacc-order-detail .woocommerce-order-details__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #17222D;
	margin: 0 0 16px;
}

.tmyacc-order-detail table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 30px;
}

.tmyacc-order-detail table.woocommerce-table--order-details th,
.tmyacc-order-detail table.woocommerce-table--order-details td {
	padding: 14px 16px;
	border-bottom: 1px solid #E6E9E5;
	text-align: left;
	font-size: 14.5px;
	line-height: 1.55;
	color: #17222D;
}

.tmyacc-order-detail table.woocommerce-table--order-details thead th {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5F676E;
	background-color: #FAF8F2;
}

.tmyacc-order-detail table.woocommerce-table--order-details tfoot th,
.tmyacc-order-detail table.woocommerce-table--order-details tfoot td {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	color: #17222D;
}

.tmyacc-order-detail table.woocommerce-table--order-details tfoot tr:last-child th,
.tmyacc-order-detail table.woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: 0;
	font-size: 18px;
	font-weight: 700;
	color: #176B3A;
}

.tmyacc-order-detail .order-actions-button {
	display: inline-flex;
	align-items: center;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	color: #0B542B;
	background-color: #FFFFFF;
	border: 1px solid #0B542B;
	border-radius: 999px;
	padding: 9px 16px;
	margin: 0 8px 6px 0;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.tmyacc-order-detail .order-actions-button:hover {
	background-color: #0B542B;
	color: #FFFFFF;
}

.tmyacc-order-detail section.woocommerce-customer-details {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid #E6E9E5;
}

.tmyacc-order-detail .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.tp-single .tmyacc-order-detail .woocommerce-column__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	color: #17222D;
	margin: 0 0 10px;
}

.tmyacc-order-detail address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.75;
	color: #5F676E;
}

/* ---------------------------------------------------------------
   10. Saved addresses grid + cards (dashboard + my-address.php)
   --------------------------------------------------------------- */
.tmyacc-addresses__intro {
	font-size: 14px;
	line-height: 1.6;
	color: #5F676E;
	margin: 0 0 20px;
}

.tmyacc-addresses__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.woocommerce .tmyacc-addresses__grid.col2-set::before,
.woocommerce .tmyacc-addresses__grid.col2-set::after,
.woocommerce-page .tmyacc-addresses__grid.col2-set::before,
.woocommerce-page .tmyacc-addresses__grid.col2-set::after {
	content: none;
	display: none;
}

.tmyacc-card {
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
	padding: 24px 22px;
	box-sizing: border-box;
}

.tmyacc-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}

.tmyacc-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 999px;
	background-color: #ECF4EE;
	color: #0B542B;
}

.tmyacc-card__icon svg {
	width: 16px;
	height: 16px;
}

.tp-single .tmyacc-card__head h2,
.tp-single .tmyacc-card__head h3 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.35;
	color: #17222D;
	margin: 0;
}

.tmyacc-address-card__address {
	font-style: normal;
	font-size: 14.5px;
	line-height: 1.75;
	color: #5F676E;
	margin: 0 0 18px;
}

.tmyacc-address-card__empty {
	font-size: 14px;
	line-height: 1.6;
	color: #8B9298;
	font-style: italic;
	margin: 0 0 18px;
}

.tp-single .tmyacc-card__btn {
	width: 100%;
}

/* ---------------------------------------------------------------
   11. Account information card (dashboard)
   --------------------------------------------------------------- */
.tmyacc-info-card__list {
	display: flex;
	flex-direction: column;
	margin: 0 0 20px;
	padding: 0;
}

.tmyacc-info-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #E6E9E5;
}

.tmyacc-info-card__row:first-child {
	padding-top: 0;
}

.tmyacc-info-card__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tmyacc-info-card__row dt {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	color: #5F676E;
	margin: 0;
}

.tmyacc-info-card__row dd {
	font-size: 14.5px;
	color: #17222D;
	margin: 0;
	text-align: right;
}

.tmyacc-info-card__password {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tmyacc-info-card__password a {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #176B3A;
	text-decoration: underline;
}

.tmyacc-info-card__password a:hover {
	color: #F59E0B;
}

/* ---------------------------------------------------------------
   12. Shared field system: address / account / login forms
   --------------------------------------------------------------- */
.tp-single .tmyacc-address-form h2,
.tp-single .tmyacc-account-form h2 {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: #17222D;
	margin: 0 0 22px;
}

.tmyacc-address-form__fields,
.tmyacc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.tmyacc-address-form__fields + .tmyacc-fields,
.tmyacc-fields + .tmyacc-fields {
	margin-top: 20px;
}

.woocommerce .tmyacc-address-form__fields .form-row,
.woocommerce .tmyacc-fields .form-row,
.tmyacc-address-form__fields .form-row,
.tmyacc-fields .form-row {
	display: block;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	grid-column: span 1;
}

.woocommerce .tmyacc-address-form__fields .form-row-wide,
.woocommerce .tmyacc-address-form__fields .form-row-full,
.woocommerce .tmyacc-fields .form-row-wide,
.woocommerce .tmyacc-fields .form-row-full,
.tmyacc-address-form__fields .form-row-wide,
.tmyacc-address-form__fields .form-row-full,
.tmyacc-fields .form-row-wide,
.tmyacc-fields .form-row-full {
	grid-column: 1 / -1;
}

.woocommerce .tmyacc-address-form__fields .form-row-first,
.woocommerce .tmyacc-address-form__fields .form-row-last,
.woocommerce .tmyacc-fields .form-row-first,
.woocommerce .tmyacc-fields .form-row-last,
.tmyacc-address-form__fields .form-row-first,
.tmyacc-address-form__fields .form-row-last,
.tmyacc-fields .form-row-first,
.tmyacc-fields .form-row-last {
	grid-column: span 1;
}

.woocommerce .tmyacc-address-form__fields .form-row label,
.woocommerce .tmyacc-fields .form-row label,
.tmyacc-address-form__fields .form-row label,
.tmyacc-fields .form-row label {
	display: block;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.45;
	color: #17222D;
	margin: 0 0 7px;
	padding: 0;
}

.tmyacc-address-form__fields .required,
.tmyacc-fields .required {
	color: #B3541E;
	border: 0;
	text-decoration: none;
	font-weight: 700;
}

.tmyacc-address-form__fields label.screen-reader-text,
.tmyacc-fields label.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.woocommerce .tmyacc-address-form__fields .woocommerce-input-wrapper,
.woocommerce .tmyacc-fields .woocommerce-input-wrapper,
.tmyacc-address-form__fields .woocommerce-input-wrapper,
.tmyacc-fields .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce .tmyacc-address-form__fields .input-text,
.woocommerce .tmyacc-address-form__fields input[type="text"],
.woocommerce .tmyacc-address-form__fields input[type="email"],
.woocommerce .tmyacc-address-form__fields input[type="tel"],
.woocommerce .tmyacc-address-form__fields input[type="password"],
.woocommerce .tmyacc-address-form__fields select,
.woocommerce .tmyacc-fields .input-text,
.woocommerce .tmyacc-fields input[type="text"],
.woocommerce .tmyacc-fields input[type="email"],
.woocommerce .tmyacc-fields input[type="tel"],
.woocommerce .tmyacc-fields input[type="password"],
.woocommerce .tmyacc-fields select,
.tmyacc-address-form__fields .input-text,
.tmyacc-fields .input-text,
.tmyacc-fields select {
	display: block;
	width: 100%;
	height: 50px;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #17222D;
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 8px;
	padding: 0 15px;
	margin: 0;
	box-sizing: border-box;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.woocommerce .tmyacc-address-form__fields .input-text:focus,
.woocommerce .tmyacc-address-form__fields select:focus,
.woocommerce .tmyacc-fields .input-text:focus,
.woocommerce .tmyacc-fields select:focus,
.tmyacc-address-form__fields .input-text:focus,
.tmyacc-fields .input-text:focus {
	outline: none;
	border-color: #0B542B;
	box-shadow: 0 0 0 3px rgba(11, 84, 43, .12);
}

.tmyacc-address-form__fields .input-text::placeholder,
.tmyacc-fields .input-text::placeholder {
	color: #9AA2A8;
}

.woocommerce .tmyacc-address-form__fields .form-row.woocommerce-invalid input.input-text,
.woocommerce .tmyacc-address-form__fields .form-row.woocommerce-invalid select,
.woocommerce .tmyacc-fields .form-row.woocommerce-invalid input.input-text,
.woocommerce .tmyacc-fields .form-row.woocommerce-invalid select {
	border-color: #B3541E;
	box-shadow: 0 0 0 3px rgba(179, 84, 30, .1);
}

.woocommerce .tmyacc-address-form__fields .form-row.woocommerce-validated input.input-text,
.woocommerce .tmyacc-fields .form-row.woocommerce-validated input.input-text {
	border-color: #7FAE90;
}

/* selectWoo / select2 on the country + county selects */
.tmyacc-address-form__fields .select2-container,
.tmyacc-address-form__fields .select2-container--default,
.tmyacc-fields .select2-container,
.tmyacc-fields .select2-container--default {
	width: 100% !important;
}

.tmyacc-address-form__fields .select2-container--default .select2-selection--single,
.tmyacc-fields .select2-container--default .select2-selection--single {
	height: 50px;
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 8px;
	outline: none;
}

.tmyacc-address-form__fields .select2-container--default .select2-selection--single .select2-selection__rendered,
.tmyacc-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 48px;
	padding: 0 34px 0 15px;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 15px;
	color: #17222D;
}

.tmyacc-address-form__fields .select2-container--default .select2-selection--single .select2-selection__arrow,
.tmyacc-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 48px;
	right: 10px;
}

.tmyacc-address-form__fields .select2-container--default.select2-container--open .select2-selection--single,
.tmyacc-address-form__fields .select2-container--default.select2-container--focus .select2-selection--single,
.tmyacc-fields .select2-container--default.select2-container--open .select2-selection--single,
.tmyacc-fields .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #0B542B;
	box-shadow: 0 0 0 3px rgba(11, 84, 43, .12);
}

/* Fieldset (password change) */
.tmyacc-fieldset {
	border: 0;
	padding: 24px 0 0;
	margin: 24px 0 0;
	border-top: 1px solid #E6E9E5;
}

.tp-single .tmyacc-fieldset legend {
	padding: 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #17222D;
	margin: 0 0 18px;
	width: 100%;
	float: none;
}

.tmyacc-fieldset .tmyacc-fields {
	margin-top: 0;
}

.tmyacc-address-form .tmyacc-address-form__submit,
.tmyacc-account-form .tmyacc-account-form__submit {
	margin: 24px 0 0;
	padding: 0;
}

/* ---------------------------------------------------------------
   13. Login (logged-out) panel
   --------------------------------------------------------------- */
.tmyacc-login-section {
	background-color: #F5F6F4;
	padding: 60px 0 72px;
}

.tmyacc-login {
	display: flex;
	justify-content: center;
}

.tmyacc-login__card {
	width: 100%;
	max-width: 460px;
	background-color: #FFFFFF;
	border: 1px solid #E6E9E5;
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .08);
	padding: 40px 36px 38px;
	box-sizing: border-box;
	text-align: center;
}

.tmyacc-login__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background-color: #ECF4EE;
	color: #0B542B;
	margin: 0 0 18px;
}

.tmyacc-login__icon svg {
	width: 26px;
	height: 26px;
}

.tp-single .tmyacc-login__title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.25;
	color: #17222D;
	margin: 0 0 8px;
}

.tmyacc-login__sub {
	font-size: 14.5px;
	line-height: 1.65;
	color: #5F676E;
	margin: 0 0 28px;
}

.tmyacc-login__form {
	text-align: left;
}

.tmyacc-login__remember-row {
	display: flex;
	align-items: center;
	margin: 4px 0 20px;
}

.tmyacc-login__remember {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	color: #5F676E;
	cursor: pointer;
	margin: 0;
}

.tmyacc-login__remember input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: #0B542B;
}

.tp-single .tmyacc-login__submit {
	width: 100%;
	margin: 0 0 18px;
}

.tmyacc-login__lost {
	margin: 0;
	text-align: center;
}

.tp-single .tmyacc-login__lost a {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	color: #176B3A;
	text-decoration: underline;
}

.tp-single .tmyacc-login__lost a:hover {
	color: #F59E0B;
}

/* Registration column, kept re-skinned for structural parity with WooCommerce
   core even though registration is disabled on this store. */
.tmyacc-login #customer_login.u-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	width: 100%;
}

.tmyacc-login #customer_login.u-columns::before,
.tmyacc-login #customer_login.u-columns::after {
	content: none;
	display: none;
}

.tmyacc-login .u-column1,
.tmyacc-login .u-column2 {
	width: auto;
	float: none;
	margin: 0;
	flex: 1 1 380px;
	max-width: 460px;
}

/* ---------------------------------------------------------------
   14. Downloads (native table re-skin)
   --------------------------------------------------------------- */
.tmyacc-downloads table.woocommerce-table--order-downloads {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.tmyacc-downloads table.woocommerce-table--order-downloads th,
.tmyacc-downloads table.woocommerce-table--order-downloads td {
	padding: 14px 16px;
	border-bottom: 1px solid #E6E9E5;
	text-align: left;
	font-size: 14px;
	color: #17222D;
}

.tmyacc-downloads table.woocommerce-table--order-downloads thead th {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5F676E;
	background-color: #FAF8F2;
}

.tmyacc-downloads .woocommerce-MyAccount-downloads-file a {
	color: #0B542B;
	font-weight: 600;
	text-decoration: none;
}

.tmyacc-downloads .woocommerce-MyAccount-downloads-file a:hover {
	color: #F59E0B;
}

/* ---------------------------------------------------------------
   15. CTA band label (trinite_myaccount_cta_band)
   --------------------------------------------------------------- */
.tmyacc-cta__label {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .75);
	margin: 22px 0 0;
}

/* ---------------------------------------------------------------
   16. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1180px) {
	.tmyacc-layout {
		grid-template-columns: 232px minmax(0, 1fr);
		gap: 26px;
	}

	.tp-single .tmyacc-hero__title {
		font-size: 32px;
	}

	.tmyacc-quick {
		gap: 14px;
	}
}

@media (max-width: 1024px) {
	.tmyacc-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.tmyacc-sidebar {
		position: static;
		flex-direction: column;
	}

	.tmyacc-nav {
		padding: 8px;
	}

	.tmyacc-nav ul {
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.tmyacc-nav__item {
		flex: 0 0 auto;
	}

	.tmyacc-nav__link {
		white-space: nowrap;
		padding: 10px 14px;
	}

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

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

	.tmyacc-order-detail .woocommerce-columns--addresses {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.tmyacc-welcome {
		align-items: flex-start;
	}

	.tmyacc-welcome__accent {
		flex-direction: row;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
	}

	.tmyacc-main {
		padding: 40px 0 50px;
	}
}

@media (max-width: 767px) {
	.tmyacc-hero__inner {
		padding-top: 24px;
		padding-bottom: 28px;
	}

	.tp-single .tmyacc-hero__title {
		font-size: 28px;
	}

	.tmyacc-hero__text-copy {
		font-size: 15px;
	}

	.tmyacc-hero__label {
		display: none;
	}

	.tmyacc-main {
		padding: 30px 0 40px;
	}

	.tmyacc-content {
		gap: 26px;
	}

	.tmyacc-welcome {
		padding: 22px 20px;
		gap: 18px;
	}

	.tmyacc-welcome__main {
		gap: 14px;
	}

	.tmyacc-welcome__avatar {
		width: 60px;
		height: 60px;
	}

	.tp-single .tmyacc-welcome__title {
		font-size: 21px;
	}

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

	.tp-single .tmyacc-section__head h2 {
		font-size: 21px;
	}

	.tmyacc-orders__table-wrap {
		display: none;
	}

	.tmyacc-orders__cards {
		display: flex;
	}

	.tmyacc-card,
	.tmyacc-empty,
	.tmyacc-login__card {
		padding: 22px 18px 24px;
	}

	.tmyacc-address-form__fields,
	.tmyacc-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.woocommerce .tmyacc-address-form__fields .form-row-first,
	.woocommerce .tmyacc-address-form__fields .form-row-last,
	.woocommerce .tmyacc-fields .form-row-first,
	.woocommerce .tmyacc-fields .form-row-last,
	.tmyacc-address-form__fields .form-row-first,
	.tmyacc-address-form__fields .form-row-last,
	.tmyacc-fields .form-row-first,
	.tmyacc-fields .form-row-last {
		grid-column: 1 / -1;
	}

	.tmyacc-info-card__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.tmyacc-info-card__row dd {
		text-align: left;
	}

	.tp-single .tmyacc-order-summary__head h2 {
		font-size: 21px;
	}

	.tmyacc-order-detail table.woocommerce-table--order-details tfoot tr:last-child th,
	.tmyacc-order-detail table.woocommerce-table--order-details tfoot tr:last-child td {
		font-size: 16px;
	}

	.tmyacc-login-section {
		padding: 40px 0 48px;
	}

	.tp-single .tmyacc-login__title {
		font-size: 22px;
	}
}
