/* ==========================================================================
   My Account — full visual redesign (login, dashboard, orders, addresses,
   account details). Uses the theme's existing --ref-* color tokens.
   ========================================================================== */

.myaccount-page { background: #f7fbfe; padding-bottom: 40px; }
.myaccount-page .woocommerce-notices-wrapper:empty { display: none; }
.myaccount-page .woocommerce-notices-wrapper { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; }
.myaccount-page .woocommerce-notices-wrapper .woocommerce-message,
.myaccount-page .woocommerce-notices-wrapper .woocommerce-error {
	max-width: 1180px;
	margin: 0 auto 18px;
	padding: 14px 18px;
	border: 1px solid var(--ref-line);
	border-radius: 12px;
	list-style: none;
	background: #fff;
	color: var(--ref-ink);
	font-size: 13px;
}
.myaccount-page .woocommerce-notices-wrapper .woocommerce-message { border-left: 4px solid #1fa971; }
.myaccount-page .woocommerce-notices-wrapper .woocommerce-error { border-left: 4px solid #d1364a; }

/* ---------- Login / register ---------- */

.account-auth {
	position: relative;
	overflow: hidden;
	min-height: 620px;
	padding: 56px 20px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.9), transparent 45%), linear-gradient(160deg, #eaf4fd 0%, #cfe6f8 55%, #eef8ff 100%);
}
.account-auth-flower {
	position: absolute;
	right: -40px;
	bottom: -20px;
	width: 420px;
	max-width: 46%;
	opacity: .85;
	pointer-events: none;
}
.account-auth-flower img { width: 100%; height: auto; display: block; }

.account-auth-card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 440px;
	padding: 40px 36px 32px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 60px rgba(8,54,110,.14);
}
.account-auth-card h1 { margin: 0 0 6px; color: var(--ref-deep); font-size: 26px; font-weight: 800; text-align: center; }
.account-auth-subtitle { margin: 0 0 26px; color: var(--ref-muted); font-size: 13px; text-align: center; }

.account-auth-card .woocommerce-form-row { margin: 0 0 16px; padding: 0; }
.account-auth-card label { display: block; margin: 0 0 6px; color: var(--ref-ink); font-size: 12px; font-weight: 700; }
.account-auth-card label .required { color: #d1364a; }
.account-auth-card input.input-text {
	width: 100% !important;
	min-height: 46px;
	padding: 0 14px !important;
	border: 1px solid var(--ref-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--ref-ink);
	font-size: 14px;
	box-sizing: border-box;
}
.account-auth-card input.input-text:focus { outline: 0; border-color: var(--ref-blue) !important; box-shadow: 0 0 0 3px rgba(8,118,223,.12); }

.account-password-field { position: relative; display: block; }
.account-password-field input.input-text { padding-right: 44px !important; }
.account-password-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	display: grid;
	place-items: center;
	color: var(--ref-muted);
	background: none;
	cursor: pointer;
}
.account-password-toggle:hover { color: var(--ref-blue); background: var(--ref-pale); }
.account-password-toggle .shelo-icon { width: 18px; height: 18px; }

.account-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.account-auth-row .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 7px; color: var(--ref-muted); font-size: 12px; font-weight: 600; }
.account-auth-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ref-blue); }
.account-auth-forgot { color: var(--ref-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.account-auth-forgot:hover { text-decoration: underline; }

.account-auth-submit {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ref-blue), #0055c2);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}
.account-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8,105,211,.22); }

.account-auth-register { margin: 18px 0 0; color: var(--ref-muted); font-size: 12px; text-align: center; }
.account-auth-register a { margin-left: 4px; color: var(--ref-blue); font-weight: 700; text-decoration: none; }
.account-auth-register a:hover { text-decoration: underline; }

.account-auth-trust {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.account-auth-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 14px;
	background: rgba(255,255,255,.55);
	backdrop-filter: blur(6px);
}
.account-auth-trust .shelo-icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--ref-blue); }
.account-auth-trust strong { display: block; color: var(--ref-deep); font-size: 12px; }
.account-auth-trust span { color: var(--ref-muted); font-size: 11px; }

/* ---------- Shell: sidebar + content ---------- */

.myaccount-shell {
	max-width: 1180px;
	margin: 28px auto 0;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	align-items: start;
	gap: 20px;
}

.account-sidebar {
	border: 1px solid var(--ref-line);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}
.account-sidebar-user { padding: 24px 20px; border-bottom: 1px solid var(--ref-line); text-align: center; }
.account-avatar {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ref-blue), #0055c2);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}
.account-sidebar-greeting { display: block; color: var(--ref-muted); font-size: 12px; }
.account-sidebar-name { display: block; margin: 2px 0 4px; color: var(--ref-deep); font-size: 15px; font-weight: 800; }
.account-sidebar-role { display: block; color: var(--ref-blue); font-size: 10px; font-weight: 800; letter-spacing: .06em; }

/* WooCommerce's own woocommerce-layout.css floats
   `.woocommerce-MyAccount-navigation` at 30% width (its classic 2-column
   layout) — this element also carries that class, so it inherited that
   float/width and squeezed the whole sidebar nav into a sliver. */
.account-nav.woocommerce-MyAccount-navigation { float: none !important; width: 100% !important; }
.account-nav ul { margin: 0; padding: 10px; list-style: none; }
.account-nav li { margin: 2px 0; }
.account-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 10px;
	color: var(--ref-ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.account-nav a img { width: 20px; height: 20px; flex: 0 0 20px; }
.account-nav a .shelo-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.account-nav a:hover { background: var(--ref-pale); }
.account-nav li.is-active a,
.account-nav a[aria-current="page"] { background: var(--ref-blue); color: #fff; }
.account-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; border-top: 1px solid var(--ref-line); padding-top: 6px; }
.account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #d1364a; }
.account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fff0f2; }

/* Same WooCommerce core float/width override as `.account-nav` above, this
   time for `.woocommerce-MyAccount-content` (68% float:right by default). */
.account-content.woocommerce-MyAccount-content { float: none !important; width: 100% !important; }
.account-content { min-width: 0; }
.account-content > .woocommerce-MyAccount-content,
.account-content { position: relative; }

/* Cards shared by orders/addresses/account-details content panels */
.account-dashboard,
.woocommerce-MyAccount-orders,
.account-orders-count,
.account-addresses,
.account-edit-form,
.account-help-box { position: relative; }

.account-page-head { padding: 24px 24px 4px; }
.account-page-head h1 { margin: 0 0 6px; color: var(--ref-deep); font-size: 24px; font-weight: 800; }
.account-page-head p { margin: 0; color: var(--ref-muted); font-size: 13px; }

/* ---------- Dashboard ---------- */

.account-dashboard { padding: 20px; }

.account-welcome-banner {
	position: relative;
	min-height: 190px;
	padding: 28px 30px;
	border-radius: 18px;
	background-size: cover;
	background-position: center right;
	background-color: #dceefb;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.account-welcome-banner h2 { margin: 0 0 8px; max-width: 300px; color: var(--ref-deep); font-size: 24px; font-weight: 800; line-height: 1.2; }
.account-welcome-banner p { margin: 0; max-width: 300px; color: var(--ref-muted); font-size: 13px; }

.account-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.account-stat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--ref-line);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease;
}
.account-stat-card:hover { border-color: var(--ref-blue); transform: translateY(-2px); }
.account-stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ref-pale); color: var(--ref-blue); }
.account-stat-icon .shelo-icon { width: 18px; height: 18px; }
.account-stat-card strong { color: var(--ref-deep); font-size: 20px; font-weight: 800; }
.account-stat-label { color: var(--ref-muted); font-size: 12px; font-weight: 600; }
.account-stat-link { margin-top: 2px; color: var(--ref-blue); font-size: 11px; font-weight: 700; }

.account-recent-orders { margin-top: 24px; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.account-section-head h3 { margin: 0; color: var(--ref-deep); font-size: 15px; font-weight: 800; }
.account-section-head a { color: var(--ref-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.account-section-head a:hover { text-decoration: underline; }

.account-recent-orders-table { width: 100%; border-collapse: collapse; }
.account-recent-orders-table td { padding: 12px 10px; border-bottom: 1px solid var(--ref-line); color: var(--ref-ink); font-size: 12px; vertical-align: middle; }
.account-recent-orders-table tr:last-child td { border-bottom: 0; }
.account-order-number a { color: var(--ref-blue); font-weight: 800; text-decoration: none; }

/* ---------- Order / address status + action chips (shared) ---------- */

.account-order-status {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ref-pale);
	color: var(--ref-ink);
	font-size: 11px;
	font-weight: 700;
}
.account-order-status.status-completed { background: #e5f8ee; color: #1a8a55; }
.account-order-status.status-processing { background: #eaf3ff; color: var(--ref-blue); }
.account-order-status.status-cancelled,
.account-order-status.status-failed,
.account-order-status.status-refunded { background: #fdecee; color: #c22a41; }
.account-order-status.status-on-hold,
.account-order-status.status-pending { background: #fff6e0; color: #a06600; }

.account-order-view-btn {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--ref-blue);
	border-radius: 999px;
	color: var(--ref-blue);
	background: #fff;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.account-order-view-btn:hover { background: var(--ref-blue); color: #fff; }

/* ---------- Orders page (full table) ---------- */

.account-orders-table { width: 100%; margin: 14px 0 0; padding: 0 24px; border-collapse: collapse; box-sizing: border-box; }
.account-orders-table thead th {
	padding: 10px 10px 12px;
	border-bottom: 2px solid var(--ref-line);
	color: var(--ref-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-align: left;
}
.account-orders-table tbody th,
.account-orders-table tbody td { padding: 14px 10px; border-bottom: 1px solid var(--ref-line); color: var(--ref-ink); font-size: 13px; text-align: left; }
.account-orders-table tbody tr:last-child th,
.account-orders-table tbody tr:last-child td { border-bottom: 0; }
.account-orders-table .woocommerce-orders-table__cell-order-number a { color: var(--ref-blue); font-weight: 800; text-decoration: none; }

.account-orders-count { padding: 10px 24px 0; color: var(--ref-muted); font-size: 12px; }

.account-pagination { display: flex; justify-content: center; gap: 10px; padding: 20px 24px 0; }
.account-pagination-btn {
	padding: 9px 18px;
	border: 1px solid var(--ref-line);
	border-radius: 999px;
	color: var(--ref-ink);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.account-pagination-btn:hover { border-color: var(--ref-blue); color: var(--ref-blue); }

.myaccount-page .woocommerce-info {
	margin: 14px 24px 0;
	padding: 16px 18px;
	border: 1px dashed var(--ref-line);
	border-radius: 14px;
	background: var(--ref-pale);
	color: var(--ref-ink);
	font-size: 13px;
	list-style: none;
}

/* ---------- Help box (orders + addresses) ---------- */

.account-help-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 24px 0;
	padding: 18px 20px;
	border: 1px solid var(--ref-line);
	border-radius: 14px;
	background: var(--ref-pale);
}
.account-help-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #fff; color: var(--ref-blue); }
.account-help-icon .shelo-icon { width: 20px; height: 20px; }
.account-help-box > div { flex: 1; min-width: 0; }
.account-help-box strong { display: block; color: var(--ref-deep); font-size: 13px; }
.account-help-box span { color: var(--ref-muted); font-size: 12px; }
.account-help-btn {
	flex: 0 0 auto;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--ref-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
.account-help-btn:hover { background: #0055c2; }

/* ---------- Addresses ---------- */

.account-addresses { position: relative; z-index: 2; padding: 16px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-address-card { padding: 20px; border: 1px solid var(--ref-line); border-radius: 14px; background: #fff; }
.account-address-card header.title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ref-line);
}
.account-address-card h2 { margin: 0; color: var(--ref-deep); font-size: 15px; font-weight: 800; }
.account-address-card .edit { color: var(--ref-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.account-address-card .edit:hover { text-decoration: underline; }
.account-address-card address { color: var(--ref-ink); font-size: 13px; line-height: 1.7; font-style: normal; }

.account-corner-flowers {
	position: relative;
	z-index: 1;
	margin-top: -60px;
	pointer-events: none;
}
.account-corner-flowers img { display: block; width: 100%; height: auto; opacity: .8; }

/* ---------- Account details ---------- */

.account-edit-form { padding: 16px 24px 40px; }
.account-edit-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: start; gap: 22px; }

.account-edit-fields .woocommerce-form-row { margin: 0 0 16px; padding: 0; }
.account-edit-fields label { display: block; margin: 0 0 6px; color: var(--ref-ink); font-size: 12px; font-weight: 700; }
.account-edit-fields .required { color: #d1364a; }
.account-edit-fields input.input-text {
	width: 100% !important;
	min-height: 44px;
	padding: 0 13px !important;
	border: 1px solid var(--ref-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--ref-ink);
	font-size: 13px;
	box-sizing: border-box;
}
.account-edit-fields input.input-text:focus { outline: 0; border-color: var(--ref-blue) !important; box-shadow: 0 0 0 3px rgba(8,118,223,.12); }
.account-edit-fields #account_display_name_description { display: block; margin-top: 5px; color: var(--ref-muted); font-size: 11px; }
.account-edit-fields #account_display_name_description em { font-style: normal; }

.account-password-panel {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--ref-line);
	border-radius: 14px;
	background: var(--ref-pale);
}
.account-password-panel legend {
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	color: var(--ref-deep);
	font-size: 13px;
	font-weight: 800;
}
.account-password-panel .woocommerce-form-row { margin: 0 0 14px; padding: 0; }
.account-password-panel label { display: block; margin: 0 0 6px; color: var(--ref-ink); font-size: 11px; font-weight: 700; line-height: 1.3; }
.account-password-panel input.input-text {
	width: 100% !important;
	min-height: 42px;
	padding: 0 12px !important;
	border: 1px solid var(--ref-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--ref-ink);
	font-size: 13px;
	box-sizing: border-box;
}
.account-password-panel input.input-text:focus { outline: 0; border-color: var(--ref-blue) !important; }
.account-password-strength { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--ref-line); color: var(--ref-muted); font-size: 11px; font-weight: 700; }
.account-password-strength span:last-child { color: var(--ref-ink); font-weight: 800; }

.account-edit-submit { margin: 6px 0 0; }
.account-save-btn {
	min-width: 170px;
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--ref-blue), #0055c2);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}
.account-save-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8,105,211,.2); }

.account-bottle-accent {
	position: absolute;
	right: 4px;
	bottom: -10px;
	width: 170px;
	pointer-events: none;
	z-index: 0;
}
.account-bottle-accent img { display: block; width: 100%; height: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.myaccount-shell { grid-template-columns: 1fr; }
	.account-stats { grid-template-columns: repeat(2, 1fr); }
	.account-edit-grid { grid-template-columns: 1fr; }
	.account-addresses { grid-template-columns: 1fr; }
	.account-auth-trust { grid-template-columns: 1fr; }
	.account-bottle-accent { display: none; }
}

@media (max-width: 640px) {
	.account-auth-card { padding: 30px 22px 26px; }
	.account-welcome-banner { background-position: center 120%; }
	.account-stats { grid-template-columns: 1fr 1fr; }
	.account-orders-table { display: block; overflow-x: auto; }
	.account-help-box { flex-wrap: wrap; }
	.account-help-btn { width: 100%; text-align: center; }
}
