:root {
  --scc-account-yellow: #ffb400;
  --scc-account-yellow-dark: #b97b00;
  --scc-account-black: #111111;
  --scc-account-text: #25272b;
  --scc-account-muted: #777b83;
  --scc-account-border: #e8e9ed;
}

body.scc-my-account-ui .entry-header,
body.scc-my-account-ui .page-header,
body.scc-account-recovery .entry-header,
body.scc-account-recovery .page-header,
body.scc-my-account-ui h1.entry-title,
body.scc-account-recovery h1.entry-title {
  display: none !important;
}

body.scc-my-account-ui main .woocommerce,
body.scc-my-account-ui main .woocommerce *,
.scc-recovery-shell,
.scc-recovery-shell * {
  box-sizing: border-box;
  font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
}

body.scc-my-account-ui main .woocommerce {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 60px;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  direction: rtl;
}

body.scc-my-account-ui main .woocommerce > .woocommerce-notices-wrapper,
body.scc-my-account-ui main .woocommerce > .woocommerce-error,
body.scc-my-account-ui main .woocommerce > .woocommerce-message,
body.scc-my-account-ui main .woocommerce > .woocommerce-info {
  grid-column: 1 / -1;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  padding: 22px 14px;
  border: 1px solid rgba(255, 180, 0, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 180, 0, 0.12), transparent 30%),
    #111;
  box-shadow: 0 20px 46px rgba(17, 17, 17, 0.12);
  color: #fff;
  position: sticky;
  top: 24px;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
  display: block;
  margin: 0 10px 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  content: "حساب کاربری";
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation ul {
  display: grid;
  margin: 0 !important;
  padding: 0 !important;
  gap: 5px;
  list-style: none !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  text-decoration: none !important;
  transition: 0.22s ease;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li.is-active a,
body.scc-my-account-ui .woocommerce-MyAccount-navigation a:hover {
  background: var(--scc-account-yellow);
  color: #111 !important;
  transform: translateX(-2px);
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  min-width: 0;
  min-height: 530px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.07);
  color: var(--scc-account-text);
}

body.scc-account-dashboard .woocommerce-MyAccount-content > p {
  display: none;
}

.scc-account-overview {
  direction: rtl;
}

.scc-account-welcome {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 30px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 180, 0, 0.18), transparent 25%),
    #111;
  color: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.scc-account-welcome::after {
  position: absolute;
  left: -22px;
  bottom: -42px;
  content: "KATOONI";
  color: rgba(255, 255, 255, 0.035);
  font-size: 75px;
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 1;
}

.scc-account-welcome > div,
.scc-account-role {
  position: relative;
  z-index: 1;
}

.scc-account-welcome__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--scc-account-yellow);
  font-size: 11px;
  font-weight: 800;
}

.scc-account-welcome h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
}

.scc-account-welcome p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.9;
}

.scc-account-role {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  white-space: nowrap;
}

.scc-account-role--partner {
  border-color: rgba(255, 180, 0, 0.38);
  background: rgba(255, 180, 0, 0.12);
  color: var(--scc-account-yellow);
}

.scc-account-actions {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scc-account-actions a {
  display: flex;
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--scc-account-border);
  border-radius: 17px;
  background: #fafafa;
  color: var(--scc-account-text) !important;
  flex-direction: column;
  text-decoration: none !important;
  transition: 0.24s ease;
}

.scc-account-actions a:hover {
  border-color: rgba(255, 180, 0, 0.7);
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.07);
  transform: translateY(-3px);
}

.scc-account-actions a > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: rgba(255, 180, 0, 0.12);
  color: #aa7300;
  place-items: center;
}

.scc-account-actions svg,
.scc-recovery-shell svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.scc-account-actions strong,
.scc-account-actions small {
  display: block;
}

.scc-account-actions strong {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 900;
}

.scc-account-actions small {
  color: var(--scc-account-muted);
  font-size: 10px;
  line-height: 1.8;
}

.scc-partner-status {
  display: flex;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #ead18f;
  border-radius: 14px;
  background: #fffaf0;
  align-items: flex-start;
  gap: 12px;
}

.scc-partner-status__mark {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--scc-account-yellow);
  box-shadow: 0 0 0 5px rgba(255, 180, 0, 0.14);
  flex: 0 0 auto;
}

.scc-partner-status strong {
  font-size: 13px;
  font-weight: 900;
}

.scc-partner-status p {
  margin: 4px 0 0 !important;
  color: var(--scc-account-muted);
  font-size: 11px;
  line-height: 1.9;
}

.scc-partner-status--approved {
  border-color: #b9dfc8;
  background: #f3fff7;
}

.scc-partner-status--approved .scc-partner-status__mark {
  background: #1a9b52;
  box-shadow: 0 0 0 5px rgba(26, 155, 82, 0.12);
}

.scc-partner-status--rejected {
  border-color: #f0c1c4;
  background: #fff6f7;
}

.scc-partner-status--rejected .scc-partner-status__mark {
  background: #cc3e48;
  box-shadow: 0 0 0 5px rgba(204, 62, 72, 0.11);
}

body.scc-my-account-ui .woocommerce-MyAccount-content h2,
body.scc-my-account-ui .woocommerce-MyAccount-content h3 {
  color: var(--scc-account-black);
  font-weight: 900;
}

body.scc-my-account-ui .woocommerce-MyAccount-content table {
  overflow: hidden;
  border: 1px solid var(--scc-account-border) !important;
  border-radius: 14px !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

body.scc-my-account-ui .woocommerce-MyAccount-content th,
body.scc-my-account-ui .woocommerce-MyAccount-content td {
  padding: 14px !important;
  border-color: var(--scc-account-border) !important;
  font-size: 12px;
}

body.scc-my-account-ui .woocommerce-MyAccount-content input.input-text,
body.scc-my-account-ui .woocommerce-MyAccount-content select,
body.scc-my-account-ui .woocommerce-MyAccount-content textarea {
  min-height: 52px !important;
  padding: 0 15px !important;
  border: 1px solid var(--scc-account-border) !important;
  border-radius: 10px !important;
  background: #fafafa !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content textarea {
  min-height: 110px !important;
  padding-top: 13px !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content input:focus,
body.scc-my-account-ui .woocommerce-MyAccount-content select:focus,
body.scc-my-account-ui .woocommerce-MyAccount-content textarea:focus {
  border-color: var(--scc-account-yellow) !important;
  outline: 0;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12) !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content button.button,
body.scc-my-account-ui .woocommerce-MyAccount-content a.button {
  min-height: 46px;
  padding: 0 20px !important;
  border-radius: 10px !important;
  background: var(--scc-account-yellow) !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 46px;
}

.scc-recovery-shell {
  display: grid;
  width: min(980px, calc(100% - 32px));
  min-height: 570px;
  margin: 36px auto 60px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.11);
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.scc-recovery-story {
  position: relative;
  display: flex;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 180, 0, 0.16), transparent 32%),
    #111;
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
}

.scc-recovery-story::after {
  position: absolute;
  left: -45px;
  bottom: 55px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 180, 0, 0.15);
  border-radius: 50%;
  content: "";
}

.scc-recovery-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  color: #fff !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.scc-recovery-brand span {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--scc-account-yellow);
  color: #111;
  font-size: 22px;
  font-weight: 900;
  place-items: center;
}

.scc-recovery-brand strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
}

.scc-recovery-story > div {
  position: relative;
  z-index: 1;
}

.scc-recovery-story__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 180, 0, 0.32);
  border-radius: 15px;
  background: rgba(255, 180, 0, 0.1);
  color: var(--scc-account-yellow);
  place-items: center;
}

.scc-recovery-story__icon svg {
  width: 24px;
  height: 24px;
}

.scc-recovery-story h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 45px);
  font-weight: 900;
  line-height: 1.35;
}

.scc-recovery-story h2 em {
  color: var(--scc-account-yellow);
  font-style: normal;
}

.scc-recovery-story p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 2;
}

.scc-recovery-story > small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.scc-recovery-main {
  display: flex;
  padding: clamp(34px, 5vw, 68px);
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 180, 0, 0.09), transparent 26%),
    #fff;
}

.scc-recovery-heading > span {
  color: var(--scc-account-yellow-dark);
  font-size: 11px;
  font-weight: 800;
}

.scc-recovery-heading h1 {
  margin: 8px 0 10px;
  color: var(--scc-account-black);
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.35;
}

.scc-recovery-heading p {
  margin: 0;
  color: var(--scc-account-muted);
  font-size: 12px;
  line-height: 1.9;
}

.scc-recovery-content {
  margin-top: 28px;
}

.scc-recovery-content form.lost_reset_password {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.scc-recovery-content form.lost_reset_password > p:first-child {
  margin: 0 0 20px;
  color: var(--scc-account-muted);
  font-size: 12px;
  line-height: 1.9;
}

.scc-recovery-content .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.scc-recovery-content label {
  display: block;
  margin-bottom: 8px;
  color: #3b3d42;
  font-size: 13px;
  font-weight: 800;
}

.scc-recovery-content input.input-text {
  width: 100%;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 17px !important;
  border: 1px solid var(--scc-account-border) !important;
  border-radius: 11px !important;
  outline: 0;
  background: #fafafa !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.scc-recovery-content input.input-text:focus {
  border-color: var(--scc-account-yellow) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.13) !important;
}

.scc-recovery-content button.button {
  width: 100%;
  min-height: 56px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--scc-account-yellow) !important;
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.22) !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.scc-recovery-content button.button:hover {
  background: #111 !important;
  color: #fff !important;
}

.scc-recovery-content .woocommerce-message,
.scc-recovery-content .woocommerce-info {
  margin: 0 !important;
  padding: 17px !important;
  border: 1px solid #b9dfc8 !important;
  border-radius: 12px;
  background: #f3fff7 !important;
  color: #275b3d !important;
  font-size: 12px;
  line-height: 1.9;
}

.scc-recovery-back {
  display: inline-flex;
  margin-top: 20px;
  color: #9a6900 !important;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
}

.scc-recovery-back svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  body.scc-my-account-ui main .woocommerce {
    grid-template-columns: 1fr;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation {
    position: static;
    padding: 12px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
    display: none;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
    min-height: 42px;
    white-space: nowrap;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .scc-recovery-shell {
    grid-template-columns: 1fr;
  }

  .scc-recovery-story {
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  body.scc-my-account-ui main .woocommerce {
    width: calc(100% - 20px);
    margin: 16px auto 36px;
    gap: 14px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-content {
    min-height: 460px;
    padding: 18px;
    border-radius: 18px;
  }

  .scc-account-welcome {
    min-height: 220px;
    padding: 24px 20px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .scc-account-actions {
    grid-template-columns: 1fr;
  }

  .scc-account-actions a {
    min-height: 112px;
  }

  .scc-recovery-shell {
    width: calc(100% - 20px);
    margin: 16px auto 36px;
    border-radius: 20px;
  }

  .scc-recovery-story {
    min-height: 320px;
    padding: 24px 21px;
  }

  .scc-recovery-main {
    padding: 36px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.scc-my-account-ui main .woocommerce *,
  .scc-recovery-shell * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Account layout hardening
 * ------------------------
 * Some themes place My Account inside an Elementor container and do not use a
 * main element. These selectors keep the navigation/content relationship
 * stable without affecting WooCommerce forms elsewhere on the site.
 */
body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
body.scc-my-account-ui .entry-content > .woocommerce,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 60px;
  grid-template-columns: minmax(0, 1fr) 238px;
  align-items: start;
  gap: 24px;
  direction: ltr;
}

body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > *,
body.scc-my-account-ui .entry-content > .woocommerce > *,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > * {
  direction: rtl;
}

body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation,
body.scc-my-account-ui .entry-content > .woocommerce > .woocommerce-MyAccount-navigation,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > .woocommerce-MyAccount-navigation {
  grid-column: 2;
  grid-row: 2;
}

body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content,
body.scc-my-account-ui .entry-content > .woocommerce > .woocommerce-MyAccount-content,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > .woocommerce-MyAccount-content {
  grid-column: 1;
  grid-row: 2;
}

body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper,
body.scc-my-account-ui .entry-content > .woocommerce > .woocommerce-notices-wrapper,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation {
  min-width: 0;
  overflow: hidden;
  padding: 12px !important;
  border: 1px solid #ececef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.08);
  color: var(--scc-account-text);
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
  margin: -12px -12px 12px;
  padding: 24px 20px;
  border: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 180, 0, 0.19), transparent 33%),
    #111;
  color: #fff;
  font-size: 16px;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
  min-height: 50px;
  color: #52555c !important;
  gap: 11px;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation a::before {
  width: 7px;
  height: 7px;
  border: 2px solid #c8c9cd;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  transition: inherit;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li.is-active a,
body.scc-my-account-ui .woocommerce-MyAccount-navigation a:hover {
  background: #fff7e2;
  color: #111 !important;
  box-shadow: inset -3px 0 0 var(--scc-account-yellow);
  transform: none;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li.is-active a::before,
body.scc-my-account-ui .woocommerce-MyAccount-navigation a:hover::before {
  border-color: var(--scc-account-yellow);
  background: var(--scc-account-yellow);
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
  margin: 8px 0 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid #ececef !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #a33a3a !important;
}

@media (max-width: 900px) {
  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
  body.scc-my-account-ui .entry-content > .woocommerce,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    direction: rtl;
  }

  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation,
  body.scc-my-account-ui .entry-content > .woocommerce > .woocommerce-MyAccount-navigation,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > .woocommerce-MyAccount-navigation,
  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content,
  body.scc-my-account-ui .entry-content > .woocommerce > .woocommerce-MyAccount-content,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: auto;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation {
    padding: 10px !important;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
    display: block;
    margin: -10px -10px 10px;
    padding: 16px 18px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation ul {
    display: flex;
    padding-bottom: 3px !important;
    overflow-x: auto;
    gap: 5px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
    min-height: 44px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }
}

@media (max-width: 620px) {
  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
  body.scc-my-account-ui .entry-content > .woocommerce,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce {
    width: calc(100% - 20px);
    margin: 16px auto 36px;
    gap: 14px;
  }
}

/* ================================================================
 * SCC 0.8.0 — Premium My Account refresh
 * Visual-only overrides; native WooCommerce endpoints and links remain intact.
 * ================================================================ */

body.scc-my-account-ui {
  --scc-account-panel: #111214;
  --scc-account-panel-soft: #1a1b1e;
  --scc-account-gold: #ffb400;
}

body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
body.scc-my-account-ui .entry-content > .woocommerce,
body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce,
body.scc-my-account-ui main .woocommerce {
  width: min(1200px, calc(100% - 32px));
  margin-top: 32px;
  margin-bottom: 68px;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 28px;
}

/* Premium dark navigation. */
body.scc-my-account-ui .woocommerce-MyAccount-navigation {
  overflow: hidden;
  padding: 12px !important;
  border: 1px solid rgba(255, 180, 0, 0.14) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 18% 2%, rgba(255, 180, 0, 0.16), transparent 28%),
    linear-gradient(160deg, #18191b 0%, #0e0f10 68%) !important;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.14) !important;
  color: #fff !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
  margin: -12px -12px 12px !important;
  padding: 25px 21px 23px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation ul {
  gap: 6px !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
  min-height: 52px !important;
  padding: 0 15px !important;
  border: 1px solid transparent;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  gap: 11px;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation a::before {
  width: 8px !important;
  height: 8px !important;
  border: 2px solid rgba(255, 255, 255, 0.28) !important;
  background: transparent !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li.is-active a,
body.scc-my-account-ui .woocommerce-MyAccount-navigation a:hover {
  border-color: rgba(255, 180, 0, 0.26) !important;
  background: linear-gradient(90deg, rgba(255, 180, 0, 0.18), rgba(255, 180, 0, 0.08)) !important;
  box-shadow: inset -3px 0 0 var(--scc-account-gold) !important;
  color: #fff !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation li.is-active a::before,
body.scc-my-account-ui .woocommerce-MyAccount-navigation a:hover::before {
  border-color: var(--scc-account-gold) !important;
  background: var(--scc-account-gold) !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.10);
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #ff9e9e !important;
}

/* Main content surface. */
body.scc-my-account-ui .woocommerce-MyAccount-content {
  min-height: 0 !important;
  padding: clamp(20px, 3vw, 32px) !important;
  border: 1px solid #e7e8eb !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 180, 0, 0.06), transparent 24%),
    #fff !important;
  box-shadow: 0 20px 54px rgba(17, 17, 17, 0.075) !important;
}

/* Welcome hero: fix theme specificity that could make the greeting invisible. */
body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome {
  min-height: 215px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 180, 0, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 180, 0, 0.26), transparent 26%),
    radial-gradient(circle at 88% 100%, rgba(255, 180, 0, 0.07), transparent 24%),
    linear-gradient(135deg, #191a1c 0%, #0e0f10 70%) !important;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.16);
}

body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome__eyebrow {
  margin-bottom: 12px;
  color: var(--scc-account-gold) !important;
  font-size: 12px !important;
  letter-spacing: 0;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome h2 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(28px, 3vw, 39px) !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 13px !important;
  line-height: 2 !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-role {
  min-height: 44px;
  padding: 0 17px;
  border-color: rgba(255, 180, 0, 0.28);
  background: rgba(255, 180, 0, 0.10);
  color: #ffd166;
  font-size: 12px;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome::after {
  left: -18px;
  bottom: -48px;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(68px, 8vw, 105px);
  letter-spacing: -6px;
}

/* Quick-action cards. */
body.scc-my-account-ui .scc-account-actions {
  margin-top: 20px;
  gap: 16px;
}

body.scc-my-account-ui .scc-account-actions a {
  position: relative;
  min-height: 158px;
  padding: 22px !important;
  overflow: hidden;
  border-color: #e6e7ea !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%) !important;
  box-shadow: 0 7px 24px rgba(17, 17, 17, 0.035);
}

body.scc-my-account-ui .scc-account-actions a::after {
  position: absolute;
  left: 18px;
  bottom: 15px;
  content: "‹";
  color: #c6c7cb;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: 0.22s ease;
}

body.scc-my-account-ui .scc-account-actions a:hover {
  border-color: rgba(255, 180, 0, 0.55) !important;
  background: #fffaf0 !important;
  box-shadow: 0 15px 34px rgba(17, 17, 17, 0.075) !important;
  transform: translateY(-4px);
}

body.scc-my-account-ui .scc-account-actions a:hover::after {
  color: var(--scc-account-gold);
  transform: translateX(-3px);
}

body.scc-my-account-ui .scc-account-actions a > span {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 180, 0, 0.20);
  border-radius: 13px;
  background: #fff5dc;
  color: #9d6900;
}

body.scc-my-account-ui .scc-account-actions strong {
  margin-bottom: 7px;
  color: #191a1d !important;
  font-size: 14px !important;
}

body.scc-my-account-ui .scc-account-actions small {
  padding-left: 30px;
  color: #7a7d83 !important;
  font-size: 11px !important;
  line-height: 1.85;
}

/* Endpoint content (orders / addresses / account details) keeps the same
 * premium surface without altering native WooCommerce actions. */
body.scc-my-account-ui .woocommerce-MyAccount-content > h2,
body.scc-my-account-ui .woocommerce-MyAccount-content > h3,
body.scc-my-account-ui .woocommerce-MyAccount-content > form > h2,
body.scc-my-account-ui .woocommerce-MyAccount-content > form > h3 {
  margin: 0 0 20px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #ececef;
  color: #17181a !important;
  font-size: clamp(21px, 2.3vw, 28px) !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .woocommerce-Address,
body.scc-my-account-ui .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
body.scc-my-account-ui .woocommerce-MyAccount-content form.woocommerce-address-fields {
  padding: 20px;
  border: 1px solid #e8e9ec;
  border-radius: 16px;
  background: #fbfbfc;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.scc-my-account-ui .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
  body.scc-my-account-ui .entry-content > .woocommerce,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce,
  body.scc-my-account-ui main .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation {
    position: static;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation::before {
    padding: 18px 18px 16px !important;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation ul {
    gap: 7px !important;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-navigation a {
    min-height: 44px !important;
    padding: 0 13px !important;
  }
}

@media (max-width: 620px) {
  body.scc-my-account-ui .woocommerce:has(> .woocommerce-MyAccount-navigation),
  body.scc-my-account-ui .entry-content > .woocommerce,
  body.scc-my-account-ui .elementor-widget-woocommerce-my-account .woocommerce,
  body.scc-my-account-ui main .woocommerce {
    width: calc(100% - 20px);
    margin-top: 16px;
    margin-bottom: 38px;
    gap: 14px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-content {
    padding: 15px !important;
    border-radius: 18px !important;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome {
    min-height: 235px;
    padding: 25px 21px;
    border-radius: 17px;
  }

  body.scc-my-account-ui .woocommerce-MyAccount-content .scc-account-welcome h2 {
    font-size: 27px !important;
  }

  body.scc-my-account-ui .scc-account-actions {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.scc-my-account-ui .scc-account-actions a {
    min-height: 125px;
    padding: 18px !important;
  }
}
