/* My Account Section Styles
================================================== */

/* Account Sidebar Navigation
-------------------------------------------------- */
.myAccountSidebar {
	position: sticky;
	top: 100px;
}

/* Dashboard
-------------------------------------------------- */
.accountDashboard {
	background: var(--colWhite);
}

.welcomeSection {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--colWhite);
    border: 1px solid var(--colFeatureLight);
    border-radius: var(--borderRad);
}

.welcomeSection h2 {
	margin-bottom: 0.5rem;
	color: var(--colFeatureDark);
}

.welcomeSection p {
	margin-bottom: 0;
	color: var(--colDark);
}

/* Dashboard Cards Grid */
.dashboardGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.dashboardCard {
	background: var(--colWhite);
	border: 1px solid var(--colLight);
	border-radius: var(--borderRad);
	padding: 2rem 2rem 1.5rem;
	text-align: center;
	transition: all 0.3s ease;
}
	.dashboardCard:hover {
		box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
	}

	.dashboardCard .cardIcon {
		width: 80px;
		height: 80px;
		margin: 0 auto 1rem;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--colFeaturePaleSolid);
		border-radius: 50%;
	}
		.dashboardCard .cardIcon img {
			width: 30px;
			height: 30px;
			filter: brightness(0) saturate(100%) invert(57%) sepia(17%) saturate(1259%) hue-rotate(343deg) brightness(91%) contrast(88%);
			transition: all 0.3s ease;
		}
			.dashboardCard .cardIcon:hover img {
				transform: scale(1.1);
			}

.dashboardCard h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--colFeatureDark);
}

.dashboardCard p {
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 0.5rem;
}

.dashboardCard p.icon {
	margin-top: 1rem;
}

/* Account Info */
.accountInfo {
	background: var(--colVPale);
	padding: 1.5rem;
	border-radius: var(--borderRad);
	margin-top: 2rem;
}

.accountInfo p {
	margin-bottom: 0.5rem;
	font-size: 0.938rem;
}

.accountInfo p:last-child {
	margin-bottom: 0;
}

/* Order Tables
-------------------------------------------------- */
.orderTable {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: var(--colWhite);
	border-radius: var(--borderRad);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.orderTable thead {
	background: var(--colFeaturePaleSolid);
}

	.orderTable th {
		padding: 1rem;
		text-align: left;
		font-weight: 600;
		color: var(--colFeatureDark);
		border-bottom: 1px solid var(--colFeatureLight);
	}

.orderTable td {
	padding: 1rem;
	border-bottom: 1px solid var(--colPale);
	vertical-align: middle;
}
.orderTable tbody tr{
	transition: background 0.2s ease-out
}
.orderTable tbody tr:hover {
	background: var(--colVPale);
}

.orderTable tbody tr:last-child td {
	border-bottom: none;
}

.orderStatus {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 2rem;
	text-transform: uppercase;
}

.orderStatus.status-completed,
.orderStatus.status-dispatched {
	background: #d4edda;
	color: #155724;
}

.orderStatus.status-processing {
	background: #fff3cd;
	color: #856404;
}

.orderStatus.status-pending {
	background: #d1ecf1;
	color: #0c5460;
}

.orderStatus.status-cancelled {
	background: #f8d7da;
	color: #721c24;
}
.orderStatus.status-ok {
	background: #29b900;
	color: #ffffff;
}

/* Recent Orders Section */
.recentOrders {
	margin-top: 3rem;
}

.recentOrders h3 {
	margin-bottom: 1rem;
}

/* No Orders Message */
.noOrders {
	text-align: center;
	padding: 3rem 2rem;
	background: var(--colVPale);
	border-radius: var(--borderRad);
}

.noOrders p {
	font-size: 1.125rem;
}

/* Profile View & Edit
-------------------------------------------------- */
.profileView,
.profileEdit {
	background: var(--colWhite);
}

.profileHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.profileHeader h2 {
	margin-bottom: 0;
}

.profileSection {
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: var(--colVPale);
	border-radius: var(--borderRad);
}

.profileSection h3 {
	color: var(--colFeatureDark);
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--colLight);
}

.profileGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

.profileField label {
	display: block;
	font-weight: 600;
	color: var(--colDark);
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.025rem;
	width: 100%
}

.profileField p {
	margin: 0;
	color: var(--colBlack);
	font-size: 1.063rem;
}

/*.addressBlock {
	background: var(--colWhite);
	padding: 1rem;
	border-radius: var(--borderRad);
	border: 1px solid var(--colLight);
}*/

.addressBlock p {
	margin-bottom: 0.25rem;
	line-height: 1.6;
}

.addressBlock p:last-child {
	margin-bottom: 0;
}

.noData {
	color: var(--colMid);
	font-style: italic;
}

/* Form Styles for Edit Profile */
.profileEdit form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--colDark);
}

.profileEdit form label .required {
	color: var(--colFeatureDark);
}

.profileEdit form input[type="text"],
.profileEdit form input[type="email"],
.profileEdit form input[type="tel"] {
	width: 60% !important;
	padding: 0.75rem;
	border: 1px solid var(--colLight);
	border-radius: var(--borderRad);
	font-size: 1rem;
	margin-bottom: 1rem;
	transition: border-color 0.2s ease;
}

.profileEdit form input[type="text"]:focus,
.profileEdit form input[type="email"]:focus,
.profileEdit form input[type="tel"]:focus {
	outline: none;
	border-color: var(--colFeature);
	box-shadow: 0 0 0 3px var(--colFeaturePale);
}

.profileEdit form input[readonly] {
	background: var(--colPale);
	cursor: not-allowed;
}

.profileEdit form small {
	display: block;
	margin-top: -0.75rem;
	margin-bottom: 1rem;
	color: var(--colMid);
	font-size: 0.813rem;
}

.profileEdit form input[type="checkbox"] {
	margin-right: 0.5rem;
}

.formActions {
	display: flex;
	gap: 1rem;
}

/* Order Detail Page
-------------------------------------------------- */
.orderDetail {
	background: var(--colWhite);
}

.orderHeader {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--colFeaturePaleSolid);
	border-radius: var(--borderRad);
}

.orderSummary p {
	margin-bottom: 0.5rem;
}

.orderSummary p:last-child {
	margin-bottom: 0;
}

.orderActions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.orderItems {
	margin-bottom: 2rem;
}

.itemsTable {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.itemsTable th {
	background: var(--colVPale);
	padding: 1rem;
	font-weight: 600;
	border-bottom: 2px solid var(--colLight);
}

.itemsTable td {
	padding: 1rem;
	border-bottom: 1px solid var(--colPale);
}

.itemsTable tbody tr:last-child td {
	border-bottom: none;
}

.orderAddresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.addressColumn h3 {
	color: var(--colFeatureDark);
	margin-bottom: 1rem;
}

.orderTotals {
	margin-top: 2rem;
	display: flex;
	justify-content: flex-end;
}

.totalsTable {
	width: 100%;
	border-top: 2px solid var(--colLight);
	padding-top: 1rem;
}

.totalsTable td {
	padding: 0.5rem 1rem;
	text-align: right;
}

.totalsTable td:first-child {
	text-align: left;
}

.totalsTable .totalRow {
	border-top: 2px solid var(--colDark);
	padding-top: 0.5rem;
}

.totalsTable .totalRow td {
	padding-top: 1rem;
	font-size: 1.25rem;
}

/* Downloads
-------------------------------------------------- */
.downloadList {
	background: var(--colWhite);
}

.downloadListHeader {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--colFeatureLight);
}

.downloadListHeader h2 {
	margin-bottom: 0.5rem;
}

.downloadListHeader p {
	margin-bottom: 0;
	color: var(--colMid);
}

.downloadTable {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: var(--colWhite);
	border-radius: var(--borderRad);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.downloadTable thead {
	background: var(--colFeaturePaleSolid);
}

.downloadTable th {
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: var(--colFeatureDark);
	border-bottom: 2px solid var(--colFeatureLight);
}

.downloadTable td {
	padding: 1rem;
	border-bottom: 1px solid var(--colPale);
	vertical-align: middle;
}

.downloadTable tbody tr:hover {
	background: var(--colVPale);
}

.fileType {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: var(--colFeaturePaleSolid);
	color: var(--colFeatureDark);
	font-weight: 600;
	font-size: 0.75rem;
	border-radius: 0.25rem;
	border: 1px solid var(--colFeatureLight);
}

/* Order List Header */
.orderListHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--colFeatureLight);
}

.orderListHeader h2 {
	margin-bottom: 0;
}

.orderListHeader p {
	margin-bottom: 0;
	color: var(--colMid);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0;
}

.pagination .pageInfo {
	color: var(--colDark);
	font-weight: 500;
}

/* Button Adjustments */
.button.small {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	margin-bottom: 0;
}

/* Success/Error Messages */
.alert {
	padding: 1rem 1.5rem;
	border-radius: var(--borderRad);
	margin-bottom: 1.5rem;
}

.alert.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive Adjustments
-------------------------------------------------- */
@media only screen and (max-width: 767px) {
	.profileHeader,
	.orderHeader {
		flex-direction: column;
		gap: 1rem;
	}
	
	.orderActions,
	.formActions {
		width: 100%;
		flex-direction: column;
	}
	
	.orderActions .button,
	.formActions .button {
		width: 100%;
		text-align: center;
	}
	
	.dashboardGrid {
		grid-template-columns: 1fr;
	}
	
	.orderTable,
	.downloadTable,
	.itemsTable {
		font-size: 0.875rem;
	}
	
	.orderTable th,
	.orderTable td,
	.downloadTable th,
	.downloadTable td,
	.itemsTable th,
	.itemsTable td {
		padding: 0.75rem 0.5rem;
	}
	
	.myAccountSidebar {
		position: static;
		margin-bottom: 2rem;
	}
	
	.totalsTable {
		max-width: 100%;
	}
}
