.cf-customer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  vertical-align: middle;
  color: inherit;
  font: inherit;
}

.cf-customer-links > .cf-customer-link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: .4rem 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
}

.cf-customer-links > .cf-customer-link:hover {
  color: #38caff;
}

.cf-customer-links > .cf-customer-link:focus-visible {
  color: #38caff;
  outline: 2px solid #8fd9ff;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .cf-customer-links { gap: 1rem; }
}

/* Account controls beside the two existing Elementor header carts. */
.elementor header.elementor-element-3f48b35,
.elementor header.elementor-element-2b101b25 { flex-wrap: wrap !important; }
.elementor header.elementor-element .elementor-element-1c6a9efa,
.elementor header.elementor-element .elementor-element-648ab289 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: auto !important;
  margin-left: auto;
  flex: 0 0 auto;
  max-width: 100%;
}
.elementor header.elementor-element .elementor-element-1c6a9efa > .cf-customer-links,
.elementor header.elementor-element .elementor-element-648ab289 > .cf-customer-links {
  color: #f3f8ff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.elementor header.elementor-element .elementor-element-4598111,
.elementor header.elementor-element .elementor-element-9f4a1e2 { flex: 0 0 44px; width: 44px; }
@media (max-width: 767px) {
  .elementor header.elementor-element .elementor-element-1c6a9efa,
  .elementor header.elementor-element .elementor-element-648ab289 {
    position: static !important;
    flex-basis: 100%;
    width: 100% !important;
    order: 10;
  }
}

.elementor header .cf-customer-links > .cf-customer-link { text-decoration: none; }

/* Focused My Account polish: presentation only. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after { display: none; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 24px;
  background: #0a2033;
  color: #d7e5f2;
  border: 1px solid #23445d;
  border-radius: 12px;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 16px;
  margin: 0;
  background: transparent;
  border: 0;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .woocommerce-Address-title h2 {
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  color: #f3f8ff;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  padding: 0;
  margin: 0;
  background: transparent;
  color: #d7e5f2;
  border: 0;
  border-radius: 0;
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #65d6ff;
  font-weight: 600;
  text-decoration: none;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address a:hover { color: #8fd9ff; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address a:focus-visible {
  outline: 2px solid #8fd9ff;
  outline-offset: 4px;
}
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-card {
  padding: 24px;
  margin-bottom: 20px;
  background: #0a2033;
  color: #d7e5f2;
  border: 1px solid #23445d;
  border-radius: 12px;
}
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-card h3 { margin-top: 0; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-card h4 { margin: 20px 0 12px; font-size: 1rem; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-key code { overflow-wrap: anywhere; word-break: break-word; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-usage {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  margin: 20px 0;
}
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-usage dt { margin: 0; font-weight: 600; color: #d7e5f2; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-usage dd { margin: 0; color: #65d6ff; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-activated-sites { list-style: none; margin: 0 0 16px; padding: 0; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-activated-sites li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid #23445d;
  padding: 10px 0;
}
body.woocommerce-account .woocommerce-MyAccount-content .cf-activated-sites li > span { min-width: 0; overflow-wrap: anywhere; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-actions form { margin: 4px 0 !important; }
@media (max-width: 900px) {
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
  body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-card { padding: 18px; }
  body.woocommerce-account .woocommerce-MyAccount-content .cf-licence-usage { column-gap: 10px; }
}

/* Remove WooCommerce clearfix items from the address-card flex headers. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .title::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .title::after { display: none; }
/* Atomic paragraph markup strips shortcode classes in this account header. */
body.woocommerce-account header.elementor-element [data-id="7e05b0e9"] > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.woocommerce-account header.elementor-element [data-id="7e05b0e9"] > span > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* QA: separate account links in atomic header paragraph markup. */
.elementor header.elementor-element nav .e-paragraph-base > span:has(> a[href*="/my-account/"]) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.elementor header.elementor-element nav .e-paragraph-base > span:has(> a[href*="/my-account/"]) > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
