/* ==========================================================================
   Main My Account Layout
   ========================================================================== */

.ltl-my-account-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}


.ltl-my-account-header {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #e5e7eb;
}

.ltl-my-account-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.ltl-welcome-message {
	font-size: 1.125rem;
	color: #6b7280;
	margin-bottom: 1.5rem !important;
}

.ltl-my-account-content {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 3rem;
}


/* ==========================================================================
   Navigation Styling
   ========================================================================== */



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

.woocommerce-MyAccount-navigation ul li {
	margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 0.75rem 1rem;
	color: #374151;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	color: #ffffff;
}

/* Remove active state from members-area navigation */
.wc-memberships-members-area-navigation ul li.is-active a {
	color: #374151;
	background: transparent;
}

.wc-memberships-members-area-navigation ul li.is-active a:hover {
	color: #ffffff;
}

/* ==========================================================================
   Memberships Section
   ========================================================================== */

.ltl-memberships-section {
	margin-bottom: 2rem;
}

.ltl-memberships-section h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e5e7eb;
}

.ltl-memberships-grid {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ==========================================================================
   Memberships Table
   ========================================================================== */

.ltl-memberships-table,
.ltl-memberships-table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	border: none !important;
	box-shadow: none !important;
}

.ltl-memberships-table thead {
	background: transparent;
	border: none;
	border-bottom: none;
	box-shadow: none;
}

.ltl-memberships-table th {
	padding: 0.85rem 1rem;
	text-align: left;
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
	text-transform: none;
	letter-spacing: normal;
	border: none;
	box-shadow: none;
}

.ltl-memberships-table tbody {
	border: none;
	box-shadow: none;
}

.ltl-memberships-table tbody tr {
	border: none;
	border-bottom: none;
	transition: none;
	box-shadow: none;
}

.ltl-memberships-table tbody tr:hover {
	background: transparent;
}

.ltl-memberships-table td {
	padding: 0.9rem 1rem;
	vertical-align: middle;
	border: none;
	box-shadow: none;
}

.ltl-membership-name-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ltl-membership-name-content strong {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}

.ltl-membership-start,
.ltl-membership-end,
.ltl-membership-next-payment {
	color: #6b7280;
	font-size: 0.875rem;
}

.ltl-membership-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-start;
}

@media screen and (max-width: 768px) {
	.ltl-memberships-table {
		display: block;
	}
	
	.ltl-memberships-table thead {
		display: none;
	}
	
	.ltl-memberships-table tbody,
	.ltl-memberships-table tr,
	.ltl-memberships-table td {
		display: block;
		width: 100%;
	}
	
	.ltl-memberships-table tr {
		margin-bottom: 1.5rem;
		border: none;
		padding: 0;
		box-shadow: none;
	}
	
	.ltl-memberships-table td {
		padding: 0.75rem 0;
		border: none;
		text-align: left;
	}
	
	.ltl-memberships-table td:before {
		content: attr(data-title) ": ";
		font-weight: 600;
		color: #374151;
		display: inline-block;
		min-width: 120px;
	}
}




.ltl-membership-card-row {
	display: grid;
	grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) minmax(160px, auto);
	align-items: stretch;
	gap: 1rem;
}

.ltl-membership-column {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ltl-membership-column-overview .ltl-membership-header {
	margin-bottom: 0;
}


.ltl-membership-column-detail .ltl-membership-detail {
	height: 100%;
}

.ltl-membership-column-status .ltl-membership-detail {
	justify-content: center;
	text-align: center;
}



.ltl-membership-column-actions {
	justify-content: center;
}

.ltl-membership-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
	gap: 1rem;
}

.ltl-membership-plan-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
	flex: 1;
}

.ltl-membership-plan-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}



.ltl-membership-status {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.ltl-membership-status-active {
	background: #dcfce7;
	color: #166534;
}

.ltl-membership-status-expired {
	background: #fee2e2;
	color: #991b1b;
}

.ltl-membership-status-pending {
	background: #fef3c7;
	color: #92400e;
}

.ltl-membership-status-cancelled {
	background: #f3f4f6;
	color: #6b7280;
}

.ltl-membership-detail {
	padding: 0.75rem;

	height: 100%;
}

.ltl-membership-detail-label {
	font-size: 0.75rem;
	color: black;
	margin-bottom: 1.25rem;
	letter-spacing: 0.05em;
	font-weight: 500;

}

.ltl-membership-detail-value {
	font-weight: 600;
	color: #1f2937;
	font-size: 0.875rem;
}

.ltl-membership-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ltl-action-button {
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ltl-action-button.primary {
	background: #58812E !important;
	color: #ffffff !important;
	border-color: #58812E !important;
	font-weight: normal !important;
	border-radius: 24px !important;
}

.ltl-action-button.primary:hover {
	background: #4F742A;
	border-color: #4F742A;
	transform: translateY(-1px);
}

.ltl-action-button.secondary {
	background: #ffffff;
	color: #374151;
	border-color: #d1d5db;
}

.ltl-action-button.secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.ltl-membership-empty-state {
	margin-top: 2rem;
	padding: 2rem;
	background: #f8fafc;
	border: 1px dashed #d1d5db;
	border-radius: 0.75rem;
	text-align: center;
}

.ltl-membership-empty-state h3 {
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	color: #111827;
}

.ltl-membership-empty-state p {
	color: #6b7280;
	margin-bottom: 1.5rem;
}

.ltl-membership-benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.ltl-membership-benefit-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	background: #ffffff;
	border-radius: 0.5rem;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	color: inherit;
	transition: all 0.2s ease;
}

.ltl-membership-benefit-card:hover {
	border-color: #3b82f6;
	box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
	transform: translateY(-2px);
}

.ltl-membership-benefit-card .ltl-benefit-heading {
	font-weight: 600;
	color: #1f2937;
}

.ltl-membership-benefit-card .ltl-benefit-content {
	color: #6b7280;
	font-size: 0.9rem;
}

@media (max-width: 1200px) {
	.ltl-membership-card-row {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		align-items: stretch;
	}

	.ltl-membership-column-actions {
		grid-column: 1 / -1;
	}

	.ltl-membership-column-actions .ltl-membership-actions {
		justify-content: flex-start;
		width: 100%;
	}
}

/* ==========================================================================
   Profile Fields Section
   ========================================================================== */

.ltl-profile-fields-section {
	margin-bottom: 2rem;
}

.ltl-profile-fields-section h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e5e7eb;
}

.ltl-profile-description {
	color: #6b7280;
	margin-bottom: 2rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.ltl-profile-form {
	background: #ffffff;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.ltl-profile-fields-grid {
	display: grid;
	gap: 1.5rem;
	padding: 2rem;
}

.ltl-profile-field-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ltl-profile-field-label {
	font-weight: 600;
	color: #374151;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ltl-required-indicator {
	color: #dc2626;
	font-weight: 700;
}

.ltl-optional-indicator {
	color: #6b7280;
	font-size: 0.75rem;
	font-weight: 400;
}

.ltl-profile-field-input-wrapper {
	position: relative;
}

.ltl-profile-field-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	background: #ffffff;
}

.ltl-profile-field-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ltl-profile-field-input:hover {
	border-color: #9ca3af;
}

.ltl-profile-field-input::placeholder {
	color: #9ca3af;
}

/* Field type specific styling */
.ltl-field-type-textarea textarea {
	min-height: 100px;
	resize: vertical;
	font-family: inherit;
}

.ltl-field-type-select select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
	appearance: none;
}

.ltl-field-type-checkbox input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin-right: 0.5rem;
	accent-color: #3b82f6;
}

.ltl-field-type-radio input[type="radio"] {
	width: 1rem;
	height: 1rem;
	margin-right: 0.5rem;
	accent-color: #3b82f6;
}

.ltl-field-type-checkbox,
.ltl-field-type-radio {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ltl-field-type-checkbox label,
.ltl-field-type-radio label {
	font-weight: 400;
	cursor: pointer;
}

.ltl-profile-field-description {
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.4;
	margin-top: 0.25rem;
}

.ltl-profile-form-actions {
	padding: 1.5rem 2rem;
	background: #f8fafc;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: flex-end;
}

.ltl-save-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ltl-save-button:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ltl-save-button:active {
	transform: translateY(0);
}

.ltl-no-memberships,
.ltl-no-profile-fields {
	text-align: center;
	padding: 3rem 2rem;
	background: #f8fafc;
	border-radius: 0.75rem;
	border: 2px dashed #d1d5db;
}

.ltl-no-memberships-icon,
.ltl-no-profile-fields-icon {
	color: #9ca3af;
	margin-bottom: 1rem;
}

.ltl-no-memberships h3,
.ltl-no-profile-fields h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
}

.ltl-no-memberships p,
.ltl-no-profile-fields p {
	color: #6b7280;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.ltl-cta-button {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	background: #3b82f6;
	color: #ffffff;
	text-decoration: none;
	border-radius: 0.5rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.ltl-cta-button:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
	.ltl-my-account-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	


	.ltl-membership-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	
	
	.ltl-action-button {
		flex: 1;
		justify-content: center;
	}
	
	.ltl-profile-fields-grid {
		padding: 1.5rem;
		gap: 1rem;
	}
	
	.ltl-profile-form-actions {
		padding: 1rem 1.5rem;
	}
	
	.ltl-save-button {
		width: 100%;
		justify-content: center;
	}
}

@media (min-width: 1024px) {
	.ltl-profile-fields-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.ltl-profile-field-wrapper:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   Dashboard Layout Refresh (Overrides)
   ========================================================================== */

.ltl-my-account-content {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.ltl-benefits-grid-section {
	background: #ffffff;
}

.ltl-account-grid-section {
	background: #ffffff;
	border-radius: 0.75rem;
	box-shadow: none;
	padding: 2rem;
}

.ltl-account-grid-header {
	margin-bottom: 1.5rem;
}

.ltl-account-grid-header h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.ltl-account-grid-header p {
	color: #6b7280;
}

.ltl-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

@media (min-width: 1024px) {
	.ltl-account-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ltl-account-card {
	position: relative;
	border: none;
	border-radius: 0.75rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25rem;
	background: #E7EBEE;
	overflow: hidden;
}

.ltl-account-card-body h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #111827;
	margin-bottom: 0.5rem;
}

.ltl-account-card-body p {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ltl-account-card-button {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #58812E;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ltl-account-card-button-icon {
	width: 0.5rem;
	height: auto;
	transition: transform 0.2s ease;
}

.ltl-account-card-button:hover {
	color: #4F742A;
}

.ltl-account-card-button:hover .ltl-account-card-button-icon {
	transform: translateX(2px);
}

.ltl-benefits-grid-section .ltl-account-card-button {
	color: #58812E;
}

@media (max-width: 768px) {
	.ltl-account-grid-section {
		padding: 1.5rem;
	}
}

