/**
 * Ultra Core - Profile Dashboard Styles
 * Modern dashboard-style profile page for Eduma + LearnPress
 * Scoped to body.uc-profile-dashboard
 */

/* ==========================================================================
   CSS Variables (theme integration)
   ========================================================================== */
body.uc-profile-dashboard {
	--uc-primary: #583b8a;
	--uc-primary-hover: #3f2a64;
	--uc-accent: #de406b;
	--uc-font: 'MuseoSans-500', sans-serif;
	--uc-font-heading: 'MuseoSans-700', sans-serif;
	--uc-card-radius: 12px;
	--uc-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--uc-card-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.08);
	--uc-sidebar-width: 280px;
	--uc-spacing: 24px;
	--uc-transition: 0.2s ease;
	--uc-avatar-size: 96px;
}

/* ==========================================================================
   Dashboard Layout - Our wrapper guarantees correct structure
   ========================================================================== */
.uc-profile-dashboard__wrap {
	display: grid !important;
	grid-template-columns: var(--uc-sidebar-width) 1fr;
	gap: var(--uc-spacing);
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--uc-spacing);
}

/* Grid children: sidebar (col 1) + content (col 2). Toggle is out of flow on desktop. */
.uc-profile-dashboard__wrap > .uc-profile-dashboard__toggle {
	display: none;
}

.uc-profile-dashboard__wrap > #profile-sidebar {
	grid-column: 1;
}

.uc-profile-dashboard__wrap > #learn-press-profile-content {
	grid-column: 2;
}

/* Ensure parents allow full width (override theme constraints) */
body.uc-profile-dashboard #learn-press-profile,
body.uc-profile-dashboard .learn-press-profile-content,
body.uc-profile-dashboard .lp-profile-page__content {
	width: 100% !important;
	max-width: 100% !important;
}

body.uc-profile-dashboard .uc-profile-dashboard__wrap {
	width: 100%;
	max-width: 100%;
}

/* Override theme rules that break layout (Eduma child) */
body.uc-profile-dashboard #profile-sidebar {
	width: var(--uc-sidebar-width) !important;
	min-width: var(--uc-sidebar-width) !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}

body.uc-profile-dashboard #learn-press-profile .profile-nav,
body.uc-profile-dashboard #learn-press-profile .tab-content,
body.uc-profile-dashboard .profile-nav,
body.uc-profile-dashboard .tab-content,
body.uc-profile-dashboard .uc-profile-nav {
	float: none !important;
	width: auto !important;
	max-width: none !important;
}

/* Content area: take remaining space, allow flexible width */
body.uc-profile-dashboard #learn-press-profile-content,
body.uc-profile-dashboard .uc-profile-dashboard__content {
	min-width: 0 !important;
	width: auto !important;
	float: none !important;
}

/* Fix Bootstrap columns squeezing content in profile */
body.uc-profile-dashboard .uc-profile-content-card .col-xs-12,
body.uc-profile-dashboard .uc-profile-content-card .col-sm-6,
body.uc-profile-dashboard .uc-profile-content-card .col-md-6,
body.uc-profile-dashboard .uc-profile-content-card .col-lg-4 {
	max-width: none;
	flex: none;
}

/* Overlay when sidebar is open on mobile - covers only content area, NOT sidebar */
body.uc-profile-sidebar-open::before {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: min(var(--uc-sidebar-width), 85vw); /* Match sidebar width - only dims content area, sidebar stays clickable */
	background: rgba(0, 0, 0, 0.4);
	z-index: 9999;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.3s ease;
}
/* Prevent theme from hiding overflow and blocking overlay/sidebar */
body.uc-profile-sidebar-open {
	overflow: hidden !important;
}

/* ==========================================================================
   Mobile Toggle Button
   ========================================================================== */
.uc-profile-dashboard__toggle {
	display: none;
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 1001;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-accent) 100%);
	color: #fff;
	border: none;
	box-shadow: 0 4px 20px rgba(88, 59, 138, 0.4);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform var(--uc-transition), box-shadow var(--uc-transition);
}
.uc-profile-dashboard__toggle-label {
	display: none;
}

.uc-profile-dashboard__toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 24px rgba(88, 59, 138, 0.5);
}

.uc-profile-dashboard__toggle:focus {
	outline: 2px solid var(--uc-primary);
	outline-offset: 2px;
}

.uc-profile-dashboard__toggle[aria-expanded="true"] .uc-profile-dashboard__toggle-icon {
	transform: rotate(90deg);
}

/* ==========================================================================
   Sidebar (Left Column)
   ========================================================================== */
.uc-profile-dashboard__sidebar,
#profile-sidebar.uc-profile-dashboard__sidebar {
	position: sticky;
	top: calc(var(--uc-spacing) + 100px);
	display: flex;
	flex-direction: column;
	gap: var(--uc-spacing);
	min-width: 0;
}

/* ==========================================================================
   Profile Card (Top of Sidebar)
   ========================================================================== */
.uc-profile-card {
	background: #fff;
	border-radius: var(--uc-card-radius);
	box-shadow: var(--uc-card-shadow);
	padding: var(--uc-spacing);
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
	/* text-align: center; */
}

/* Hide duplicate avatars - show only the one inside our profile card wrap */
body.uc-profile-dashboard .lp-user-profile-avatar {
	display: none !important;
}
body.uc-profile-dashboard .uc-profile-card__avatar-wrap .lp-user-profile-avatar {
	display: block !important;
}
body.uc-profile-dashboard #profile-header .profile-picture {
	display: none !important;
}

.uc-profile-card__avatar {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 16px;
}

/* Fixed-size circle container - prevents shape/size change with different images */
.uc-profile-card__avatar-wrap {
	position: relative;
	display: inline-flex;
	width: var(--uc-avatar-size);
	height: var(--uc-avatar-size);
	min-width: var(--uc-avatar-size);
	min-height: var(--uc-avatar-size);
	flex-shrink: 0;
}

.uc-profile-card__avatar .lp-user-profile-avatar,
.uc-profile-card__avatar .profile-picture {
	position: relative;
	width: var(--uc-avatar-size);
	height: var(--uc-avatar-size);
	overflow: hidden;
	border-radius: 50%;
	border: 3px solid rgba(88, 59, 138, 0.2);
	flex-shrink: 0;
}

.uc-profile-card__avatar .lp-user-profile-avatar img,
.uc-profile-card__avatar .profile-picture img,
.uc-profile-card__avatar-wrap .lp-user-profile-avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
}

/* Sidebar avatar edit overlay - hover to show */
.uc-avatar-edit-trigger--sidebar {
	position: absolute;
	inset: 0;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--uc-avatar-size);
	height: var(--uc-avatar-size);
	border-radius: 50%;
	background: rgba(88, 59, 138, 0.7);
	color: #fff;
	border: none;
	cursor: pointer;
	opacity: 0;
	transition: opacity var(--uc-transition);
}

.uc-profile-card__avatar-wrap:hover .uc-avatar-edit-trigger--sidebar {
	opacity: 1;
}

.uc-avatar-edit-trigger--sidebar:hover {
	background: rgba(88, 59, 138, 0.85);
	color: #fff;
}

.uc-avatar-edit-trigger--sidebar:focus {
	outline: 2px solid var(--uc-primary);
	outline-offset: 2px;
}

.uc-profile-card__body {
	text-align: center;
}

.uc-profile-card__name {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.uc-profile-card__meta {
	margin: 0 0 8px;
	font-size: 0.875rem;
	color: #64748b;
}

.uc-profile-card__bio {
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
	margin-bottom: 16px;
	text-align: center;
}

.uc-profile-card__bio p:last-child {
	margin-bottom: 0;
}

.uc-profile-card__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.uc-profile-card__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.uc-profile-card__stat strong {
	display: block;
	font-size: 1.25rem;
	color: var(--uc-primary);
	line-height: 1.2;
}

.uc-profile-card__stat span {
	font-size: 0.75rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ==========================================================================
   Sidebar Navigation (Vertical)
   ========================================================================== */
.uc-profile-nav {
	background: #fff;
	border-radius: var(--uc-card-radius);
	box-shadow: var(--uc-card-shadow);
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.uc-profile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: none !important;
}

.uc-profile-nav__item {
	margin: 0 !important;
	border: none !important;
	width: 100% !important;
}

.uc-profile-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 8px;
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	transition: all var(--uc-transition);
	border: none !important;
	text-align: left;
}

.uc-profile-nav__link:hover {
	background: #f8fafc;
	color: var(--uc-primary);
}

.uc-profile-nav__item.active .uc-profile-nav__link,
.uc-profile-nav__item.uc-profile-nav__item--active .uc-profile-nav__link,
.uc-profile-nav__item.active .uc-profile-nav__link:hover,
.uc-profile-nav__item.uc-profile-nav__item--active .uc-profile-nav__link:hover {
	background: linear-gradient(95deg, rgba(88, 59, 138, 1) 0%, rgba(222, 64, 107, 1) 100%);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(88, 59, 138, 0.35);
}
.uc-profile-nav__item.active .uc-profile-nav__link i,
.uc-profile-nav__item.active .uc-profile-nav__link svg,
.uc-profile-nav__item.uc-profile-nav__item--active .uc-profile-nav__link i,
.uc-profile-nav__item.uc-profile-nav__item--active .uc-profile-nav__link svg {
	color: inherit !important;
	fill: currentColor;
	stroke: currentColor;
}

.uc-profile-nav__link i {
	margin-right: 0;
	flex-shrink: 0;
	width: 20px;
	text-align: center;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.uc-profile-dashboard__content {
	min-width: 0;
}

.uc-profile-content-card {
	background: #fff;
	border-radius: var(--uc-card-radius);
	box-shadow: var(--uc-card-shadow);
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.uc-profile-content-card__body {
	min-height: 200px;
}

/* Profile headings inside content */
.uc-profile-content-card .profile-heading {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
}

/* ==========================================================================
   Courses Grid (Profile Courses Tab)
   ========================================================================== */
body.uc-profile-dashboard .thim-course-grid.profile-courses-list,
body.uc-profile-dashboard .profile-courses-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--uc-spacing);
	margin-top: 0;
	/* width: 100% !important; */
	min-width: 0;
	align-items: stretch;
}

body.uc-profile-dashboard .profile__course {
	margin: 0 !important;
	max-width: none !important;
	width: auto !important;
	display: flex;
}

/* Override Bootstrap grid if it constrains width */
body.uc-profile-dashboard .uc-profile-content-card__body {
	width: 100%;
	min-width: 0;
}

body.uc-profile-dashboard .profile__course .course-item {
	background: #fff;
	border-radius: var(--uc-card-radius);
	box-shadow: var(--uc-card-shadow);
	border: none;
	overflow: hidden;
	transition: box-shadow var(--uc-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.uc-profile-dashboard .profile__course .course-item:hover {
	box-shadow: var(--uc-card-shadow-hover);
}

body.uc-profile-dashboard .profile__course .course-thumbnail {
	border-radius: var(--uc-card-radius) var(--uc-card-radius) 0 0;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
body.uc-profile-dashboard .profile__course .course-thumbnail img {
	border-radius: var(--uc-card-radius) var(--uc-card-radius) 0 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Override theme: body.profile .thim-course-content { padding: 0 15px !important } */
body.uc-profile-dashboard .profile__course .thim-course-content {
	padding: 20px !important;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: visible;
	border: none !important;
}
/* Spacer - pushes View Certificates button to bottom */
body.uc-profile-dashboard .profile__course .thim-course-content > .course__list__info,
body.uc-profile-dashboard .profile__course .thim-course-content > .profile__course__lessons {
	flex: 0 1 auto;
}
body.uc-profile-dashboard .profile__course .ucat-frontend-download-container {
	margin-top: auto !important;
	padding-top: 16px !important;
	flex-shrink: 0;
}

body.uc-profile-dashboard .profile__course .course-title {
	font-size: 1rem;
	line-height: 1.4;
	margin-bottom: 8px;
}

body.uc-profile-dashboard .profile__course .course-title a {
	text-decoration: none;
	color: inherit;
}

/* Course details - native details/summary (no JS required) */
body.uc-profile-dashboard .profile__course .uc-course-details {
	margin-bottom: 0;
	border: none;
}
body.uc-profile-dashboard .profile__course .uc-course-details-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 0;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #64748b;
	background: none;
	border: none;
	border-bottom: 1px solid #e2e8f0;
	cursor: pointer;
	list-style: none;
	transition: color 0.2s;
}
body.uc-profile-dashboard .profile__course .uc-course-details-toggle::-webkit-details-marker,
body.uc-profile-dashboard .profile__course .uc-course-details-toggle::marker {
	display: none;
}
body.uc-profile-dashboard .profile__course .uc-course-details-toggle:hover {
	color: var(--uc-primary);
}
body.uc-profile-dashboard .profile__course .uc-course-details[open] .uc-course-details-toggle {
	color: var(--uc-primary);
	border-bottom-color: transparent;
}
body.uc-profile-dashboard .profile__course .uc-course-details[open] .uc-course-details-toggle__icon {
	transform: rotate(180deg);
}
body.uc-profile-dashboard .profile__course .uc-course-details-toggle__icon {
	flex-shrink: 0;
	margin-left: 8px;
	transition: transform 0.2s ease;
	color: #94a3b8;
}
body.uc-profile-dashboard .profile__course .uc-course-details[open] .uc-course-details-toggle__icon {
	color: var(--uc-primary);
}
body.uc-profile-dashboard .profile__course .uc-course-details__body {
	padding-top: 16px;
	padding-bottom: 4px;
}

body.uc-profile-dashboard .profile__course .course-outl-link {
	display: inline-block;
	margin-block: 0;
	font-size: 0.8125rem;
	padding: 0 !important;
}

/* Course info block - compact, clean borders */
body.uc-profile-dashboard .profile__course .course__list__info {
	/* margin-bottom: 12px; */
	border: none !important;
}
body.uc-profile-dashboard .profile__course .course__list__info > * {
	border-left: none !important;
	border-right: none !important;
}

body.uc-profile-dashboard .profile__course .course__list__info__subtitle {
	font-size: 0.875rem;
	color: #64748b;
}

body.uc-profile-dashboard .profile__course .course__list__info__list__list__item {
	font-size: 0.8125rem;
	/* padding: 2px 0; */
	line-height: 1.4;
}

/* Lessons section - compact, scrollable */
body.uc-profile-dashboard .profile__course__lessons {
	max-height: 180px;
	overflow-y: auto;
	overflow-x: hidden;
	margin-bottom: 12px;
	flex-shrink: 0;
	border: none;
	scrollbar-gutter: stable;
	padding: 0 !important;
}
body.uc-profile-dashboard .profile__course__lessons::-webkit-scrollbar {
	width: 6px;
}
body.uc-profile-dashboard .profile__course__lessons::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}
body.uc-profile-dashboard .profile__course__lessons::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 3px;
}

body.uc-profile-dashboard .profile__course__lessons__item__inner {
	margin-bottom: 10px;
}
body.uc-profile-dashboard .profile__course__lessons__item__inner:last-child {
	margin-bottom: 0;
}
/* Fix stray borders in lessons/content sections */
body.uc-profile-dashboard .profile__course .profile__course__lessons,
body.uc-profile-dashboard .profile__course .profile__course__lessons__item__inner {
	border-left: none !important;
	border-right: none !important;
}

body.uc-profile-dashboard .profile__course__lessons__title {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 6px;
	padding-bottom: 2px;
	border-bottom: 1px solid #e2e8f0;
}

body.uc-profile-dashboard .profile__course__lessons__item {
	margin-bottom: 4px;
}
body.uc-profile-dashboard .profile__course__lessons__item:last-child {
	margin-bottom: 0;
}

/* Compact lesson links - replace large buttons with pill-style links */
body.uc-profile-dashboard .profile__course__lessons__item .vc_btn3-container,
body.uc-profile-dashboard .profile__course__lessons .vc_btn3-container {
	margin: 0 !important;
	padding: 0 !important;
}

body.uc-profile-dashboard .profile__course__lessons__item .vc_btn3-container a,
body.uc-profile-dashboard .profile__course__lessons .vc_btn3-container a,
body.uc-profile-dashboard .profile__course__lessons .vc_general.vc_btn3 {
	display: block !important;
	padding: 6px 12px !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	background: rgba(88, 59, 138, 0.08) !important;
	color: var(--uc-primary) !important;
	border: 1px solid rgba(88, 59, 138, 0.2) !important;
	transition: background 0.2s, border-color 0.2s !important;
	line-height: 1.35 !important;
}
body.uc-profile-dashboard .profile__course__lessons__item .vc_btn3-container a:hover,
body.uc-profile-dashboard .profile__course__lessons .vc_btn3-container a:hover {
	background: rgba(88, 59, 138, 0.15) !important;
	border-color: rgba(88, 59, 138, 0.35) !important;
	color: var(--uc-primary) !important;
}

/* Certificates button - pinned to card bottom */
body.uc-profile-dashboard .profile__course .ucat-view-certs-btn {
	padding: 8px 16px !important;
	font-size: 0.875rem !important;
}

/* Pre Course Material and other non-lesson gradient buttons - compact */
body.uc-profile-dashboard .profile__course .course__list__info .vc_btn3-container.gradient__btn .vc_general,
body.uc-profile-dashboard .profile__course .course__list__info .gradient__btn .vc_general {
	/* padding: 8px 14px !important; */
	font-size: 0.8125rem !important;
}

/* ==========================================================================
   Settings Sub-tabs (Profile Details | Change Password)
   Matches course grid/list toggle button style
   ========================================================================== */
.uc-settings-tabs__nav {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	border: 1px solid rgba(88, 59, 138, 0.3);
	border-radius: 6px;
	overflow: hidden;
	background: rgba(88, 59, 138, 0.15);
	width: fit-content;
}

.uc-settings-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	background: rgba(88, 59, 138, 0.5);
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #fff !important;
	transition: all 0.2s ease;
}

.uc-settings-tabs__tab:hover {
	background: rgba(88, 59, 138, 0.65);
	color: #fff !important;
}

body.uc-profile-dashboard .uc-settings-tabs__tab.uc-settings-tabs__tab--active,
body.uc-profile-dashboard .uc-settings-tabs__tab.uc-settings-tabs__tab--active:hover,
body.uc-profile-dashboard button.uc-settings-tabs__tab.uc-settings-tabs__tab--active {
	background: linear-gradient(95deg, rgba(88, 59, 138, 1) 0%, rgba(222, 64, 107, 1) 100%) !important;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(88, 59, 138, 0.35);
}

.uc-settings-tabs__panel {
	display: none;
}

.uc-settings-tabs__panel.uc-settings-tabs__panel--active {
	display: block;
}

/* Addresses panel (WooCommerce my-address) */
.uc-settings-addresses {
	font-family: var(--uc-font, 'MuseoSans-500', sans-serif);
}
.uc-settings-addresses > p {
	margin: 0 0 24px;
	font-size: 0.9375rem;
	color: #64748b;
	text-align: center;
	line-height: 1.5;
}
/* Override WooCommerce/theme narrow column layout */
.uc-settings-addresses .woocommerce-Addresses,
.uc-settings-addresses .addresses.col2-set,
.uc-settings-addresses .u-columns {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}
.uc-settings-addresses .u-column,
.uc-settings-addresses .col-1,
.uc-settings-addresses .col-2 {
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}
.uc-settings-addresses .woocommerce-Address {
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: var(--uc-card-radius, 12px);
	min-width: 0;
	width: 100%;
}
.uc-settings-addresses .woocommerce-Address-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}
.uc-settings-addresses .woocommerce-Address-title h2 {
	font-family: var(--uc-font-heading, 'MuseoSans-700', sans-serif);
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 8px 0;
	line-height: 1.3;
}
.uc-settings-addresses .woocommerce-Address-title a.edit {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--uc-primary, #583b8a);
	text-decoration: none;
	white-space: nowrap;
}
.uc-settings-addresses .woocommerce-Address-title a.edit:hover {
	text-decoration: underline;
}
.uc-settings-addresses .woocommerce-Address address {
	font-style: normal;
	line-height: 1.6;
	color: #4b5563;
	font-size: 0.9375rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
@media (max-width: 640px) {
	.uc-settings-addresses .woocommerce-Addresses,
	.uc-settings-addresses .addresses.col2-set,
	.uc-settings-addresses .u-columns {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Edit Address Forms (Billing / Shipping) – Card layout
   ========================================================================== */
.uc-settings-addresses-back {
	margin: 28px 0 0;
	padding-top: 24px;
	border-top: 1px solid #eef1f6;
}
.uc-settings-addresses-back--top {
	margin: 0 0 20px;
	padding-top: 0;
	padding-bottom: 0;
	border-top: none;
}
.uc-settings-addresses-back__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--uc-primary, #583b8a);
	text-decoration: none;
	padding: 5px 18px 6px;
	background: rgba(88, 59, 138, 0.08);
	border-radius: 10px;
	transition: background 0.2s, color 0.2s;
}
.uc-settings-addresses-back__link:hover {
	background: rgba(88, 59, 138, 0.14);
	color: var(--uc-primary-hover, #3f2a64);
}
.uc-settings-addresses-edit__title {
	font-family: var(--uc-font-heading, 'MuseoSans-700', sans-serif);
	font-size: 1.3125rem;
	font-weight: 600;
	color: #1a1d24;
	margin: 0 0 24px;
	padding: 0;
	line-height: 1.3;
}
.uc-settings-addresses-edit {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* max-width: 640px; */
}

.uc-settings-addresses .woocommerce-address-fields,
.uc-settings-addresses-edit .woocommerce-address-fields {
	margin: 0;
	/* max-width: 640px; */
	padding: 32px 36px;
	background: #fff;
	border: 1px solid #e8ecf2;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.05);
}
.uc-settings-addresses form.edit-address,
.uc-settings-addresses-edit form.edit-address {
	max-width: 640px;
}
.uc-settings-addresses .woocommerce-address-fields h2,
.uc-settings-addresses .woocommerce-address-fields h3,
.uc-settings-addresses-edit form h2,
.uc-settings-addresses-edit form h3 {
	font-family: var(--uc-font-heading, 'MuseoSans-700', sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1d24;
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #eef1f6;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 24px;
	margin-bottom: 28px;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper .form-row-wide,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper .form-row,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper .form-row {
	margin: 0 !important;
	float: none !important;
	width: auto !important;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper label,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper label .required,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper label .required {
	color: #dc2626;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper .input-text,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input[type="text"],
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input[type="email"],
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input[type="tel"],
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input[type="number"],
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input[type="url"],
.uc-settings-addresses .woocommerce-address-fields__field-wrapper select,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper textarea,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper .select2-container .select2-selection,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper .input-text,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input[type="text"],
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input[type="email"],
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input[type="tel"],
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input[type="number"],
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input[type="url"],
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper select,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper textarea,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper .select2-container .select2-selection {
	width: 100%;
	padding: 13px 16px;
	font-size: 0.9375rem;
	font-family: var(--uc-font, 'MuseoSans-500', sans-serif);
	line-height: 1.45;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #fafbfc;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper textarea,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper textarea {
	min-height: 88px;
	resize: vertical;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input:hover,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper select:hover,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper textarea:hover,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input:hover,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper select:hover,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper textarea:hover {
	border-color: #cbd5e1;
	background: #fff;
}
.uc-settings-addresses .woocommerce-address-fields__field-wrapper input:focus,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper select:focus,
.uc-settings-addresses .woocommerce-address-fields__field-wrapper textarea:focus,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper input:focus,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper select:focus,
.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper textarea:focus {
	outline: none;
	border-color: var(--uc-primary, #583b8a);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(88, 59, 138, 0.12);
}
.uc-settings-addresses .woocommerce-address-fields > p,
.uc-settings-addresses-edit .woocommerce-address-fields > p {
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid #eef1f6;
}
.uc-settings-addresses .woocommerce-address-fields button[type="submit"],
.uc-settings-addresses .woocommerce-address-fields .button,
.uc-settings-addresses-edit .woocommerce-address-fields button[type="submit"],
.uc-settings-addresses-edit .woocommerce-address-fields .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 600;
	font-family: var(--uc-font, 'MuseoSans-500', sans-serif);
	color: #fff !important;
	background: linear-gradient(135deg, var(--uc-primary, #583b8a) 0%, var(--uc-accent, #de406b) 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 10px rgba(88, 59, 138, 0.25);
}
.uc-settings-addresses .woocommerce-address-fields button[type="submit"]:hover,
.uc-settings-addresses .woocommerce-address-fields .button:hover,
.uc-settings-addresses-edit .woocommerce-address-fields button[type="submit"]:hover,
.uc-settings-addresses-edit .woocommerce-address-fields .button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(88, 59, 138, 0.35);
	color: #fff !important;
}
.uc-settings-addresses .uc-settings-addresses-edit {
	padding: 0;
	background: none;
	border: none;
}
.uc-settings-addresses .woocommerce-form-row--wide .input-text,
.uc-settings-addresses-edit .woocommerce-form-row--wide .input-text {
	width: 100%;
}
.uc-settings-addresses .woocommerce-address-fields .woocommerce-invalid .input-text,
.uc-settings-addresses-edit .woocommerce-address-fields .woocommerce-invalid .input-text {
	border-color: #dc2626;
	background: #fef2f2;
}
.uc-settings-addresses .woocommerce-address-fields .woocommerce-invalid .input-text:focus,
.uc-settings-addresses-edit .woocommerce-address-fields .woocommerce-invalid .input-text:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.uc-settings-addresses .woocommerce-address-fields .select2-container,
.uc-settings-addresses-edit .woocommerce-address-fields .select2-container {
	width: 100% !important;
}
.uc-settings-addresses .woocommerce-address-fields .select2-container .select2-selection--single,
.uc-settings-addresses-edit .woocommerce-address-fields .select2-container .select2-selection--single {
	height: 46px;
	padding: 10px 16px;
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	background: #fafbfc;
}
.uc-settings-addresses .woocommerce-address-fields .select2-container--focus .select2-selection--single,
.uc-settings-addresses .woocommerce-address-fields .select2-container--open .select2-selection--single,
.uc-settings-addresses-edit .woocommerce-address-fields .select2-container--focus .select2-selection--single,
.uc-settings-addresses-edit .woocommerce-address-fields .select2-container--open .select2-selection--single {
	border-color: var(--uc-primary, #583b8a);
	box-shadow: 0 0 0 3px rgba(88, 59, 138, 0.12);
}
@media (max-width: 540px) {
	.uc-settings-addresses .woocommerce-address-fields__field-wrapper,
	.uc-settings-addresses-edit .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}
	.uc-settings-addresses .woocommerce-address-fields,
	.uc-settings-addresses-edit .woocommerce-address-fields {
		padding: 20px;
	}
}

.uc-settings-change-password .profile-heading {
	margin-bottom: 16px;
}

/* ==========================================================================
   Change Password – Two-Column Layout (Illustration + Form)
   ========================================================================== */
.uc-settings-change-password {
	padding-top: 4px;
}

.uc-settings-change-password__card {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	min-height: 420px;
	background: #fff;
	border: 1px solid rgba(88, 59, 138, 0.12);
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(88, 59, 138, 0.06);
	overflow: hidden;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Left: Vector illustration */
.uc-settings-change-password__illustration {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	background: linear-gradient(135deg, rgba(88, 59, 138, 0.08) 0%, rgba(222, 64, 107, 0.05) 100%);
}

.uc-settings-change-password__illustration svg {
	width: 100%;
	max-width: 280px;
	height: auto;
}

/* Right: Form */
.uc-settings-change-password__form-wrap {
	display: flex;
	flex-direction: column;
	padding: 32px 36px 36px;
	min-width: 0;
}

.uc-settings-change-password__header {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.uc-settings-change-password__heading {
	margin: 0 0 8px;
	font-size: 1.375rem;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.uc-settings-change-password__description {
	margin: 0;
	font-size: 0.9375rem;
	color: #64748b;
	line-height: 1.5;
}

.uc-settings-change-password__form {
	padding: 0;
	flex: 1;
}

.uc-settings-change-password__fields {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-bottom: 28px;
}

.uc-settings-change-password__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Password input with eye toggle */
.uc-password-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

/* Hide browser's built-in password reveal icon (Edge, IE) to avoid duplicate with our toggle */
.uc-password-input-wrap .uc-settings-change-password__input::-ms-reveal {
	display: none !important;
}

.uc-password-input-wrap .uc-settings-change-password__input {
	padding-right: 48px;
}

.uc-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: none !important;
	background-color: transparent !important;
	color: #94a3b8;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.uc-password-toggle.uc-password-toggle--visible {
	opacity: 1;
	pointer-events: auto;
}

.uc-password-toggle:hover {
	color: var(--uc-primary);
}

/* Override any theme/global button styles - keep toggle clean with no background */
body.uc-profile-dashboard .uc-password-toggle,
.uc-settings-change-password .uc-password-toggle {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.uc-password-toggle__icon {
	display: block;
}

/* Password strength indicator - only visible after user types in new password */
.uc-password-strength {
	display: none;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.uc-password-strength.is-visible {
	display: flex;
	flex-direction: column;
}

.uc-password-strength__bar {
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	overflow: hidden;
}

.uc-password-strength__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.2s ease;
}

.uc-password-strength.s0 .uc-password-strength__fill { background: #dc2626; }
.uc-password-strength.s1 .uc-password-strength__fill { background: #ea580c; }
.uc-password-strength.s2 .uc-password-strength__fill { background: #ca8a04; }
.uc-password-strength.s3 .uc-password-strength__fill { background: #65a30d; }
.uc-password-strength.s4 .uc-password-strength__fill { background: #16a34a; }

.uc-password-strength__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.uc-password-strength__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: #94a3b8;
}

.uc-password-strength__item.is-met {
	color: #16a34a;
}

.uc-password-strength__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.uc-password-strength__item:not(.is-met) .uc-password-strength__icon::before {
	content: '\2715';
	color: #94a3b8;
}

.uc-password-strength__item.is-met .uc-password-strength__icon::before {
	content: '\2713';
	color: #16a34a;
	font-weight: bold;
}

.uc-password-strength__status {
	font-size: 0.8125rem;
	font-weight: 600;
}

.uc-password-strength.s0 .uc-password-strength__status { color: #dc2626; }
.uc-password-strength.s1 .uc-password-strength__status { color: #ea580c; }
.uc-password-strength.s2 .uc-password-strength__status { color: #ca8a04; }
.uc-password-strength.s3 .uc-password-strength__status { color: #65a30d; }
.uc-password-strength.s4 .uc-password-strength__status { color: #16a34a; }

.uc-settings-change-password__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	letter-spacing: 0.01em;
}

.uc-settings-change-password__label .required {
	color: #dc2626;
	margin-left: 2px;
}

.uc-settings-change-password__input {
	width: 100%;
	padding: 14px 16px;
	font-size: 0.9375rem;
	line-height: 1.4;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #fafbfc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.uc-settings-change-password__input:hover {
	border-color: #cbd5e1;
	background: #fff;
}

.uc-settings-change-password__input:focus {
	outline: none;
	border-color: var(--uc-primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(88, 59, 138, 0.1);
}

.uc-settings-change-password__input::placeholder {
	color: #94a3b8;
}

.uc-settings-change-password__hint {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: #94a3b8;
	line-height: 1.4;
}

.uc-settings-change-password__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff !important;
	text-transform: none;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-accent) 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uc-settings-change-password__submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(88, 59, 138, 0.4);
}

.uc-settings-change-password__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.uc-settings-change-password .uc-settings-message {
	margin: 0 0 20px;
	border-radius: 10px;
}

.uc-settings-change-password .uc-settings-message + .uc-settings-change-password__form {
	padding-top: 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
	.uc-settings-change-password__card {
		grid-template-columns: 1fr;
		max-width: 520px;
		min-height: auto;
	}
	.uc-settings-change-password__illustration {
		padding: 32px 24px;
		min-height: 200px;
	}
	.uc-settings-change-password__illustration svg {
		max-width: 200px;
	}
	.uc-settings-change-password__form-wrap {
		padding: 28px 24px 32px;
	}
}

@media (max-width: 640px) {
	.uc-settings-change-password__card {
		max-width: none;
	}
	.uc-settings-change-password__illustration {
		padding: 24px 20px;
		min-height: 180px;
	}
	.uc-settings-change-password__illustration svg {
		max-width: 160px;
	}
	.uc-settings-change-password__form-wrap {
		padding: 24px 20px 28px;
	}
	.uc-settings-change-password__heading {
		font-size: 1.25rem;
	}
	.uc-settings-change-password__submit {
		width: 100%;
		padding: 16px 24px;
	}
}

.uc-settings-message {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: var(--uc-card-radius);
	font-size: 0.9375rem;
}

.uc-settings-message--success {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
}

.uc-settings-message--error {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

/* ==========================================================================
   Forms (Settings Tab)
   ========================================================================== */
.uc-settings-profile {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Avatar section - top, compact */
.uc-settings-avatar-section {
	padding-bottom: 24px;
	border-bottom: 1px solid #f1f5f9;
	text-align: center;
}

.uc-settings-avatar-section .profile-heading {
	margin-bottom: 16px;
	text-align: center;
}

.uc-settings-avatar-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.uc-settings-avatar-preview-wrap {
	display: block;
	background: none !important;
	background-color: transparent !important;
	border: none;
	padding: 0;
	cursor: pointer;
}

/* Override theme button background for settings avatar buttons */
body.uc-profile-dashboard .uc-settings-avatar-preview-wrap {
	background-color: transparent !important;
}
body.uc-profile-dashboard .uc-settings-avatar-link {
	background-color: #f1f5f9 !important;
	background-image: none !important;
}

.uc-settings-avatar-uploader {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* Fixed circle - prevents shape change with different image sizes */
.uc-settings-avatar-preview {
	position: relative;
	width: 96px;
	height: 96px;
	min-width: 96px;
	min-height: 96px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(88, 59, 138, 0.2);
	box-shadow: var(--uc-card-shadow);
	cursor: pointer;
	flex-shrink: 0;
}

.uc-settings-avatar-preview .uc-settings-avatar-img,
.uc-settings-avatar-preview .uc-settings-avatar-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
}


.uc-settings-avatar-img,
.uc-settings-avatar-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.uc-settings-avatar-overlay {
	position: absolute;
	inset: 0;
	background: rgba(88, 59, 138, 0.7);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	opacity: 0;
	transition: opacity var(--uc-transition);
	border-radius: 50%;
}

.uc-settings-avatar-overlay .uc-settings-avatar-icon {
	color: #fff;
}

.uc-settings-avatar-overlay .uc-settings-avatar-label {
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.uc-settings-avatar-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.uc-settings-avatar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: all var(--uc-transition);
}

.uc-settings-avatar-link:hover {
	background: rgba(88, 59, 138, 0.1);
	color: var(--uc-primary);
}

.uc-settings-avatar-link--remove:hover {
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

/* ==========================================================================
   Avatar Upload Modal (inline - no redirect)
   ========================================================================== */
.uc-avatar-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.uc-avatar-modal[hidden] {
	display: none !important;
}

.uc-avatar-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.uc-avatar-modal__content {
	position: relative;
	background: #fff;
	border-radius: var(--uc-card-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	max-width: 420px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
}

.uc-avatar-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #f1f5f9;
}

.uc-avatar-modal__header h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a1a;
}

.uc-avatar-modal__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color var(--uc-transition), background var(--uc-transition);
}

.uc-avatar-modal__close:hover {
	color: #1a1a1a;
	background: #f1f5f9;
}

.uc-avatar-modal__body {
	padding: 24px;
}

.uc-avatar-form__drop {
	position: relative;
	border: 2px dashed #e2e8f0;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	cursor: pointer;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--uc-transition), background var(--uc-transition);
	margin-bottom: 20px;
}

.uc-avatar-form__drop:hover,
.uc-avatar-form__drop.uc-avatar-form__drop--over {
	border-color: var(--uc-primary);
	background: rgba(88, 59, 138, 0.05);
}

.uc-avatar-form__drop input[type="file"] {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.uc-avatar-form__hint {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
}

.uc-avatar-form__preview {
	display: none;
	align-items: center;
	justify-content: center;
}

.uc-avatar-form__preview.has-preview {
	display: flex;
}

.uc-avatar-form__preview-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

.uc-avatar-form__actions {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.uc-avatar-form__btn {
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: background var(--uc-transition);
}

.uc-avatar-form__btn--upload {
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-accent) 100%);
	color: #fff;
}

.uc-avatar-form__btn--upload:hover:not(:disabled) {
	opacity: 0.9;
}

.uc-avatar-form__btn--upload:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.uc-avatar-form__btn--remove {
	background: #f1f5f9;
	color: #64748b;
}

.uc-avatar-form__btn--remove:hover:not(:disabled) {
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

.uc-avatar-form__message {
	font-size: 0.875rem;
	min-height: 1.25em;
}

.uc-avatar-form__message--success {
	color: #16a34a;
}

.uc-avatar-form__message--error {
	color: #dc2626;
}

.uc-settings-details-section .profile-heading {
	margin-top: 0;
}

body.uc-profile-dashboard .learn-press-form .form-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

body.uc-profile-dashboard .learn-press-form .form-field__clear {
	grid-column: 1 / -1;
}

body.uc-profile-dashboard .learn-press-form input[type="text"],
body.uc-profile-dashboard .learn-press-form input[type="email"],
body.uc-profile-dashboard .learn-press-form textarea {
	border-radius: 8px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
}

body.uc-profile-dashboard .learn-press-form button[type="submit"] {
	background: linear-gradient(135deg, var(--uc-primary) 0%, var(--uc-accent) 100%);
	color: #fff;
	padding: 12px 28px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: transform var(--uc-transition);
}

body.uc-profile-dashboard .learn-press-form button[type="submit"]:hover {
	transform: translateY(-1px);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
body.uc-profile-dashboard .vc_btn3-container.gradient__btn .vc_general,
body.uc-profile-dashboard .gradient__btn a {
	border-radius: 8px !important;
	padding: 10px 24px !important;
	font-weight: 500 !important;
	transition: transform var(--uc-transition) !important;
}

body.uc-profile-dashboard .vc_btn3-container.gradient__btn .vc_general:hover,
body.uc-profile-dashboard .gradient__btn a:hover {
	transform: translateY(-1px) !important;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
body.uc-profile-dashboard .learn-press-message {
	padding: 40px;
	text-align: center;
	background: #f8fafc;
	border-radius: var(--uc-card-radius);
	color: #64748b;
}

/* ==========================================================================
   Tablet & mobile (≤1024px): Full-width content, off-canvas sidebar,
   “Profile menu” toggle — same breakpoint as single-column grid
   ========================================================================== */
@media (max-width: 1024px) {
	body.uc-profile-dashboard #learn-press-profile,
	body.uc-profile-dashboard .learn-press-profile-content,
	body.uc-profile-dashboard .lp-profile-page__content {
		grid-template-columns: 1fr;
	}
	.uc-profile-dashboard__wrap {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
	}
	.uc-profile-dashboard__wrap > #learn-press-profile-content {
		grid-column: 1;
		min-width: 0;
	}

	.uc-profile-dashboard__sidebar,
	#profile-sidebar.uc-profile-dashboard__sidebar {
		display: flex !important;
		visibility: visible !important;
		position: fixed !important;
		top: 0;
		left: 0;
		height: 100vh;
		width: 300px;
		max-width: 85vw;
		z-index: 10000;
		background: #fff;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
		padding: var(--uc-spacing);
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		flex-direction: column;
		gap: var(--uc-spacing);
	}

	.uc-profile-dashboard__sidebar.is-open {
		transform: translateX(0) !important;
	}

	/* Hide floating toggle - we use header toggle instead to avoid FAB conflicts */
	.uc-profile-dashboard__wrap > .uc-profile-dashboard__toggle {
		display: none !important;
	}

	/* Header toggle: inline at top of content, not floating */
	.uc-profile-dashboard__toggle--header {
		display: flex !important;
		position: static !important;
		width: auto;
		padding: 10px 16px;
		border-radius: 8px;
		font-size: 0.875rem;
		font-weight: 600;
		margin-bottom: 12px;
		box-shadow: 0 2px 8px rgba(88, 59, 138, 0.25);
	}
	.uc-profile-dashboard__toggle--header .uc-profile-dashboard__toggle-label {
		display: inline;
	}

	/* Settings tabs: scroll horizontally if needed */
	.uc-settings-tabs__nav {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.uc-settings-tabs__nav::-webkit-scrollbar {
		height: 4px;
	}
	.uc-settings-tabs__tab {
		flex-shrink: 0;
		white-space: nowrap;
	}

	/* Orders table: smaller min-width on tablet for better fit */
	body.uc-profile-dashboard .uc-orders-table-wrap table.woocommerce-orders-table,
	body.uc-profile-dashboard .uc-orders-table-wrap .account-orders-table {
		min-width: 560px;
	}
}

/* ==========================================================================
   Mobile: Stack, touch-friendly
   ========================================================================== */
@media (max-width: 640px) {
	body.uc-profile-dashboard #learn-press-profile,
	body.uc-profile-dashboard .learn-press-profile-content,
	body.uc-profile-dashboard .lp-profile-page__content {
		padding: 12px;
	}

	.uc-profile-dashboard__wrap {
		padding: 12px;
		gap: 12px;
	}

	.uc-profile-dashboard__sidebar,
	#profile-sidebar.uc-profile-dashboard__sidebar {
		width: 100%;
		max-width: 100%;
		padding: 20px;
		padding-top: max(20px, env(safe-area-inset-top));
	}

	.uc-profile-content-card {
		padding: 16px;
	}
	.uc-profile-content-card__body {
		min-height: 120px;
	}

	body.uc-profile-dashboard .thim-course-grid.profile-courses-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	body.uc-profile-dashboard .learn-press-form .form-fields {
		grid-template-columns: 1fr;
	}
	body.uc-profile-dashboard .learn-press-form .form-field__50 {
		width: 100%;
		max-width: 100%;
	}

	.uc-profile-card__stats {
		justify-content: center;
		gap: 16px;
	}

	/* Responsive avatar - slightly smaller on mobile */
	body.uc-profile-dashboard {
		--uc-avatar-size: 80px;
	}

	.uc-profile-card__avatar-wrap,
	.uc-avatar-edit-trigger--sidebar {
		width: 80px !important;
		height: 80px !important;
		min-width: 80px !important;
		min-height: 80px !important;
	}

	.uc-profile-card__avatar .lp-user-profile-avatar,
	.uc-profile-card__avatar-wrap .lp-user-profile-avatar {
		width: 80px !important;
		height: 80px !important;
	}

	.uc-settings-avatar-preview {
		width: 80px;
		height: 80px;
		min-width: 80px;
		min-height: 80px;
	}

	/* Settings tabs: full width, smaller on mobile */
	.uc-settings-tabs__nav {
		width: 100%;
		margin-bottom: 20px;
	}
	.uc-settings-tabs__tab {
		padding: 10px 12px;
		font-size: 0.8125rem;
	}

	/* Profile heading and sections */
	.uc-profile-content-card .profile-heading {
		font-size: 1.125rem;
		margin-bottom: 16px;
	}
	.uc-settings-details-section .form-fields {
		gap: 16px;
	}
	.uc-settings-avatar-section .profile-heading,
	.uc-settings-details-section .profile-heading {
		font-size: 1.125rem;
	}

	/* Orders table: smaller min-width on mobile */
	body.uc-profile-dashboard .uc-orders-table-wrap table.woocommerce-orders-table,
	body.uc-profile-dashboard .uc-orders-table-wrap .account-orders-table {
		min-width: 480px;
	}

	/* Mobile toggle: safe-area for notched devices */
	.uc-profile-dashboard__toggle {
		bottom: max(24px, env(safe-area-inset-bottom));
		right: max(24px, env(safe-area-inset-right));
	}

	/* Profile nav links: touch-friendly */
	.uc-profile-nav__link {
		padding: 14px 16px;
		min-height: 48px;
	}
}

/* ==========================================================================
   Small phones (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
	.uc-profile-dashboard__wrap {
		padding: 10px;
	}
	.uc-profile-content-card {
		padding: 14px;
	}
	.uc-settings-tabs__tab {
		padding: 8px 10px;
		font-size: 0.75rem;
	}
	.uc-profile-courses-empty {
		padding: 32px 16px 40px;
	}
	.uc-profile-courses-empty__title {
		font-size: 1.125rem;
	}
	/* Orders table: minimal min-width on very small screens */
	body.uc-profile-dashboard .uc-orders-table-wrap table.woocommerce-orders-table,
	body.uc-profile-dashboard .uc-orders-table-wrap .account-orders-table {
		min-width: 420px;
	}
}

/* ==========================================================================
   Profile Courses Empty State
   ========================================================================== */
.uc-profile-courses-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px 56px;
	background: linear-gradient(135deg, rgba(88, 59, 138, 0.04) 0%, rgba(222, 64, 107, 0.04) 100%);
	border-radius: var(--uc-card-radius, 12px);
	border: 1px dashed rgba(88, 59, 138, 0.2);
	margin-top: 16px;
}

.uc-profile-courses-empty__illustration {
	width: 200px;
	max-width: 90%;
	margin-bottom: 24px;
}

.uc-profile-courses-empty__illustration svg {
	width: 100%;
	height: auto;
	display: block;
}

.uc-profile-courses-empty__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--uc-primary, #583b8a);
	margin: 0 0 8px;
	line-height: 1.3;
}

.uc-profile-courses-empty__text {
	font-size: 0.9375rem;
	color: #666;
	margin: 0 0 24px;
	max-width: 320px;
	line-height: 1.5;
}

.uc-profile-courses-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, var(--uc-primary, #583b8a) 0%, var(--uc-accent, #de406b) 100%);
	border-radius: 8px;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.uc-profile-courses-empty__btn:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(88, 59, 138, 0.4);
}

/* ==========================================================================
   Profile Orders – Table scrollable by device
   ========================================================================== */
.uc-orders-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	margin: 0 0 24px;
	max-width: 100%;
}
.uc-orders-table-wrap::-webkit-scrollbar {
	height: 8px;
}
.uc-orders-table-wrap::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 4px;
}
.uc-orders-table-wrap::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}
.uc-orders-table-wrap::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}
body.uc-profile-dashboard .uc-orders-table-wrap table.woocommerce-orders-table,
body.uc-profile-dashboard .uc-orders-table-wrap .account-orders-table {
	min-width: 640px;
}

/* ==========================================================================
   Profile Orders – Theme font (MuseoSans)
   ========================================================================== */
body.uc-profile-dashboard .woocommerce-orders-table,
body.uc-profile-dashboard .woocommerce-orders-table th,
body.uc-profile-dashboard .woocommerce-orders-table td,
body.uc-profile-dashboard .woocommerce-orders-table a,
body.uc-profile-dashboard .woocommerce-MyAccount-orders,
body.uc-profile-dashboard .account-orders-table,
body.uc-profile-dashboard .account-orders-table th,
body.uc-profile-dashboard .account-orders-table td,
body.uc-profile-dashboard .account-orders-table a,
body.uc-profile-dashboard .woocommerce-OrderUpdates {
	font-family: 'MuseoSans-500', sans-serif !important;
}
body.uc-profile-dashboard .woocommerce-orders-table th,
body.uc-profile-dashboard .woocommerce-MyAccount-orders th,
body.uc-profile-dashboard .account-orders-table th {
	font-family: 'MuseoSans-700', sans-serif !important;
}

/* ==========================================================================
   Profile Orders – Action links as buttons
   ========================================================================== */
body.uc-profile-dashboard .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
body.uc-profile-dashboard .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:link,
body.uc-profile-dashboard .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:visited,
body.uc-profile-dashboard .woocommerce-MyAccount-orders .woocommerce-button,
body.uc-profile-dashboard .account-orders-table .woocommerce-orders-table__cell-order-actions a {
	display: inline-block;
	padding: 8px 16px;
	margin: 2px 4px 2px 0;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: 'MuseoSans-500', sans-serif !important;
	text-decoration: none;
	color: #fff !important;
	background: linear-gradient(135deg, var(--uc-primary, #583b8a) 0%, var(--uc-accent, #de406b) 100%);
	border: none;
	border-radius: 6px;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.uc-profile-dashboard .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover,
body.uc-profile-dashboard .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:focus,
body.uc-profile-dashboard .woocommerce-MyAccount-orders .woocommerce-button:hover,
body.uc-profile-dashboard .account-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(88, 59, 138, 0.35);
}

/* ==========================================================================
   Profile Orders – Order details drawer (slides from right)
   ========================================================================== */
.uc-order-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0.3s ease;
}
.uc-order-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}
.uc-order-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 58, 138, 0.35);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.uc-order-drawer.is-open .uc-order-drawer__overlay {
	opacity: 1;
}
.uc-order-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 800px;
	height: 100%;
	background: #fff;
	font-family: var(--uc-font, 'MuseoSans-500', sans-serif);
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}
.uc-order-drawer.is-open .uc-order-drawer__panel {
	transform: translateX(0);
}
.uc-order-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(135deg, var(--uc-primary, #583b8a) 0%, var(--uc-accent, #de406b) 100%);
	flex-shrink: 0;
}
.uc-order-drawer__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	font-family: var(--uc-font-heading, 'MuseoSans-700', sans-serif);
	color: #fff !important;
}
.uc-order-drawer__close {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff !important;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
	padding: 0;
	line-height: 1;
}
.uc-order-drawer__close:hover {
	background: rgba(255, 255, 255, 0.35);
	border-color: #fff;
	color: #fff !important;
	transform: scale(1.05);
}
.uc-order-drawer__close-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	stroke: currentColor;
}
.uc-order-drawer__body {
	flex: 1;
	position: relative;
	min-height: 320px;
	padding: 28px 32px 40px;
	overflow-y: auto;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.uc-order-drawer__loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	z-index: 2;
}
.uc-order-drawer__skeleton {
	--uc-skeleton-bg: linear-gradient(90deg, #e5e7eb 0%, #e5e7eb 40%, #f1f5f9 50%, #e5e7eb 60%, #e5e7eb 100%);
	--uc-skeleton-anim: uc-skeleton-shimmer 1.5s ease-in-out infinite;
	padding: 28px 32px 40px;
}
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-line,
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-th,
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-cell,
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-cell-footer,
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-address-title,
.uc-order-drawer__skeleton .uc-order-drawer__skeleton-address-line {
	background: var(--uc-skeleton-bg);
	background-size: 200% 100%;
	animation: var(--uc-skeleton-anim);
	border-radius: 4px;
}
/* Status block (Order #X was placed on... and is currently...) */
.uc-order-drawer__skeleton-status {
	padding: 16px 20px;
	margin-bottom: 24px;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid #e5e7eb;
}
.uc-order-drawer__skeleton-line {
	height: 14px;
	margin-bottom: 10px;
	border-radius: 4px;
}
.uc-order-drawer__skeleton-line--1 { width: 85%; }
.uc-order-drawer__skeleton-line--2 { width: 60%; margin-bottom: 0; }
/* Order details table */
.uc-order-drawer__skeleton-table {
	margin-bottom: 28px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}
.uc-order-drawer__skeleton-table-header {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 16px;
	padding: 12px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
}
.uc-order-drawer__skeleton-th {
	height: 14px;
}
.uc-order-drawer__skeleton-table-body {
	border-bottom: 1px solid #e5e7eb;
}
.uc-order-drawer__skeleton-tr {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
}
.uc-order-drawer__skeleton-tr:last-child {
	border-bottom: none;
}
.uc-order-drawer__skeleton-td {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.uc-order-drawer__skeleton-td--product {
	min-width: 0;
}
.uc-order-drawer__skeleton-cell--name {
	height: 14px;
	width: 80%;
}
.uc-order-drawer__skeleton-cell--qty {
	height: 12px;
	width: 40%;
}
.uc-order-drawer__skeleton-tr .uc-order-drawer__skeleton-td:last-child {
	align-items: flex-end;
}
.uc-order-drawer__skeleton-cell--price {
	width: 70px;
	height: 14px;
	align-self: flex-end;
}
.uc-order-drawer__skeleton-table-footer {
	padding: 12px 16px;
	background: #f8fafc;
}
.uc-order-drawer__skeleton-tr-footer {
	display: grid;
	grid-template-columns: 1fr 100px;
	gap: 16px;
	align-items: center;
	margin-bottom: 10px;
}
.uc-order-drawer__skeleton-tr-footer:last-child {
	margin-bottom: 0;
}
.uc-order-drawer__skeleton-tr-footer--total {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}
.uc-order-drawer__skeleton-cell-footer {
	height: 12px;
}
.uc-order-drawer__skeleton-tr-footer .uc-order-drawer__skeleton-cell-footer:first-child { width: 90px; }
.uc-order-drawer__skeleton-tr-footer .uc-order-drawer__skeleton-cell-footer:last-child {
	justify-self: end;
	width: 60px;
}
.uc-order-drawer__skeleton-tr-footer--total .uc-order-drawer__skeleton-cell-footer { height: 16px; }
.uc-order-drawer__skeleton-tr-footer--total .uc-order-drawer__skeleton-cell-footer:first-child { width: 60px; }
.uc-order-drawer__skeleton-tr-footer--total .uc-order-drawer__skeleton-cell-footer:last-child { width: 80px; }
/* Billing & Shipping addresses */
.uc-order-drawer__skeleton-addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.uc-order-drawer__skeleton-address {
	padding: 20px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}
.uc-order-drawer__skeleton-address-title {
	height: 14px;
	width: 100px;
	margin-bottom: 16px;
}
.uc-order-drawer__skeleton-address-line {
	height: 12px;
	margin-bottom: 10px;
}
.uc-order-drawer__skeleton-address-line--short {
	width: 70%;
	margin-bottom: 0;
}
@media (max-width: 600px) {
	.uc-order-drawer__skeleton-addresses {
		grid-template-columns: 1fr;
	}
	.uc-order-drawer__skeleton-table-header,
	.uc-order-drawer__skeleton-tr {
		grid-template-columns: 1fr 80px;
	}
}
@keyframes uc-skeleton-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.uc-order-drawer__error {
	color: #dc2626;
	margin: 0;
}
/* Order content layout – sections */
.uc-order-drawer__content > p {
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid var(--uc-primary, #583b8a);
	color: #374151;
}
.uc-order-drawer__content mark {
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(88, 59, 138, 0.12);
	color: var(--uc-primary, #583b8a);
	font-weight: 600;
}
.uc-order-drawer__content h2 {
	font-size: 1rem;
	font-weight: 600;
	font-family: var(--uc-font-heading, 'MuseoSans-700', sans-serif);
	color: #1f2937;
	margin: 28px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}
.uc-order-drawer__content h2:first-child {
	margin-top: 0;
}
/* Order details table */
.uc-order-drawer__content .woocommerce-table,
.uc-order-drawer__content .shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 0.9375rem;
}
.uc-order-drawer__content .woocommerce-table th,
.uc-order-drawer__content .shop_table th {
	text-align: left;
	padding: 12px 16px;
	background: #f8fafc;
	font-weight: 600;
	color: #374151;
	border-bottom: 1px solid #e5e7eb;
}
.uc-order-drawer__content .woocommerce-table td,
.uc-order-drawer__content .shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #4b5563;
}
.uc-order-drawer__content .woocommerce-table tr:last-child td,
.uc-order-drawer__content .shop_table tbody tr:last-child td {
	border-bottom: none;
}
.uc-order-drawer__content .woocommerce-table .product-name {
	font-weight: 500;
	color: #1f2937;
}

/* Product meta: compact 2-column grid (label + value on same row) */
.uc-order-drawer__content .product-name dl.variation {
	display: grid;
	grid-template-columns: minmax(100px, auto) 1fr;
	gap: 6px 16px;
	align-items: baseline;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.4;
}
.uc-order-drawer__content .product-name dl.variation dt,
.uc-order-drawer__content .product-name dl.variation dd {
	margin: 0;
	padding: 0;
}
.uc-order-drawer__content .product-name dl.variation dt {
	font-weight: 600;
	color: #4b5563;
}
.uc-order-drawer__content .product-name dl.variation dd {
	color: #374151;
}
/* wc-item-meta (p/li): label + value compact, reduced vertical space */
.uc-order-drawer__content .product-name .wc-item-meta {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.4;
}
.uc-order-drawer__content .product-name .wc-item-meta p,
.uc-order-drawer__content .product-name .wc-item-meta li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0 0 4px;
	padding: 0;
}
.uc-order-drawer__content .product-name .wc-item-meta p:last-child,
.uc-order-drawer__content .product-name .wc-item-meta li:last-child {
	margin-bottom: 0;
}
.uc-order-drawer__content .product-name .wc-item-meta strong {
	font-weight: 600;
	color: #4b5563;
}
/* Wider drawer: 2 pairs of label-value per row */
@media (min-width: 600px) {
	.uc-order-drawer__content .product-name dl.variation {
		grid-template-columns: minmax(90px, auto) 1fr minmax(90px, auto) 1fr;
		gap: 6px 20px;
	}
}
.uc-order-drawer__content .woocommerce-table .product-quantity {
	color: #6b7280;
	font-size: 0.875rem;
}
/* Order totals */
.uc-order-drawer__content .woocommerce-table--order-details tfoot td,
.uc-order-drawer__content .order_details tfoot td {
	padding: 12px 16px;
	font-weight: 500;
}
.uc-order-drawer__content .woocommerce-table--order-details tfoot tr:last-child th,
.uc-order-drawer__content .woocommerce-table--order-details tfoot tr:last-child td,
.uc-order-drawer__content .order_details tfoot tr.order-total th,
.uc-order-drawer__content .order_details tfoot tr.order-total td {
	padding-top: 16px;
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
	background: #f8fafc;
}
/* Billing / shipping addresses */
.uc-order-drawer__content .woocommerce-customer-details,
.uc-order-drawer__content .woocommerce-columns {
	margin-bottom: 28px;
}
.uc-order-drawer__content .woocommerce-column {
	width: 100%;
	margin-bottom: 20px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}
.uc-order-drawer__content .woocommerce-column__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--uc-primary, #583b8a);
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.uc-order-drawer__content address {
	font-style: normal;
	line-height: 1.6;
	color: #4b5563;
}
/* Order updates / notes */
.uc-order-drawer__content .woocommerce-OrderUpdates,
.uc-order-drawer__content .commentlist.notes {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}
.uc-order-drawer__content .woocommerce-OrderUpdate,
.uc-order-drawer__content .commentlist.notes li {
	padding: 16px 20px;
	margin-bottom: 12px;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid #94a3b8;
}
.uc-order-drawer__content .woocommerce-OrderUpdate-meta,
.uc-order-drawer__content .commentlist.notes .meta {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-bottom: 8px;
}
.uc-order-drawer__content .woocommerce-OrderUpdate-description,
.uc-order-drawer__content .commentlist.notes .description {
	color: #374151;
}

/* ==========================================================================
   Order Drawer – Responsive
   ========================================================================== */
@media (max-width: 640px) {
	.uc-order-drawer__panel {
		max-width: 100%;
	}
	.uc-order-drawer__header {
		padding: 16px 20px;
		padding-top: max(16px, env(safe-area-inset-top));
	}
	.uc-order-drawer__title {
		font-size: 1rem;
	}
	.uc-order-drawer__body {
		padding: 20px 16px 32px;
		padding-bottom: max(32px, env(safe-area-inset-bottom));
	}
	.uc-order-drawer__content .woocommerce-table,
	.uc-order-drawer__content .shop_table {
		font-size: 0.875rem;
	}
	.uc-order-drawer__content .woocommerce-table th,
	.uc-order-drawer__content .woocommerce-table td,
	.uc-order-drawer__content .shop_table th,
	.uc-order-drawer__content .shop_table td {
		padding: 10px 12px;
	}
}

.flex {
	display: flex;
}

.items-center {
	align-items: center;
}

.gap-3 {
	gap: 12px;
}

.m-0 {
	margin: 0 !important;
}

.mb-2 {
	margin-bottom: 8px;
}

.profile-nav .nav-tabs > li > a .text {
    display: inline-block;
    min-width: 60px;
    text-align: start;
}

#wrapper-container #main-content:has(.uc-profile-dashboard__sidebar.is-open) {
	z-index: auto;
}