body.echo-account-experience {
  --echo-red: #e52b2f;
  --echo-red-dark: #991b1e;
  --echo-surface: #111316;
  --echo-surface-2: #171a1f;
  --echo-line: rgba(255,255,255,.11);
  --echo-copy: #f4f5f7;
  --echo-muted: #aeb3bb;
}

.echo-account-experience .site-main,
.echo-account-experience main {
  color: var(--echo-copy);
}

.echo-account-experience .em-content-shell > article > h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 64px);
  line-height: .95;
}

.echo-account-experience .woocommerce {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.echo-account-experience .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

.echo-account-welcome,
.echo-account-login-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  margin: 0 0 22px;
  border: 1px solid var(--echo-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(229,43,47,.24), transparent 30%),
    linear-gradient(135deg, rgba(229,43,47,.14), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 1px, transparent 1px 12px),
    var(--echo-surface);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.echo-account-welcome::before,
.echo-account-login-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--echo-red);
}

.echo-account-eyebrow {
  margin: 0 0 8px !important;
  color: #ff777a !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.echo-account-welcome h2,
.echo-account-login-intro h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.05;
}

.echo-account-welcome h2 {
  max-width: 100%;
  font-size: clamp(26px, 3.25vw, 40px);
  overflow-wrap: anywhere;
}

.echo-account-welcome p:last-child,
.echo-account-login-intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--echo-muted);
}

.echo-account-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 280px;
}

.echo-account-welcome-copy { max-width: 720px; }

.echo-account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.echo-account-primary-action,
.echo-account-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
}

.echo-account-primary-action {
  color: #fff !important;
  background: linear-gradient(135deg, #f23b40, #a7191d);
  box-shadow: 0 12px 30px rgba(229,43,47,.25);
}

.echo-account-secondary-action {
  border: 1px solid rgba(255,255,255,.18);
  color: #f4f5f7 !important;
  background: rgba(255,255,255,.05);
}

.echo-account-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(5,7,9,.72);
  backdrop-filter: blur(8px);
}

.echo-account-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45e083;
  box-shadow: 0 0 14px rgba(69,224,131,.7);
}

.echo-account-status strong,
.echo-account-status small { display: block; }
.echo-account-status strong { color: #fff; font-size: 12px; letter-spacing: .08em; }
.echo-account-status small { margin-top: 2px; color: #8f969f; font-size: 10px; letter-spacing: .06em; }

.woocommerce-dashboard .woocommerce-MyAccount-content > p:nth-of-type(1),
.woocommerce-dashboard .woocommerce-MyAccount-content > p:nth-of-type(2) {
  display: none;
}

.echo-account-command {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--echo-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #0d0f12;
}

.echo-account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.echo-account-section-heading h3 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 32px); }
.echo-account-section-heading > p { max-width: 310px; margin: 0; text-align: right; font-size: 13px; }

.echo-account-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.echo-account-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.echo-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229,43,47,.58);
  background: linear-gradient(135deg, rgba(229,43,47,.13), rgba(255,255,255,.018));
}

.echo-account-card-featured {
  border-color: rgba(229,43,47,.42);
  background: linear-gradient(135deg, rgba(229,43,47,.2), rgba(229,43,47,.035));
}

.echo-account-card-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #ff6b6f;
  background: rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.echo-account-card-copy strong,
.echo-account-card-copy small { display: block; }
.echo-account-card-copy strong { margin-bottom: 5px; color: #fff; font-size: 17px; }
.echo-account-card-copy small { color: #9fa5ad; font-size: 12px; line-height: 1.45; }
.echo-account-card-arrow { color: #ff6569; font-size: 24px; transition: transform .18s ease; }
.echo-account-card:hover .echo-account-card-arrow { transform: translateX(3px); }

/* Dashboard: one connected command surface instead of two stacked boxes. */
@media (min-width: 901px) {
  .woocommerce-dashboard .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin: 0 0 14px;
    padding: 7px;
  }

  .woocommerce-dashboard .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 4px;
  }

  .woocommerce-dashboard .woocommerce-MyAccount-navigation a {
    justify-content: center;
    min-height: 42px;
    padding: 7px 8px;
    text-align: center;
    font-size: 13px;
  }

  .woocommerce-dashboard .woocommerce-MyAccount-content {
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(500px, 1.34fr);
    gap: 14px;
    float: none;
    width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .woocommerce-dashboard .woocommerce-notices-wrapper:empty { display: none; }

  .woocommerce-dashboard .echo-account-welcome,
  .woocommerce-dashboard .echo-account-command {
    height: 100%;
    margin: 0;
  }

  .woocommerce-dashboard .echo-account-welcome {
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 30px;
  }

  .woocommerce-dashboard .echo-account-status { width: 100%; }

  .woocommerce-dashboard .echo-account-command {
    display: flex;
    flex-direction: column;
    padding: 26px;
  }

  .woocommerce-dashboard .echo-account-section-heading {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .woocommerce-dashboard .echo-account-section-heading > p {
    max-width: 230px;
    text-align: right;
  }

  .woocommerce-dashboard .echo-account-card-grid {
    flex: 1;
  }

  .woocommerce-dashboard .echo-account-card {
    min-height: 142px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .woocommerce-dashboard .woocommerce-MyAccount-content {
    grid-template-columns: minmax(285px, .78fr) minmax(440px, 1.22fr);
  }

  .woocommerce-dashboard .echo-account-welcome { padding: 26px 24px; }
  .woocommerce-dashboard .echo-account-command { padding: 22px; }
  .woocommerce-dashboard .echo-account-card { padding: 14px; gap: 10px; }
  .woocommerce-dashboard .echo-account-card-number { width: 36px; height: 36px; }
}

.echo-account-experience .woocommerce-MyAccount-navigation {
  float: left;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--echo-line);
  border-radius: 16px;
  background: var(--echo-surface);
  box-shadow: 0 16px 45px rgba(0,0,0,.2);
}

.echo-account-experience .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.echo-account-experience .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #d7d9de;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.echo-account-experience .woocommerce-MyAccount-navigation a:hover,
.echo-account-experience .woocommerce-MyAccount-navigation .is-active a {
  color: #fff;
  background: linear-gradient(90deg, rgba(229,43,47,.24), rgba(229,43,47,.06));
}

.echo-account-experience .woocommerce-MyAccount-navigation .is-active a {
  box-shadow: inset 3px 0 var(--echo-red);
}

.echo-account-experience .woocommerce-MyAccount-content {
  float: right;
  width: calc(100% - 286px);
  min-height: 420px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--echo-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 140px), var(--echo-surface);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.echo-account-experience .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.echo-account-experience .woocommerce-MyAccount-content p { color: var(--echo-muted); }
.echo-account-experience .woocommerce-MyAccount-content a { color: #ff777a; }

.echo-account-experience .woocommerce-Address,
.echo-account-experience .woocommerce-orders-table,
.echo-account-experience .woocommerce-table,
.echo-account-experience .woocommerce-EditAccountForm,
.echo-account-experience .woocommerce-address-fields {
  padding: 20px;
  border: 1px solid var(--echo-line);
  border-radius: 14px;
  background: var(--echo-surface-2);
}

.echo-account-experience .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.echo-account-experience .woocommerce-Address-title h2,
.echo-account-experience .woocommerce-Address-title h3 { margin: 0; color: #fff; }
.echo-account-experience .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(229,43,47,.65);
  border-radius: 9px;
  color: #fff;
  background: rgba(229,43,47,.15);
  font-weight: 800;
  text-decoration: none;
}

.echo-account-experience .woocommerce-Addresses .woocommerce-Address-title .edit {
  font-size: 0;
}

.echo-account-experience .woocommerce-Addresses .u-column1 .woocommerce-Address-title .edit::after {
  content: "Update billing info";
  font-size: 13px;
}

.echo-account-experience .woocommerce-Addresses .u-column2 .woocommerce-Address-title .edit::after {
  content: "Update shipping info";
  font-size: 13px;
}

@media (max-width: 980px) and (min-width: 781px) {
  .echo-account-experience .woocommerce-Address-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.echo-account-experience input.input-text,
.echo-account-experience input[type="text"],
.echo-account-experience input[type="email"],
.echo-account-experience input[type="password"],
.echo-account-experience select,
.echo-account-experience textarea {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #0c0e11 !important;
  box-shadow: none !important;
}

.echo-account-experience label { color: #e7e9ed; font-weight: 700; }
.echo-account-experience button.button,
.echo-account-experience a.button,
.echo-account-experience .woocommerce-Button {
  min-height: 44px;
  padding: 11px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--echo-red), var(--echo-red-dark)) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(229,43,47,.2);
}

.echo-account-experience .woocommerce-message,
.echo-account-experience .woocommerce-info,
.echo-account-experience .woocommerce-error {
  border: 1px solid var(--echo-line);
  border-left: 4px solid var(--echo-red);
  border-radius: 12px;
  color: var(--echo-copy);
  background: var(--echo-surface-2);
}

.echo-account-experience #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.echo-account-experience #customer_login > div {
  width: auto;
  padding: 24px;
  border: 1px solid var(--echo-line);
  border-radius: 16px;
  background: var(--echo-surface);
}

.echo-account-experience #customer_login h2 { margin-top: 0; color: #fff; }

@media (max-width: 780px) {
  .echo-account-experience .woocommerce { width: min(100% - 20px, 680px); margin-top: 16px; }
  .echo-account-experience .woocommerce-MyAccount-navigation,
  .echo-account-experience .woocommerce-MyAccount-content { float: none; width: 100%; }
  .echo-account-experience .woocommerce-MyAccount-navigation { margin-bottom: 12px; padding: 7px; overflow-x: auto; }
  .echo-account-experience .woocommerce-MyAccount-navigation ul { display: flex; min-width: max-content; }
  .echo-account-experience .woocommerce-MyAccount-navigation a { min-height: 40px; padding: 8px 11px; font-size: 14px; }
  .echo-account-experience .woocommerce-MyAccount-content { min-height: 0; padding: 18px 14px; }
  .echo-account-experience .u-columns.woocommerce-Addresses { display: grid; gap: 12px; }
  .echo-account-experience .u-column1,
  .echo-account-experience .u-column2 { float: none !important; width: 100% !important; }
  .echo-account-experience #customer_login { grid-template-columns: 1fr; }
  .echo-account-welcome, .echo-account-login-intro { border-radius: 14px; }
  .echo-account-welcome { align-items: flex-start; flex-direction: column; min-height: 0; gap: 20px; }
  .echo-account-status { width: 100%; }
  .echo-account-hero-actions { display: grid; grid-template-columns: 1fr; }
  .echo-account-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .echo-account-section-heading > p { text-align: left; }
  .echo-account-card-grid { grid-template-columns: 1fr; }
  .echo-account-card { min-height: 100px; padding: 15px; }
}

@media (min-width: 781px) and (max-width: 900px) {
  .woocommerce-dashboard .echo-account-welcome,
  .woocommerce-dashboard .echo-account-command {
    margin-bottom: 12px;
  }
}

/* Keep these dashboard overrides last so the base Woo account columns cannot win. */
@media (min-width: 901px) {
  .echo-account-experience.woocommerce-dashboard .em-content-shell > article > h1 {
    margin-bottom: 14px;
    font-size: clamp(42px, 4.8vw, 56px);
  }

  .echo-account-experience.woocommerce-dashboard .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin: 0 0 10px;
    padding: 5px;
  }

  .echo-account-experience.woocommerce-dashboard .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 4px;
  }

  .echo-account-experience.woocommerce-dashboard .woocommerce-MyAccount-navigation a {
    justify-content: center;
    min-height: 36px;
    padding: 5px 6px;
    text-align: center;
    font-size: 12px;
  }

  .echo-account-experience.woocommerce-dashboard .woocommerce-MyAccount-content {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.34fr);
    gap: 14px;
    float: none;
    width: 100%;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-welcome,
  .echo-account-experience.woocommerce-dashboard .echo-account-command {
    min-width: 0;
    max-width: 100%;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-welcome {
    min-height: 350px;
    padding: 22px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-welcome h2 {
    font-size: clamp(30px, 3vw, 36px);
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-welcome-copy > p:last-of-type {
    font-size: 14px;
    line-height: 1.45;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-primary-action,
  .echo-account-experience.woocommerce-dashboard .echo-account-secondary-action {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-status {
    padding: 9px 11px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-command {
    min-height: 350px;
    padding: 18px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-section-heading {
    align-items: center;
    margin-bottom: 10px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-section-heading h3 {
    font-size: clamp(22px, 2.5vw, 28px);
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-section-heading > p {
    font-size: 11px;
    line-height: 1.35;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-card-grid {
    gap: 9px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-card {
    min-height: 112px;
    padding: 12px;
    gap: 9px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-card-number {
    width: 34px;
    height: 34px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-card-copy strong {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .echo-account-experience.woocommerce-dashboard .echo-account-card-copy small {
    font-size: 11px;
    line-height: 1.35;
  }
}


/* Account dashboard vertical alignment — keep the first-screen layout closer to the header. */
@media (min-width: 901px) {
  body.echo-account-experience .em-content-shell {
    padding-top: 40px !important;
  }
}


/* Keep the Account command tabs consistent across every WooCommerce endpoint. */
@media (min-width: 901px) {
  body.echo-account-experience .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin: 0 0 10px;
    padding: 5px;
  }

  body.echo-account-experience .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  body.echo-account-experience .woocommerce-MyAccount-navigation a {
    justify-content: center;
    min-height: 36px;
    padding: 5px 6px;
    text-align: center;
    font-size: 12px;
  }

  body.echo-account-experience .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
}


/* The persistent Account tabs replace the duplicate dashboard shortcut panel. */
@media (min-width: 901px) {
  body.echo-account-experience.woocommerce-dashboard .woocommerce-MyAccount-content {
    grid-template-columns: minmax(0, 1fr);
  }

  body.echo-account-experience.woocommerce-dashboard .echo-account-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: center;
    min-height: 250px;
    padding: 28px 30px;
  }

  body.echo-account-experience.woocommerce-dashboard .echo-account-status {
    width: 100%;
  }
}


/* Center the customer welcome and keep long WooCommerce usernames readable. */
.echo-account-experience .echo-account-welcome-copy {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.echo-account-experience .echo-account-welcome-copy > p {
  margin-inline: auto !important;
}

.echo-account-experience .echo-account-hero-actions {
  justify-content: center;
}

.echo-account-experience .echo-account-welcome h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (min-width: 901px) {
  body.echo-account-experience.woocommerce-dashboard .echo-account-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

  body.echo-account-experience.woocommerce-dashboard .echo-account-status {
    width: auto;
    min-width: 230px;
    justify-content: center;
  }
}
