/* WooCommerce My Account Custom Styling */
.ds-account-container {
	display: flex;
	max-width: 1200px;
	margin: 40px auto;
	gap: 30px;
	padding: 0 15px;
}

.ds-account-sidebar-wrapper {
	width: 250px;
	flex-shrink: 0;
}

/* Sidebar Navigation */
.ds-account-sidebar {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 0;
	float: none !important;
	width: auto !important;
}

.ds-account-profile {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 25px 20px;
	border-bottom: 1px solid #eee;
	margin-bottom: 0;
}

.ds-account-avatar img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #eee;
}

.ds-account-user-info {
	display: flex;
	flex-direction: column;
}

.ds-account-name {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin: 0 0 4px 0;
	line-height: 1.2;
}

.ds-account-badge {
	font-size: 12px;
	color: #777;
	font-weight: 500;
}

.ds-account-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ds-account-sidebar li {
	border-bottom: 1px solid #f5f5f5;
	margin: 0;
}

.ds-account-sidebar li:last-child {
	border-bottom: none;
}

.ds-account-sidebar li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 20px;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
	border-radius: 0;
}

.ds-account-sidebar li a:hover {
	background: #f9f9f9;
	color: var(--ds-primary);
	padding-left: 25px;
}

.ds-account-sidebar li.is-active a {
	background: var(--ds-primary-gradient);
	color: #fff;
}

.ds-account-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

/* Logout styling */
.ds-account-sidebar .ds-logout-item {
	margin-top: 0;
	padding-top: 0;
	border-top: 1px solid #eee;
}

.ds-account-sidebar .ds-logout-item a {
	color: #e53e3e;
}

.ds-account-sidebar .ds-logout-item a:hover {
	color: #e53e3e;
	background: #fff5f5;
}

/* Main Content Area */
.ds-account-content-wrapper {
	flex: 1;
	min-width: 0;
}

.woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	min-height: 400px;
	float: none !important;
	width: auto !important;
}

.woocommerce-MyAccount-content p {
	line-height: 1.6;
	color: #555;
	margin-bottom: 15px;
}

.woocommerce-MyAccount-content strong {
	color: #c1272d;
}

.ds-account-page-header {
	margin-bottom: 30px;
}

.ds-account-page-title {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin: 0 0 8px 0;
}

.ds-account-page-subtitle {
	color: #777;
	font-size: 15px;
	margin: 0;
}

/* Dashboard Cards */
.ds-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.ds-dashboard-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 25px 20px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ds-dashboard-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
	border-color: var(--ds-primary);
}

.ds-dashboard-icon {
	width: 60px;
	height: 60px;
	background: #f9f9f9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	color: var(--ds-primary);
	transition: all 0.3s ease;
}

.ds-dashboard-card:hover .ds-dashboard-icon {
	background: var(--ds-primary-gradient);
	color: #fff;
}

.ds-dashboard-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
}

.ds-dashboard-card-desc {
	font-size: 13px !important;
	color: #777 !important;
	margin: 0 !important;
}


/* Orders Filters */
.ds-orders-filters {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.ds-order-filter-btn {
	padding: 8px 20px;
	border-radius: 30px;
	background-color: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #eee;
	transition: all 0.2s ease;
}

.ds-order-filter-btn:hover {
	background-color: #f3f6f9;
}

.ds-order-filter-btn.active {
	background: var(--ds-primary-gradient);
	color: #fff;
	border-color: var(--ds-primary);
}

/* Orders Table */
.ds-orders-table-wrapper {
	overflow-x: auto;
	border: 1px solid #eee;
	border-radius: 8px;
}

table.ds-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

table.ds-orders-table th {
	background-color: #f8f9fa;
	cursor: default;
	padding: 16px 20px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	color: #777;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #eee;
	border-top: none;
	border-left: none;
	border-right: none;
}

table.ds-orders-table td {
	padding: 16px 20px;
	vertical-align: middle;
	border-bottom: 1px solid #eee;
	border-top: none;
	border-left: none;
	border-right: none;
}

table.ds-orders-table tr:last-child td {
	border-bottom: none;
}

table.ds-orders-table .woocommerce-orders-table__cell-order-number a.ds-order-number {
	font-weight: 600;
	color: #333;
	text-decoration: none;
}

table.ds-orders-table .woocommerce-orders-table__cell-order-date time {
	color: #777;
	font-size: 14px;
}

/* Order Badges */
.ds-order-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.ds-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.ds-order-badge--completed {
	background-color: #e6f6ee;
	color: #047857;
}

.ds-order-badge--completed .ds-status-dot {
	background-color: #10b981;
}

.ds-order-badge--processing {
	background-color: #ebf4ff;
	color: #1d4ed8;
}

.ds-order-badge--processing .ds-status-dot {
	background-color: #3b82f6;
}

.ds-order-badge--cancelled {
	background-color: #f1f5f9;
	color: #475569;
}

.ds-order-badge--cancelled .ds-status-dot {
	background-color: #94a3b8;
}

.ds-order-badge--failed {
	background-color: #fef2f2;
	color: #b91c1c;
}

.ds-order-badge--failed .ds-status-dot {
	background-color: #ef4444;
}

.ds-order-badge--on-hold,
.ds-order-badge--pending {
	background-color: #fffbeb;
	color: #bd971b;
}

.ds-order-badge--on-hold .ds-status-dot,
.ds-order-badge--pending .ds-status-dot {
	background-color: #f59e0b;
}

/* Order Total */
.ds-order-total-amount {
	font-weight: 600;
	color: #333;
}

/* Order Actions */
.ds-order-actions-wrap {
	display: flex;
	gap: 12px;
	align-items: center;
}

.ds-action-btn {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ds-action--view {
	color: var(--ds-primary);
}

.ds-action--view:hover {
	color: var(--ds-primary);
}

.ds-action--reorder {
	color: #777;
}

.ds-action--reorder:hover {
	color: #333;
}

/* Pagination Footer */
.ds-orders-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 25px;
	color: #777;
	font-size: 14px;
}

.ds-pagination-controls .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-left: 6px;
	text-decoration: none;
	color: #333;
	font-weight: 600;
	transition: all 0.2s;
}

.ds-pagination-controls .page-numbers:hover,
.ds-pagination-controls .page-numbers.current {
	background: var(--ds-primary-gradient);
	color: #fff;
	border-color: var(--ds-primary);
}

/* Address Book */
.ds-addresses-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	width: 100%;
}

.ds-addresses-grid::before,
.ds-addresses-grid::after,
.ds-address-card-header::before,
.ds-address-card-header::after {
	content: none !important;
}

.ds-addresses-grid-single {
	grid-template-columns: 1fr;
	max-width: 600px;
}

.ds-address-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
	width: 100% !important;
	float: none !important;
	margin-bottom: 0 !important;
}

.ds-address-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f5f5f5;
}

.ds-address-card-header h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #333;
}

.ds-edit-address-btn {
	font-size: 14px;
	font-weight: 500;
}

.ds-address-details {
	font-style: normal;
	line-height: 1.8;
	color: #555;
}

/* Edit Address Form */
.ds-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #777;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 15px;
	transition: color 0.2s;
}

.ds-back-link:hover {
	color: var(--ds-primary);
}

.ds-edit-address-form {
	max-width: 800px;
}

.ds-form-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ds-form-wrapper .form-row {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ds-form-wrapper .form-row-wide {
	grid-column: span 2;
}

.ds-form-wrapper label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

.ds-form-wrapper .required {
	color: #e53e3e;
	text-decoration: none;
}

.ds-form-wrapper input[type="text"],
.ds-form-wrapper input[type="email"],
.ds-form-wrapper input[type="tel"],
.ds-form-wrapper select,
.ds-form-wrapper textarea,
.select2-container .select2-selection--single {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	color: #333;
	transition: border-color 0.2s;
	background-color: #fafafa;
	height: 48px;
}

.select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
}

.ds-form-wrapper input:focus,
.ds-form-wrapper select:focus,
.ds-form-wrapper textarea:focus {
	border-color: var(--ds-primary);
	outline: none;
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

.ds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: 0.3px;
}

.ds-btn-primary {
	background: var(--ds-primary, #c1272d) !important;
	color: #fff !important;
	min-height: 48px;
	box-shadow: 0 4px 6px -1px rgba(193, 39, 45, 0.1), 0 2px 4px -1px rgba(193, 39, 45, 0.06);
}

.ds-btn-primary:hover {
	background: #a01f24 !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(193, 39, 45, 0.2), 0 4px 6px -2px rgba(193, 39, 45, 0.1);
}

.ds-btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(193, 39, 45, 0.2);
}

.ds-btn-primary-gradient {
	background: var(--ds-primary-gradient, linear-gradient(90deg, var(--ds-primary, #c1272d) 0%, #890011 100%)) !important;
	color: #fff !important;
	min-height: 48px;
	box-shadow: 0 4px 6px -1px rgba(193, 39, 45, 0.2), 0 2px 4px -1px rgba(193, 39, 45, 0.1);
}

.ds-btn-primary-gradient:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 15px -3px rgba(193, 39, 45, 0.3), 0 4px 6px -2px rgba(193, 39, 45, 0.15);
}

.ds-btn-primary-gradient:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(193, 39, 45, 0.2);
}

.ds-form-actions {
	margin-top: 32px;
}

.ds-form-actions .button {
	padding: 12px 32px;
	font-size: 15px;
}

/* Hide Country field visually */
.ds-form-wrapper #billing_country_field,
.ds-form-wrapper #shipping_country_field {
	display: none !important;
}


/* Specific view order page styling */
.ds-order-status-desc {
	margin-top: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid var(--ds-primary);
	font-size: 15px;
}

.ds-order-status-desc .order-date {
	font-weight: 600;
	color: #333;
	background: transparent;
}

.ds-order-notes-section {
	margin: 30px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ds-order-updates-title {
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 20px;
}

.ds-order-notes {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ds-order-notes li {
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.ds-order-notes li:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.woocommerce-OrderUpdate-meta {
	font-size: 13px;
	color: #777;
	margin-bottom: 5px;
}

.ds-order-details-header {
	margin: 40px 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ds-order-details-title {
	font-size: 22px;
	margin: 0;
}

.ds-order-item-wrap {
	display: flex;
	align-items: center;
	gap: 15px;
}

.ds-order-item-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #eee;
}

.ds-order-item-info {
	display: flex;
	flex-direction: column;
}

.ds-order-item-name {
	font-weight: 600;
	color: #333;
	text-decoration: none;
	margin-bottom: 5px;
	font-size: 15px;
}

.ds-order-item-qty {
	color: #777;
	font-size: 13px;
}

.ds-order-item-total {
	font-weight: 600;
	color: var(--ds-primary);
}

table.ds-order-details-table tfoot th {
	text-align: right;
	padding: 12px 20px;
	background: transparent;
	border-bottom: 1px solid #eee;
}

table.ds-order-details-table tfoot td {
	text-align: left;
	padding: 12px 20px;
	font-weight: 600;
}

table.ds-orders-table tbody tr:hover td {
	background-color: #fcfcfc;
}


/* Messages/Errors overrides */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-info {
	border-radius: 8px;
	margin-bottom: 25px;
}

/* Account Details Forms */
/* .ds-edit-account-form {
	max-width: 800px;
} */

.ds-account-details-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ds-account-details-header {
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f5f5f5;
}

.ds-account-details-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	margin: 0 0 5px 0;
}

.ds-account-details-header p {
	color: #777;
	font-size: 14px;
	margin: 0;
}

.ds-form-wrapper .ds-form-row-half {
	grid-column: span 1;
}

.ds-field-description {
	display: block;
	font-size: 12px;
	color: #777;
	margin-top: 5px;
}

.ds-form-actions-right {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

/* Authentication Forms (Login / Register / Lost Password) */
body.woocommerce-account:not(.logged-in) .page-title,
body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) .entry-title {
	display: none !important;
}

/* Auth Background Layout */
body.woocommerce-account:not(.logged-in) .ds-account-container-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 200px);
	padding: 60px 15px;
	margin: 0 auto;
	background: #f9fafb;
}

.ds-auth-centered-container {
	width: 100%;
	max-width: 500px;
	margin: 0 auto !important;
}

/* Override default WooCommerce Form borders */
form.woocommerce-form-login.ds-premium-form,
form.woocommerce-form-register.ds-premium-form,
form.woocommerce-ResetPassword.ds-premium-form {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
}

.ds-premium-login-card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.ds-auth-header {
	margin-bottom: 32px;
}

.ds-text-left {
	text-align: left;
}

.ds-auth-title {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px 0;
	letter-spacing: -0.5px;
}

.ds-auth-subtitle {
	color: #6b7280;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

.ds-form-wrapper label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #374151;
	font-size: 14px;
}

.ds-form-wrapper input[type="text"],
.ds-form-wrapper input[type="email"],
.ds-form-wrapper input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	color: #111827;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	background-color: #fff;
	height: 48px;
}

.ds-form-wrapper input::placeholder {
	color: #9ca3af;
}

.ds-form-wrapper input:focus {
	border-color: var(--ds-primary, #c1272d);
	outline: none;
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.1);
}

.woocommerce-form-row {
	margin-bottom: 24px !important;
}

/* Password Visibility icon wrap placeholder */
.ds-password-input-wrap {
	position: relative;
}

.ds-form-actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	margin-bottom: 24px;
	width: 100%;
	clear: both;
}

.ds-form-actions-row .ds-auth-remember {
	margin: 0;
}

.ds-auth-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #4b5563;
	font-size: 14px;
	font-weight: 500 !important;
	cursor: pointer;
	user-select: none;
}

.ds-auth-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	accent-color: var(--ds-primary, #c1272d);
}

.ds-auth-lost-password {
	font-size: 14px;
	color: var(--ds-primary, #c1272d);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
	float: none !important;
}

.ds-auth-lost-password:hover {
	color: #a01f24;
	text-decoration: underline;
}

.ds-auth-actions-login {
	margin-top: 0;
	width: 100%;
	clear: both;
}

.ds-btn-arrow {
	margin-left: 6px;
	font-size: 18px;
	line-height: 1;
}

.ds-auth-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #4b5563;
	font-size: 14px;
	font-weight: 500 !important;
	cursor: pointer;
	user-select: none;
}

.ds-auth-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	accent-color: var(--ds-primary);
}

.ds-btn-full {
	width: 100%;
}

.ds-auth-notice {
	font-size: 14px;
	color: #0369a1;
	background: #f0f9ff;
	padding: 16px;
	border-radius: 8px;
	border-left: 4px solid #0284c7;
	margin-bottom: 24px;
	line-height: 1.5;
}

.ds-auth-links-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 14px;
}

.ds-auth-links-footer a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #4b5563;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.ds-auth-links-footer a:before {
	content: "\2190";
	/* left arrow */
	font-size: 16px;
	line-height: 1;
}

.ds-auth-links-footer a:hover {
	color: var(--ds-primary);
}


@media (max-width: 768px) {
	.ds-account-container {
		flex-direction: column;
	}

	.ds-auth-split {
		flex-direction: column;
	}

	.ds-auth-divider {
		width: 100%;
		height: 1px;
	}

	.ds-auth-col {
		padding: 30px 20px;
	}

	.ds-account-sidebar-wrapper {
		width: 100%;
	}

	.ds-orders-footer {
		flex-direction: column;
		gap: 15px;
		align-items: center;
	}

	.ds-addresses-grid {
		grid-template-columns: 1fr;
	}

	.ds-form-wrapper {
		grid-template-columns: 1fr;
	}

	.ds-form-wrapper .form-row-wide {
		grid-column: span 1;
	}
}