/* ──────────────────────────────────────────────────────────────
   Arab UT — WooCommerce My Account
   Dark luxury gaming, gold accents, Thmanyah Sans, RTL-native.
   Matches design prototype: Shop Arab UT — Cart & My Account.html
   ────────────────────────────────────────────────────────────── */

:root {
  --ut-gold:      #D4A843;
  --ut-gold-2:    #B8892E;
  --ut-gold-dim:  #8A6820;
  --ut-bg:        #0D0B08;
  --ut-bg-alt:    #120F09;
  --ut-bg-card:   #1C1814;
  --ut-bg-soft:   #141310;
  --ut-border:    rgba(212,168,67,0.22);     /* was 0.14 — bumped for input affordance */
  --ut-border-2:  rgba(212,168,67,0.38);
  --ut-text:      #EDE4D0;
  --ut-text-dim:  #A89880;
  --ut-text-mute: #6E5F4A;
  --ut-danger:    #E04343;
  --ut-warn:      #E8A24A;
  --ut-success:   #7CD4A8;
  --ut-info:      #6AB7D9;
  --ut-whatsapp:  #25D366;
  --ut-whatsapp-2:#128C7E;
}

/* Skip to content — keyboard users */
.ut-skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ut-gold);
  color: #1A0F00;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}
.ut-skip-link:focus { top: 0; outline: 3px solid #fff; }

/* Keyboard-only focus rings, card-wide */
.ut-auth-shell :focus-visible,
.ut-addphone-shell :focus-visible {
  outline: 2px solid var(--ut-gold);
  outline-offset: 2px;
  border-radius: 6px;
}
.ut-auth-shell :focus:not(:focus-visible) { outline: none; }

/* ============== PAGE SHELL ============== */
body.woocommerce-account {
  background: var(--ut-bg) !important;
  color: var(--ut-text) !important;
  font-family: "Thmanyah Sans", sans-serif !important;
}
body.woocommerce-account .ast-container,
body.woocommerce-account #primary,
body.woocommerce-account .ast-article-single,
body.woocommerce-account .entry-content,
body.woocommerce-account main {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: 1200px;
  margin: 0 auto;
}
body.woocommerce-account .entry-content {
  padding: 0 16px 60px !important;
}

/* Hero strip — title + breadcrumb row */
.ut-account-hero {
  border-bottom: 1px solid var(--ut-border);
  background: linear-gradient(180deg, var(--ut-bg-alt) 0%, var(--ut-bg) 100%);
  margin: 0 -16px 28px;
  padding: 24px 24px 22px;
}
.ut-account-hero .ut-crumb {
  font-size: 0.82rem;
  color: var(--ut-text-dim);
  margin-bottom: 6px;
}
.ut-account-hero .ut-crumb .sep {
  margin: 0 8px;
  color: var(--ut-text-mute);
}
.ut-account-hero .ut-crumb .cur {
  color: var(--ut-gold);
}
.ut-account-hero h1 {
  margin: 0 !important;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.01em;
  background: transparent !important;
}
.ut-account-hero h1::after { display: none !important; }
.ut-account-hero .ut-sub {
  font-size: 0.86rem;
  color: var(--ut-text-dim);
  margin-top: 4px;
}

/* Kill Astra default page title on account pages — our hero replaces it */
body.woocommerce-account .entry-title,
body.woocommerce-account .page-title,
body.woocommerce-account .ast-article-post > header,
body.woocommerce-account .ast-single-post-banner {
  display: none !important;
}

/* ============== LAYOUT: single-column stack on every account page ============
   Hero (optional) → mini profile card → horizontal pill nav → content.
   This applies to dashboard AND every endpoint (orders, edit-account, etc.)
   so the pill nav is always the same row at the top, never a sidebar. */
.woocommerce-account .woocommerce {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  direction: rtl;
}
.woocommerce-account .woocommerce > .ut-dash4-hero,
.woocommerce-account .woocommerce > .ut-account-hero,
.woocommerce-account .woocommerce > .ut-account-profile,
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin-inline: 0 !important;
}
/* Visual order: welcome hero first (the user's request), then small
   page header (if rendered), then nav pills, then the swap target. */
.woocommerce-account .woocommerce > .ut-dash4-hero { order: 1; }
.woocommerce-account .woocommerce > .ut-account-hero { order: 2; }
.woocommerce-account .woocommerce > .ut-account-profile { order: 3; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation { order: 4; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { order: 5; }

/* ============== SIDEBAR NAV ============== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  width: 100% !important;
  float: none !important;
  position: sticky;
  top: 100px;
  max-width: none !important;
}

/* Profile block — standalone mini-card above the nav (sidebar column) */
.ut-account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  min-width: 0;
  overflow: hidden;
}
/* Only the TEXT container grows — not the avatar (avatar is also a direct div child). */
.ut-account-profile > div:not(.ut-avatar) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.ut-account-profile .ut-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  max-width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #F5D88A 0%, var(--ut-gold) 45%, #B08520 100%);
  color: #1A0F00;
  font-weight: 900;
  font-size: 22px;
  /* Latin capitals render above their typographic baseline, so pure
     flex-centering leaves them looking 1-2px high. A small top padding
     + tight line-height corrects the optical alignment. */
  line-height: 1;
  padding-top: 2px;
  text-align: center;
  text-transform: uppercase;
  font-feature-settings: normal;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Thmanyah Sans", sans-serif;
  border: 1.5px solid rgba(255, 232, 178, 0.45);
  box-shadow:
    0 4px 12px rgba(212, 168, 67, 0.28),
    0 0 0 3px rgba(212, 168, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  flex: 0 0 52px;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ut-account-profile .ut-avatar:hover {
  transform: scale(1.04);
  box-shadow:
    0 6px 18px rgba(212, 168, 67, 0.38),
    0 0 0 4px rgba(212, 168, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.ut-account-profile .ut-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ut-account-profile .ut-sub {
  font-size: 0.74rem;
  color: var(--ut-text-dim);
  direction: ltr;
  text-align: start;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================================
   Pill nav — universal: 4 equal-width pills on a single row at every
   viewport, on every endpoint page. Wrapped in a dark rounded "shell"
   for the premium look matching the reference. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.ut-dash4 .woocommerce-MyAccount-navigation {
  background: var(--ut-surface) !important;
  border: 1px solid var(--ut-border) !important;
  border-radius: 999px !important;
  padding: 8px !important;
  margin: 0 0 4px !important;
  position: static !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.ut-dash4 .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  overflow: hidden !important;
  scroll-snap-type: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li,
.ut-dash4 .woocommerce-MyAccount-navigation li {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.woocommerce-account .woocommerce-MyAccount-navigation li:hover,
.ut-dash4 .woocommerce-MyAccount-navigation li:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
/* ACTIVE pill — gold filled with subtle inset glow + soft outer halo
   matching the reference image. */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active,
.ut-dash4 .woocommerce-MyAccount-navigation li.is-active {
  background: linear-gradient(180deg,
    rgba(212, 168, 67, 0.22) 0%,
    rgba(212, 168, 67, 0.08) 100%) !important;
  border-color: rgba(212, 168, 67, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.18),
    0 8px 24px rgba(212, 168, 67, 0.18),
    inset 0 1px 0 rgba(255, 232, 170, 0.16) !important;
}
/* LOGOUT pill — red outline matching the reference image's exit button. */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout,
.ut-dash4 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
  background: rgba(224, 67, 67, 0.06) !important;
  border-color: rgba(224, 67, 67, 0.32) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover,
.ut-dash4 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover {
  background: rgba(224, 67, 67, 0.14) !important;
  border-color: rgba(224, 67, 67, 0.55) !important;
  box-shadow: 0 6px 20px rgba(224, 67, 67, 0.18) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a,
.ut-dash4 .woocommerce-MyAccount-navigation li a {
  display: flex !important;          /* full block flex, not inline-flex */
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 13px 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  color: #E8DFD0 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  font-family: inherit !important;
  border-radius: 999px !important;
  background: transparent !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.ut-dash4 .woocommerce-MyAccount-navigation li.is-active a {
  color: var(--ut-gold) !important;
  font-weight: 700 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a,
.ut-dash4 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #FF9B9B !important;
  font-weight: 600 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover a,
.ut-dash4 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover a {
  color: #FFB5B5 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::before,
.ut-dash4 .woocommerce-MyAccount-navigation li a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  filter: brightness(1.7) contrast(0.92);
  transition: filter 0.2s ease, transform 0.2s ease;
}
/* Active pill icon — full gold via filter (bright + sepia → gold hue) */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before,
.ut-dash4 .woocommerce-MyAccount-navigation li.is-active a::before {
  filter: brightness(1.45) sepia(1) hue-rotate(2deg) saturate(6) !important;
}
/* Logout pill icon — red, no brightness filter */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before,
.ut-dash4 .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  filter: none !important;
}
/* Default icon — package — gold-tinted stroke (data-URI for reliability) */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/></svg>");
}
/* Per-endpoint icons — include `li` to beat the default rule's (0,2,3) specificity */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1.5'/><rect x='14' y='3' width='7' height='5' rx='1.5'/><rect x='14' y='12' width='7' height='9' rx='1.5'/><rect x='3' y='16' width='7' height='5' rx='1.5'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/><line x1='3' y1='6' x2='21' y2='6'/><path d='M16 10a4 4 0 01-8 0'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/><circle cx='12' cy='10' r='3'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before,
.woocommerce-account .woocommerce-MyAccount-navigation a[href*="customer-logout"]::before {
  /* Single clean arrow pointing out (no door frame that looked like a duplicate element). */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FF8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='8 17 3 12 8 7'/><line x1='3' y1='12' x2='17' y2='12'/></svg>") !important;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
}
/* Href-based fallbacks for the other per-endpoint icons — in case <li> classes
   aren't present (e.g. custom WC builds rename or strip them). */
.woocommerce-account .woocommerce-MyAccount-navigation a[href$="/dashboard/"]::before,
.woocommerce-account .woocommerce-MyAccount-navigation a[href$="/my-account/"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1.5'/><rect x='14' y='3' width='7' height='5' rx='1.5'/><rect x='14' y='12' width='7' height='9' rx='1.5'/><rect x='3' y='16' width='7' height='5' rx='1.5'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a[href*="/orders"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/><line x1='3' y1='6' x2='21' y2='6'/><path d='M16 10a4 4 0 01-8 0'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a[href*="/edit-account"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a[href*="/edit-address"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/><circle cx='12' cy='10' r='3'/></svg>") !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a[href*="/downloads"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A89880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") !important;
}

/* Kill the leftover gold vertical bar on active pills — was a vertical-
   sidebar artifact, looks like a duplicate marker on horizontal pills. */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active::after,
.ut-dash4 .woocommerce-MyAccount-navigation li.is-active::after {
  display: none !important;
  content: none !important;
}

/* Active + hover states */
.woocommerce-account .woocommerce-MyAccount-navigation li:hover a {
  color: var(--ut-gold) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li:hover a::before {
  filter: brightness(1.4) sepia(1) hue-rotate(10deg) saturate(4);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
  background: rgba(212,168,67,0.10) !important;
  border-color: rgba(212,168,67,0.25) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: var(--ut-gold) !important;
  font-weight: 700 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active::after {
  content: "";
  position: absolute;
  inset-inline-start: 8px;   /* RTL: visual right, next to text start */
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--ut-gold);
  border-radius: 2px;
}
/* Logout pill — sized + colored EXACTLY like the other pills.
   The chrome (red tint background, red border) lives on the <li> via
   the universal rules above. The <a> stays transparent here so we
   don't get a doubled border / mismatched corner radius. */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: inherit !important;  /* defer to the universal pill rule */
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover a::before {
  /* Keep the red tint and slide the icon in its exit direction (LTR: left / RTL: right) */
  filter: none !important;
  transform: translateX(-3px);
}
[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout:hover a::before {
  transform: translateX(3px);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout.is-active {
  background: transparent !important;
  border-color: rgba(224, 67, 67, 0.30) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout.is-active::after {
  display: none !important;  /* no gold active-bar on the logout button */
}

/* ============== MAIN CONTENT PANEL ============== */
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  display: grid;
  gap: 20px;
}

/* Panel = card. We wrap tables/forms via a class hook but also style stray divs. */
.ut-panel {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.ut-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ut-panel-head::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--ut-gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.ut-panel-head h3 {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: transparent !important;
}
.ut-panel-head .ut-link {
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--ut-gold) !important;
  font-weight: 600;
  text-decoration: none !important;
}

/* Wrap generic WC content so it inherits panel look */
.woocommerce-account .woocommerce-MyAccount-content > p,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-Message,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-MyAccount-content > form,
.woocommerce-account .woocommerce-MyAccount-content > address,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-orders-table__row,
.woocommerce-account .woocommerce-MyAccount-content > header {
  color: var(--ut-text);
}

/* ============== WELCOME HERO (dashboard, injected via hook) ============== */
.ut-welcome-hero {
  background: linear-gradient(135deg, rgba(212,168,67,0.10) 0%, rgba(212,168,67,0.02) 50%, rgba(10,10,10,0) 100%);
  border: 1px solid var(--ut-border);
  border-radius: 20px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ut-welcome-hero .ut-welcome-copy {
  flex: 1 1 auto;
  min-width: 0;
}
/* Emblem sits on the physical LEFT (inline-end in RTL) — same imagery as shop hero */
.ut-welcome-coin {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  position: relative;
  display: grid;
  place-items: center;
}
.ut-welcome-coin::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at center,
    rgba(255,210,120,0.55) 0%,
    rgba(212,168,67,0.22) 38%,
    rgba(212,168,67,0)    72%);
  filter: blur(10px);
  pointer-events: none;
  animation: ut-coin-pulse 3.2s ease-in-out infinite;
}
.ut-welcome-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 22px rgba(212,168,67,0.35)) drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  animation: ut-coin-float 4.5s ease-in-out infinite;
}
@keyframes ut-coin-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-4px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ut-welcome-emblem { animation: none !important; transform: none !important; }
  .ut-welcome-coin::before { animation: none !important; }
}
/* Canvas particle layer (overdrive.js) sits at z:0 — emblem + copy sit above */
.ut-welcome-hero .hero-particles { z-index: 0; }
.ut-welcome-hero .ut-welcome-copy,
.ut-welcome-hero .ut-welcome-coin { position: relative; z-index: 2; }

@keyframes ut-coin-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.04); }
}
/* Hero's existing ::after glow overlaps the coin — push it back */
.ut-welcome-hero::after { opacity: 0.25 !important; }

@media (max-width: 520px) {
  .ut-welcome-hero { padding: 16px; gap: 14px; }
  .ut-welcome-coin { width: 78px; height: 78px; }
  .ut-welcome-spark { display: none; }
}
.ut-welcome-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212,168,67,0.35), rgba(212,168,67,0) 70%);
  opacity: 0.4;
  pointer-events: none;
}
.ut-welcome-hero .ut-kicker {
  font-size: 0.74rem;
  color: var(--ut-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ut-welcome-hero h2 {
  margin: 0 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.01em;
  background: transparent !important;
}
.ut-welcome-hero .ut-sub {
  font-size: 0.82rem;
  color: var(--ut-text-dim);
  margin-top: 6px;
  max-width: 440px;
  line-height: 1.5;
}
.ut-welcome-hero .ut-sub strong {
  color: var(--ut-gold);
  font-weight: 700;
}

/* ============== STATS GRID ============== */
.ut-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .ut-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.ut-stat-card {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  padding: 18px;
}
.ut-stat-card .ut-label {
  font-size: 0.74rem;
  color: var(--ut-text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ut-stat-card .ut-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-top: 6px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ut-stat-card.is-gold .ut-value { color: var(--ut-gold); }
.ut-stat-card .ut-caption {
  font-size: 0.72rem;
  color: var(--ut-text-mute);
  margin-top: 4px;
}

/* ============== ORDERS TABLE — cards not rows ============== */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table.my_account_orders {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  display: block !important;
  font-family: inherit !important;
}
.woocommerce-account .woocommerce-orders-table thead,
.woocommerce-account table.shop_table.my_account_orders thead,
.woocommerce-account .woocommerce-orders-table colgroup,
.woocommerce-account table.shop_table.my_account_orders colgroup {
  display: none !important;
}
.woocommerce-account .woocommerce-orders-table tbody,
.woocommerce-account table.shop_table.my_account_orders tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100%;
}
.woocommerce-account .woocommerce-orders-table tbody tr,
.woocommerce-account table.shop_table.my_account_orders tbody tr {
  background: var(--ut-bg-soft) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: auto 1fr auto auto auto !important;
  gap: 14px !important;
  align-items: center !important;
  transition: border-color 0.2s;
}
.woocommerce-account .woocommerce-orders-table tbody tr:hover {
  border-color: var(--ut-border) !important;
}
.woocommerce-account .woocommerce-orders-table tbody td,
.woocommerce-account table.shop_table.my_account_orders tbody td {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--ut-text) !important;
  font-size: 0.88rem !important;
  display: block !important;
}
.woocommerce-account .woocommerce-orders-table tbody td::before,
.woocommerce-account table.shop_table.my_account_orders tbody td::before {
  display: none !important;
  content: none !important;
}

/* Order number */
.woocommerce-account .woocommerce-orders-table__cell-order-number {
  font-family: ui-monospace, Menlo, monospace !important;
  font-size: 0.74rem !important;
  color: var(--ut-text-dim) !important;
  direction: ltr;
  order: 2;
}
.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: var(--ut-text-dim) !important;
  text-decoration: none !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-number a:hover {
  color: var(--ut-gold) !important;
}

/* Date */
.woocommerce-account .woocommerce-orders-table__cell-order-date {
  font-size: 0.76rem !important;
  color: var(--ut-text-dim) !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
  order: 3;
}

/* Status badge */
.woocommerce-account .woocommerce-orders-table__cell-order-status {
  order: 4;
}
.woocommerce-account .woocommerce-orders-table__cell-order-status::before,
.ut-order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.35);
  color: var(--ut-gold);
}
.woocommerce-account .woocommerce-orders-table__cell-order-status {
  color: transparent !important;
  font-size: 0 !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-status::before {
  content: attr(data-status);
  font-size: 0.72rem;
  color: inherit;
}

/* Total */
.woocommerce-account .woocommerce-orders-table__cell-order-total {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--ut-gold) !important;
  font-variant-numeric: tabular-nums;
  text-align: end !important;
  order: 5;
}
.woocommerce-account .woocommerce-orders-table__cell-order-total bdi {
  color: var(--ut-gold) !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-total .woocommerce-Price-currencySymbol {
  color: var(--ut-text-mute) !important;
  font-size: 0.7rem !important;
  margin-inline-start: 3px;
  font-weight: 600;
}

/* Actions */
.woocommerce-account .woocommerce-orders-table__cell-order-actions {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  order: 6;
  grid-column: 1 / -1;
  padding-top: 10px !important;
  margin-top: 10px !important;
  border-top: 1px dashed var(--ut-border) !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid var(--ut-border) !important;
  color: var(--ut-text) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-family: inherit !important;
  transition: all 0.2s;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button:hover {
  border-color: var(--ut-gold) !important;
  color: var(--ut-gold) !important;
  background: rgba(212,168,67,0.08) !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button.view,
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button.pay {
  background: var(--ut-gold) !important;
  color: #0A0A0A !important;
  border-color: transparent !important;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button.view:hover,
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button.pay:hover {
  background: var(--ut-gold-2) !important;
  color: #0A0A0A !important;
}

/* Icon bubble on the start of each row (injected decoration) */
.woocommerce-account .woocommerce-orders-table tbody tr::before {
  content: "";
  grid-row: 1 / span 1;
  order: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212,168,67,0.20), rgba(212,168,67,0.03) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'><circle cx='32' cy='32' r='22' fill='none' stroke='%23D4A843' stroke-width='2'/><text x='32' y='40' text-anchor='middle' font-family='serif' font-size='22' font-weight='900' fill='%23D4A843'>₡</text></svg>") center/60% no-repeat;
  border: 1px solid rgba(212,168,67,0.18);
  flex-shrink: 0;
}

/* Empty-state — compact row matching the dashboard's recent-orders empty row.
   Used inside .ut-panel on /my-account/orders/ and as generic WC notice fallback. */
.ut-orders-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 16px;
  background: var(--ut-bg-soft);
  border: 1px dashed var(--ut-border);
  border-radius: 12px;
  color: var(--ut-text-dim);
  font-size: 0.9rem;
}
.ut-orders-empty .ut-orders-empty-cta {
  color: var(--ut-gold) !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.88rem;
  white-space: nowrap;
}
.ut-orders-empty .ut-orders-empty-cta:hover {
  text-decoration: underline !important;
}
/* Fallback: generic WC notice containers inside my-account content — keep compact. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info,
.woocommerce-account .woocommerce-MyAccount-content .no_orders,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper .woocommerce-info {
  background: var(--ut-bg-soft) !important;
  border: 1px dashed var(--ut-border) !important;
  border-radius: 12px !important;
  color: var(--ut-text-dim) !important;
  padding: 14px 16px !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  text-align: start;
  min-height: 0 !important;
  width: 100%;
  box-shadow: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info a.button,
.woocommerce-account .woocommerce-MyAccount-content .no_orders a.button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info .button,
.woocommerce-account .woocommerce-MyAccount-content .no_orders .button {
  background: transparent !important;
  color: var(--ut-gold) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .no_orders a.button:hover {
  text-decoration: underline !important;
  transform: none;
  box-shadow: none !important;
}

/* Pagination */
.woocommerce-account .woocommerce-pagination {
  margin-top: 18px;
  text-align: center;
}
.woocommerce-account .woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.woocommerce-account .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  color: var(--ut-text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
}
.woocommerce-account .woocommerce-pagination .page-numbers.current {
  background: var(--ut-gold);
  color: #0A0A0A !important;
  border-color: transparent;
}

/* ============== ORDER DETAILS (single order view) ============== */
.woocommerce-view-order .woocommerce-order-details,
.woocommerce-view-order .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-order-downloads {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  margin-bottom: 20px;
}
.woocommerce-view-order h2 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--ut-border) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
}
.woocommerce-view-order h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--ut-gold);
  border-radius: 2px;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table {
  border: 0 !important;
  background: transparent !important;
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.woocommerce-view-order .woocommerce-order-details table.shop_table th,
.woocommerce-view-order .woocommerce-order-details table.shop_table td {
  padding: 12px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ut-text) !important;
  font-size: 0.9rem !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table th {
  color: var(--ut-text-dim) !important;
  font-weight: 600 !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tr.order_item .product-name {
  color: #fff !important;
  font-weight: 700 !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tr.order_item .product-name a {
  color: #fff !important;
  text-decoration: none !important;
}
.woocommerce-view-order .woocommerce-order-details .wc-item-meta {
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  background: rgba(212,168,67,0.05) !important;
  border: 1px solid rgba(212,168,67,0.12) !important;
  border-radius: 8px !important;
  list-style: none !important;
  font-size: 0.78rem !important;
}
.woocommerce-view-order .woocommerce-order-details .wc-item-meta strong {
  color: var(--ut-gold) !important;
  font-weight: 700;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table .order-total,
.woocommerce-view-order .woocommerce-order-details table.shop_table tr.order-total {
  border-top: 2px solid var(--ut-border);
}
.woocommerce-view-order .woocommerce-order-details table.shop_table .order-total th,
.woocommerce-view-order .woocommerce-order-details table.shop_table .order-total td {
  padding-top: 16px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table .order-total td strong,
.woocommerce-view-order .woocommerce-order-details table.shop_table .order-total td bdi {
  color: var(--ut-gold) !important;
  font-size: 1.2rem !important;
  font-variant-numeric: tabular-nums;
}

/* ============== ORDER STATUS TIMELINE (injected on view-order) ============== */
.ut-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  direction: rtl;
  margin-top: 4px;
}
.ut-timeline .ut-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ut-timeline .ut-bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
}
.ut-timeline .ut-step.is-active .ut-bar {
  background: linear-gradient(90deg, var(--ut-gold), var(--ut-gold-2));
}
.ut-timeline .ut-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ut-text-mute);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}
.ut-timeline .ut-step.is-active .ut-label {
  color: var(--ut-text);
}
@media (max-width: 560px) {
  .ut-timeline { grid-template-columns: repeat(3, 1fr); gap: 4px 6px; row-gap: 10px; }
}

/* Active-order alert on dashboard */
.ut-active-order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(212,168,67,0.06);
  border: 1px solid var(--ut-border);
  border-radius: 14px;
  margin-top: 14px;
}
.ut-active-order .ut-ao-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,168,67,0.22), rgba(212,168,67,0.04));
  border: 1px solid rgba(212,168,67,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ut-gold);
  flex-shrink: 0;
}
.ut-active-order .ut-ao-title {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
}
.ut-active-order .ut-ao-sub {
  font-size: 0.74rem;
  color: var(--ut-text-dim);
  margin-top: 2px;
}
.ut-active-order .ut-ao-cta {
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--ut-gold) !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* ============== ADDRESSES PAGE ============== */
.woocommerce-account .u-columns.woocommerce-Addresses,
.woocommerce-account .u-columns.col2-set {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100% !important;
}
.woocommerce-account .u-columns > * {
  float: none !important;
  width: 100% !important;
}
.woocommerce-account .woocommerce-Address {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  padding: 18px;
}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ut-border);
}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h3 {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: transparent !important;
}
.woocommerce-account .woocommerce-Address .woocommerce-Address-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--ut-gold);
  border-radius: 2px;
}
.woocommerce-account .woocommerce-Address .edit {
  margin-inline-start: auto;
  background: transparent;
  color: var(--ut-gold) !important;
  border: 1px solid var(--ut-border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
}
.woocommerce-account .woocommerce-Address .edit:hover {
  border-color: var(--ut-gold);
  background: rgba(212,168,67,0.08);
}
.woocommerce-account .woocommerce-Address address {
  color: var(--ut-text);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  direction: rtl;
}
@media (max-width: 720px) {
  .woocommerce-account .u-columns.woocommerce-Addresses,
  .woocommerce-account .u-columns.col2-set {
    grid-template-columns: 1fr;
  }
}

/* ============== FORMS (edit-account, edit-address, login/register) ============== */
.woocommerce-account form.edit-account,
.woocommerce-account form.woocommerce-EditAccountForm,
.woocommerce-account form.woocommerce-address-fields,
.woocommerce-account .woocommerce-ResetPassword,
.woocommerce-account form.lost_reset_password {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.woocommerce-account form fieldset {
  background: rgba(212,168,67,0.05);
  border: 1px solid rgba(212,168,67,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
}
.woocommerce-account form fieldset legend {
  color: var(--ut-gold);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 8px;
}
.woocommerce-account .form-row {
  margin-bottom: 14px !important;
}
.woocommerce-account .form-row label {
  display: block !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--ut-text-dim) !important;
  margin-bottom: 6px !important;
}
.woocommerce-account .form-row label .required {
  color: var(--ut-gold) !important;
  text-decoration: none !important;
  border: 0 !important;
}
.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row select,
.woocommerce-account .form-row textarea {
  width: 100% !important;
  background: var(--ut-bg-soft) !important;
  border: 1px solid var(--ut-border) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  color: var(--ut-text) !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
  min-height: 44px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  direction: rtl;
  box-sizing: border-box;
}
.woocommerce-account .form-row input.input-text:focus,
.woocommerce-account .form-row select:focus,
.woocommerce-account .form-row textarea:focus {
  outline: none !important;
  border-color: var(--ut-gold) !important;
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15) !important;
}
.woocommerce-account .form-row input[type="email"],
.woocommerce-account .form-row input[type="password"] {
  direction: ltr;
  text-align: start;
  letter-spacing: 0.02em;
}
.woocommerce-account .form-row.form-row-first,
.woocommerce-account .form-row.form-row-last {
  width: calc(50% - 6px) !important;
  display: inline-flex !important;
  flex-direction: column !important;
  vertical-align: top;
}
.woocommerce-account .form-row.form-row-first { margin-inline-end: 12px !important; }
@media (max-width: 560px) {
  .woocommerce-account .form-row.form-row-first,
  .woocommerce-account .form-row.form-row-last {
    width: 100% !important;
    margin-inline-end: 0 !important;
    display: flex !important;
  }
}

/* Primary action buttons */
.woocommerce-account button[type="submit"],
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button,
.woocommerce-account form button.button,
.woocommerce-account input[type="submit"].button {
  background: linear-gradient(135deg, var(--ut-gold), var(--ut-gold-2)) !important;
  color: #0A0A0A !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 26px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(212,168,67,0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  margin-top: 8px !important;
}
.woocommerce-account button[type="submit"]:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,168,67,0.4) !important;
}
.woocommerce-account a.button:not(.pay):not(.view):not(.cancel) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid var(--ut-border) !important;
  color: var(--ut-gold) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-family: inherit !important;
}
.woocommerce-account a.button:not(.pay):not(.view):not(.cancel):hover {
  border-color: var(--ut-gold) !important;
  background: rgba(212,168,67,0.08) !important;
}

/* Edit-account password section — muted hint below the legend */
.ut-pw-hint {
  font-size: 0.82rem;
  color: var(--ut-text-mute);
  margin: -8px 0 14px;
  line-height: 1.5;
}

/* ============== LOGIN / REGISTER (not logged in) ============== */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
}
.woocommerce-account .u-columns.col2-set.login-register,
.woocommerce-account .u-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
  background: var(--ut-bg-card) !important;
  border: 1px solid var(--ut-border) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.woocommerce-account form.woocommerce-form-login .lost_password a,
.woocommerce-account form.woocommerce-form-register .lost_password a {
  color: var(--ut-gold) !important;
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  .woocommerce-account .u-columns.col2-set.login-register,
  .woocommerce-account .u-columns {
    grid-template-columns: 1fr;
  }
}

/* ============== DASHBOARD OVERVIEW (the WC default text) ============== */
.woocommerce-MyAccount-content > p:first-of-type {
  font-size: 0.92rem;
  color: var(--ut-text-dim);
  line-height: 1.6;
}
.woocommerce-MyAccount-content mark {
  background: rgba(212,168,67,0.12);
  color: var(--ut-gold);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============== MOBILE: PILL TABS (no sidebar) ============== */
@media (max-width: 900px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static !important;
    padding: 10px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
  }
  .ut-account-profile {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }
  /* MOBILE PILL LAYOUT — switch from 4-in-a-row (cramped) to 2×2 grid
     so each pill has DOUBLE the width and reads at a comfortable size.
     This is what the user wanted: "in mobile it dont get compact". */
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .ut-dash4 .woocommerce-MyAccount-navigation {
    padding: 8px !important;
    border-radius: 18px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul,
  .ut-dash4 .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a,
  .ut-dash4 .woocommerce-MyAccount-navigation li a {
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    gap: 8px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a::before,
  .ut-dash4 .woocommerce-MyAccount-navigation li a::before {
    width: 17px !important;
    height: 17px !important;
    background-size: 17px 17px !important;
  }
  /* Drop the redundant gold vertical bar on active pills — the outline
     and text color already carry the active signal in a pill row. */
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active::after {
    display: none !important;
  }
  /* Active pill — tint the icon gold to match the label (stronger filter). */
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
    filter: brightness(1.5) sepia(1) hue-rotate(5deg) saturate(6);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
    background: linear-gradient(135deg, rgba(212,168,67,0.18), rgba(212,168,67,0.06)) !important;
    border-color: rgba(212,168,67,0.45) !important;
    box-shadow: 0 4px 14px rgba(212,168,67,0.18);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--ut-gold) !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active::after {
    display: none !important;
  }
  /* Logout pill on mobile — sits inline with other pills, no desktop divider */
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    order: 99;   /* push to end if the flex row ever wraps */
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
  /* Logout pill: same SIZE/shape as the others, but red treatment as
     the destructive-action visual cue. */
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    background: transparent !important;
    border: 0 !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
    padding: 9px 15px !important;
    border-radius: 999px !important;
    gap: 7px !important;
    line-height: 1 !important;
    background: rgba(224, 67, 67, 0.08) !important;
    border: 1px solid rgba(224, 67, 67, 0.28) !important;
    color: #FF9B9B !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: rgba(224, 67, 67, 0.16) !important;
    border-color: rgba(224, 67, 67, 0.5) !important;
    color: #FFB5B5 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    background-size: 15px 15px !important;
    filter: none !important;
  }

  /* Stats — 2 cols on mobile */
  .ut-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ut-stat-card { padding: 14px; }
  .ut-stat-card .ut-value { font-size: 1.35rem; }

  /* Welcome hero tighter */
  .ut-welcome-hero {
    padding: 18px;
  }
  .ut-welcome-hero h2 {
    font-size: 1.25rem !important;
  }

  /* Order card — stack inner cells */
  .woocommerce-account .woocommerce-orders-table tbody tr,
  .woocommerce-account table.shop_table.my_account_orders tbody tr {
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    padding: 12px !important;
    row-gap: 6px !important;
  }
  .woocommerce-account .woocommerce-orders-table__cell-order-number { grid-column: 2; }
  .woocommerce-account .woocommerce-orders-table__cell-order-date { grid-column: 2; grid-row: 2; }
  .woocommerce-account .woocommerce-orders-table__cell-order-total { grid-column: 3; grid-row: 1; }
  .woocommerce-account .woocommerce-orders-table__cell-order-status { grid-column: 3; grid-row: 2; }
  .woocommerce-account .woocommerce-orders-table__cell-order-actions {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }
  .woocommerce-account .woocommerce-orders-table__cell-order-actions a.button {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .ut-panel { padding: 16px; border-radius: 14px; }
  .ut-welcome-hero { padding: 16px; border-radius: 14px; }
  .woocommerce-account form.edit-account,
  .woocommerce-account form.woocommerce-EditAccountForm,
  .woocommerce-account form.woocommerce-address-fields {
    padding: 16px;
    border-radius: 14px;
  }
}

/* ============== RECENT ORDERS LIST (dashboard) ============== */
.ut-recent-orders {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ut-recent-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  border-radius: 14px;
  transition: border-color .2s, background .2s, transform .2s;
}
.ut-recent-row:hover {
  border-color: var(--ut-border-2);
  background: var(--ut-bg-card);
  transform: translateY(-1px);
}
.ut-ro-num {
  font-weight: 700;
  color: var(--ut-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.ut-ro-date {
  color: var(--ut-text-dim);
  font-size: 13px;
}
.ut-ro-total {
  color: var(--ut-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ut-ro-link {
  color: var(--ut-text-dim);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  transition: all .2s;
  white-space: nowrap;
}
.ut-ro-link:hover {
  color: var(--ut-gold);
  border-color: var(--ut-border-2);
}
.ut-empty-panel {
  padding: 24px;
  text-align: center;
  color: var(--ut-text-dim);
  background: var(--ut-bg-soft);
  border: 1px dashed var(--ut-border);
  border-radius: 14px;
}
.ut-empty-panel a {
  color: var(--ut-gold);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 640px) {
  .ut-recent-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "num date link" "status total total";
    row-gap: 8px;
  }
  .ut-ro-num { grid-area: num; }
  .ut-ro-date { grid-area: date; }
  .ut-ro-link { grid-area: link; }
  .ut-recent-row .ut-order-status { grid-area: status; justify-self: start; }
  .ut-ro-total { grid-area: total; justify-self: end; }
}

/* ============== TIMELINE WRAPPER (view-order) ============== */
.ut-timeline-wrap {
  margin: 0 0 24px;
  padding: 20px;
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 18px;
}
.ut-timeline-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ut-text-dim);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}
.ut-timeline-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(224,67,67,.08);
  border: 1px solid rgba(224,67,67,.25);
  border-radius: 10px;
  color: var(--ut-danger);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   GUEST AUTH — custom form-swap (login / phone / signup / inbox)
   ══════════════════════════════════════════════════════════════ */

/* Kill the account grid layout on logged-out pages */
body.ut-account-guest .woocommerce-account .woocommerce,
body.ut-account-guest .woocommerce {
  display: block !important;
  grid-template-columns: none !important;
  max-width: none !important;
  padding: 0 !important;
}
body.ut-account-guest .ut-account-hero { display: none !important; }
body.ut-account-guest #customer_login,
body.ut-account-guest .woocommerce-form-login,
body.ut-account-guest .woocommerce-form-register,
body.ut-account-guest .u-columns.col2-set { display: none !important; }

.ut-auth-shell {
  max-width: 520px;
  margin-inline: auto;
  padding: 32px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ut-auth-hero { text-align: center; }
.ut-brand-mark {
  display: inline-flex;
  width: 74px; height: 74px;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(212,168,67,0.22), transparent 65%);
  border-radius: 50%;
}
.ut-brand-mark img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(212,168,67,0.22));
}
.ut-auth-title {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ut-gold);
  letter-spacing: -.01em;
}
.ut-auth-sub {
  color: var(--ut-text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 auto 18px;
  max-width: 400px;
}
.ut-auth-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
}
.ut-tr {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  font-size: 12px; color: var(--ut-text-dim);
}
.ut-tr-ico { color: var(--ut-gold); }

.ut-auth-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.00) 42%),
    linear-gradient(145deg, rgba(34,26,16,0.96), rgba(18,14,10,0.98));
  border: 1px solid rgba(212,168,67,0.28);
  border-radius: 20px;
  box-shadow: 0 24px 70px -28px rgba(0,0,0,0.78), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 28px 28px 30px;
  position: relative;
  overflow: visible;
}

.ut-auth-form { display: flex; flex-direction: column; gap: 14px; }
.ut-auth-form[hidden] { display: none; }

/* hidden attribute must win over our layout rules (phone/code step, verify btn, etc.) */
.ut-auth-shell [hidden],
.ut-addphone-shell [hidden] { display: none !important; }

.ut-form-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ut-gold);
  text-align: start;
  line-height: 1.2;
}

.ut-field { display: flex; flex-direction: column; gap: 6px; }
.ut-field label {
  font-size: 13px;
  color: var(--ut-text-dim);
  font-weight: 600;
}
.ut-field input[type="text"],
.ut-field input[type="email"],
.ut-field input[type="tel"],
.ut-field input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  border-radius: 11px;
  color: var(--ut-text);
  font-family: inherit;
  font-size: 15px;
  direction: ltr;
  text-align: start;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.ut-field input:hover:not(:focus) { border-color: var(--ut-border-2); }
.ut-field input:focus {
  outline: none;
  border-color: var(--ut-gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.18);
  background: rgba(212,168,67,0.04);
}
.ut-field input::placeholder { color: #5a5144; }

/* Kill Chrome/Edge autofill white/blue bleach — preserve dark theme */
.ut-field input:-webkit-autofill,
.ut-field input:-webkit-autofill:hover,
.ut-field input:-webkit-autofill:focus,
.ut-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ut-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--ut-bg-soft) inset !important;
  caret-color: var(--ut-text);
  transition: background-color 9999s ease-out 0s;
}

.ut-hint {
  font-size: 12px;
  color: var(--ut-text-dim);
  margin: 0;
  line-height: 1.5;
}
.ut-hint[data-match-state] {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 2px;
}
.ut-hint[data-match-state]::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: 0 0 18px;
  font-size: 11px;
  line-height: 1;
}
.ut-hint[data-match-state="ok"]  {
  color: #A8F0C9;
  background: rgba(124,212,168,0.09);
  border: 1px solid rgba(124,212,168,0.24);
}
.ut-hint[data-match-state="ok"]::before {
  content: "";
  background: #7CD4A8;
  color: #08140E;
}
.ut-hint[data-match-state="bad"] {
  color: #F2B0A8;
  background: rgba(224,67,67,0.10);
  border: 1px solid rgba(224,67,67,0.28);
}
.ut-hint[data-match-state="bad"]::before {
  content: "!";
  background: rgba(224,67,67,0.24);
  color: #F2B0A8;
}

.ut-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ut-text-dim);
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.ut-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid #4a4034;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.ut-check:hover input[type="checkbox"] { border-color: #6a5a45; }
.ut-check input[type="checkbox"]::before {
  content: "";
  width: 10px; height: 10px;
  transform: scale(0);
  transition: transform .15s;
  background: var(--ut-gold);
  border-radius: 2px;
}
.ut-check input[type="checkbox"]:checked { border-color: var(--ut-gold); }
.ut-check input[type="checkbox"]:checked::before { transform: scale(1); }

.ut-forgot-link {
  display: inline-flex;
  align-self: flex-start;
  color: #D8C6A4 !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212,168,67,0.35);
  padding-bottom: 2px;
  margin-top: -4px;
  transition: color .15s, border-color .15s;
}
.ut-forgot-link:hover {
  color: var(--ut-gold) !important;
  border-color: rgba(212,168,67,0.75);
}

.ut-btn-primary {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #F2CF76 0%, var(--ut-gold) 48%, #A77820 100%);
  color: #1A0F00;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, filter .2s;
  box-shadow: 0 12px 24px -14px rgba(212,168,67,0.82), inset 0 1px 0 rgba(255,255,255,0.22);
  margin-top: 6px;
  letter-spacing: .01em;
}
.ut-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ut-btn-primary:active { transform: translateY(0); }
.ut-btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.ut-btn-primary.is-busy .ut-btn-label { visibility: hidden; }
.ut-btn-primary.is-busy .ut-btn-spinner { display: block; }

.ut-btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(26,15,0,0.25);
  border-top-color: #1A0F00;
  border-radius: 50%;
  animation: ut-spin .7s linear infinite;
}
@keyframes ut-spin { to { transform: rotate(360deg); } }

.ut-btn-secondary {
  width: 100%;
  padding: 12px 18px;
  background: var(--ut-bg-soft);
  color: var(--ut-text);
  border: 1px solid var(--ut-border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
}
.ut-btn-secondary:hover { border-color: var(--ut-gold); background: rgba(212,168,67,0.06); }
.ut-btn-secondary.is-busy .ut-btn-label { visibility: hidden; }
.ut-btn-secondary.is-busy .ut-btn-spinner {
  display: block;
  border-color: rgba(212,168,67,0.25);
  border-top-color: var(--ut-gold);
}

.ut-btn-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.045);
  color: var(--ut-text);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .2s, background .2s, border-color .2s;
}
.ut-btn-google:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
  color: var(--ut-text);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.ut-btn-google svg { flex-shrink: 0; background: #fff; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ut-btn-google span { color: var(--ut-text); letter-spacing: .01em; }

.ut-or {
  display: flex; align-items: center; gap: 12px;
  color: #6e6556;
  font-size: 12px;
  margin: 4px 0;
}
.ut-or::before, .ut-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ut-border);
}
.ut-or span { flex-shrink: 0; }

.ut-link-inline {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ut-text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
  text-decoration: none;
  border-radius: 12px;
  transition: color .15s, border-color .15s, background .15s;
}
.ut-link-inline:hover {
  color: var(--ut-gold);
  border-color: rgba(212,168,67,0.22);
  background: rgba(212,168,67,0.06);
  text-decoration: none;
}
.ut-link-back { color: #8a8274; font-size: 12.5px; }

.ut-auth-form[data-form="login"] .ut-link-inline[data-view="phone"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(18,140,126,0.10));
  border-color: rgba(37,211,102,0.28);
  color: #BFF4D0 !important;
}
.ut-auth-form[data-form="login"] .ut-link-inline[data-view="phone"]:hover {
  background: linear-gradient(135deg, rgba(37,211,102,0.25), rgba(18,140,126,0.15)) !important;
  border-color: rgba(37,211,102,0.44) !important;
  color: #D7FFE3 !important;
}

.ut-form-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--ut-text-dim);
  margin: 6px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ut-border);
}
.ut-link {
  background: rgba(212,168,67,0.06);
  border: 1px solid rgba(212,168,67,0.22);
  color: var(--ut-gold);
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.ut-link:hover {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.38);
  color: #F3D47A;
  text-decoration: none;
}

.ut-form-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.ut-form-alert[data-tone="bad"] {
  background: rgba(235, 87, 87, 0.08);
  color: #F7A8A8;
  border-color: rgba(235, 87, 87, 0.3);
}
.ut-form-alert[data-tone="ok"] {
  background: rgba(124, 212, 168, 0.08);
  color: #9EE4C1;
  border-color: rgba(124, 212, 168, 0.3);
}

.ut-strength { margin-top: 4px; }
.ut-strength-track {
  height: 5px;
  background: var(--ut-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ut-border);
}
.ut-strength-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .25s ease, background .25s ease;
}
.ut-strength[data-level="weak"]   .ut-strength-track span { background: var(--ut-danger); }
.ut-strength[data-level="fair"]   .ut-strength-track span { background: var(--ut-warn); }
.ut-strength[data-level="good"]   .ut-strength-track span { background: var(--ut-gold); }
.ut-strength[data-level="strong"] .ut-strength-track span { background: var(--ut-success); }
.ut-strength-label {
  font-size: 11.5px;
  margin-top: 5px;
  font-weight: 600;
}
.ut-strength[data-level="weak"]   .ut-strength-label { color: var(--ut-text-dim); }
.ut-strength[data-level="fair"]   .ut-strength-label { color: var(--ut-warn); }
.ut-strength[data-level="good"]   .ut-strength-label { color: var(--ut-gold); }
.ut-strength[data-level="strong"] .ut-strength-label { color: var(--ut-success); }

[data-form="phone"] input[name="code"] {
  text-align: center;
  letter-spacing: .5em;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-inline: 14px;
}

.ut-inbox-ico {
  font-size: 44px;
  text-align: center;
  margin-bottom: 6px;
}
.ut-inbox-copy {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ut-text-dim);
  margin: 0;
}
.ut-inbox-copy strong { color: var(--ut-gold); font-weight: 700; }

[data-form="inbox"] { text-align: center; }

.ut-auth-help {
  text-align: center;
  margin-top: -8px;
}
.ut-auth-help a {
  color: var(--ut-text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  font-size: 13px;
  transition: all .2s;
}
.ut-auth-help a:hover {
  color: #7CD4A8;
  border-color: rgba(124,212,168,0.35);
  background: rgba(124,212,168,0.05);
}

.ut-reassure-pay .pay-badge,
.ut-pay-logos .pay-badge {
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ut-reassure-pay .pay-badge img,
.ut-pay-logos .pay-badge img {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}

.ut-verify-banner {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
}
.ut-verify-banner[data-tone="ok"] {
  background: rgba(124,212,168,0.1);
  color: #9EE4C1;
  border-color: rgba(124,212,168,0.3);
}
.ut-verify-banner[data-tone="bad"] {
  background: rgba(235,87,87,0.1);
  color: #F7A8A8;
  border-color: rgba(235,87,87,0.3);
}

body.ut-needs-phone .woocommerce-MyAccount-navigation,
body.ut-needs-phone .ut-account-hero,
body.ut-needs-phone .woocommerce-MyAccount-content > *:not(.ut-addphone-shell) { display: none !important; }
body.ut-needs-phone .woocommerce-account .woocommerce {
  display: block !important;
  grid-template-columns: none !important;
}
.ut-addphone-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── REASSURANCE STRIP ── */
.ut-auth-reassure {
  padding: 22px 20px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.ut-reassure-line {
  font-size: 12.5px;
  color: var(--ut-text-dim);
  letter-spacing: .01em;
  text-align: center;
  margin: 0;
  line-height: 1.7;
}
.ut-reassure-line strong { color: var(--ut-gold); font-weight: 700; }
.ut-reassure-line .ut-dot { color: var(--ut-text-mute); margin: 0 8px; }
.ut-reassure-pay {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px dashed var(--ut-border);
  width: 100%;
}
.ut-reassure-pay .ut-pl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ut-reassure-pay .ut-pl-visa  { background: #fff; color: #1A1F71; }
.ut-reassure-pay .ut-pl-mc    { background: #fff; color: #EB001B; }
.ut-reassure-pay .ut-pl-mada  { background: #fff; color: #00A651; }
.ut-reassure-pay .ut-pl-apple { background: #000; color: #fff; }

/* Mobile */
@media (max-width: 560px) {
  .ut-auth-shell { padding: 20px 14px 40px; gap: 16px; }
  .ut-auth-panels { padding: 18px; }
  .ut-auth-title { font-size: 22px; }
  .ut-auth-sub { font-size: 13px; }
  .ut-auth-tab { font-size: 12px !important; padding: 10px 4px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Auth patch 3.2 — button specificity, password toggle, SVG trust
   pills, intl-tel-input dark+RTL overrides
   ══════════════════════════════════════════════════════════════════ */

/* Kill Astra/WC base button styles that leak into our text-links */
.ut-auth-shell button.ut-link-inline,
.ut-addphone-shell button.ut-link-inline,
.ut-addphone-shell button.ut-link-inline {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
}
.ut-auth-shell button.ut-link-inline { color: var(--ut-text-dim) !important; }
.ut-auth-shell button.ut-link-inline:hover {
  color: var(--ut-gold) !important;
  background: rgba(212,168,67,0.06) !important;
  border-color: rgba(212,168,67,0.22) !important;
  text-decoration: none;
}
.ut-auth-shell button.ut-link,
.ut-addphone-shell button.ut-link {
  min-height: 0 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.ut-auth-shell button.ut-link:hover,
.ut-addphone-shell button.ut-link:hover {
  color: #F3D47A !important;
  text-decoration: none;
}

/* Trust pills — SVG icons now, no emoji */
.ut-tr { gap: 6px; padding: 6px 12px; }
.ut-tr svg { width: 14px; height: 14px; color: var(--ut-gold); flex-shrink: 0; }

/* Password field — visibility toggle sits cleanly inside the input's right edge */
.ut-field.has-toggle .ut-input-row {
  position: relative;
  display: block;
}
.ut-field.has-toggle .ut-input-row input[type="password"],
.ut-field.has-toggle .ut-input-row input[type="text"] {
  padding-right: 46px;   /* reserve space for toggle */
}
.ut-auth-shell .ut-pw-toggle,
.ut-auth-shell button.ut-pw-toggle,
.woocommerce-account form.edit-account .ut-pw-toggle,
.woocommerce-account form.edit-account button.ut-pw-toggle {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-content: center !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ut-text-mute) !important;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
  transition: color .15s, background .15s, transform .15s;
  z-index: 2;
  min-height: 0 !important;
  font-size: 0 !important;
}
.ut-auth-shell .ut-pw-toggle:hover,
.ut-auth-shell .ut-pw-toggle:focus-visible,
.woocommerce-account form.edit-account .ut-pw-toggle:hover,
.woocommerce-account form.edit-account .ut-pw-toggle:focus-visible {
  color: var(--ut-gold) !important;
  background: rgba(212,168,67,0.10) !important;
  outline: none;
  transform: translateY(-50%) !important;
}
.ut-auth-shell .ut-pw-toggle:active,
.woocommerce-account form.edit-account .ut-pw-toggle:active { transform: translateY(-50%) scale(0.94) !important; }
/* Edit-account uses .form-row; scope the has-toggle wrapper there too */
.woocommerce-account form.edit-account .ut-field.has-toggle {
  position: relative;
}
.woocommerce-account form.edit-account .ut-field.has-toggle .ut-input-row {
  position: relative;
  display: block;
}
.woocommerce-account form.edit-account .ut-field.has-toggle .ut-input-row input[type="password"],
.woocommerce-account form.edit-account .ut-field.has-toggle .ut-input-row input[type="text"] {
  padding-right: 46px !important;
}
.ut-pw-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.ut-pw-toggle .ut-eye-off { display: none; }
.ut-pw-toggle[aria-pressed="true"] .ut-eye-on { display: none; }
.ut-pw-toggle[aria-pressed="true"] .ut-eye-off { display: block; }

/* WooCommerce's own woocommerce.js jQuery-injects <span class="password-input"> +
   <button class="show-password-input"> on every password field — that's the gold
   square on the left. Nuke it; we use our own .ut-pw-toggle. */
.ut-auth-shell .show-password-input,
.woocommerce-account .show-password-input,
body .show-password-input {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* The wrapper span adds no visual; keep it inline so flow doesn't break */
.ut-auth-shell .password-input,
.woocommerce-account .password-input {
  display: block !important;
  position: static !important;
  width: 100% !important;
}

/* Kill the browser's built-in password reveal button (Edge/Chromium on Windows).
   Global, unscoped: every known pseudo-element across Edge/Chrome/Safari. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="text"]::-ms-reveal,
input[type="text"]::-ms-clear,
input[type="password"]::-webkit-password-toggle-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button,
input[type="password"]::-webkit-caps-lock-indicator,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Trim password row height in edit-account — the wrapped layout was too tall */
.woocommerce-account form.edit-account .ut-field.has-toggle .ut-input-row input[type="password"],
.woocommerce-account form.edit-account .ut-field.has-toggle .ut-input-row input[type="text"] {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  min-height: 40px !important;
  font-size: 0.9rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   intl-tel-input v23 — separateDialCode layout
   A single gold-outlined chip on the physical LEFT that holds
   flag + arrow + "+966". Input's left padding is set to match the
   chip's fixed width, so digits never overlap the dial code.
   ═══════════════════════════════════════════════════════════════ */

/* Force wrapper LTR so the flag chip lands on the physical left.
   Scope to the inline wrapper only — the fullscreen popup container
   (.iti--fullscreen-popup) needs its own position:fixed from the
   intl-tel-input stylesheet to actually cover the viewport on mobile. */
.iti:not(.iti--fullscreen-popup):not(.iti--container),
html[dir="rtl"] .iti:not(.iti--fullscreen-popup):not(.iti--container) {
  width: 100%;
  direction: ltr !important;
  position: relative;
}

/* Explicitly restore fullscreen popup positioning in case other resets
   leak in. intl-tel-input v23 renders this as a child of <body>. */
.iti--fullscreen-popup.iti--container {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10000 !important;
  background: rgba(10, 10, 10, 0.95) !important;
}

/* The outer country button IS the chip — fixed width, gold-tinted */
.iti__country-container {
  position: absolute !important;
  top: 4px !important;
  bottom: 4px !important;
  left: 4px !important;
  right: auto !important;
  width: 104px !important;
  z-index: 2;
}
.iti__selected-country {
  width: 100% !important;
  height: 100% !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  background: linear-gradient(180deg, rgba(212,168,67,0.12), rgba(212,168,67,0.04)) !important;
  border: 1px solid rgba(212,168,67,0.32) !important;
  border-radius: 9px !important;
  color: var(--ut-text) !important;
  font-family: inherit !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.iti__selected-country:hover {
  background: linear-gradient(180deg, rgba(212,168,67,0.20), rgba(212,168,67,0.08)) !important;
  border-color: rgba(212,168,67,0.55) !important;
}
.iti__selected-country:focus-visible {
  outline: 2px solid var(--ut-gold);
  outline-offset: 2px;
}

/* The inner "primary" group (flag + arrow) — strip its background so only the chip has the tint */
.iti__selected-country-primary {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.iti__selected-country .iti__country-name {
  display: none !important;
}

/* Flag icon sizing */
.iti__flag { flex-shrink: 0; }

/* Dial code in gold, tabular figures, sits flush inside the chip */
.iti__selected-dial-code {
  color: var(--ut-gold) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-left: auto;    /* push dial code to the right edge of the chip */
  padding-left: 2px;
  white-space: nowrap;
}

/* Arrow — tuck next to the flag, not near the dial code */
.iti__arrow {
  border-top-color: var(--ut-gold) !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.iti__arrow--up { border-bottom-color: var(--ut-gold) !important; border-top-color: transparent !important; }

/* Input — clear the full chip width + an 8px gap */
.iti__tel-input,
html[dir="rtl"] .iti__tel-input,
.iti--separate-dial-code .iti__tel-input {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 120px !important;   /* 4 (gap) + 104 (chip) + 12 (breathing) */
  padding-right: 14px !important;
}

/* Dropdown panel */
.iti--inline-dropdown .iti__dropdown-content,
.iti__dropdown-content {
  background: var(--ut-bg-card) !important;
  border: 1px solid var(--ut-border-2) !important;
  color: var(--ut-text) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,168,67,0.08);
  overflow: hidden;
  margin-top: 6px;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  position: relative !important;
  z-index: 80 !important;
}
.iti__country-container .iti__dropdown-content {
  left: 0 !important;
  right: auto !important;
  width: min(316px, calc(100vw - 44px)) !important;
  min-width: min(316px, calc(100vw - 44px)) !important;
  max-width: calc(100vw - 44px) !important;
  z-index: 80 !important;
}
.iti__search-input {
  background: var(--ut-bg-soft) !important;
  color: var(--ut-text) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ut-border) !important;
  padding: 12px 14px !important;
  font-family: inherit !important;
  font-size: 14px;
  direction: ltr !important;
  text-align: left;
  width: 100% !important;
  box-sizing: border-box;
}
.iti__search-input::placeholder { color: var(--ut-text-mute) !important; }
.iti__country-list {
  background: transparent !important;
  max-height: 280px !important;
  direction: ltr !important;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  padding: 6px 8px !important;
  overflow-x: hidden !important;
}
.iti__country {
  width: 100% !important;
  min-width: 100% !important;
  padding: 10px 12px !important;
  color: var(--ut-text) !important;
  font-size: 14px;
  gap: 10px;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box;
  border-radius: 0;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(212,168,67,0.12) !important;
}
.iti__country-name { color: var(--ut-text) !important; }
.iti__dial-code {
  color: var(--ut-text-dim) !important;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

/* WC checkout — same treatment */
/* Account profile editor - read-first fields with explicit edit controls */
.woocommerce-account form.edit-account.ut-profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 4vw, 28px) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(18, 21, 29, 0.74) !important;
  border: 1px solid rgba(212,168,67,0.20) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ut-profile-form-head {
  display: grid;
  gap: 5px;
  margin-bottom: 2px;
}
.ut-profile-kicker {
  margin: 0;
  color: var(--ut-gold);
  font-size: 0.78rem;
  font-weight: 800;
}
.ut-profile-form-head h2,
.ut-profile-panel h3 {
  margin: 0;
  color: var(--ut-text);
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", Tahoma, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}
.ut-profile-form-head h2 { font-size: clamp(1.55rem, 5vw, 2.15rem); }
.ut-profile-form-head p,
.ut-profile-panel p { margin: 0; }
.ut-profile-form-head > p:last-child,
.ut-security-panel > div:first-child > p:last-child,
.ut-profile-help {
  color: var(--ut-text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}
.ut-profile-panel {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 3.5vw, 20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.065), rgba(255,255,255,0.02)),
    rgba(9, 12, 18, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}
.ut-profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ut-profile-panel-head h3 { font-size: 1.28rem; }
.ut-profile-panel-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(212,168,67,0.10);
  border: 1px solid rgba(212,168,67,0.24);
  color: #F0CF76;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.ut-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.woocommerce-account form.edit-account .ut-profile-grid .form-row,
.woocommerce-account form.edit-account .ut-profile-phone .form-row {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px;
}
.woocommerce-account form.edit-account .ut-profile-grid .form-row-wide { grid-column: 1 / -1; }
.woocommerce-account form.edit-account.ut-profile-form .form-row label,
.ut-phone-code label {
  color: #D8CBB8 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
.ut-profile-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}
.woocommerce-account form.edit-account.ut-profile-form input.input-text {
  min-height: 52px !important;
  padding: 13px 48px 13px 14px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.075) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  color: var(--ut-text) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.woocommerce-account form.edit-account.ut-profile-form input.input-text[readonly] {
  color: #F4EFE6 !important;
  cursor: default;
}
/* When the row is unlocked (pencil clicked) the input should visually feel
   active even on mobile, where the readonly→editable transition can otherwise
   look identical. Lift the surface, brighten the border. */
.woocommerce-account form.edit-account.ut-profile-form .ut-editable-row.is-editing input.input-text,
.woocommerce-account form.edit-account.ut-profile-form .ut-editable-row[data-editing="true"] input.input-text {
  background: rgba(255,255,255,0.115) !important;
  border-color: rgba(212,168,67,0.42) !important;
  color: #FFFFFF !important;
  cursor: text !important;
  caret-color: var(--ut-gold) !important;
}
.woocommerce-account form.edit-account.ut-profile-form input.input-text::placeholder { color: rgba(216,203,184,0.56) !important; }
.woocommerce-account form.edit-account.ut-profile-form input.input-text:focus {
  border-color: rgba(212,168,67,0.62) !important;
  box-shadow: 0 0 0 3px rgba(212,168,67,0.16), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.ut-profile-edit {
  position: absolute !important;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px !important;
  height: 34px !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(212,168,67,0.20) !important;
  border-radius: 12px !important;
  background: rgba(212,168,67,0.09) !important;
  color: var(--ut-gold) !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 2;
}
.ut-profile-edit svg { width: 16px; height: 16px; }
.ut-profile-edit:hover,
.ut-profile-edit:focus-visible {
  background: rgba(212,168,67,0.18) !important;
  border-color: rgba(212,168,67,0.46) !important;
  outline: none;
}
.ut-editable-row.is-editing .ut-profile-edit {
  background: var(--ut-gold) !important;
  color: #0A0A0A !important;
}
.ut-profile-help {
  display: block;
  margin-top: 2px;
}
.ut-phone-actions,
.ut-phone-code {
  display: grid;
  gap: 10px;
}
.ut-phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ut-mini-primary,
.ut-mini-secondary,
.ut-security-link {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  border-radius: 13px !important;
  padding: 10px 16px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.ut-mini-primary {
  border: 0 !important;
  background: linear-gradient(135deg, var(--ut-gold), var(--ut-gold-2)) !important;
  color: #0A0A0A !important;
  box-shadow: 0 10px 24px rgba(212,168,67,0.22) !important;
}
.ut-mini-secondary,
.ut-security-link {
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(212,168,67,0.22) !important;
  color: #F1D17B !important;
  box-shadow: none !important;
}
.ut-security-panel {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  align-items: center;
}
.ut-security-actions {
  display: grid;
  gap: 10px;
}
.ut-profile-submit { margin: 4px 0 0 !important; }
.woocommerce-account form.edit-account.ut-profile-form .ut-profile-submit .button {
  width: 100%;
  min-height: 50px;
  border-radius: 15px !important;
  font-size: 1rem !important;
}
.woocommerce-account form.edit-account.ut-profile-form .ut-form-alert,
.woocommerce-account form.edit-account.ut-profile-form [data-reset-alert] {
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
}
.woocommerce-account form.edit-account.ut-profile-form .ut-form-alert[data-tone="ok"],
.woocommerce-account form.edit-account.ut-profile-form [data-reset-alert][data-tone="ok"] {
  color: #DFFFEA;
  background: rgba(34,197,94,0.13);
  border: 1px solid rgba(34,197,94,0.28);
}
.woocommerce-account form.edit-account.ut-profile-form .ut-form-alert[data-tone="bad"],
.woocommerce-account form.edit-account.ut-profile-form [data-reset-alert][data-tone="bad"] {
  color: #FFD8D8;
  background: rgba(239,68,68,0.13);
  border: 1px solid rgba(239,68,68,0.28);
}
.woocommerce-account form.edit-account.ut-profile-form .iti__country-container { z-index: 12; }
.woocommerce-account form.edit-account.ut-profile-form .iti__dropdown-content { z-index: 90 !important; }
.woocommerce-account form.edit-account.ut-profile-form .ut-profile-phone .iti__tel-input {
  padding-left: 120px !important;
  padding-right: 48px !important;
}
.ut-auth-shell .iti__country-container,
.ut-addphone-shell .iti__country-container,
.woocommerce-account form.edit-account.ut-profile-form .iti__country-container {
  z-index: 70;
}

@media (max-width: 720px) {
  .ut-profile-grid,
  .ut-security-panel,
  .ut-phone-code-row {
    grid-template-columns: 1fr;
  }
  .ut-profile-panel-head { align-items: flex-start; }
  .ut-profile-panel-head h3 { font-size: 1.16rem; }
  .ut-profile-panel-head span {
    min-height: 28px;
    font-size: 0.72rem;
  }
  .woocommerce-account form.edit-account.ut-profile-form { border-radius: 20px !important; }
  .ut-mini-primary,
  .ut-mini-secondary,
.ut-security-link { width: 100%; }
}

.ut-phone-modal[hidden] {
  display: none !important;
}
.ut-phone-modal {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: grid;
  place-items: center;
  padding: 22px;
}
.ut-phone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ut-phone-modal-panel {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(212,168,67,0.28);
  background:
    linear-gradient(150deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(16, 18, 24, 0.94);
  box-shadow: 0 28px 90px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.06);
}
.ut-phone-modal-panel h3 {
  margin: 0;
  color: #fff;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", Tahoma, Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}
.ut-phone-modal-panel label {
  color: #D8CBB8;
  font-size: 0.86rem;
  font-weight: 800;
}
.ut-phone-modal-panel input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.075);
  color: #fff;
  text-align: center;
  direction: ltr;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.ut-phone-modal-close {
  position: absolute !important;
  top: 12px;
  left: 12px;
  width: 34px !important;
  height: 34px !important;
  min-height: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 22px !important;
  box-shadow: none !important;
}
body.ut-phone-modal-open {
  overflow: hidden;
}

#billing_phone_field .iti,
#shipping_phone_field .iti,
.woocommerce-checkout .iti { width: 100%; direction: ltr !important; }
#billing_phone_field .iti__tel-input,
#shipping_phone_field .iti__tel-input {
  padding-left: 120px !important;
  padding-right: 14px !important;
  direction: ltr !important;
  text-align: left !important;
}

/* ============== AJAX NAV — loading state ============== */
/* Applied by arabut-account-ajax.js during fetch; kept subtle so it reads
   as "something is happening" without a full spinner. */
.woocommerce-MyAccount-content {
  transition: opacity 120ms ease;
}
.woocommerce-MyAccount-content.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
/* Visually-hidden helper for aria-live announcements */
.ut-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════
   Auth patch 3.3 — rhythm + hierarchy for the phone/OTP flow
   Groups the three secondary actions so they no longer read as three
   equal primary choices. The form's base flex gap is 16px; these rules
   tighten/loosen specific sibling pairs to create grouping.
   ══════════════════════════════════════════════════════════════════ */

/* Helper line under the OTP input — supports the input, doesn't compete
   with it. Lighter weight, tighter to the input above, comfortable
   spacing below the code helper wrapper. */
.ut-auth-form[data-form="phone"] .ut-field[data-step="code"] .ut-hint {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.72;
  margin-top: 2px;
}
.ut-auth-form[data-form="phone"] .ut-field[data-step="code"] .ut-hint strong {
  font-weight: 600;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.ut-auth-form[data-form="phone"] .ut-field[data-step="code"] .ut-hint [data-timer] {
  display: inline-block;
  margin-inline-start: 4px;
  opacity: 0.85;
}

/* Primary verify button gets a touch more air above — separating input
   from action clarifies the call-to-action. */
.ut-auth-form[data-form="phone"] .ut-btn-primary[data-btn="verify"]:not([hidden]) {
  margin-top: 4px;
}

/* GROUP A — step-local secondary actions (resend + edit phone).
   These two belong together: both act on the current OTP attempt.
   Tighten their vertical gap so they read as a pair, not individual
   primaries. The 16px flex gap is offset via negative margin on the
   second item — clean and doesn't disrupt other children. */
.ut-auth-form[data-form="phone"] .ut-link-inline[data-resend]:not([hidden]) {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}
.ut-auth-form[data-form="phone"] .ut-link-inline[data-back-to-phone]:not([hidden]) {
  font-size: 12.5px;
  padding: 2px 0;
  margin-top: -8px;  /* pull up toward the resend link — group them visually */
}

/* GROUP B — "back to email login" — exits the entire phone flow.
   Belongs in its own tier: reduced weight, subdivided from the form
   by a hairline, more generous spacing above so the eye registers the
   shift from "OTP actions" to "nevermind, different method". */
.ut-auth-form[data-form="phone"] .ut-link-inline.ut-link-back[data-view="login"] {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.65;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.01em;
}
.ut-auth-form[data-form="phone"] .ut-link-inline.ut-link-back[data-view="login"]:hover {
  opacity: 1;
}

/* Same hierarchy rules for the SIGNUP form's bottom link, for consistency. */
.ut-auth-form[data-form="signup"] .ut-link-inline.ut-link-back[data-view="login"],
.ut-auth-form[data-form="login"] .ut-link-inline.ut-link-back {
  font-size: 12px;
  opacity: 0.65;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================================================================
   Dashboard v4: mockup-matched rebuild
   ----------------------------------------------------------------
   Scope: only the main /my-account/ dashboard view (endpoint-none).
   The full content (breadcrumb, header, profile, hero, stats, orders)
   is rendered by `arabut_account_dashboard()` into .ut-dash4.
   On this view we hide the old sidebar-injected hero + profile so
   the content column owns the layout.
   ================================================================ */

/* Hide the sidebar hero block on the dashboard screen only. The sidebar
   `ut-account-profile` is duplicated inside the content column, so we
   hide the sidebar copy on this endpoint too (it still shows on orders/
   addresses/edit pages where the main content has no header). */
body.woocommerce-account:not(.woocommerce-view-order):not(.woocommerce-orders):not(.woocommerce-edit-account):not(.woocommerce-edit-address):not(.woocommerce-downloads)
  .woocommerce > .ut-account-hero,
body.woocommerce-account:not(.woocommerce-view-order):not(.woocommerce-orders):not(.woocommerce-edit-account):not(.woocommerce-edit-address):not(.woocommerce-downloads)
  .woocommerce > .ut-account-profile {
  display: none !important;
}
/* Fallback: when the dashboard content (.ut-dash4) is present, the
   sidebar versions are redundant regardless of body class. */
.woocommerce-account .woocommerce:has(.ut-dash4) > .ut-account-hero,
.woocommerce-account .woocommerce:has(.ut-dash4) > .ut-account-profile {
  display: none !important;
}
/* Also hide the original sidebar-rendered nav when we render our own
   nav inside the dashboard content column (prevents duplicate pill rows). */
.woocommerce-account .woocommerce:has(.ut-dash4 > .woocommerce-MyAccount-navigation)
  > .woocommerce-MyAccount-navigation {
  display: none !important;
}

/* Root container inside .woocommerce-MyAccount-content */
.ut-dash4 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ut-text);
  max-width: 100%;
}

/* ── 1. Breadcrumb ─────────────────────────────────────────────── */
.ut-dash4-crumb {
  font-size: 12.5px;
  color: var(--ut-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  letter-spacing: 0.01em;
}
.ut-dash4-crumb a {
  color: rgba(212, 168, 67, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.ut-dash4-crumb a:hover {
  color: var(--ut-gold);
}
.ut-dash4-crumb .sep {
  color: var(--ut-text-mute);
  opacity: 0.7;
  font-weight: 300;
}
.ut-dash4-crumb .cur {
  color: var(--ut-gold);
  font-weight: 600;
}

/* ── 2. Page header (title + subtitle + coin decoration) ───────── */
.ut-dash4-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 4px;
  position: relative;
  min-height: 74px;
}
.ut-dash4-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.ut-dash4-title {
  margin: 0 !important;
  font-size: clamp(1.55rem, 4.4vw, 1.95rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
}
.ut-dash4-title::after { display: none !important; }
.ut-dash4-title .bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ut-gold);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.65);
  flex-shrink: 0;
  margin-top: 4px;
}
.ut-dash4-sub {
  margin: 6px 0 0 !important;
  font-size: 0.82rem;
  color: var(--ut-text-dim);
  line-height: 1.55;
  max-width: 34ch;
}
.ut-dash4-head-coin {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0.92;
}
.ut-dash4-head-coin .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 168, 67, 0.35);
  animation: ut-dash4-spin 14s linear infinite;
}
.ut-dash4-head-coin img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(212, 168, 67, 0.32));
}
@keyframes ut-dash4-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ut-dash4-head-coin .ring { animation: none; }
}

/* ── 3. Profile card ───────────────────────────────────────────── */
.ut-dash4-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.ut-dash4-avatar {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #F5D88A 0%, var(--ut-gold) 45%, #B08520 100%);
  color: #1A0F00;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: "Thmanyah Sans", sans-serif;
  border: 1.5px solid rgba(255, 232, 178, 0.45);
  box-shadow:
    0 4px 12px rgba(212, 168, 67, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  user-select: none;
}
.ut-dash4-profile-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ut-dash4-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ut-dash4-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ut-text-dim);
  direction: ltr;
  text-align: start;
}
.ut-dash4-email svg {
  color: var(--ut-gold);
  opacity: 0.75;
  flex-shrink: 0;
}
.ut-dash4-email span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── 5. Welcome hero (big, with decorative coin + arcs bg) ─────── */
.ut-dash4-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  background:
    linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, rgba(10, 10, 10, 0) 55%),
    var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* concentric arcs emanating from the coin (physical-left in RTL) */
.ut-dash4-hero-bg {
  position: absolute;
  inset-inline-start: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background-image:
    radial-gradient(circle at center, transparent 50px, rgba(212, 168, 67, 0.12) 51px, transparent 52px),
    radial-gradient(circle at center, transparent 80px, rgba(212, 168, 67, 0.09) 81px, transparent 82px),
    radial-gradient(circle at center, transparent 120px, rgba(212, 168, 67, 0.07) 121px, transparent 122px),
    radial-gradient(circle at center, transparent 160px, rgba(212, 168, 67, 0.05) 161px, transparent 162px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.ut-dash4-hero-coin {
  flex: 0 0 auto;
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.ut-dash4-hero-coin img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(212, 168, 67, 0.35));
  animation: ut-dash4-float 4.5s ease-in-out infinite;
}
.ut-dash4-hero-coin .arc {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(212, 168, 67, 0.55);
  border-right-color: rgba(212, 168, 67, 0.35);
  transform: rotate(-25deg);
}
.ut-dash4-hero-coin .arrow {
  position: absolute;
  top: -4px;
  inset-inline-end: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ut-gold) 0%, var(--ut-gold-2) 100%);
  color: #1A0F00;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(212, 168, 67, 0.45);
  z-index: 2;
}
@keyframes ut-dash4-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-3px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ut-dash4-hero-coin img { animation: none; }
}
.ut-dash4-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.ut-dash4-kicker {
  font-size: 0.72rem;
  color: var(--ut-gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.ut-dash4-hero-name {
  margin: 0 !important;
  font-size: clamp(1.6rem, 5vw, 2.1rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: transparent !important;
}
.ut-dash4-hero-name::after { display: none !important; }
.ut-dash4-hero-sub {
  margin: 6px 0 0 !important;
  font-size: 0.82rem;
  color: var(--ut-text-dim);
  line-height: 1.55;
  max-width: 38ch;
}
.ut-dash4-hero-sub strong {
  color: var(--ut-gold);
  font-weight: 800;
}

/* ── 6. Stats grid (2×2 on mobile) ─────────────────────────────── */
.ut-dash4-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .ut-dash4-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (max-width: 380px) {
  .ut-dash4-stats { grid-template-columns: 1fr; }
}
.ut-dash4-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.ut-dash4-stat:hover {
  border-color: var(--ut-border-2);
  transform: translateY(-1px);
}
.ut-dash4-stat-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(212, 168, 67, 0.22), rgba(212, 168, 67, 0.06) 70%);
  border: 1px solid rgba(212, 168, 67, 0.22);
  color: var(--ut-gold);
}
.ut-dash4-stat.is-gold .ut-dash4-stat-ico {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.3), rgba(212, 168, 67, 0.08));
  border-color: rgba(212, 168, 67, 0.4);
}
.ut-dash4-stat-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ut-dash4-stat-label {
  font-size: 0.72rem;
  color: var(--ut-text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ut-dash4-stat-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.ut-dash4-stat-value .woocommerce-Price-amount,
.ut-dash4-stat-value bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.ut-dash4-stat.is-gold .ut-dash4-stat-value { color: var(--ut-gold); }
.ut-dash4-stat-caption {
  font-size: 0.7rem;
  color: var(--ut-text-mute);
  line-height: 1.35;
  margin-top: 2px;
}

/* ── Active-order alert (between stats and recent orders) ──────── */
.ut-dash4-active {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(212, 168, 67, 0.03));
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 14px;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s;
}
.ut-dash4-active:hover {
  border-color: rgba(212, 168, 67, 0.5);
  transform: translateY(-1px);
}
.ut-dash4-active-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.28), rgba(212, 168, 67, 0.08));
  border: 1px solid rgba(212, 168, 67, 0.3);
  display: grid;
  place-items: center;
  color: var(--ut-gold);
}
.ut-dash4-active-body { flex: 1 1 auto; min-width: 0; }
.ut-dash4-active-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.ut-dash4-active-sub {
  font-size: 0.74rem;
  color: var(--ut-text-dim);
  margin-top: 2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ut-dash4-active-cta {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--ut-gold);
  font-weight: 700;
}

/* ── 7. Recent orders section ──────────────────────────────────── */
.ut-dash4-orders {
  background: var(--ut-bg-card);
  border: 1px solid var(--ut-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.ut-dash4-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ut-dash4-orders-head h3 {
  margin: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: transparent !important;
  letter-spacing: -0.01em;
}
.ut-dash4-orders-head h3::after { display: none !important; }
.ut-dash4-link {
  font-size: 0.78rem;
  color: var(--ut-gold) !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.ut-dash4-link:hover { opacity: 0.82; }

.ut-dash4-orders-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ut-dash4-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    "num  date   status status"
    "num  total  total  link";
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: var(--ut-bg-soft);
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
@media (min-width: 640px) {
  .ut-dash4-order-row {
    grid-template-columns: auto auto 1fr auto auto;
    grid-template-areas: "num date status total link";
  }
}
.ut-dash4-order-row:hover {
  border-color: var(--ut-border-2);
  background: var(--ut-bg-card);
  transform: translateY(-1px);
}
.ut-dash4-order-num    { grid-area: num;    color: var(--ut-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.ut-dash4-order-date   { grid-area: date;   color: var(--ut-text-dim); font-size: 12.5px; }
.ut-dash4-order-status {
  grid-area: status;
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.12);
  color: var(--ut-gold);
  border: 1px solid rgba(212, 168, 67, 0.25);
  white-space: nowrap;
}
.ut-dash4-order-status.is-completed {
  background: rgba(90, 180, 120, 0.12);
  color: #86D6A1;
  border-color: rgba(90, 180, 120, 0.3);
}
.ut-dash4-order-status.is-cancelled,
.ut-dash4-order-status.is-failed,
.ut-dash4-order-status.is-refunded {
  background: rgba(224, 92, 92, 0.1);
  color: #FF9B9B;
  border-color: rgba(224, 92, 92, 0.25);
}
.ut-dash4-order-total {
  grid-area: total;
  color: var(--ut-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}
.ut-dash4-order-total .woocommerce-Price-amount,
.ut-dash4-order-total bdi {
  color: inherit;
  font-weight: inherit;
}
.ut-dash4-order-link {
  grid-area: link;
  justify-self: end;
  font-size: 12.5px;
  color: var(--ut-text-dim);
  text-decoration: none !important;
  padding: 5px 12px;
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.ut-dash4-order-link:hover {
  color: var(--ut-gold);
  border-color: var(--ut-border-2);
}

/* Empty state */
.ut-dash4-empty {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1.5px dashed rgba(212, 168, 67, 0.28);
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.02);
  text-align: center;
}
.ut-dash4-empty-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(212, 168, 67, 0.18), rgba(212, 168, 67, 0.03) 70%);
  border: 1px solid rgba(212, 168, 67, 0.22);
  color: var(--ut-gold);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.ut-dash4-empty-title {
  color: var(--ut-text);
  font-size: 0.92rem;
  font-weight: 700;
}
.ut-dash4-empty-cta {
  color: var(--ut-gold) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  margin-top: 4px;
}
.ut-dash4-empty-cta:hover {
  background: rgba(212, 168, 67, 0.1);
  border-color: var(--ut-gold);
  transform: translateY(-1px);
}

/* Mobile-specific tightening */
@media (max-width: 520px) {
  .ut-dash4 { gap: 14px; }
  .ut-dash4-head { min-height: 62px; }
  .ut-dash4-head-coin { width: 60px; height: 60px; }
  .ut-dash4-head-coin img { width: 46px; height: 46px; }
  .ut-dash4-hero { padding: 18px 16px; gap: 12px; border-radius: 16px; }
  .ut-dash4-hero-coin { width: 82px; height: 82px; }
  .ut-dash4-hero-coin img { width: 66px; height: 66px; }
  .ut-dash4-hero-bg {
    width: 240px;
    height: 240px;
    background-image:
      radial-gradient(circle at center, transparent 40px, rgba(212, 168, 67, 0.12) 41px, transparent 42px),
      radial-gradient(circle at center, transparent 65px, rgba(212, 168, 67, 0.09) 66px, transparent 67px),
      radial-gradient(circle at center, transparent 95px, rgba(212, 168, 67, 0.07) 96px, transparent 97px),
      radial-gradient(circle at center, transparent 125px, rgba(212, 168, 67, 0.05) 126px, transparent 127px);
  }
  .ut-dash4-profile { padding: 12px 14px; gap: 12px; border-radius: 14px; }
  .ut-dash4-avatar { width: 46px; height: 46px; min-width: 46px; font-size: 19px; }
  .ut-dash4-stat { padding: 14px; gap: 10px; }
  .ut-dash4-stat-ico { width: 34px; height: 34px; }
  .ut-dash4-stat-value { font-size: 1.2rem; }
  .ut-dash4-orders { padding: 14px; border-radius: 14px; }
}

/* ========== Phone-section dirty state (edit-account) ========== */
/* "موثق" pill and the "confirm before save" alert are mutually exclusive:
   pill shows only when input matches the saved baseline; alert shows only when dirty. */
.ut-profile-phone[hidden] { display: none !important; }
.ut-profile-phone .ut-phone-pill[hidden] { display: none !important; }
.ut-form-alert--phone-dirty[hidden] { display: none !important; }
.ut-profile-phone.is-verified .ut-phone-pill {
  background: rgba(124, 212, 168, 0.10) !important;
  border-color: rgba(124, 212, 168, 0.32) !important;
  color: #B6E8CF !important;
}
.ut-profile-phone.is-dirty .ut-phone-pill {
  /* Pill hidden via JS when dirty; this is a safety fallback if JS attribute fails */
  display: none !important;
}
/* Reuse the existing alert tones — this just makes spacing tight inside the panel */
.woocommerce-account form.edit-account.ut-profile-form .ut-form-alert--phone-dirty {
  margin: 0;
}

/* ========== "Default currency" picker (WooPayments) — match form fields ==========
   Per user feedback the actual rendered widget is the WooPayments multi-
   currency dropdown (`#wcpay_selected_currency`), wrapped in a generic
   <p class="form-row form-row-first">. Earlier rules targeted WPML/WCML
   class names that don't match — those are gone. We now style the WCPay
   form-row and select to look like the rest of the edit-account inputs:
   dark surface card, gold border, gold focus ring, gold dropdown chevron.
   Kept a couple of broad `[class*="currency-switcher"]` fallbacks so a
   future plugin swap still inherits the look. */

/* Wrap the WCPay form-row as a card matching `.ut-profile-panel` exactly —
   same glass-gradient surface, same 18px radius, same inner highlight,
   same border tone — so the currency selector reads as just another section
   in the form, not a foreign plugin block. */
body.woocommerce-edit-account .form-row:has(> #wcpay_selected_currency),
body.woocommerce-edit-account [class*="currency-switcher"] {
  display: grid !important;
  gap: 16px !important;
  padding: clamp(14px, 3.5vw, 20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(9, 12, 18, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  margin: 0 0 18px !important;
  outline: 0 !important;
  box-sizing: border-box;
  width: 100% !important;
  float: none !important;        /* WC's `form-row-first` adds float:left — kill it */
}

/* Label above the select — same size + weight as `.ut-profile-panel-head h3`
   (the heading on every other section like "البيانات الأساسية", "رقم الجوال"). */
body.woocommerce-edit-account .form-row > label[for="wcpay_selected_currency"],
body.woocommerce-edit-account [class*="currency-switcher"] > label,
body.woocommerce-edit-account [class*="currency-switcher"] > h2,
body.woocommerce-edit-account [class*="currency-switcher"] > .widget-title {
  display: block !important;
  color: var(--ut-text) !important;       /* match other section h3s — white not gold */
  font-size: 1.28rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: start !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* The <select> itself — same chrome as our other inputs */
body.woocommerce-edit-account select#wcpay_selected_currency,
body.woocommerce-edit-account [class*="currency-switcher"] select {
  width: 100% !important;
  padding: 12px 14px !important;
  background-color: var(--ut-bg) !important;
  color: var(--ut-text) !important;
  border: 1px solid var(--ut-border) !important;
  border-radius: 10px !important;
  font-family: "Thmanyah Sans", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  /* Custom dropdown chevron in gold — placed on the inline-start side for RTL */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  padding-inline-end: 14px !important;
  padding-inline-start: 38px !important;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
body.woocommerce-edit-account select#wcpay_selected_currency:hover,
body.woocommerce-edit-account select#wcpay_selected_currency:focus,
body.woocommerce-edit-account [class*="currency-switcher"] select:hover,
body.woocommerce-edit-account [class*="currency-switcher"] select:focus {
  border-color: var(--ut-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.14) !important;
}

/* Native dropdown options — readable on dark theme */
body.woocommerce-edit-account select#wcpay_selected_currency option,
body.woocommerce-edit-account [class*="currency-switcher"] select option {
  background: var(--ut-bg-card);
  color: var(--ut-text);
}

/* Helper text underneath ("Select your preferred currency...") */
body.woocommerce-edit-account .form-row:has(> #wcpay_selected_currency) > span,
body.woocommerce-edit-account .form-row:has(> #wcpay_selected_currency) > span > em,
body.woocommerce-edit-account [class*="currency-switcher"] p,
body.woocommerce-edit-account [class*="currency-switcher"] small,
body.woocommerce-edit-account [class*="currency-switcher"] .description {
  display: block !important;
  color: var(--ut-text-dim) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  font-style: normal !important;     /* the WCPay <em> wrapper italicizes by default */
  margin: 8px 0 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  background: transparent !important;
  text-align: start;
}

/* Kill any onboarding-tour "step N" badges or outlines a plugin might inject */
body.woocommerce-edit-account .form-row:has(> #wcpay_selected_currency) .pointer-buttons,
body.woocommerce-edit-account .form-row:has(> #wcpay_selected_currency) .wp-pointer,
body.woocommerce-edit-account [class*="currency-switcher"] .pointer-buttons,
body.woocommerce-edit-account [class*="currency-switcher"] .wp-pointer,
body.woocommerce-edit-account [class*="currency-switcher"] [class*="step-badge"],
body.woocommerce-edit-account [class*="currency-switcher"] [class*="step-num"],
body.woocommerce-edit-account [class*="currency-switcher"] [class*="onboard"],
body.woocommerce-edit-account [class*="currency-switcher"] [class*="-tour-"] {
  display: none !important;
}

/* ========== Store-notice announcement bar (WooCommerce demo_store) ==========
   The "We noticed you're visiting from {country}..." prompt rendered by
   WooPayments multi-currency. Default WC styling is a beige banner that
   clashes with the dark theme. We turn it into a sleek dark announcement
   bar pinned to the top of the viewport, with a globe icon, gold accent
   for the country/currency name, and a clear dismiss control.

   Position decision: pinned above the site header (`position: sticky` at
   top:0 of the body). Reasoning — visitors should see the currency-switch
   notice even if they scroll past the header; matches Apple/Stripe-style
   announcement bars; the site header retains its own z-index below this. */
body .woocommerce-store-notice.demo_store,
body p.woocommerce-store-notice.demo_store {
  position: sticky !important;
  top: 0 !important;
  inset-inline: 0 !important;
  z-index: 9000 !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  background: linear-gradient(90deg, #110D07 0%, #1A130A 50%, #110D07 100%) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.32) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.55) !important;
  color: var(--ut-text, #EDE4D0) !important;
  font-family: "Thmanyah Sans", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: start !important;
  text-shadow: none !important;
  /* Layout — globe icon · message+button · dismiss */
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
  /* Soft enter — reduced if user prefers less motion */
  animation: utStoreNoticeIn 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes utStoreNoticeIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body .woocommerce-store-notice.demo_store,
  body p.woocommerce-store-notice.demo_store {
    animation: none !important;
  }
}
/* Globe glyph rendered as a leading pseudo */
body .woocommerce-store-notice.demo_store::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 010 20'/><path d='M12 2a15.3 15.3 0 000 20'/></svg>") center/contain no-repeat;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(212, 168, 67, 0.32));
}
/* The "switch back" link — pill-shaped gold button */
body .woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  margin: 0 4px !important;
  padding: 6px 14px !important;
  background: linear-gradient(135deg, var(--ut-gold, #D4A843), var(--ut-gold-2, #B8892E)) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #0A0A0A !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
body .woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link):hover,
body .woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link):focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(212, 168, 67, 0.32);
  outline: none;
}
@media (prefers-reduced-motion: no-preference) {
  body .woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link):hover {
    transform: translateY(-1px);
  }
}
/* Soft gold accent for the inline country/currency mention.
   Inline strong/em wrappers aren't always present, so we instead
   accent the "switch back" hint via the link styling above and
   add a subtle gold tint to the wrapper text. */
body .woocommerce-store-notice.demo_store strong,
body .woocommerce-store-notice.demo_store em,
body .woocommerce-store-notice.demo_store .ut-store-notice-country,
body .woocommerce-store-notice.demo_store .ut-store-notice-currency {
  color: var(--ut-gold, #D4A843) !important;
  font-weight: 700 !important;
  font-style: normal !important;
}
/* Dismiss × — far-end, restrained */
body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: 30px !important;
  height: 30px !important;
  margin-inline-start: auto !important;
  padding: 0 !important;
  background: rgba(212, 168, 67, 0.08) !important;
  border: 1px solid rgba(212, 168, 67, 0.24) !important;
  border-radius: 50% !important;
  color: var(--ut-gold, #D4A843) !important;
  font-size: 0 !important;       /* hide the literal word "Dismiss" */
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link::after {
  content: "×";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:hover,
body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:focus-visible {
  background: rgba(212, 168, 67, 0.18) !important;
  border-color: var(--ut-gold, #D4A843) !important;
  outline: none;
}
/* Mobile — let the row stack but keep the dismiss reachable */
@media (max-width: 560px) {
  body .woocommerce-store-notice.demo_store,
  body p.woocommerce-store-notice.demo_store {
    padding: 10px 14px !important;
    font-size: 0.84rem !important;
    gap: 8px 10px !important;
  }
  body .woocommerce-store-notice.demo_store::before {
    width: 18px;
    height: 18px;
  }
  body .woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link) {
    padding: 5px 11px !important;
    font-size: 0.76rem !important;
  }
  body .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ========== Account/order final pass: compact nav + real order cards ========== */
@media (max-width: 760px) {
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation {
    padding: 4px !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    align-items: center !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li,
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li:hover {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a {
    min-height: 42px !important;
    padding: 7px 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.025) !important;
    box-shadow: none !important;
    font-size: clamp(0.58rem, 2.7vw, 0.72rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a::before {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    background-size: 14px 14px !important;
  }

  body.woocommerce-orders .ut-panel {
    padding: 16px !important;
    border-radius: 22px !important;
  }
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr,
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "number number"
      "status total"
      "date date"
      "actions actions" !important;
    gap: 11px 12px !important;
    padding: 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(212,168,67,0.16) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(212,168,67,0.12), transparent 36%),
      linear-gradient(145deg, rgba(255,255,255,0.058), rgba(255,255,255,0.016)),
      rgba(10, 13, 18, 0.78) !important;
  }
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr::before,
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-number {
    grid-area: number !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-number::before {
    content: none !important;
    display: none !important;
  }
  body.woocommerce-orders .ut-order-main-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
    gap: 12px !important;
    align-items: center !important;
    direction: ltr !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.woocommerce-orders .ut-order-thumb {
    grid-column: 2 !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212,168,67,0.20) !important;
    background: rgba(255,255,255,0.05) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }
  body.woocommerce-orders .ut-order-thumb img,
  body.woocommerce-orders .ut-order-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  body.woocommerce-orders .ut-order-main-copy {
    grid-column: 1 !important;
    min-width: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  body.woocommerce-orders .ut-order-main-copy strong {
    display: block !important;
    max-width: none !important;
    color: #fff !important;
    font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
    font-size: clamp(0.94rem, 4vw, 1.08rem) !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body.woocommerce-orders .ut-order-main-copy small {
    display: block !important;
    margin-top: 4px !important;
    color: rgba(237,228,208,0.56) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status {
    grid-area: status !important;
    justify-self: start !important;
    align-self: center !important;
    font-size: 0 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status .ut-order-status,
  body.woocommerce-orders .ut-order-status {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: rgba(212,168,67,0.13) !important;
    border: 1px solid rgba(212,168,67,0.24) !important;
    color: var(--ut-gold, #D4A843) !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total {
    grid-area: total !important;
    justify-self: end !important;
    text-align: left !important;
    color: var(--ut-gold, #D4A843) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::after,
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date {
    grid-area: date !important;
    justify-self: stretch !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    direction: rtl !important;
    text-align: right !important;
    color: rgba(237,228,208,0.64) !important;
    font-size: 0.78rem !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date time::before {
    content: "تاريخ الطلب: " !important;
    color: rgba(212,168,67,0.70) !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 0 !important;
    padding-top: 2px !important;
    border-top: 0 !important;
  }
}

/* ========== View order final pass: single clear total + readable contact card ========== */
.woocommerce-view-order .woocommerce-order-details > h2,
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title {
  color: transparent !important;
  font-size: 0 !important;
}
.woocommerce-view-order .woocommerce-order-details > h2::after,
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title::after {
  content: "تفاصيل الطلب";
  color: #fff !important;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
  font-size: clamp(1.22rem, 5vw, 1.5rem) !important;
  font-weight: 950 !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table td.product-total,
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.cart-subtotal {
  display: none !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total {
  border-color: rgba(212,168,67,0.20) !important;
  background: rgba(212,168,67,0.08) !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total th::after {
  content: "إجمالي الطلب" !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr:not(.order-total):last-child th::after {
  content: "وسيلة الدفع" !important;
}

.woocommerce-view-order .woocommerce-customer-details {
  background:
    radial-gradient(circle at 0% 0%, rgba(212,168,67,0.10), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(18, 19, 23, 0.76) !important;
  border-color: rgba(212,168,67,0.16) !important;
}
.woocommerce-view-order .woocommerce-customer-details h2::after,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title::after {
  content: "بيانات التواصل" !important;
}
.woocommerce-view-order .woocommerce-customer-details address {
  display: block !important;
  padding: 15px !important;
  border-radius: 16px !important;
  background: rgba(7,9,12,0.34) !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.woocommerce-view-order .woocommerce-customer-details address br {
  display: block !important;
}
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-view-order .woocommerce-customer-details address a[href^="tel"],
.woocommerce-view-order .woocommerce-customer-details address a[href^="mailto"] {
  display: block !important;
  margin-top: 6px !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
.woocommerce-view-order .ut-order-contact-edit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(212,168,67,0.24) !important;
  background: rgba(212,168,67,0.09) !important;
  color: var(--ut-gold, #D4A843) !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

/* Impeccable account/order pass: compact nav, legible order cards, one clear total. */
@media (max-width: 760px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .ut-dash4 .woocommerce-MyAccount-navigation {
    padding: 6px !important;
    border-radius: 18px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul,
  .ut-dash4 .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li,
  .ut-dash4 .woocommerce-MyAccount-navigation li {
    border-radius: 14px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a,
  .ut-dash4 .woocommerce-MyAccount-navigation li a {
    min-height: 42px !important;
    padding: 8px 3px !important;
    gap: 4px !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a::before,
  .ut-dash4 .woocommerce-MyAccount-navigation li a::before {
    width: 15px !important;
    height: 15px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #FFAAAA !important;
  }

  body.woocommerce-orders .ut-panel {
    padding: 16px !important;
    border-radius: 20px !important;
  }
  body.woocommerce-orders .woocommerce-orders-table tbody tr,
  body.woocommerce-orders table.shop_table.my_account_orders tbody tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "number"
      "status"
      "date"
      "total"
      "actions" !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(212,168,67,0.14) !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(212,168,67,0.10), transparent 34%),
      linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.016)),
      rgba(12,15,19,0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 18px 44px rgba(0,0,0,0.24) !important;
  }
  body.woocommerce-orders .ut-order-main-link {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #fff !important;
  }
  body.woocommerce-orders .ut-order-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212,168,67,0.18);
    background: rgba(255,255,255,0.045);
  }
  body.woocommerce-orders .ut-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  body.woocommerce-orders .ut-order-thumb-fallback {
    color: var(--ut-gold, #D4A843);
    font-size: 0.8rem;
    font-weight: 900;
  }
  body.woocommerce-orders .ut-order-main-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
    text-align: right;
  }
  body.woocommerce-orders .ut-order-main-copy strong {
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.woocommerce-orders .ut-order-main-copy small {
    color: rgba(237,228,208,0.58) !important;
    font-size: 0.76rem;
    font-weight: 800;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date,
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    color: rgba(237,228,208,0.78) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-align: right !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date::before {
    content: "تاريخ الطلب";
    color: rgba(212,168,67,0.72);
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::before {
    content: "الإجمالي";
    color: rgba(212,168,67,0.72);
  }
  body.woocommerce-orders .ut-order-count {
    color: rgba(237,228,208,0.48);
    font-size: 0.72rem;
  }

  .woocommerce-view-order .woocommerce-order-details > h2,
  .woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title {
    color: transparent !important;
    font-size: 0 !important;
  }
  .woocommerce-view-order .woocommerce-order-details > h2::after,
  .woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title::after {
    content: "تفاصيل الطلب";
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table td.product-total,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.cart-subtotal {
    display: none !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr {
    background:
      linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
      rgba(7, 9, 12, 0.62) !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total {
    border-color: rgba(212,168,67,0.22) !important;
  }
  .woocommerce-view-order .woocommerce-customer-details {
    border: 1px solid rgba(212,168,67,0.18) !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(212,168,67,0.10), transparent 32%),
      linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
      rgba(18, 19, 23, 0.76) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 44px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .woocommerce-view-order .woocommerce-customer-details address {
    gap: 8px !important;
    line-height: 1.65 !important;
    background: rgba(6,8,11,0.34) !important;
  }
  .woocommerce-view-order .ut-order-contact-edit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212,168,67,0.22);
    background: rgba(212,168,67,0.08);
    color: var(--ut-gold, #D4A843) !important;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none !important;
  }
}

/* Final mobile order/nav override: one flat row, readable order summary. */
@media (max-width: 760px) {
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation {
    padding: 5px !important;
    border-radius: 17px !important;
    background: rgba(9,10,12,0.72) !important;
    border: 1px solid rgba(212,168,67,0.14) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    overflow: hidden !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    overflow: visible !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a {
    min-height: 40px !important;
    padding: 7px 2px !important;
    gap: 3px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.025) !important;
    color: rgba(237,228,208,0.78) !important;
    font-size: 0.65rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--ut-gold, #D4A843) !important;
    border-color: rgba(212,168,67,0.38) !important;
    background: rgba(212,168,67,0.095) !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #FFAAAA !important;
    border-color: rgba(224,67,67,0.24) !important;
    background: rgba(224,67,67,0.055) !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a::before {
    width: 14px !important;
    height: 14px !important;
    background-size: 14px 14px !important;
  }

  body.woocommerce-orders .woocommerce-orders-table tbody tr,
  body.woocommerce-orders table.shop_table.my_account_orders tbody tr {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "number status"
      "date total"
      "actions actions" !important;
    align-items: center !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
    padding: 16px !important;
    min-height: 0 !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(212,168,67,0.11), transparent 34%),
      linear-gradient(145deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
      rgba(11, 13, 16, 0.82) !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-number {
    grid-area: number !important;
    min-width: 0 !important;
  }
  body.woocommerce-orders .ut-order-main-link {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  body.woocommerce-orders .ut-order-thumb {
    width: 52px !important;
    height: 52px !important;
  }
  body.woocommerce-orders .ut-order-main-copy strong {
    font-size: 0.86rem !important;
    max-width: 176px !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status {
    grid-area: status !important;
    justify-self: end !important;
    text-align: end !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status .ut-order-status,
  body.woocommerce-orders .ut-order-status {
    min-width: 86px !important;
    min-height: 28px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date {
    grid-area: date !important;
    justify-self: start !important;
    display: inline-flex !important;
    gap: 6px !important;
    color: rgba(237,228,208,0.68) !important;
    font-size: 0.78rem !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date::before {
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total {
    grid-area: total !important;
    justify-self: end !important;
    display: inline-flex !important;
    gap: 6px !important;
    align-items: baseline !important;
    color: var(--ut-gold, #D4A843) !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::before {
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-top: 12px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }
}

/* ========== Account orders v5: unified premium order cards ========== */
.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody {
  gap: 14px !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "number status"
    "date total"
    "actions actions" !important;
  gap: 11px 14px !important;
  align-items: center;
  min-height: 0 !important;
  padding: 18px 68px 18px 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(212,168,67,0.18) !important;
  background:
    linear-gradient(145deg, rgba(24, 35, 48, 0.82), rgba(11, 13, 18, 0.62)),
    rgba(15, 18, 24, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 18px 44px rgba(0,0,0,0.34) !important;
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr::before,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr::before {
  content: "" !important;
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  display: block !important;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(212,168,67,0.25);
  background:
    linear-gradient(145deg, rgba(212,168,67,0.22), rgba(212,168,67,0.06)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M9 11h.01M15 11h.01'/%3E%3C/svg%3E") center/20px 20px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  z-index: 1;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr::after,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(212,168,67,0.14), transparent 30%),
    linear-gradient(90deg, rgba(212,168,67,0.16), transparent 36%);
  pointer-events: none;
  z-index: -1;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody td,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody td {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody td::before,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody td::before {
  display: none !important;
  content: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-number {
  grid-area: number !important;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
  font-size: clamp(1.05rem, 4vw, 1.24rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.15;
  order: initial !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-number::before {
  content: "طلب #";
  color: var(--ut-gold, #D4A843);
  margin-inline-end: 4px;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-number a {
  color: inherit !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-date {
  grid-area: date !important;
  order: initial !important;
  color: rgba(237,228,208,0.68) !important;
  font-size: 0.86rem !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-date time::before {
  content: "تاريخ الطلب ";
  direction: rtl;
  unicode-bidi: isolate;
  color: rgba(212,168,67,0.78);
  margin-inline-end: 6px;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status {
  grid-area: status !important;
  order: initial !important;
  justify-self: end;
  color: transparent !important;
  font-size: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status::before {
  display: none !important;
  content: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status .ut-order-status {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 94px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,67,0.28);
  background: rgba(212,168,67,0.12);
  color: var(--ut-gold, #D4A843) !important;
  font-size: 0 !important;
  font-weight: 900 !important;
  line-height: 1;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status .ut-order-status::before {
  content: attr(data-status);
  font-size: 0.76rem;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total {
  grid-area: total !important;
  order: initial !important;
  justify-self: end;
  display: grid !important;
  gap: 3px;
  text-align: left;
  color: var(--ut-gold, #D4A843) !important;
  font-size: 0 !important;
  font-weight: 900 !important;
  line-height: 1.1;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total::before {
  content: "الإجمالي";
  color: rgba(237,228,208,0.56);
  font-size: 0.69rem;
  font-weight: 900;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total bdi {
  color: var(--ut-gold, #D4A843) !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total .woocommerce-Price-currencySymbol {
  font-size: 0.74rem !important;
  color: rgba(237,228,208,0.62) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-actions {
  grid-area: actions !important;
  order: initial !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
  margin-top: 3px !important;
  padding-top: 13px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-actions a.button {
  min-height: 42px;
  margin: 0 !important;
  justify-content: center !important;
  border-radius: 13px !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-actions a.button.view {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-actions a.button.track,
.woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-actions a.button.pay {
  background: linear-gradient(135deg, #F2D27C, var(--ut-gold, #D4A843)) !important;
  color: #0A0A0A !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(212,168,67,0.18) !important;
}

.woocommerce-account .ut-dash4-orders {
  border-color: rgba(212,168,67,0.18);
  background:
    linear-gradient(145deg, rgba(24, 35, 48, 0.74), rgba(10, 12, 16, 0.62)),
    rgba(15, 18, 24, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 18px 44px rgba(0,0,0,0.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.woocommerce-account .ut-dash4-orders-head {
  align-items: center;
  margin-bottom: 12px;
}

.woocommerce-account .ut-dash4-orders-head h3 {
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
  font-size: clamp(1.08rem, 4vw, 1.26rem) !important;
  color: #fff !important;
}

.woocommerce-account .ut-dash4-link {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212,168,67,0.18);
  background: rgba(212,168,67,0.08);
  font-weight: 900;
}

.woocommerce-account .ut-dash4-order-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "num status"
    "date total"
    "link link" !important;
  gap: 10px 12px !important;
  padding: 15px !important;
  border-radius: 17px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(212,168,67,0.10), transparent 28%),
    rgba(7, 10, 14, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.woocommerce-account .ut-dash4-order-num {
  grid-area: num;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif;
  font-size: 1.08rem;
  color: #fff;
}

.woocommerce-account .ut-dash4-order-num::before {
  content: "طلب ";
  color: var(--ut-gold, #D4A843);
  font-size: 0.8rem;
  margin-inline-end: 2px;
}

.woocommerce-account .ut-dash4-order-status {
  grid-area: status;
  justify-self: end;
  min-height: 29px;
  padding: 7px 11px;
  font-weight: 900;
}

.woocommerce-account .ut-dash4-order-date {
  grid-area: date;
  color: rgba(237,228,208,0.68);
  font-size: 0.84rem;
  font-weight: 800;
}

.woocommerce-account .ut-dash4-order-total {
  grid-area: total;
  justify-self: end;
  color: var(--ut-gold, #D4A843);
  font-size: 1rem;
  font-weight: 950;
}

.woocommerce-account .ut-dash4-order-link {
  grid-area: link;
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid rgba(212,168,67,0.24);
  background: rgba(212,168,67,0.11);
  color: var(--ut-gold, #D4A843) !important;
  font-weight: 950;
}

@media (max-width: 420px) {
  .woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr,
  .woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "number"
      "status"
      "date"
      "total"
      "actions" !important;
    padding: 64px 16px 16px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr::before,
  .woocommerce-account .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr::before {
    inset-block-start: 14px;
    inset-inline-start: 14px;
  }

  .woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status,
  .woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-total {
    justify-self: stretch;
    text-align: right;
  }

  .woocommerce-account .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table__cell-order-status .ut-order-status {
    justify-content: center;
    width: 100%;
  }
}

/* ========== Account v4: autosave + cleaner orders cards ========== */
.woocommerce-account form.edit-account.ut-profile-form .ut-editable-row {
  position: relative;
}
.woocommerce-account form.edit-account.ut-profile-form .ut-editable-row.ut-autosave-saving .ut-profile-input-wrap {
  border-color: rgba(212,168,67,0.46) !important;
  box-shadow: 0 0 0 3px rgba(212,168,67,0.10), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.woocommerce-account form.edit-account.ut-profile-form .ut-editable-row.ut-autosave-saving::after {
  content: "جار الحفظ...";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.24);
  color: var(--ut-gold, #D4A843);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

body.woocommerce-orders .ut-panel {
  padding: 18px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(212,168,67,0.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    rgba(18, 19, 23, 0.78) !important;
  border: 1px solid rgba(212,168,67,0.16) !important;
  box-shadow: 0 20px 58px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
body.woocommerce-orders .woocommerce-orders-table tbody,
body.woocommerce-orders table.shop_table.my_account_orders tbody {
  gap: 12px !important;
}
body.woocommerce-orders .woocommerce-orders-table tbody tr,
body.woocommerce-orders table.shop_table.my_account_orders tbody tr {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "number total"
    "date status"
    "actions actions" !important;
  gap: 10px 14px !important;
  padding: 16px !important;
  overflow: hidden;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
    rgba(7, 10, 14, 0.46) !important;
}
body.woocommerce-orders .woocommerce-orders-table tbody tr::before,
body.woocommerce-orders table.shop_table.my_account_orders tbody tr::before {
  display: none !important;
  content: none !important;
}
body.woocommerce-orders .woocommerce-orders-table tbody tr::after,
body.woocommerce-orders table.shop_table.my_account_orders tbody tr::after {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.14), transparent 66%);
  pointer-events: none;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-number {
  grid-area: number !important;
  order: initial !important;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  direction: rtl;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-number a {
  color: #fff !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-number::before {
  content: "طلب #";
  color: var(--ut-gold, #D4A843);
  margin-inline-end: 4px;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-date {
  grid-area: date !important;
  order: initial !important;
  direction: ltr;
  justify-self: start;
  color: rgba(237,228,208,0.68) !important;
  font-size: 0.84rem !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-date time::before {
  content: "تاريخ الطلب ";
  direction: rtl;
  unicode-bidi: isolate;
  color: rgba(237,228,208,0.48);
  margin-inline-end: 6px;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-total {
  grid-area: total !important;
  order: initial !important;
  justify-self: end !important;
  align-self: start;
  display: grid !important;
  gap: 2px;
  text-align: left !important;
  color: var(--ut-gold, #D4A843) !important;
  font-size: 1rem !important;
  line-height: 1.25;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-total::after {
  content: "الإجمالي";
  color: rgba(237,228,208,0.54);
  font-size: 0.68rem;
  font-weight: 800;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-status {
  grid-area: status !important;
  order: initial !important;
  justify-self: end;
  color: inherit !important;
  font-size: inherit !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-status::before,
body.woocommerce-orders .ut-order-status {
  content: attr(data-status);
  display: inline-flex !important;
  min-width: 92px;
  justify-content: center;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-actions {
  grid-area: actions !important;
  order: initial !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
  margin: 2px 0 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-actions a.button {
  min-height: 42px;
  justify-content: center !important;
  border-radius: 13px !important;
  font-size: 0.84rem !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-actions a.button.view {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
body.woocommerce-orders .woocommerce-orders-table__cell-order-actions a.button.track {
  background: linear-gradient(135deg, #F2D27C, var(--ut-gold, #D4A843)) !important;
  color: #0A0A0A !important;
  border-color: transparent !important;
}

@media (max-width: 420px) {
  body.woocommerce-orders .woocommerce-orders-table tbody tr,
  body.woocommerce-orders table.shop_table.my_account_orders tbody tr {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "number"
      "total"
      "date"
      "status"
      "actions" !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total,
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status {
    justify-self: start !important;
    text-align: right !important;
  }
}

/* ========== Edit-account currency selector v2 ========== */
body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account.ut-profile-form > p.form-row:has(#wcpay_selected_currency),
body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account > p.form-row:has(#wcpay_selected_currency),
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 2px 0 22px !important;
  padding: clamp(16px, 4vw, 22px) !important;
  display: grid !important;
  gap: 12px !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px !important;
  border: 1px solid rgba(212, 168, 67, 0.20) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 168, 67, 0.16), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(17, 19, 24, 0.66) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency)::after {
  content: "";
  position: absolute;
  inset-inline-end: -22px;
  top: -24px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(212, 168, 67, 0.18);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > label[for="wcpay_selected_currency"] {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: start !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > label[for="wcpay_selected_currency"]::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ut-gold, #D4A843), rgba(212, 168, 67, 0.38));
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.22);
  flex: 0 0 auto;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > label[for="wcpay_selected_currency"]::after {
  content: "العملة الافتراضية";
  color: var(--ut-text, #EDE4D0);
  font-size: clamp(1rem, 3.8vw, 1.18rem);
  font-weight: 800;
  line-height: 1.25;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content select#wcpay_selected_currency {
  min-height: 50px !important;
  padding: 12px 16px !important;
  padding-inline-start: 44px !important;
  border-radius: 14px !important;
  border-color: rgba(212, 168, 67, 0.26) !important;
  background-color: rgba(8, 10, 14, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 26px rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content select#wcpay_selected_currency:focus {
  border-color: var(--ut-gold, #D4A843) !important;
  box-shadow:
    0 0 0 3px rgba(212, 168, 67, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > span {
  display: block !important;
  color: transparent !important;
  font-size: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > span > em {
  color: transparent !important;
  font-size: 0 !important;
  font-style: normal !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > span::after {
  content: "اختر العملة التي تظهر لك في المتجر والدفع.";
  display: block;
  color: var(--ut-text-dim, #9B9282);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: start;
}
@media (max-width: 560px) {
  body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account.ut-profile-form > p.form-row:has(#wcpay_selected_currency),
  body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account > p.form-row:has(#wcpay_selected_currency),
  body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) {
    border-radius: 18px !important;
    padding: 16px !important;
  }
}

/* ========== Account refinement v3: currency row + order details ========== */
body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account.ut-profile-form > p.form-row:has(#wcpay_selected_currency),
body.woocommerce-edit-account .woocommerce-MyAccount-content form.edit-account > p.form-row:has(#wcpay_selected_currency),
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) {
  margin: 4px 0 22px !important;
  padding: 18px !important;
  gap: 10px !important;
  overflow: visible !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(22, 24, 29, 0.84) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 40px rgba(0,0,0,0.24) !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency)::after {
  display: none !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > label[for="wcpay_selected_currency"]::before {
  width: 4px !important;
  height: 20px !important;
  border-radius: 999px !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > label[for="wcpay_selected_currency"]::after {
  font-size: 0.98rem !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content select#wcpay_selected_currency {
  min-height: 48px !important;
  border-radius: 13px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(7, 9, 13, 0.54) !important;
  border-color: rgba(212,168,67,0.18) !important;
}
body.woocommerce-edit-account .woocommerce-MyAccount-content .form-row:has(#wcpay_selected_currency) > span::after {
  color: rgba(237,228,208,0.72) !important;
}

.woocommerce-view-order .ut-timeline-wrap {
  margin: 18px 0 22px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(212,168,67,0.18) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    rgba(18, 19, 23, 0.78) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.woocommerce-view-order .ut-timeline-title {
  margin: 0 0 14px !important;
  color: rgba(237,228,208,0.72) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  text-align: right;
}
.woocommerce-view-order .ut-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.woocommerce-view-order .ut-timeline .ut-step {
  padding: 0 !important;
}
.woocommerce-view-order .ut-timeline .ut-bar {
  height: 4px !important;
  background: rgba(255,255,255,0.08) !important;
}
.woocommerce-view-order .ut-timeline .ut-step.is-active .ut-bar {
  background: linear-gradient(90deg, #F0CF79, var(--ut-gold, #D4A843)) !important;
  box-shadow: 0 0 18px rgba(212,168,67,0.20);
}
.woocommerce-view-order .ut-timeline .ut-label {
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  color: rgba(237,228,208,0.58) !important;
}
.woocommerce-view-order .ut-timeline .ut-step.is-active .ut-label {
  color: #fff !important;
}

.woocommerce-view-order .woocommerce-order-details {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  border: 1px solid rgba(212,168,67,0.18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(212,168,67,0.12), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    rgba(18, 19, 23, 0.78) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}
.woocommerce-view-order .woocommerce-order-details table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  background: transparent !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table thead th {
  background: transparent !important;
  color: rgba(237,228,208,0.62) !important;
  border: 0 !important;
  padding: 0 12px 8px !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item,
.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.woocommerce-table__line-item {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
    rgba(7, 9, 12, 0.44) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 16px !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td {
  padding: 14px !important;
  border: 0 !important;
}
.woocommerce-view-order .woocommerce-order-details .wc-item-meta,
.woocommerce-view-order .woocommerce-order-details dl.variation {
  display: grid !important;
  gap: 7px !important;
  margin-top: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(212,168,67,0.16) !important;
  background: rgba(212,168,67,0.05) !important;
}
.woocommerce-view-order .woocommerce-order-details .wc-item-meta li {
  display: grid !important;
  grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
  gap: 8px;
}
.woocommerce-view-order .woocommerce-order-details .wc-item-meta p {
  margin: 0 !important;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .woocommerce-view-order .woocommerce-order-details {
    padding: 18px !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table,
  .woocommerce-view-order .woocommerce-order-details table.shop_table thead,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tbody,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tr,
  .woocommerce-view-order .woocommerce-order-details table.shop_table th,
  .woocommerce-view-order .woocommerce-order-details table.shop_table td {
    display: block !important;
    width: 100% !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table thead {
    display: none !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.woocommerce-table__line-item {
    padding: 14px !important;
    margin-bottom: 12px !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tbody td {
    padding: 0 !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table td.product-total {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table td.product-total::before {
    content: "المجموع";
    color: rgba(237,228,208,0.62);
    font-weight: 800;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot {
    display: grid !important;
    gap: 8px;
    margin-top: 10px;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px !important;
    border-radius: 14px;
    background: rgba(7,9,12,0.38) !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot th,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot td {
    padding: 0 !important;
    border: 0 !important;
  }
}

/* Mobile hardening: order address and phone auth input should never overlap. */
.woocommerce-view-order .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-customer-details address {
  max-width: 100%;
  overflow: hidden;
}
.woocommerce-view-order .woocommerce-customer-details address,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--email {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.75;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti,
.ut-auth-form[data-form="phone"] .iti {
  width: 100%;
  direction: ltr !important;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti__tel-input,
.ut-auth-form[data-form="phone"] .iti__tel-input,
body.ut-account-guest input#ut-phone-num {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 112px !important;
  padding-right: 14px !important;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti__selected-country {
  min-width: 96px;
}

/* Account mobile tightening: phone entry, trust strip, and order detail rows. */
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti,
.ut-auth-form[data-form="phone"] .iti {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti__country-container,
.ut-auth-form[data-form="phone"] .iti__country-container {
  left: 6px !important;
  right: auto !important;
  width: 108px !important;
  max-width: 108px !important;
  z-index: 3 !important;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti__selected-country,
.ut-auth-form[data-form="phone"] .iti__selected-country {
  width: 102px !important;
  min-width: 102px !important;
  max-width: 102px !important;
  justify-content: center !important;
  border-radius: 10px !important;
}
body.ut-account-guest .ut-auth-form[data-form="phone"] .iti__tel-input,
.ut-auth-form[data-form="phone"] .iti__tel-input,
body.ut-account-guest input#ut-phone-num {
  padding-left: 126px !important;
  padding-right: 14px !important;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
}

.ut-auth-reassure {
  overflow: hidden !important;
}
.ut-auth-reassure .ut-reassure-line {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  font-size: clamp(10px, 2.72vw, 12px) !important;
  letter-spacing: 0 !important;
  text-wrap: nowrap !important;
}
.ut-auth-reassure .ut-reassure-line::-webkit-scrollbar {
  display: none;
}
.ut-auth-reassure .ut-reassure-pay {
  flex-wrap: nowrap !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  justify-content: center !important;
  scrollbar-width: none;
  gap: 4px !important;
}
.ut-auth-reassure .ut-reassure-pay::-webkit-scrollbar {
  display: none;
}
.ut-auth-reassure .pay-badge {
  flex: 0 0 auto !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
}
.ut-auth-reassure .pay-badge img {
  height: clamp(17px, 4.8vw, 22px) !important;
}
.ut-auth-reassure .ut-reassure-line .ut-dot {
  margin-inline: clamp(3px, 1.3vw, 7px) !important;
}

@media (max-width: 760px) {
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot {
    display: grid !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(104px, max-content) !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 14px !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)),
      rgba(7, 9, 12, 0.54) !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot th,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot td {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot th {
    grid-column: 2 !important;
    text-align: right !important;
    direction: rtl !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot td {
    grid-column: 1 !important;
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    color: rgba(255,255,255,0.92) !important;
    font-weight: 900 !important;
    overflow-wrap: anywhere !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot th::after {
    display: inline-block !important;
    color: rgba(237,228,208,0.72) !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.cart-subtotal th::after {
    content: "المجموع الفرعي";
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total th::after {
    content: "الإجمالي";
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr:nth-child(3) th::after,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr:last-child th::after {
    content: "وسيلة الدفع";
  }
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total td,
  .woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total td bdi {
    color: var(--ut-gold, #D4A843) !important;
  }

  .woocommerce-view-order .woocommerce-customer-details {
    padding: 18px !important;
    overflow: hidden !important;
  }
  .woocommerce-view-order .woocommerce-customer-details h2,
  .woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(212,168,67,0.16) !important;
    color: transparent !important;
    font-size: 0 !important;
  }
  .woocommerce-view-order .woocommerce-customer-details h2::after,
  .woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title::after {
    content: "بيانات التواصل";
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
  }
  .woocommerce-view-order .woocommerce-customer-details h2::before,
  .woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--ut-gold, #D4A843);
    box-shadow: 0 0 14px rgba(212,168,67,0.35);
  }
  .woocommerce-view-order .woocommerce-customer-details address {
    display: grid !important;
    gap: 6px !important;
    max-width: 100% !important;
    padding: 14px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 15px !important;
    background: rgba(7,9,12,0.30) !important;
    direction: rtl !important;
    text-align: right !important;
    color: rgba(237,228,208,0.86) !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .woocommerce-view-order .woocommerce-customer-details address br {
    display: none !important;
  }
  .woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--phone,
  .woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--email,
  .woocommerce-view-order .woocommerce-customer-details address a[href^="tel"],
  .woocommerce-view-order .woocommerce-customer-details address a[href^="mailto"] {
    display: block !important;
    max-width: 100% !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* ========== FINAL WINNING OVERRIDES: account nav, orders, order view ========== */
@media (max-width: 760px) {
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation {
    padding: 4px !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li,
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li:hover {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a {
    min-height: 42px !important;
    padding: 7px 3px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.025) !important;
    box-shadow: none !important;
    font-size: clamp(0.58rem, 2.7vw, 0.72rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation li a::before {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    background-size: 14px 14px !important;
  }

  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr,
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "number number"
      "status total"
      "date date"
      "actions actions" !important;
    gap: 11px 12px !important;
    padding: 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(212,168,67,0.16) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(212,168,67,0.12), transparent 36%),
      linear-gradient(145deg, rgba(255,255,255,0.058), rgba(255,255,255,0.016)),
      rgba(10, 13, 18, 0.78) !important;
  }
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel .woocommerce-orders-table tbody tr::before,
  body.woocommerce-orders .woocommerce-MyAccount-content .ut-panel table.shop_table.my_account_orders tbody tr::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-number {
    grid-area: number !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-number::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .ut-order-main-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
    gap: 12px !important;
    align-items: center !important;
    direction: ltr !important;
    width: 100% !important;
  }
  body.woocommerce-orders .ut-order-thumb {
    grid-column: 2 !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212,168,67,0.20) !important;
    background: rgba(255,255,255,0.05) !important;
  }
  body.woocommerce-orders .ut-order-thumb img,
  body.woocommerce-orders .ut-order-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  body.woocommerce-orders .ut-order-main-copy {
    grid-column: 1 !important;
    min-width: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  body.woocommerce-orders .ut-order-main-copy strong {
    display: block !important;
    max-width: none !important;
    color: #fff !important;
    font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
    font-size: clamp(0.94rem, 4vw, 1.08rem) !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body.woocommerce-orders .ut-order-main-copy small {
    display: block !important;
    margin-top: 4px !important;
    color: rgba(237,228,208,0.56) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status {
    grid-area: status !important;
    justify-self: start !important;
    font-size: 0 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-status .ut-order-status,
  body.woocommerce-orders .ut-order-status {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: rgba(212,168,67,0.13) !important;
    border: 1px solid rgba(212,168,67,0.24) !important;
    color: var(--ut-gold, #D4A843) !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total {
    grid-area: total !important;
    justify-self: end !important;
    color: var(--ut-gold, #D4A843) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::after,
  body.woocommerce-orders .woocommerce-orders-table__cell-order-total::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date {
    grid-area: date !important;
    justify-self: stretch !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    direction: rtl !important;
    text-align: right !important;
    color: rgba(237,228,208,0.64) !important;
    font-size: 0.78rem !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-date time::before {
    content: "تاريخ الطلب: " !important;
    color: rgba(212,168,67,0.70) !important;
  }
  body.woocommerce-orders .woocommerce-orders-table__cell-order-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 0 !important;
    padding-top: 2px !important;
    border-top: 0 !important;
  }
}

.woocommerce-view-order .woocommerce-order-details > h2,
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title {
  color: transparent !important;
  font-size: 0 !important;
}
.woocommerce-view-order .woocommerce-order-details > h2::after,
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title::after {
  content: "تفاصيل الطلب";
  color: #fff !important;
  font-family: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif !important;
  font-size: clamp(1.22rem, 5vw, 1.5rem) !important;
  font-weight: 950 !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table td.product-total,
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.cart-subtotal {
  display: none !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total {
  border-color: rgba(212,168,67,0.20) !important;
  background: rgba(212,168,67,0.08) !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr.order-total th::after {
  content: "إجمالي الطلب" !important;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr:not(.order-total):last-child th::after {
  content: "وسيلة الدفع" !important;
}

.woocommerce-view-order .woocommerce-customer-details {
  background:
    radial-gradient(circle at 0% 0%, rgba(212,168,67,0.10), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(18, 19, 23, 0.76) !important;
  border-color: rgba(212,168,67,0.16) !important;
}
.woocommerce-view-order .woocommerce-customer-details h2::after,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title::after {
  content: "بيانات التواصل" !important;
}
.woocommerce-view-order .woocommerce-customer-details address {
  display: block !important;
  padding: 15px !important;
  border-radius: 16px !important;
  background: rgba(7,9,12,0.34) !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.woocommerce-view-order .woocommerce-customer-details address br {
  display: block !important;
}
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-view-order .woocommerce-customer-details address a[href^="tel"],
.woocommerce-view-order .woocommerce-customer-details address a[href^="mailto"] {
  display: block !important;
  margin-top: 6px !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
.woocommerce-view-order .ut-order-contact-edit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(212,168,67,0.24) !important;
  background: rgba(212,168,67,0.09) !important;
  color: var(--ut-gold, #D4A843) !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}
body.ut-account-guest .ut-auth-shell {
  width: min(100%, 520px);
  box-sizing: border-box;
  margin-inline: auto !important;
}

body.ut-account-guest .ut-auth-card {
  width: 100%;
  box-sizing: border-box;
}

body.ut-account-guest .woocommerce-notices-wrapper {
  width: min(100%, 520px);
  margin: 16px auto 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

body.ut-account-guest .woocommerce-notices-wrapper .woocommerce-info,
body.ut-account-guest .woocommerce-notices-wrapper .woocommerce-message,
body.ut-account-guest .woocommerce-notices-wrapper .woocommerce-error {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(212,168,67,0.26) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(212,168,67,0.12), rgba(255,255,255,0.025)),
    rgba(18,14,10,0.94) !important;
  color: #EDE4D0 !important;
  font-family: "Thmanyah Sans", Tahoma, Arial, sans-serif !important;
  font-weight: 800;
  line-height: 1.6;
  text-align: right;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

@media (max-width: 560px) {
  body.ut-account-guest .entry-content {
    padding-inline: 12px !important;
  }

  body.ut-account-guest .ut-auth-shell {
    padding-inline: 0;
  }
}

/* Mobile auth centering hardening: keep the custom login surface optically centered
   even when Astra/Woo wrappers add their own widths and RTL offsets. */
@media (max-width: 640px) {
  body.ut-account-guest,
  body.ut-account-guest #page,
  body.ut-account-guest #content {
    overflow-x: hidden !important;
  }

  body.ut-account-guest .ast-container,
  body.ut-account-guest #primary,
  body.ut-account-guest article,
  body.ut-account-guest .entry-content,
  body.ut-account-guest .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  body.ut-account-guest .ut-auth-shell,
  body.ut-account-guest .woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 392px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.ut-account-guest .ut-auth-card {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px clamp(18px, 5vw, 26px) 28px !important;
  }

  body.ut-account-guest .ut-auth-sub {
    max-width: 32ch;
  }
}

/* Account pages use the same floating glass notice system as checkout/cart. */
body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-info),
body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-message),
body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-error) {
  position: fixed !important;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 74px) !important;
  inset-inline: 0 !important;
  width: min(92vw, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  z-index: 10050 !important;
  pointer-events: none !important;
}

body.ut-account-guest .woocommerce-notices-wrapper > .woocommerce-info,
body.ut-account-guest .woocommerce-notices-wrapper > .woocommerce-message,
body.ut-account-guest .woocommerce-notices-wrapper > .woocommerce-error {
  pointer-events: auto !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(212,168,67,0.16), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.105), rgba(255,255,255,0.026)),
    rgba(16,18,22,0.88) !important;
  border: 1px solid rgba(212,168,67,0.24) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

@media (max-width: 640px) {
  body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-info),
  body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-message),
  body.ut-account-guest .woocommerce-notices-wrapper:has(> .woocommerce-error) {
    inset-block-start: calc(env(safe-area-inset-top, 0px) + 66px) !important;
    width: calc(100vw - 24px) !important;
  }
}
