/**
 * Location: /assets/css/header-account.css
 * Purpose:
 * - Header account dropdown UI.
 * - Modern logged-in account card with summary, quick links and support CTA.
 * - Guest login form keeps the existing lightweight behavior.
 */

.hdaf-acct{
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.hdaf-acct__toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: #fff !important;
  color: rgba(15,23,42,.92);
  border: 1px solid rgba(15,23,42,.13);
  text-decoration: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  transition: border-color .14s ease, background .14s ease;
}

.hdaf-acct__toggle:hover{
  background: #fff !important;
  border-color: rgba(255,122,0,.46);
  box-shadow: none !important;
  transform: none !important;
}

.hdaf-acct__toggle:focus-visible{
  border-color: rgba(255,122,0,.62);
  box-shadow: 0 0 0 3px rgba(255,122,0,.13) !important;
}

.hdaf-acct__toggle .hdaf-mb-action__icon,
.hdaf-acct__toggle .hdaf-hicon,
.hdaf-acct__toggle .hdaf-acct__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.hdaf-acct__toggle .hdaf-acct__icon{
  -webkit-mask: var(--hdaf-mb-ico) center / 18px 18px no-repeat;
  mask: var(--hdaf-mb-ico) center / 18px 18px no-repeat;
  background-color: currentColor;
}

.hdaf-acct-card{
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 382px;
  max-width: min(94vw, 382px);
  max-height: min(78vh, 620px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  z-index: 99999;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.55) transparent;
}

.hdaf-acct-card::-webkit-scrollbar{ width: 7px; }
.hdaf-acct-card::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.55);
  border-radius: 999px;
}

@media (max-width: 1023px){
  .hdaf-acct-card{
    position: fixed;
    left: 50%;
    top: 84px;
    right: auto;
    transform: translateX(-50%);
    width: min(382px, 92vw);
    max-width: 92vw;
  }
}

@media (max-width: 480px){
  .hdaf-acct-card{
    top: 76px;
    width: min(382px, 94vw);
    max-width: 94vw;
    border-radius: 16px;
  }
}

.hdaf-acct-card svg{
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdaf-acct-card__user{
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,.10);
  color: #0f172a;
}

.hdaf-acct-avatar{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15,23,42,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hdaf-acct-avatar__img,
.hdaf-acct-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hdaf-acct-umeta{ min-width: 0; }

.hdaf-acct-name{
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.18;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdaf-acct-name:after{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #ff7a00;
  flex: 0 0 auto;
}

.hdaf-acct-email{
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(15,23,42,.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdaf-acct-verified{
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.24);
  color: #16a34a;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.hdaf-acct-verified svg{
  width: 13px;
  height: 13px;
  fill: #16a34a;
  stroke: #16a34a;
}

.hdaf-acct-section{
  padding: 14px 16px 0;
}

.hdaf-acct-section__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hdaf-acct-section h3,
.hdaf-acct-section__head h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -.01em;
}

.hdaf-acct-section__head a{
  flex: 0 0 auto;
  color: #ff5f00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.hdaf-acct-section__head a:hover{ text-decoration: underline; }

.hdaf-acct-summary{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: #fff;
}

.hdaf-acct-summary__item{
  min-width: 0;
  padding: 11px 5px 10px;
  text-align: center;
  border-right: 1px solid rgba(15,23,42,.10);
}

.hdaf-acct-summary__item:last-child{ border-right: 0; }

.hdaf-acct-summary__item span{
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: rgba(255,122,0,.10);
  color: #ff5f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hdaf-acct-summary__item em{
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 1.15;
  color: rgba(15,23,42,.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdaf-acct-summary__item strong{
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1;
  color: #0f172a;
  font-weight: 900;
}

.hdaf-acct-section--quick{ padding-top: 13px; }

.hdaf-acct-section--quick h3{ margin-bottom: 8px; }

.hdaf-acct-quick{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
}

.hdaf-acct-quick__link{
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.hdaf-acct-quick__link:nth-last-child(-n+2){ border-bottom: 0; }

.hdaf-acct-quick__link:hover .hdaf-acct-quick__label{
  color: #ff5f00;
}

.hdaf-acct-quick__ico{
  width: 24px;
  height: 24px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hdaf-acct-quick__label{
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .12s ease;
}

.hdaf-acct-quick__chev{
  display: flex;
  justify-content: flex-end;
  color: rgba(15,23,42,.60);
  font-size: 16px;
}

.hdaf-acct-help{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  border-top: 1px solid rgba(15,23,42,.10);
  background: #f8fafc;
}

.hdaf-acct-help__ico{
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255,122,0,.11);
  color: #ff5f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.hdaf-acct-help__text{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hdaf-acct-help__text strong{
  font-size: 14px;
  line-height: 1.15;
  color: #0f172a;
  font-weight: 850;
}

.hdaf-acct-help__text span{
  font-size: 12px;
  line-height: 1.25;
  color: rgba(15,23,42,.62);
}

.hdaf-acct-help__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ff5f00;
  color: #ff5f00;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.hdaf-acct-help__btn:hover{
  background: rgba(255,122,0,.08);
}

/* ==============================
   LOGGED-OUT (GUEST)
============================== */
.hdaf-acct-guest{ padding: 16px; }

.hdaf-acct-guest__t{
  font-size: 16px;
  font-weight: 850;
  color: #0f172a;
  text-align: center;
}

.hdaf-acct-guest__p{
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.hdaf-acct-form{ margin-top: 12px; }

.hdaf-acct-lbl{
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hdaf-acct-in{
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  outline: none;
  font-size: 13px;
  background: #fff;
}

.hdaf-acct-in:focus{
  border-color: rgba(255,122,0,.55);
  box-shadow: 0 0 0 2px rgba(255,122,0,.12);
}

.hdaf-acct-show{
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(15,23,42,.68);
}

.hdaf-acct-login,
.hdaf-acct-card button,
.hdaf-acct-card input[type="submit"],
.hdaf-acct-card .button,
.hdaf-acct-card .woocommerce-button{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,122,0,.92) !important;
  background: #ff7a00 !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none;
}

.hdaf-acct-card button:hover,
.hdaf-acct-card input[type="submit"]:hover,
.hdaf-acct-card .button:hover,
.hdaf-acct-card .woocommerce-button:hover{
  background: #ff8a1a !important;
  border-color: #ff8a1a !important;
}

.hdaf-acct-guest-links{
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.hdaf-acct-guest-links a{
  color: #0a58ca;
  text-decoration: none;
}

.hdaf-acct-guest-links a:hover{ text-decoration: underline; }

@media (max-width: 420px){
  .hdaf-acct-card{ max-height: min(78vh, 600px); }
  .hdaf-acct-card__user{ grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
  .hdaf-acct-avatar{ width: 52px; height: 52px; }
  .hdaf-acct-summary__item{ padding-left: 3px; padding-right: 3px; }
  .hdaf-acct-summary__item span{ width: 28px; height: 28px; font-size: 14px; }
  .hdaf-acct-summary__item em{ font-size: 10px; }
  .hdaf-acct-quick{ column-gap: 10px; }
  .hdaf-acct-quick__link{ grid-template-columns: 22px minmax(0, 1fr) 12px; gap: 7px; }
  .hdaf-acct-quick__label{ font-size: 12.5px; }
  .hdaf-acct-help{
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .hdaf-acct-help__btn{
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* ======================================================
   Final Account Widget Modern Screenshot Style
====================================================== */

.hdaf-acct {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.hdaf-acct__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid rgba(15, 23, 42, .1) !important;
	border-radius: 14px !important;
	color: #111827 !important;
	box-shadow: none !important;
	cursor: pointer;
	outline: none;
	transform: none;
	transition: border-color .18s ease, transform .18s ease;
}

.hdaf-acct__toggle:hover,
.hdaf-acct__toggle:focus,
.hdaf-acct.is-open .hdaf-acct__toggle {
	background: #fff !important;
	border-color: rgba(255, 101, 0, .32) !important;
	color: #111827 !important;
	transform: translateY(-1px) !important;
	box-shadow: none !important;
}

.hdaf-acct__toggle .hdaf-acct__icon {
	width: 22px !important;
	height: 22px !important;
	-webkit-mask: var(--hdaf-mb-ico) center / 22px 22px no-repeat !important;
	mask: var(--hdaf-mb-ico) center / 22px 22px no-repeat !important;
	background-color: currentColor;
}

.hdaf-acct-card {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 10050;
	width: 520px;
	max-width: calc(100vw - 24px);
	max-height: min(82vh, 720px);
	overflow: auto;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .10);
	border-radius: 20px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
	color: #111827;
	scrollbar-width: thin;
	opacity: 1;
	transform: none;
}

.hdaf-acct-card::before {
	content: "";
	position: absolute;
	top: -8px;
	right: 18px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-top: 1px solid rgba(15, 23, 42, .10);
	border-left: 1px solid rgba(15, 23, 42, .10);
	transform: rotate(45deg);
}

.hdaf-acct-card::after {
	content: "";
	position: absolute;
	top: -18px;
	right: 0;
	left: 0;
	height: 18px;
	background: transparent;
}

.hdaf-acct-card[hidden] {
	display: none !important;
}

.hdaf-acct-card__user {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 24px 28px;
	border-bottom: 1px solid rgba(15, 23, 42, .10);
	background: #fff;
}

.hdaf-acct-avatar {
	width: 76px;
	height: 76px;
	border-radius: 999px;
	border: 0;
	background: #f1f5f9;
	overflow: hidden;
}

.hdaf-acct-name {
	display: block;
	margin: 0;
	color: #111827;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdaf-acct-name::after {
	display: none !important;
}

.hdaf-acct-email {
	margin-top: 7px;
	color: #64748b;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdaf-acct-verified {
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 0 13px;
	border-radius: 999px;
	background: rgba(34, 197, 94, .12);
	border: 1px solid rgba(34, 197, 94, .30);
	color: #16a34a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.hdaf-acct-verified svg {
	width: 15px;
	height: 15px;
	fill: #16a34a;
	stroke: #16a34a;
}

.hdaf-acct-section {
	padding: 22px 28px 0;
}

.hdaf-acct-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.hdaf-acct-section h3,
.hdaf-acct-section__head h3 {
	margin: 0;
	color: #111827;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.hdaf-acct-section__head a {
	color: #ff6500;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.hdaf-acct-section__head a:hover {
	color: #e85b00;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hdaf-acct-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .12);
	border-radius: 18px;
	background: #fff;
}

.hdaf-acct-summary__item {
	min-width: 0;
	padding: 17px 8px 15px;
	text-align: center;
	border-right: 1px solid rgba(15, 23, 42, .10);
}

.hdaf-acct-summary__item:last-child {
	border-right: 0;
}

.hdaf-acct-summary__item span {
	width: 46px;
	height: 46px;
	margin: 0 auto 12px;
	border-radius: 999px;
	background: rgba(255, 101, 0, .10);
	color: #ff6500;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.hdaf-acct-summary__item em {
	display: block;
	color: #64748b;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdaf-acct-summary__item strong {
	display: block;
	margin-top: 11px;
	color: #111827;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.hdaf-acct-section--quick {
	padding-top: 24px;
}

.hdaf-acct-section--quick h3 {
	margin: 0 0 18px;
}

.hdaf-acct-quick {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 0;
}

.hdaf-acct-quick__link {
	min-width: 0;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	color: #111827;
	text-decoration: none;
	border-bottom: 0 !important;
}

.hdaf-acct-quick__link:nth-child(odd) {
	grid-column: 1;
}

.hdaf-acct-quick__link:nth-child(even) {
	grid-column: 2;
}

.hdaf-acct-quick__ico {
	width: 30px;
	height: 30px;
	color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.hdaf-acct-quick__ico svg {
	width: 27px;
	height: 27px;
	stroke-width: 1.8;
}

.hdaf-acct-quick__label {
	min-width: 0;
	color: #111827;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .14s ease;
}

.hdaf-acct-quick__chev {
	display: flex;
	justify-content: flex-end;
	color: #64748b;
	font-size: 18px;
}

.hdaf-acct-quick__chev svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
}

.hdaf-acct-quick__link:hover .hdaf-acct-quick__label,
.hdaf-acct-quick__link:focus .hdaf-acct-quick__label {
	color: #ff6500;
}

.hdaf-acct-help {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding: 22px 28px 24px;
	border-top: 1px solid rgba(15, 23, 42, .10);
	background: #fff;
}

.hdaf-acct-help__ico {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: rgba(255, 101, 0, .10);
	color: #ff6500;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.hdaf-acct-help__text strong {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.16;
}

.hdaf-acct-help__text span {
	margin-top: 5px;
	display: block;
	color: #64748b;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.hdaf-acct-help__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 2px solid #ff6500;
	border-radius: 999px;
	background: #fff;
	color: #ff6500;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.hdaf-acct-help__btn:hover {
	background: #ff6500;
	color: #fff;
}

@media (max-width: 640px) {
	.hdaf-acct-card {
		right: -104px;
		width: min(520px, calc(100vw - 18px));
		max-height: min(82vh, 680px);
		border-radius: 18px;
	}

	.hdaf-acct-card__user {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: 13px;
		padding: 18px;
	}

	.hdaf-acct-avatar {
		width: 60px;
		height: 60px;
	}

	.hdaf-acct-name {
		font-size: 20px;
	}

	.hdaf-acct-email {
		font-size: 13px;
	}

	.hdaf-acct-section {
		padding: 18px 16px 0;
	}

	.hdaf-acct-summary__item {
		padding: 14px 5px 12px;
	}

	.hdaf-acct-summary__item span {
		width: 38px;
		height: 38px;
		margin-bottom: 9px;
	}

	.hdaf-acct-summary__item em {
		font-size: 12px;
	}

	.hdaf-acct-summary__item strong {
		font-size: 20px;
		margin-top: 8px;
	}

	.hdaf-acct-quick {
		column-gap: 16px;
	}

	.hdaf-acct-quick__link {
		grid-template-columns: 24px minmax(0, 1fr) 14px;
		gap: 9px;
		min-height: 44px;
	}

	.hdaf-acct-quick__ico,
	.hdaf-acct-quick__ico svg {
		width: 23px;
		height: 23px;
	}

	.hdaf-acct-quick__label {
		font-size: 14px;
	}

	.hdaf-acct-help {
		grid-template-columns: 44px minmax(0, 1fr);
		padding: 18px 16px;
	}

	.hdaf-acct-help__ico {
		width: 44px;
		height: 44px;
	}

	.hdaf-acct-help__btn {
		grid-column: 1 / -1;
		width: 100%;
		min-height: 42px;
		font-size: 14px;
	}
}


/* ======================================================
   Final Account Widget: match Compare/Wishlist dropdown width
   - Same dropdown width family (384px)
   - Compact height
   - Real links remain from PHP template
====================================================== */

.hdaf-acct-card {
	width: 384px !important;
	max-width: calc(100vw - 24px) !important;
	max-height: min(82vh, 620px) !important;
	border-radius: 18px !important;
}

.hdaf-acct-card__user {
	grid-template-columns: 58px minmax(0, 1fr) !important;
	gap: 12px !important;
	padding: 18px !important;
}

.hdaf-acct-avatar {
	width: 58px !important;
	height: 58px !important;
}

.hdaf-acct-name {
	font-size: 18px !important;
	line-height: 1.15 !important;
}

.hdaf-acct-email {
	margin-top: 4px !important;
	font-size: 13px !important;
}

.hdaf-acct-verified {
	margin-top: 8px !important;
	min-height: 26px !important;
	padding: 0 10px !important;
	font-size: 12px !important;
}

.hdaf-acct-section {
	padding: 16px 18px 0 !important;
}

.hdaf-acct-section__head {
	margin-bottom: 12px !important;
}

.hdaf-acct-section h3,
.hdaf-acct-section__head h3 {
	font-size: 16px !important;
}

.hdaf-acct-section__head a {
	font-size: 12px !important;
}

.hdaf-acct-summary {
	border-radius: 14px !important;
}

.hdaf-acct-summary__item {
	padding: 11px 5px 10px !important;
}

.hdaf-acct-summary__item span {
	width: 32px !important;
	height: 32px !important;
	margin-bottom: 6px !important;
	font-size: 16px !important;
}

.hdaf-acct-summary__item em {
	font-size: 11px !important;
}

.hdaf-acct-summary__item strong {
	margin-top: 4px !important;
	font-size: 16px !important;
}

.hdaf-acct-section--quick {
	padding-top: 16px !important;
}

.hdaf-acct-section--quick h3 {
	margin-bottom: 10px !important;
}

.hdaf-acct-quick {
	column-gap: 14px !important;
	row-gap: 0 !important;
}

.hdaf-acct-quick__link {
	grid-template-columns: 24px minmax(0, 1fr) 14px !important;
	gap: 9px !important;
	min-height: 38px !important;
}

.hdaf-acct-quick__ico,
.hdaf-acct-quick__ico svg {
	width: 24px !important;
	height: 24px !important;
}

.hdaf-acct-quick__label {
	font-size: 13px !important;
	font-weight: 400 !important;
}

.hdaf-acct-quick__chev,
.hdaf-acct-quick__chev svg {
	width: 14px !important;
	height: 14px !important;
}

.hdaf-acct-help {
	grid-template-columns: 42px minmax(0, 1fr) auto !important;
	gap: 10px !important;
	margin-top: 14px !important;
	padding: 14px 18px 16px !important;
}

.hdaf-acct-help__ico {
	width: 42px !important;
	height: 42px !important;
	border-radius: 13px !important;
	font-size: 21px !important;
}

.hdaf-acct-help__text strong {
	font-size: 14px !important;
}

.hdaf-acct-help__text span {
	margin-top: 2px !important;
	font-size: 12px !important;
}

.hdaf-acct-help__btn {
	min-height: 36px !important;
	padding: 0 12px !important;
	font-size: 12px !important;
	border-width: 1px !important;
}

@media (max-width: 640px) {
	.hdaf-acct-card {
		right: -104px;
		width: min(384px, calc(100vw - 18px)) !important;
		max-width: calc(100vw - 18px) !important;
	}

	.hdaf-acct-help {
		grid-template-columns: 42px minmax(0, 1fr) !important;
	}

	.hdaf-acct-help__btn {
		grid-column: 1 / -1;
		width: 100%;
	}
}


/* ======================================================
   Final Account Widget Compact Corrections
   - Remove 4 order summary icons
   - Reduce vertical row gaps/height
   - Quick menu hover: black, 600, no underline
====================================================== */

.hdaf-acct-summary__item span {
	display: none !important;
}

.hdaf-acct-summary__item {
	padding: 8px 5px 7px !important;
}

.hdaf-acct-summary__item em {
	font-size: 11px !important;
	line-height: 1.15 !important;
}

.hdaf-acct-summary__item strong {
	margin-top: 4px !important;
	font-size: 16px !important;
	line-height: 1 !important;
}

.hdaf-acct-section {
	padding-top: 13px !important;
}

.hdaf-acct-section__head {
	margin-bottom: 8px !important;
}

.hdaf-acct-section--quick {
	padding-top: 12px !important;
}

.hdaf-acct-section--quick h3 {
	margin-bottom: 6px !important;
}

.hdaf-acct-quick {
	column-gap: 12px !important;
	row-gap: 0 !important;
}

.hdaf-acct-quick__link {
	min-height: 33px !important;
	gap: 8px !important;
	text-decoration: none !important;
}

.hdaf-acct-quick__link:hover,
.hdaf-acct-quick__link:focus,
.hdaf-acct-quick__link:focus-visible {
	text-decoration: none !important;
	outline: none;
}

.hdaf-acct-quick__link:hover .hdaf-acct-quick__label,
.hdaf-acct-quick__link:focus .hdaf-acct-quick__label,
.hdaf-acct-quick__link:focus-visible .hdaf-acct-quick__label {
	color: #111827 !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.hdaf-acct-quick__link:hover .hdaf-acct-quick__chev,
.hdaf-acct-quick__link:focus .hdaf-acct-quick__chev,
.hdaf-acct-quick__link:focus-visible .hdaf-acct-quick__chev {
	color: #111827 !important;
}

.hdaf-acct-quick__label {
	text-decoration: none !important;
}

.hdaf-acct-help {
	margin-top: 10px !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

.hdaf-acct-card__user {
	padding-top: 15px !important;
	padding-bottom: 15px !important;
}

@media (max-width: 640px) {
	.hdaf-acct-section {
		padding-top: 12px !important;
	}

	.hdaf-acct-summary__item {
		padding: 8px 4px 7px !important;
	}

	.hdaf-acct-quick__link {
		min-height: 32px !important;
	}
}


/* Mobile/tablet alignment: open account dropdown at the same visual position as Wishlist */
@media (max-width: 640px) {
	.hdaf-acct-card {
		right: -82px !important;
		width: min(384px, calc(100vw - 18px)) !important;
		max-width: calc(100vw - 18px) !important;
	}
}

@media (max-width: 420px) {
	.hdaf-acct-card {
		right: -82px !important;
	}
}


/* Final mobile account dropdown safe right gap */
@media (max-width: 640px) {
	.hdaf-acct-card {
		position: fixed !important;
		top: 72px !important;
		right: 15px !important;
		left: auto !important;
		width: min(384px, calc(100vw - 30px)) !important;
		max-width: calc(100vw - 30px) !important;
		transform: none !important;
	}

	.hdaf-acct-card::before {
		right: 82px !important;
	}
}

@media (max-width: 420px) {
	.hdaf-acct-card {
		right: 15px !important;
		width: calc(100vw - 30px) !important;
		max-width: calc(100vw - 30px) !important;
	}

	.hdaf-acct-card::before {
		right: 82px !important;
	}
}


/* Final mobile account vertical position: 10px lower */
@media (max-width: 640px) {
	.hdaf-acct-card {
		top: 82px !important;
	}
}

@media (max-width: 420px) {
	.hdaf-acct-card {
		top: 82px !important;
	}
}


/* Final exact account widget move: 10px down from previous approved position */
@media (max-width: 1023px) {
	.hdaf-acct-card,
	.hdaf-acct .hdaf-acct-card,
	.hdaf-acct__dd.hdaf-acct-card {
		position: fixed !important;
		top: 92px !important;
		right: 15px !important;
		left: auto !important;
		width: min(384px, calc(100vw - 30px)) !important;
		max-width: calc(100vw - 30px) !important;
		transform: none !important;
	}

	.hdaf-acct.is-open .hdaf-acct-card,
	.hdaf-acct.is-open .hdaf-acct__dd.hdaf-acct-card {
		top: 92px !important;
		right: 15px !important;
		left: auto !important;
		transform: none !important;
	}

	.hdaf-acct-card::before {
		right: 82px !important;
	}
}

@media (max-width: 420px) {
	.hdaf-acct-card,
	.hdaf-acct .hdaf-acct-card,
	.hdaf-acct__dd.hdaf-acct-card {
		top: 92px !important;
		right: 15px !important;
		width: calc(100vw - 30px) !important;
		max-width: calc(100vw - 30px) !important;
	}
}


/* Final header account button radius */
.hdaf-acct__toggle {
	border-radius: 8px !important;
}


/* Final account widget width: 30px less */
.hdaf-acct-card,
.hdaf-acct .hdaf-acct-card,
.hdaf-acct__dd.hdaf-acct-card {
	width: 354px !important;
	max-width: calc(100vw - 24px) !important;
}

@media (max-width: 1023px) {
	.hdaf-acct-card,
	.hdaf-acct .hdaf-acct-card,
	.hdaf-acct__dd.hdaf-acct-card {
		width: min(354px, calc(100vw - 30px)) !important;
		max-width: calc(100vw - 30px) !important;
	}
}

@media (max-width: 420px) {
	.hdaf-acct-card,
	.hdaf-acct .hdaf-acct-card,
	.hdaf-acct__dd.hdaf-acct-card {
		width: calc(100vw - 30px) !important;
		max-width: calc(100vw - 30px) !important;
	}
}

/* ======================================================
   Patch 3: Premium header widget polish
   Purpose: unify dropdown elevation, focus rings and mobile positioning.
====================================================== */

.hdaf-acct__toggle:hover,
.hdaf-acct__toggle:focus-visible{
  border-color: rgba(255,122,0,.42);
  box-shadow: 0 0 0 3px rgba(255,122,0,.12) !important;
}
.hdaf-acct-card{
  box-shadow: 0 22px 56px rgba(15,23,42,.14);
}
@media (max-width:640px){
  .hdaf-acct-card{
    top:88px;
    max-height:calc(100vh - 106px);
  }
}
