/* =========================================================
   Redesigned WooCommerce "My Account" — matches YCM theme.
   ========================================================= */

body.woocommerce-account .site-main,
body.woocommerce-account main,
body.woocommerce-account .elementor {
	background-color: #eff3ff;
}

.ycm-account {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 90px;
	box-sizing: border-box;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: #1f2937;
}

/* --- Header --- */
.ycm-account__header {
	margin-bottom: 32px;
}

.ycm-account__title {
	font-size: 38px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 8px;
}

.ycm-account__subtitle {
	font-size: 16px;
	color: #6b7280;
	margin: 0;
}

/* --- Layout --- */
.ycm-account__grid {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* --- Sidebar --- */
.woocommerce-account .ycm-account__nav,
.ycm-account__nav {
	float: none;
	width: auto;
	background-color: #fff;
	border: 1px solid #eef0f5;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.ycm-account__content {
	float: none;
	width: auto;
}

.ycm-account__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 20px;
	margin-bottom: 14px;
	border-bottom: 1px solid #eef2f7;
}

.ycm-account__avatar-img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: block;
}

.ycm-account__user-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ycm-account__user-name {
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.ycm-account__user-email {
	font-size: 13px;
	color: #9ca3af;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ycm-account__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ycm-account__menu li {
	margin: 0 0 4px;
}

.ycm-account__menu li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: #374151;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ycm-account__menu-icon {
	display: inline-flex;
	color: #9aa3b2;
	transition: color 0.15s ease;
}

.ycm-account__menu li a:hover {
	background-color: #f3f6ff;
	color: #2f6bff;
}

.ycm-account__menu li a:hover .ycm-account__menu-icon {
	color: #2f6bff;
}

.ycm-account__menu li.is-active a {
	background-color: #2f6bff;
	color: #fff;
}

.ycm-account__menu li.is-active .ycm-account__menu-icon {
	color: #fff;
}

.ycm-account__menu li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #ef4444;
}

.ycm-account__menu li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background-color: #fef2f2;
	color: #dc2626;
}

.ycm-account__menu li.woocommerce-MyAccount-navigation-link--customer-logout .ycm-account__menu-icon {
	color: inherit;
}

/* --- Content card --- */
.ycm-account__content {
	background-color: #fff;
	border: 1px solid #eef0f5;
	border-radius: 16px;
	padding: 32px 34px;
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
	min-width: 0;
}

.ycm-account__content > p {
	color: #4b5563;
	line-height: 1.7;
}

/* --- Dashboard --- */
.ycm-dash__welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: linear-gradient(120deg, #2f6bff, #1f57e6);
	color: #fff;
	border-radius: 14px;
	padding: 26px 28px;
	margin-bottom: 28px;
}

.ycm-dash__hello {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 6px;
	color: #fff;
}

.ycm-dash__hello span { text-decoration: underline; text-underline-offset: 3px; }

.ycm-dash__intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	max-width: 560px;
}

.ycm-dash__cta {
	flex: 0 0 auto;
	background-color: #fff;
	color: #2f6bff;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 22px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.ycm-dash__cta:hover { opacity: 0.9; color: #2f6bff; }

.ycm-dash__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.ycm-dash__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border: 1px solid #eef0f5;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ycm-dash__card:hover {
	border-color: #c7d7ff;
	box-shadow: 0 10px 24px rgba(47, 107, 255, 0.12);
	transform: translateY(-2px);
}

.ycm-dash__card-icon {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background-color: #eef3ff;
	color: #2f6bff;
	margin-bottom: 8px;
}

.ycm-dash__card-title {
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

.ycm-dash__card-desc {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
}

/* --- WooCommerce tables (orders, downloads) --- */
.ycm-account__content .woocommerce-table,
.ycm-account__content table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #eef0f5;
	border-radius: 12px;
	overflow: hidden;
	font-size: 15px;
}

.ycm-account__content table.shop_table thead th {
	background-color: #f5f7ff;
	color: #374151;
	font-weight: 600;
	text-align: left;
	padding: 14px 16px;
	border: none;
}

.ycm-account__content table.shop_table td {
	padding: 14px 16px;
	border-top: 1px solid #f1f3f9;
	color: #4b5563;
	vertical-align: middle;
}

.ycm-account__content table.shop_table tbody tr:first-child td {
	border-top: none;
}

/* --- Forms (addresses, account details, login) --- */
.ycm-account__content form .form-row,
.woocommerce-account .woocommerce form .form-row {
	margin-bottom: 18px;
}

.ycm-account__content label,
.woocommerce-account form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

.ycm-account__content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.ycm-account__content select,
.ycm-account__content textarea,
.woocommerce-account .woocommerce-form-login input:not([type="checkbox"]):not([type="submit"]) {
	width: 100%;
	height: 50px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: #1f2937;
	background-color: #fff;
	box-sizing: border-box;
}

.ycm-account__content textarea { height: auto; padding: 12px 14px; }

.ycm-account__content input:focus,
.ycm-account__content select:focus,
.ycm-account__content textarea:focus {
	outline: none;
	border-color: #2f6bff;
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

/* --- Buttons --- */
.ycm-account__content .button,
.ycm-account__content .woocommerce-Button,
.ycm-account__content button[type="submit"],
.woocommerce-account .woocommerce-form-login .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #2f6bff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.ycm-account__content .button:hover,
.ycm-account__content .woocommerce-Button:hover,
.ycm-account__content button[type="submit"]:hover {
	background-color: #1f57e6;
	color: #fff;
}

/* View / secondary buttons in tables */
.ycm-account__content .woocommerce-button.view {
	background-color: #eef3ff;
	color: #2f6bff;
	padding: 9px 18px;
}

.ycm-account__content .woocommerce-button.view:hover {
	background-color: #dfe8ff;
}

/* --- Notices --- */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	border-radius: 10px;
	border-top: none;
	margin-bottom: 22px;
}

.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before {
	color: #2f6bff;
}

/* --- Address blocks --- */
.ycm-account__content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 8px;
}

.ycm-account__content .woocommerce-Address {
	border: 1px solid #eef0f5;
	border-radius: 12px;
	padding: 22px;
}

.ycm-account__content .woocommerce-Address-title h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
}

.ycm-account__content address {
	font-style: normal;
	color: #4b5563;
	line-height: 1.7;
}

/* --- Logged-out login / lost-password cards --- */
.woocommerce-account .woocommerce {
	padding-top: 56px;
	padding-bottom: 90px;
}

/* Centered "Login" heading above the card */
.woocommerce-account .woocommerce > h2 {
	text-align: center;
	font-size: 34px;
	font-weight: 800;
	color: #111827;
	margin: 0 auto 26px;
}

.woocommerce-account .woocommerce > .woocommerce-form-login,
.woocommerce-account .woocommerce > .u-columns,
.woocommerce-account .woocommerce > .woocommerce-ResetPassword {
	max-width: 460px;
	margin: 0 auto;
	background-color: #fff;
	border: 1px solid #eef0f5;
	border-radius: 16px;
	padding: 34px;
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-form-login__submit {
	width: 100%;
}

/* Lost-password card contents */
.woocommerce-account .woocommerce-ResetPassword .form-row {
	width: 100%;
	float: none;
	margin: 0 0 18px;
}

.woocommerce-account .woocommerce-ResetPassword label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

.woocommerce-account .woocommerce-ResetPassword .input-text {
	width: 100%;
	height: 50px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: #1f2937;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-ResetPassword .input-text:focus {
	outline: none;
	border-color: #2f6bff;
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.ycm-auth__title {
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 10px;
}

.ycm-auth__intro {
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
	color: #6b7280;
	margin: 0 0 24px;
}

.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button,
.woocommerce-account .woocommerce-ResetPassword button[type="submit"] {
	width: 100%;
	background-color: #2f6bff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button:hover {
	background-color: #1f57e6;
}

.ycm-auth__alt {
	text-align: center;
	margin: 18px 0 0;
}

.ycm-auth__alt a {
	color: #2f6bff;
	font-weight: 600;
	text-decoration: none;
}

.ycm-auth__alt a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 900px) {
	.ycm-account__grid { grid-template-columns: 1fr; }
	.ycm-dash__welcome { flex-direction: column; align-items: flex-start; }
	.ycm-dash__cards { grid-template-columns: 1fr; }
	.ycm-account__content .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.ycm-account__title { font-size: 30px; }
	.ycm-account__content { padding: 22px; }
	.ycm-account__content table.shop_table { font-size: 13px; }
}
