/* Shared account and authentication details, loaded after the theme modes. */
html[data-physictomy-theme] body.logged-in.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content {
	min-height: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

html[data-physictomy-theme] .physictomy-account-dashboard {
	padding: clamp(20px, 2.6vw, 36px);
	border: 1px solid var(--pt-border);
	border-radius: 22px;
	background: var(--pt-surface);
	box-shadow: var(--pt-shadow);
}

.physictomy-dashboard-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 23px;
	border-bottom: 1px solid var(--pt-border);
}

.physictomy-dashboard-eyebrow,
.physictomy-comments-heading span {
	color: var(--pt-accent-deep);
	font-size: 12px;
	font-weight: 700;
}

html[data-physictomy-theme] .physictomy-dashboard-intro .account-dashboard-title,
html[data-physictomy-theme] .physictomy-comments-heading h1 {
	margin: 5px 0 8px !important;
	color: var(--pt-text-strong) !important;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.5;
}

.physictomy-dashboard-intro p,
.physictomy-comments-heading p {
	margin: 0;
	color: var(--pt-muted);
	font-size: 13px;
}

html[data-physictomy-theme] body .physictomy-dashboard-browse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 10px;
	min-height: 42px;
	padding: 9px 16px;
	border-radius: 10px;
	background: var(--pt-accent);
	color: var(--pt-on-accent) !important;
	font-weight: 700;
	text-decoration: none;
}

html[data-physictomy-theme] body .physictomy-dashboard-browse:hover {
	background: var(--pt-accent-hover);
	color: var(--pt-on-accent) !important;
}

.physictomy-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
	min-height: 0;
}

html[data-physictomy-theme] .physictomy-dashboard-grid > .grid-stack-item {
	position: static !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	order: 1;
}

html[data-physictomy-theme] .physictomy-dashboard-grid > .grid-stack-item > .grid-stack-item-content {
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 112px;
	margin: 0 !important;
	padding: 18px !important;
	overflow: visible !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 14px !important;
	background: var(--pt-surface-raised) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] .physictomy-dashboard-grid > .grid-stack-item > .grid-stack-item-content:hover {
	border-color: var(--pt-border-strong) !important;
	transform: none !important;
}

.physictomy-dashboard-grid > .grid-stack-item:not(.physictomy-dashboard-overview):not(.physictomy-dashboard-purchases) a {
	min-width: 0;
	min-height: 76px;
}

.physictomy-dashboard-grid .sc-dahsboard-value {
	min-width: 0;
}

.physictomy-dashboard-grid .sc-dahsboard-value .wc-amount {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
	white-space: normal;
}

.physictomy-dashboard-grid .sc-dahsboard-value .wc-information {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.6;
}

html[data-physictomy-theme] .physictomy-dashboard-grid > .physictomy-dashboard-overview,
html[data-physictomy-theme] .physictomy-dashboard-grid > .physictomy-dashboard-purchases {
	grid-column: 1 / -1;
}

.physictomy-dashboard-grid > .physictomy-dashboard-overview { order: 2 !important; }
.physictomy-dashboard-grid > .physictomy-dashboard-purchases { order: 3 !important; }

html[data-physictomy-theme] .physictomy-dashboard-grid > .physictomy-dashboard-overview > .grid-stack-item-content,
html[data-physictomy-theme] .physictomy-dashboard-grid > .physictomy-dashboard-purchases > .grid-stack-item-content {
	min-height: 0;
	padding: 20px !important;
}

html[data-physictomy-theme] .physictomy-dashboard-overview .tab {
	position: static !important;
	justify-content: flex-start;
	gap: 6px;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-color: var(--pt-border) !important;
	background: transparent !important;
}

html[data-physictomy-theme] .physictomy-dashboard-overview .tab button {
	float: none;
	margin: 0 !important;
	padding: 8px 14px !important;
	border: 1px solid transparent !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme] .physictomy-dashboard-overview .tab button:is(.active, :hover) {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme] .physictomy-dashboard-overview .tabcontent {
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	overflow: visible !important;
	background: transparent !important;
}

html[data-physictomy-theme] .physictomy-dashboard-overview .tabcontent :where(.studi_empty_content, .woocommerce-info) {
	background: transparent !important;
}

/* The chart library injects black SVG legend labels after the theme styles load. */
html[data-physictomy-theme="dark"] .physictomy-dashboard-overview svg g[role="group"][aria-label="Legend"] text {
	fill: var(--pt-text) !important;
}

html[data-physictomy-theme] .physictomy-dashboard-purchases .sc-dahsboard-icon {
	justify-content: flex-start !important;
	width: auto !important;
	height: auto !important;
	margin-bottom: 12px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	gap: 10px;
}

.physictomy-dashboard-purchases .sc-dahsboard-icon .wc-amount {
	font-size: 16px;
	font-weight: 800;
}

html[data-physictomy-theme] .physictomy-dashboard-purchases .noproductsfounded {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	min-height: 190px;
	padding: 20px;
	border: 1px dashed var(--pt-border);
	border-radius: 12px;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-muted) !important;
	text-align: center;
}

.physictomy-dashboard-purchases .noproductsfounded img {
	width: 90px;
	height: 75px;
	object-fit: contain;
}

html[data-physictomy-theme] body .physictomy-dashboard-purchases .gotoshop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 9px;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
	font-weight: 700;
}

/* Comments endpoint. */
html[data-physictomy-theme] .physictomy-comments-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pt-border);
}

.physictomy-comments-heading strong {
	flex: 0 0 auto;
	padding: 8px 12px;
	border: 1px solid var(--pt-border);
	border-radius: 999px;
	background: var(--pt-surface-soft);
	color: var(--pt-text);
	font-size: 12px;
}

.coomentsContainer {
	display: grid;
	gap: 12px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .singleCommentHolder.physictomy-comment-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: start;
	gap: 16px;
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 18px !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 14px !important;
	background: var(--pt-surface-raised) !important;
	box-shadow: none !important;
	transform: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card:hover {
	border-color: var(--pt-border-strong) !important;
}

.physictomy-comment-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: var(--pt-surface-soft);
	color: var(--pt-accent);
}

.physictomy-comment-main { min-width: 0; }

html[data-physictomy-theme] .physictomy-comment-card .singleCommentTitle a {
	color: var(--pt-text-strong) !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
}

html[data-physictomy-theme] .physictomy-comment-card .singleCommentTitle a:hover {
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card .singleCommentContent {
	margin-top: 5px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--pt-muted) !important;
	box-shadow: none !important;
	font-size: 13px;
	line-height: 1.85;
	word-break: break-word;
}

.physictomy-comment-meta {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 9px;
	min-width: 164px;
}

.physictomy-comment-meta time {
	color: var(--pt-muted);
	font-size: 11px;
	white-space: nowrap;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-status {
	min-width: 0;
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-text) !important;
}

.physictomy-comment-status > div {
	background: transparent !important;
	color: inherit !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card .physictomy-comment-status :where(.text-success, .text-danger, .text-warning) {
	background: transparent !important;
	color: inherit !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card .comSitu.physictomy-comment-status--success {
	border-color: rgba(78, 188, 139, .36) !important;
	background: rgba(78, 188, 139, .12) !important;
	color: #238357 !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .physictomy-comment-card .comSitu.physictomy-comment-status--success {
	color: #8ed9b5 !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card .comSitu.physictomy-comment-status--danger {
	border-color: rgba(225, 94, 85, .34) !important;
	background: rgba(225, 94, 85, .12) !important;
	color: #b94b43 !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-comment-card .comSitu.physictomy-comment-status--warning {
	border-color: rgba(244, 172, 100, .35) !important;
	background: rgba(244, 172, 100, .12) !important;
	color: var(--pt-accent-deep) !important;
}

/* Account profile and password visibility controls. */
html[data-physictomy-theme] body.woocommerce-account .profile-picture-section {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 9px;
	padding: 22px !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 15px !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-section h3,
html[data-physictomy-theme] body.woocommerce-account .profile-picture-section .current-profile-picture,
html[data-physictomy-theme] body.woocommerce-account .profile-picture-section .current-profile-picture p {
	margin: 0 !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-form {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin: 0 !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-form .form-row {
	float: none;
	width: auto;
	margin: 0 !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-form .form-row:first-child {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 260px;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-form .form-row br {
	display: none;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-form button {
	min-height: 44px;
	margin: 0 !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-section :where(h3, p, em, label) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-section em {
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme] body.woocommerce-account .profile-picture-section input[type="file"] {
	max-width: 100%;
	border: 1px solid var(--pt-border) !important;
	border-radius: 10px !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-EditAccountForm .password-input {
	display: block;
	position: relative;
	width: 100%;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-EditAccountForm .password-input input {
	width: 100%;
	min-height: 46px;
	padding-right: 54px !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-EditAccountForm .show-password-input {
	display: grid !important;
	place-items: center;
	position: absolute !important;
	top: 50% !important;
	right: 6px !important;
	left: auto !important;
	width: 38px !important;
	height: 34px !important;
	min-width: 38px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 8px !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-muted) !important;
	box-shadow: none !important;
	transform: translateY(-50%) !important;
	transition: background .16s ease, color .16s ease;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-EditAccountForm .show-password-input:is(:hover, :focus-visible) {
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-EditAccountForm .show-password-input::after {
	margin: 0 !important;
	color: inherit !important;
	font-size: 15px;
}

/* Login modal and standalone account login use the same palette. */
html[data-physictomy-theme] .modal.studi_loginmodal {
	padding: 18px;
	background: rgba(3, 7, 12, .78) !important;
	backdrop-filter: blur(10px);
}

html[data-physictomy-theme] .studi_loginmodal .login-form-modal {
	width: min(100%, 560px);
	max-width: 560px;
	margin: min(8vh, 70px) auto 30px;
}

html[data-physictomy-theme] .sc_login_temp4 {
	width: min(100%, 560px);
	max-width: 560px !important;
	margin: 24px auto !important;
	padding: clamp(22px, 4vw, 36px) !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 19px !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
	box-shadow: var(--pt-shadow) !important;
}

html[data-physictomy-theme] .studi_loginmodal .sc_login_temp4 {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] .sc_login_temp4 .main-site-logo {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 24px !important;
}

html[data-physictomy-theme] .sc_login_temp4 .main-site-logo a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border-radius: 11px;
	background: #fff;
}

html[data-physictomy-theme] .sc_login_temp4 .main-site-logo img {
	width: auto;
	max-width: 170px;
	max-height: 70px;
	object-fit: contain;
}

html[data-physictomy-theme] .studi_loginmodal .login-form-modal-inner,
html[data-physictomy-theme] body.woocommerce-account:not(.logged-in) .sc_user_login_page {
	position: relative;
	padding: clamp(22px, 4vw, 38px) !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 19px !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
	box-shadow: var(--pt-shadow) !important;
}

html[data-physictomy-theme] body.woocommerce-account:not(.logged-in) .sc_user_login_page {
	width: min(100% - 24px, 560px);
	max-width: 560px;
	margin: 68px auto 45px !important;
}

html[data-physictomy-theme] .studi_loginmodal :where(.logintempthree, .SC_u-columns, .sc_user_login_page) {
	max-width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] .studi_loginmodal .login-form-modal-box :where(.sc_user_login_page, .sc_full_combined_otp_form, #customer_login),
html[data-physictomy-theme] body.woocommerce-account:not(.logged-in) :where(.sc_full_combined_otp_form, #customer_login) {
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] body.woocommerce-account:not(.logged-in) .sc_user_login_page::before,
html[data-physictomy-theme] .studi_loginmodal .sc_user_login_page::before {
	display: none !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .sc_dlr_login > p:first-child,
html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .sc_dlr_register > p:first-child {
	margin: 0 0 19px !important;
	color: var(--pt-text-strong) !important;
	font-size: 22px;
	font-weight: 800;
	text-align: right;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .site-logo {
	display: block;
	margin: 0 auto 20px;
	text-align: center;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .site-logo a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 11px;
	background: #fff;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .site-logo img {
	width: auto;
	max-width: 170px;
	max-height: 70px;
	object-fit: contain;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form {
	display: grid;
	gap: 14px;
	margin: 0;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form .form-row {
	float: none;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form label {
	display: block;
	margin: 0 0 7px;
	color: var(--pt-text) !important;
	font-size: 12px;
	font-weight: 700;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form input:not([type="checkbox"]):not([type="hidden"]) {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 13px;
	border: 1px solid var(--pt-border) !important;
	border-radius: 10px !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text-strong) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form input:focus {
	border-color: var(--pt-accent) !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form .woocommerce-form__label-for-checkbox input {
	accent-color: var(--pt-accent);
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form button[type="submit"] {
	width: 100%;
	min-height: 44px;
	margin: 8px 0 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
	font-weight: 800;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .custom-ajax-form button[type="submit"]:hover {
	background: var(--pt-accent-hover) !important;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .lost_password {
	margin: 0 !important;
	text-align: right;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .lost_password a {
	color: var(--pt-link) !important;
	font-size: 12px;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .sc_simple_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 43px;
	margin-top: 14px;
	padding: 9px 14px;
	border: 1px solid var(--pt-border) !important;
	border-radius: 10px !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
	font-weight: 700;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .sc_simple_btn span {
	padding: 0;
	background: transparent;
	color: inherit;
}

html[data-physictomy-theme] :where(.studi_loginmodal, body.woocommerce-account:not(.logged-in)) .sc_simple_btn:hover {
	border-color: var(--pt-accent) !important;
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme] .studi_loginmodal #ajax-login-container > button.close {
	position: absolute;
	top: 12px;
	left: 12px;
	float: none;
	width: 34px;
	height: 34px;
	padding: 5px;
	border: 1px solid var(--pt-border);
	border-radius: 9px;
	background: var(--pt-surface-soft);
	color: var(--pt-text);
	box-shadow: none;
	opacity: 1;
}

html[data-physictomy-theme] .studi_loginmodal #ajax-login-container > button.close path {
	stroke: currentColor;
}

@media (max-width: 980px) {
	.physictomy-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.physictomy-comment-card { grid-template-columns: 42px minmax(0, 1fr) !important; }
	.physictomy-comment-meta { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
	.physictomy-dashboard-grid { grid-template-columns: 1fr; }
	.physictomy-dashboard-intro { align-items: flex-start; flex-direction: column; }
	.physictomy-dashboard-browse { width: 100%; }
	.physictomy-comments-heading { align-items: flex-start; flex-direction: column; }
	.physictomy-comment-meta { min-width: 0; }
	.physictomy-comment-meta time { white-space: normal; }
	.physictomy-dashboard-overview .tab { flex-wrap: wrap; }
}

/* Account header: one baseline and one interaction language for every control. */
html[data-physictomy-theme] body.logged-in.woocommerce-account .row.my_acount_topbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 18px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .panel_right_top {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	justify-content: flex-start;
	gap: 14px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_top_nav {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: none;
	padding: 0;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items {
	justify-content: flex-start;
	align-items: center;
	flex-wrap: nowrap;
	gap: 3px;
	min-width: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions,
html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox .panel_left_top {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions {
	flex: 0 0 auto;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons > * {
	flex: 0 0 auto;
	margin: 0;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox,
html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox .panel_left_top {
	gap: 12px;
	padding: 0;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .my_acount_topbar time {
	padding: 0 4px;
	line-height: 1.4;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info {
	gap: 8px;
	min-height: 44px;
	padding: 5px 9px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info .userTitle {
	max-width: 180px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info .userTitle,
html[data-physictomy-theme] body.logged-in.woocommerce-account .my_acount_topbar time {
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info:hover {
	border-color: var(--pt-accent) !important;
	background: var(--pt-surface-soft) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger,
html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items > a,
html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox :where(#sc_notif_trigger, .mini-cart-opener),
html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions .physictomy-theme-toggle {
	display: inline-flex !important;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: 11px !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
	box-shadow: none !important;
	transform: none !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger:is(:hover, :focus-visible),
html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items > a:is(:hover, :focus-visible),
html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox :where(#sc_notif_trigger, .mini-cart-opener):is(:hover, :focus-visible),
html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions .physictomy-theme-toggle:is(:hover, :focus-visible) {
	border-color: var(--pt-accent) !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-accent-hover) !important;
	box-shadow: none !important;
	transform: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons #sc_notif_trigger {
	border: 1px solid var(--pt-border) !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons #sc_notif_trigger:is(:hover, :focus-visible) {
	border-color: var(--pt-accent) !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-accent-hover) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons #sc_notif_trigger .icon-wrapper {
	display: grid;
	width: 100%;
	height: 100%;
	margin: 0;
	place-items: center;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons #sc_notif_trigger .icon-wrapper-bg {
	display: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_header_icons #sc_notif_trigger .text-danger {
	color: inherit !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .my_acount_topbar :where(a, button, [role="button"]):focus-visible {
	outline: 2px solid var(--pt-accent) !important;
	outline-offset: 2px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items > a.is-active {
	border-color: var(--pt-accent) !important;
	color: var(--pt-accent-hover) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items > a span:before {
	display: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items .icon-wrapper {
	display: grid;
	width: 100%;
	height: 100%;
	margin: 0;
	place-items: center;
	background: transparent !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items .icon-wrapper-bg {
	display: none;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_nav_items i,
html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox :where(#sc_notif_trigger, .mini-cart-opener) :where(i, svg) {
	color: inherit !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger:is(:hover, :focus-visible) .hamburger .line {
	background: var(--pt-accent-hover) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sc_dashboard_hamburger .hamburger .line {
	background: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .top-bar-cart,
html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox .panel_left_top > * {
	flex: 0 0 auto;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a {
	gap: 7px;
	white-space: nowrap;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a::before {
	flex: 0 0 20px;
	width: 20px;
	margin-inline-end: 0 !important;
}

@media (min-width: 1201px) {
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger {
		display: none !important;
	}
}

@media (max-width: 1200px) {
	html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_top_nav { display: none; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .row.my_acount_topbar { justify-content: space-between; }
}

@media (max-width: 760px) {
	html[data-physictomy-theme] body.logged-in.woocommerce-account .row.my_acount_topbar { gap: 8px; padding: 10px 12px; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger { display: none !important; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .panel_right_top { gap: 6px; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions,
	html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox .panel_left_top { gap: 5px; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info .userTitle,
	html[data-physictomy-theme] body.logged-in.woocommerce-account .my_acount_topbar time { display: none !important; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info { padding: 3px; }
}

@media (max-width: 420px) {
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_logo img { max-width: 76px; max-height: 39px; }
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_hamburger,
	html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_dash_datebox :where(#sc_notif_trigger, .mini-cart-opener),
	html[data-physictomy-theme] body.logged-in.woocommerce-account .dashboard_actions .physictomy-theme-toggle {
		flex-basis: 36px;
		width: 36px !important;
		height: 36px !important;
		min-width: 36px;
	}
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info .account-avatar,
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_studi_account_info .account-avatar img { width: 34px; height: 34px; }
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .my_acount_topbar :where(
	.sc_dashboard_hamburger,
	.dashboard_nav_items > a,
	#sc_notif_trigger,
	.mini-cart-opener,
	.physictomy-theme-toggle
):is(:hover, :focus-visible) {
	color: var(--pt-accent-deep) !important;
}

/* Shared light account surfaces: custom endpoints must not inherit dark-only
   backgrounds and text from the legacy account bridge. */
html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-heading, .sth-heading, .sth-hero, .stq-page-heading, .stq-thread-header, .pn-page-heading
) {
	border-color: var(--pt-border) !important;
	background: linear-gradient(110deg, #f8fbfc, #eaf1f4) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-heading, .sth-heading, .sth-hero, .stq-page-heading, .stq-thread-header, .pn-page-heading
) :where(h1, h2, h3, strong) {
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-heading, .sth-heading, .sth-hero, .stq-page-heading, .stq-thread-header, .pn-page-heading
) :where(p, small) {
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-card, .stl-empty, .stl-hero, .stl-panel, .stl-channel, .stl-table-wrap,
	.sth-assignment-card, .sth-empty, .sth-panel, .sth-file-box, .sth-submission-row,
	.sth-table-wrap, .sth-filter, .sth-list-toolbar, .sth-submitted-file,
	.stq-card, .stq-question-row, .stq-message, .stq-empty, .stq-course-filter,
	.stq-status-form, .stq-closed-note, .pn-compose-card, .pn-history, .pn-target,
	.pn-history-item, .swss_panel, .swss_accordion, .swss_message,
	.studi_notifs_page ul.sc_notifs_holder li, .studiare-course-card,
	.singleCommentHolder, .singleCommentContent, .profile-picture-section,
	.quiz-question, .quiz-attempt, .quiz-result-entry
) {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-panel, .stl-panel, .stq-card, .pn-compose-card, .pn-history,
	.sth-list-toolbar, .stl-empty, .sth-empty, .stq-empty
) {
	background: var(--pt-surface-raised) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .stq-question-row.is-unread {
	border-color: var(--pt-border-strong) !important;
	border-inline-start-color: var(--pt-accent) !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .stq-message.is-teacher {
	border-color: var(--pt-border-strong) !important;
	background: var(--pt-page-alt) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .stq-message.is-teacher :where(.stq-role, .stq-message-head time, .stq-message-body) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .physictomy-notification-panel {
	--pn-ink: var(--pt-text-strong);
	--pn-muted: var(--pt-muted);
	--pn-line: var(--pt-border);
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .stc-chat-members {
	--heading: var(--pt-text-strong);
	--body: var(--pt-text);
	--body4: var(--pt-surface);
	--input-background: var(--pt-surface);
	--input-background2: var(--pt-surface-raised);
	--background-body: var(--pt-surface);
	--border-color2: var(--pt-border);
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .stc-chat-members :where(
	.chat-sidebar, .chat-content, .conversation-header, .use-profile-media,
	.message-wrap, #stc-file-container, #stc-gif-container, #stc-gift-container .gift-row
) {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-card, .stl-panel, .sth-panel, .sth-file-box, .sth-assignment-card,
	.stq-card, .stq-message, .stq-question-row, .pn-compose-card, .pn-history
) :where(h2, h3, strong, label) {
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-tabs, .sth-tabs, .stq-student-tabs
) {
	border-color: var(--pt-border) !important;
	background: var(--pt-page-alt) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-tabs, .sth-tabs, .stq-student-tabs
) a:not(.is-active) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-tabs, .sth-tabs, .stq-student-tabs
) a:not(.is-active):is(:hover, :focus-visible) {
	background: var(--pt-surface) !important;
	color: var(--pt-link) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.stl-tabs, .sth-tabs, .stq-student-tabs
) a.is-active {
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-upload, .stq-upload-field, .pn-target:has(input:checked)
) {
	border-color: var(--pt-border-strong) !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-upload, .stq-upload-field
) :where(label, strong, small, span) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-eyebrow, .stl-text-button, .sth-text-button, .stq-text-button
) {
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-table, .stl-table, .shop_table, .studiare-quiz-results-table
) th {
	background: var(--pt-page-alt) !important;
	color: var(--pt-link) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-table, .stl-table, .shop_table, .studiare-quiz-results-table
) td {
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
}

/* Legacy dashboard CSS painted homework rows navy on hover in light mode. */
html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr:hover,
html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr:hover td {
	background: var(--pt-page-alt) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr:hover .sth-assignment-link strong {
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr:hover .sth-assignment-link span {
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .sth-table tbody tr:hover,
html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .sth-table tbody tr:hover td {
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account :where(.stl-card, .sth-assignment-card, .stq-question-row, .sth-submission-row):is(:hover, :focus-visible) {
	border-color: var(--pt-border-strong) !important;
	background: var(--pt-surface-raised) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul li:not(.is-active):not(.physictomy-account-nav-heading) a:is(:hover, :focus-visible),
html[data-physictomy-theme] body.logged-in.woocommerce-account .mobile-dropdown-menu .top_accoun_nav_item:not(.is-active) a:is(:hover, :focus-visible) {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content button.sth-text-button {
	border-color: rgba(121, 76, 46, .32) !important;
	background: #fff4e7 !important;
	color: #794c2e !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content button.sth-text-button:hover {
	border-color: var(--pt-accent-deep) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content button.sth-text-button.is-pause {
	border-color: #d9a49c !important;
	background: #fff0ed !important;
	color: #a33c2e !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content button.sth-text-button.is-pause:hover {
	border-color: #a33c2e !important;
	background: #a33c2e !important;
	color: #fff !important;
}

@media (max-width: 760px) {
	html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr {
		background: var(--pt-surface) !important;
	}

	html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody td:first-child {
		background: var(--pt-surface-raised) !important;
	}

	html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table tbody tr:hover td:first-child {
		background: var(--pt-page-alt) !important;
	}

	html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .sth-table td::before {
		color: var(--pt-muted) !important;
	}
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-status, .stl-state, .stq-status, .sth-state
) {
	border-color: var(--pt-border) !important;
	background: var(--pt-page-alt) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-status-pending, .stl-state-upcoming, .stq-status-unassigned
) {
	border-color: rgba(174, 102, 55, .25) !important;
	background: #fff4e7 !important;
	color: #794c2e !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account :where(
	.sth-status-approved, .sth-status-submitted, .stq-status-answered
) {
	border-color: rgba(40, 83, 110, .23) !important;
	background: #eaf3f7 !important;
	color: #28536e !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stq-new-question, .pn-compose-card
) :where(label, small, p) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="light"] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stq-new-question, .pn-compose-card
) small {
	color: var(--pt-muted) !important;
}

/* One form rhythm for the account endpoints, in both color modes. */
html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stl-form, .stq-new-question, .pn-compose-card
) {
	gap: 16px;
	font-size: 14px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stl-form, .stq-new-question, .pn-compose-card
) label {
	color: var(--pt-text-strong) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stl-form, .stq-new-question, .pn-compose-card
) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
	min-height: 46px;
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
	color: var(--pt-text) !important;
	font-size: 13px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stl-form, .stq-new-question, .pn-compose-card
) textarea {
	min-height: 112px;
	line-height: 1.9;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content :where(
	.sth-form, .stl-form, .stq-new-question, .pn-compose-card
) :where(small, .description) {
	color: var(--pt-muted) !important;
	font-size: 12px;
	line-height: 1.7;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sth-form-grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.15fr);
	gap: 16px !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sth-upload,
html[data-physictomy-theme] body.logged-in.woocommerce-account .stq-upload-field {
	gap: 9px;
	padding: 16px;
	border-color: var(--pt-border-strong) !important;
	border-radius: 12px;
	background: var(--pt-surface-raised) !important;
	box-shadow: none !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sth-upload :where(label, small),
html[data-physictomy-theme] body.logged-in.woocommerce-account .stq-upload-field :where(label, small) {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 54px;
	padding: 8px 10px;
	border: 1px dashed var(--pt-border-strong);
	border-radius: 10px;
	background: var(--pt-surface);
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker:focus-within {
	outline: 2px solid var(--pt-link);
	outline-offset: 2px;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker input[type="file"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	opacity: 0;
	clip-path: inset(50%);
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker .pt-file-picker__button {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 7px 13px;
	border: 1px solid var(--pt-border-strong) !important;
	border-radius: 8px !important;
	background: var(--pt-surface-soft) !important;
	color: var(--pt-text-strong) !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker .pt-file-picker__button:is(:hover, :focus-visible) {
	border-color: var(--pt-accent-deep) !important;
	background: var(--pt-surface-raised) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .pt-file-picker__name {
	min-width: 0;
	color: var(--pt-muted) !important;
	font-size: 12px;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	html[data-physictomy-theme] body.logged-in.woocommerce-account .sth-form-grid {
		grid-template-columns: 1fr;
	}
}

/* Staff accounts: make teaching work the primary dashboard destination. */
html[data-physictomy-theme] .physictomy-teacher-actions {
	margin-bottom: 30px;
	padding: 23px;
	border: 1px solid var(--pt-border);
	border-radius: 17px;
	background: var(--pt-surface-soft);
}

.physictomy-teacher-actions__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 17px;
}

.physictomy-teacher-actions__heading span,
.physictomy-teacher-actions__eyebrow {
	color: var(--pt-accent-deep);
	font-size: 12px;
	font-weight: 800;
}

html[data-physictomy-theme] .physictomy-teacher-actions__heading h2,
html[data-physictomy-theme] .physictomy-dashboard-secondary-heading h2 {
	margin: 4px 0 0 !important;
	color: var(--pt-text-strong) !important;
	font-size: 20px;
	line-height: 1.5;
}

.physictomy-teacher-actions__heading p,
.physictomy-dashboard-secondary-heading p {
	margin: 0;
	color: var(--pt-muted);
	font-size: 14px;
	line-height: 1.7;
}

.physictomy-teacher-actions__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

html[data-physictomy-theme] body .physictomy-teacher-actions__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 3px 12px;
	min-width: 0;
	padding: 17px 18px;
	border: 1px solid var(--pt-border);
	border-radius: 13px;
	background: var(--pt-surface-raised);
	color: var(--pt-text) !important;
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}

html[data-physictomy-theme] body .physictomy-teacher-actions__card:is(:hover, :focus-visible) {
	border-color: var(--pt-accent);
	transform: translateY(-2px);
}

.physictomy-teacher-actions__card strong {
	grid-column: 1;
	color: var(--pt-text-strong);
	font-size: 16px;
	line-height: 1.6;
}

.physictomy-teacher-actions__description {
	grid-column: 1;
	color: var(--pt-muted);
	font-size: 13px;
	line-height: 1.7;
}

.physictomy-teacher-actions__arrow {
	grid-column: 2;
	grid-row: 1 / 4;
	align-self: center;
	color: var(--pt-accent-deep);
	font-size: 20px;
}

.physictomy-dashboard-secondary-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 15px;
}

html[data-physictomy-theme] .physictomy-account-dashboard--staff .physictomy-dashboard-intro p {
	font-size: 14px;
	line-height: 1.8;
}

html[data-physictomy-theme] .physictomy-account-dashboard--staff .physictomy-dashboard-grid .wc-information {
	color: var(--pt-muted) !important;
	font-size: 13px;
}

/* Group account links for both students and teaching staff without changing endpoint access. */
html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul li.physictomy-account-nav-heading {
	margin: 15px 0 4px !important;
	padding: 8px 12px 4px !important;
	border-top: 1px solid var(--pt-border);
	color: var(--pt-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.6;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul li.physictomy-account-nav-heading:first-child {
	margin-top: 0 !important;
	border-top: 0;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul li:not(.is-active):not(.physictomy-account-nav-heading) a {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation ul li:not(.physictomy-account-nav-heading) a {
	font-size: 14px;
	line-height: 1.6;
}

/* The mobile account drawer is rendered separately from the sidebar. */
html[data-physictomy-theme] body.logged-in.woocommerce-account .mobile-dropdown-menu {
	background: var(--pt-surface) !important;
	border-inline-start: 1px solid var(--pt-border);
	box-shadow: var(--pt-shadow);
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .mobile-dropdown-menu .top_accoun_nav_item:not(.is-active):not(.woocommerce-MyAccount-navigation-link--customer-logout) a {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .mobile-dropdown-menu .top_accoun_nav_item a {
	font-size: 14px;
	line-height: 1.6;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .mobile-dropdown-menu .top_accoun_nav_item.is-active a {
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

.mobile-dropdown-menu .physictomy-mobile-nav-heading {
	margin: 13px 0 5px;
	padding: 9px 10px 3px;
	border-top: 1px solid var(--pt-border);
	color: var(--pt-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.6;
}

.mobile-dropdown-menu .physictomy-mobile-nav-heading:first-child {
	margin-top: 0;
	border-top: 0;
}

/* Select2 appends its option list to the body; keep it legible in dark mode. */
html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--pt-muted) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-dropdown {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-results {
	background: var(--pt-surface-raised) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-results__option:not(.select2-results__option--highlighted) {
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text) !important;
}

html[data-physictomy-theme="dark"] body.logged-in.woocommerce-account .select2-container--default .select2-results__option--highlighted {
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

html[data-physictomy-theme] body.logged-in.woocommerce-account .sth-list-toolbar .sth-filter .select2-selection__rendered,
html[data-physictomy-theme] body.logged-in.woocommerce-account .select2-dropdown .select2-results__option {
	font-size: 13px;
}

/* The account has its own navigation, so the global side trigger is redundant. */
body.logged-in.woocommerce-account .sc_studi_hamburger {
	display: none !important;
}

/* Keep purchased course names readable in the orders table, not just image alt text. */
html[data-physictomy-theme] body.woocommerce-account .myaccount-order-products-list {
	display: grid;
	gap: 6px;
	min-width: 0;
	text-align: right;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 5px 7px;
	border-radius: 9px;
	color: var(--pt-text) !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product:hover,
html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product:focus-visible {
	background: color-mix(in srgb, var(--pt-accent) 11%, transparent);
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product__image {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 8px;
	object-fit: cover;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product__fallback {
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--pt-accent) 15%, var(--pt-surface));
	color: var(--pt-accent-deep);
	font-size: 16px;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product__name {
	min-width: 0;
	max-width: 260px;
	white-space: normal;
	overflow-wrap: anywhere;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-products-more {
	min-width: 0;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-products-more summary {
	width: fit-content;
	margin: 2px 7px;
	color: var(--pt-accent-deep);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

html[data-physictomy-theme] body.woocommerce-account .myaccount-order-products-more[open] {
	display: grid;
	gap: 6px;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.view {
	border: 1px solid var(--pt-border) !important;
	background: var(--pt-surface-raised) !important;
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.cancel {
	border: 1px solid color-mix(in srgb, #d76464 42%, var(--pt-border)) !important;
	background: color-mix(in srgb, #d76464 9%, var(--pt-surface)) !important;
	color: var(--pt-text-strong) !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.view:hover,
html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.view:focus-visible {
	background: color-mix(in srgb, var(--pt-accent) 12%, var(--pt-surface-raised)) !important;
	color: var(--pt-accent-deep) !important;
}

html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.cancel:hover,
html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.cancel:focus-visible {
	background: color-mix(in srgb, #d76464 18%, var(--pt-surface)) !important;
}

@media (max-width: 700px) {
	/* WooCommerce uses a row-header <th> for the order number, unlike the other cells. */
	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		box-sizing: border-box;
		width: 100%;
		min-height: 48px;
		padding: 11px 14px !important;
		border: 0 !important;
		border-bottom: 1px solid var(--pt-border) !important;
		background: var(--pt-surface-raised) !important;
		color: var(--pt-text-strong) !important;
		text-align: right !important;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number::before {
		content: 'سفارش';
		color: var(--pt-muted);
		font-size: 12px;
		font-weight: 700;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number a {
		color: var(--pt-accent-deep) !important;
		font-weight: 800;
	}

	html[data-physictomy-theme] body.woocommerce-account .woocommerce-orders-table__cell-order-products .myaccount-order-products-list {
		flex: 1 1 66%;
	}

	html[data-physictomy-theme] body.woocommerce-account .myaccount-order-product__name {
		max-width: none;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-products {
		display: block !important;
		text-align: right !important;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-products::before {
		display: block;
		margin-bottom: 5px;
	}
}

@media (max-width: 380px) {
	html[data-physictomy-theme] body.woocommerce-account .studi_top_accoun_nav {
		gap: 4px;
		padding-inline: 0;
	}

	html[data-physictomy-theme] body.woocommerce-account .studi_top_accoun_nav .top_accoun_nav_item a {
		font-size: 12px;
		white-space: nowrap;
	}

	html[data-physictomy-theme] body.woocommerce-account .studi_top_accoun_nav .scam-hamburger-btn {
		flex: 0 0 auto;
		padding: 9px 10px;
		font-size: 13px;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total {
		display: block !important;
		min-height: 0;
		text-align: left !important;
		line-height: 1.8;
	}

	html[data-physictomy-theme] body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total::before {
		float: right;
		width: 34%;
		margin-left: 8px;
		text-align: right;
	}
}

@media (max-width: 700px) {
	.physictomy-teacher-actions__heading,
	.physictomy-dashboard-secondary-heading {
		align-items: start;
		flex-direction: column;
		gap: 5px;
	}

	.physictomy-teacher-actions__grid {
		grid-template-columns: 1fr;
	}

	html[data-physictomy-theme] .physictomy-teacher-actions {
		padding: 17px;
	}
}
