/* ============================================================
   NOVO Imaging — My Account Page Styles
   Loaded only on is_account_page() — no impact on other pages.
   Design tokens from novo-tokens.css.
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.woocommerce-account .entry-content,
.woocommerce-account .woocommerce {
  max-width: none;
}

.nv-account-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: var(--novo-container);
  margin: 0 auto;
  padding: 48px var(--novo-pad-desktop);
  box-sizing: border-box;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.nv-account-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--novo-hdr-h) + 20px);
}

/* ── Account nav ──────────────────────────────────────────── */
.nv-account-nav {
  background: var(--novo-navy);
  border-radius: var(--novo-radius-md);
  overflow: hidden;
}

/* Profile block */
.nv-account-nav__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nv-account-nav__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--novo-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--novo-font);
}

.nv-account-nav__user {
  min-width: 0;
}

.nv-account-nav__name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-account-nav__email {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav list */
.nv-account-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.nv-account-nav__item {
  margin: 0;
}

.nv-account-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--novo-font);
  border-left: 3px solid transparent;
  transition: var(--novo-transition);
}

.nv-account-nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-left-color: rgba(255,255,255,.25);
}

.nv-account-nav__link.is-active {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-left-color: var(--novo-orange);
  font-weight: 600;
}

.nv-account-nav__link i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Logout item */
.nv-account-nav__item:last-child .nv-account-nav__link {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
}

.nv-account-nav__item:last-child .nv-account-nav__link:hover {
  color: #ff7070;
  background: rgba(255,80,80,.08);
  border-left-color: #ff7070;
}

/* ── Content panel ────────────────────────────────────────── */
.nv-account-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: var(--novo-radius-md);
  box-shadow: var(--novo-shadow-card);
  padding: 36px;
}

/* Auth state: card styling is on .nv-auth-panel — wrapper handled by the auth-specific block below */

.nv-account-content h2,
.nv-account-content h3 {
  color: var(--novo-navy);
  font-family: var(--novo-font);
  margin-top: 0;
}

/* ── Dashboard welcome ────────────────────────────────────── */
.nv-dash-welcome {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--novo-border);
}

.nv-dash-welcome__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--novo-orange);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--novo-font);
}

.nv-dash-welcome__text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--novo-navy);
  margin: 0 0 4px;
}

.nv-dash-welcome__text p {
  margin: 0;
  font-size: 14px;
  color: var(--novo-grey-tx);
}

/* ── Dashboard quick-action cards ────────────────────────── */
.nv-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.nv-dash-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--novo-border);
  border-radius: var(--novo-radius-sm);
  text-decoration: none;
  color: var(--novo-navy);
  transition: var(--novo-transition);
  background: var(--novo-grey-bg);
}

.nv-dash-card:hover {
  border-color: var(--novo-orange);
  box-shadow: var(--novo-shadow-sm);
  background: #fff;
  color: var(--novo-navy);
}

.nv-dash-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--novo-radius-xs);
  background: var(--novo-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nv-dash-card__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--novo-navy);
}

.nv-dash-card__sub {
  font-size: 12px;
  color: var(--novo-grey-tx);
  line-height: 1.4;
}

/* ── My Requests placeholder ──────────────────────────────── */
.nv-requests-empty {
  text-align: center;
  padding: 60px 20px;
}

.nv-requests-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--novo-grey-bg);
  color: var(--novo-grey-tx);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.nv-requests-empty h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--novo-navy);
  margin: 0 0 10px;
}

.nv-requests-empty p {
  font-size: 15px;
  color: var(--novo-grey-tx);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: var(--novo-lh-base);
}

.nv-requests-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--novo-navy);
  color: #fff;
  border-radius: var(--novo-radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--novo-transition);
}

.nv-requests-empty__cta:hover {
  background: var(--novo-navy-light);
  color: #fff;
}

/* ── Login / Register forms ───────────────────────────────── */
.woocommerce-account .woocommerce:has(.nv-account-wrap--auth) {
  padding: 48px 32px !important;
  background: #f0f2f5;
}

.nv-account-wrap--auth {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 560px;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ── Auth branding panel ──────────────────────────────────── */
.nv-auth-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #04202f 0%, #0B3954 40%, #0d4a6a 75%, #0B3954 100%);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

/* Orange glow — top right */
.nv-auth-brand::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 109, 13, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

/* Subtle light ring — bottom left */
.nv-auth-brand::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.nv-auth-brand > * {
  position: relative;
  z-index: 1;
}

/* Content width cap so text doesn't stretch on wide screens */
.nv-auth-brand__inner {
  max-width: 480px;
  width: 100%;
}

.nv-auth-brand__logo {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
}

.nv-auth-brand__img {
  height: 44px;
  width: auto;
  /* invert dark logo to white on navy bg */
  filter: brightness(0) invert(1);
}

.nv-auth-brand__svg {
  height: 44px;
  width: auto;
}

.nv-auth-brand__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nv-auth-brand__headline {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
  font-family: var(--novo-font);
}

.nv-auth-brand__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 400px;
}

.nv-auth-brand__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-auth-brand__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.nv-auth-brand__features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--novo-orange);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: center;
}

/* ── Auth form panel ──────────────────────────────────────── */
.nv-account-wrap--auth .nv-account-content {
  background: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  box-shadow: none;
}

.nv-auth-single {
  width: 100%;
  max-width: 420px;
}

.nv-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.nv-auth-panel {
  background: #fff;
  border-radius: var(--novo-radius-md);
  box-shadow: var(--novo-shadow-card);
  padding: 36px;
}

.nv-auth-panel h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--novo-navy);
  margin: 0 0 6px;
  font-family: var(--novo-font);
}

.nv-auth-panel__sub {
  font-size: 14px;
  color: var(--novo-grey-tx);
  margin: 0 0 28px;
}

.nv-auth-panel .woocommerce-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--novo-navy);
  margin-bottom: 6px;
}

.nv-auth-panel input[type="text"],
.nv-auth-panel input[type="email"],
.nv-auth-panel input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--novo-border);
  border-radius: var(--novo-radius-xs);
  font-size: 14px;
  font-family: var(--novo-font);
  color: var(--novo-navy);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.nv-auth-panel input[type="text"]:focus,
.nv-auth-panel input[type="email"]:focus,
.nv-auth-panel input[type="password"]:focus {
  outline: none;
  border-color: var(--novo-navy);
}

.nv-auth-panel .form-row {
  margin-bottom: 18px;
}

.nv-auth-panel .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--novo-grey-tx);
  margin-bottom: 0;
}

.nv-auth-panel .woocommerce-LostPassword {
  font-size: 13px;
  margin-top: 14px;
  text-align: right;
}

.nv-auth-panel .woocommerce-LostPassword a {
  color: var(--novo-orange);
  text-decoration: none;
}

.nv-auth-panel .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

/* Remember + forgot password on same row */
.nv-auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nv-auth-remember-row .woocommerce-LostPassword {
  margin-top: 0;
  text-align: right;
}

/* Switch to register */
.nv-auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--novo-border);
  font-size: 14px;
  color: var(--novo-grey-tx);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nv-auth-switch a {
  color: var(--novo-navy);
  font-weight: 600;
  text-decoration: none;
  transition: var(--novo-transition);
}

.nv-auth-switch a:hover {
  color: var(--novo-orange);
}

/* Divider between login and create account */
.nv-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--novo-grey-tx);
  font-size: 13px;
}

.nv-auth-divider::before,
.nv-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--novo-border);
}

/* Create account outlined button */
.nv-auth-panel .nv-auth-register-btn,
a.nv-auth-register-btn {
  display: block;
  width: 100%;
  padding: 11px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--novo-navy);
  background: transparent;
  border: 2px solid var(--novo-navy);
  border-radius: var(--novo-radius-sm);
  text-decoration: none;
  transition: var(--novo-transition);
  box-sizing: border-box;
  cursor: pointer;
}

.nv-auth-panel .nv-auth-register-btn:hover,
a.nv-auth-register-btn:hover {
  background: var(--novo-navy);
  color: #fff;
}

/* Back to sign in */
.nv-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--novo-grey-tx);
  text-decoration: none;
  margin-bottom: 20px;
  transition: var(--novo-transition);
}

.nv-auth-back:hover {
  color: var(--novo-navy);
}

.nv-auth-panel button[type="submit"],
.nv-auth-panel input[type="submit"] {
  width: 100%;
  padding: 13px 24px;
  background: var(--novo-navy);
  color: #fff;
  border: none;
  border-radius: var(--novo-radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--novo-font);
  cursor: pointer;
  transition: var(--novo-transition);
  letter-spacing: -.2px;
}

.nv-auth-panel button[type="submit"]:hover,
.nv-auth-panel input[type="submit"]:hover {
  background: var(--novo-navy-light);
}

/* WC notices inside auth */
.nv-account-wrap--auth .woocommerce-error,
.nv-account-wrap--auth .woocommerce-message,
.nv-account-wrap--auth .woocommerce-info {
  margin-bottom: 20px;
  border-radius: var(--novo-radius-xs);
  font-size: 14px;
}

/* ── Orders / Downloads table ─────────────────────────────── */
.nv-account-content .woocommerce-orders-table,
.nv-account-content .woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nv-account-content .woocommerce-orders-table th,
.nv-account-content .woocommerce-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--novo-grey-tx);
  border-bottom: 2px solid var(--novo-border);
}

.nv-account-content .woocommerce-orders-table td,
.nv-account-content .woocommerce-table td {
  padding: 14px;
  border-bottom: 1px solid var(--novo-border);
  vertical-align: middle;
}

.nv-account-content .woocommerce-orders-table tbody tr:hover td,
.nv-account-content .woocommerce-table tbody tr:hover td {
  background: var(--novo-grey-bg);
}

.nv-account-content .woocommerce-button.button,
.nv-account-content a.button {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--novo-navy);
  color: #fff;
  border-radius: var(--novo-radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--novo-transition);
  border: none;
  cursor: pointer;
}

.nv-account-content .woocommerce-button.button:hover,
.nv-account-content a.button:hover {
  background: var(--novo-navy-light);
  color: #fff;
}

/* ── Address cards ────────────────────────────────────────── */
.nv-account-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.nv-account-content .woocommerce-Address {
  border: 1px solid var(--novo-border);
  border-radius: var(--novo-radius-sm);
  padding: 24px;
}

.nv-account-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--novo-border);
}

.nv-account-content .woocommerce-Address-title h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--novo-navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nv-account-content address {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  font-style: normal;
}

/* ── Edit Account form ────────────────────────────────────── */
.nv-account-content .woocommerce-EditAccountForm .form-row {
  margin-bottom: 18px;
}

.nv-account-content .woocommerce-EditAccountForm label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--novo-navy);
  margin-bottom: 6px;
}

.nv-account-content .woocommerce-EditAccountForm input[type="text"],
.nv-account-content .woocommerce-EditAccountForm input[type="email"],
.nv-account-content .woocommerce-EditAccountForm input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--novo-border);
  border-radius: var(--novo-radius-xs);
  font-size: 14px;
  font-family: var(--novo-font);
  color: var(--novo-navy);
  box-sizing: border-box;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.nv-account-content .woocommerce-EditAccountForm input:focus {
  outline: none;
  border-color: var(--novo-navy);
}

.nv-account-content .woocommerce-EditAccountForm button[type="submit"] {
  padding: 13px 32px;
  background: var(--novo-navy);
  color: #fff;
  border: none;
  border-radius: var(--novo-radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--novo-font);
  cursor: pointer;
  transition: var(--novo-transition);
}

.nv-account-content .woocommerce-EditAccountForm button[type="submit"]:hover {
  background: var(--novo-navy-light);
}

/* ── Responsive: tablet / mobile ──────────────────────────── */
@media (max-width: 900px) {
  .woocommerce-account .nv-account-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 32px var(--novo-pad-mobile);
  }

  .nv-account-sidebar {
    width: 100%;
    position: static;
  }

  /* Horizontal scrollable pill nav on mobile */
  .nv-account-nav__list {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nv-account-nav__list::-webkit-scrollbar {
    display: none;
  }

  .nv-account-nav__item {
    flex-shrink: 0;
  }

  .nv-account-nav__item:last-child .nv-account-nav__link {
    border-top: none;
    margin-top: 0;
    padding-top: 8px;
  }

  .nv-account-nav__link {
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--novo-radius-xs);
    padding: 8px 14px;
    white-space: nowrap;
  }

  .nv-account-nav__link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--novo-orange);
    background: rgba(255,255,255,.12);
  }

  .nv-account-nav__link:hover {
    border-left-color: transparent;
  }

  .nv-account-content {
    padding: 24px;
  }

  .nv-auth-grid {
    grid-template-columns: 1fr;
  }

  .nv-account-wrap--auth {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .woocommerce-account .woocommerce:has(.nv-account-wrap--auth) {
    padding: 24px 16px !important;
  }

  .nv-auth-brand {
    display: none;
  }

  .nv-account-wrap--auth .nv-account-content {
    padding: 40px 32px;
  }

  .nv-account-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nv-account-content {
    padding: 20px 16px;
  }

  .nv-dash-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Address list (edit-address) ──────────────────────────── */
.nv-account-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.nv-account-content .woocommerce-Address {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.nv-account-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.nv-account-content .woocommerce-Address-title h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--novo-navy);
  margin: 0;
}

.nv-account-content .woocommerce-Address-title .edit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--novo-orange);
  white-space: nowrap;
  text-decoration: none;
}

.nv-account-content .woocommerce-Address-title .edit:hover {
  text-decoration: underline;
}

.nv-account-content .woocommerce-Address address {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: normal;
  line-height: 1.6;
}

/* ── Account / address forms ──────────────────────────────── */
.nv-account-content .woocommerce-EditAccountForm,
.nv-account-content .woocommerce-address-fields {
  max-width: 640px;
}

/* WC wraps every input in .woocommerce-input-wrapper — force full-width */
.nv-account-content .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.nv-account-content .form-row {
  margin-bottom: 16px;
}

.nv-account-content .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--novo-navy);
  margin-bottom: 6px;
}

.nv-account-content .woocommerce-Input,
.nv-account-content .woocommerce-Input--text,
.nv-account-content .woocommerce-Input--password,
.nv-account-content .woocommerce-Input--email,
.nv-account-content .input-text,
.nv-account-content select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.nv-account-content .woocommerce-Input:focus,
.nv-account-content .input-text:focus,
.nv-account-content select:focus {
  outline: none;
  border-color: var(--novo-navy);
  box-shadow: 0 0 0 3px rgba(11, 57, 84, 0.08);
}

/* select2 containers must stretch full width */
.nv-account-content .select2-container {
  width: 100% !important;
}

.nv-account-content .select2-container .select2-selection--single {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.nv-account-content .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  color: #111827;
  padding: 0;
  font-size: 0.9375rem;
}

.nv-account-content .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

/* Address form page heading */
.nv-account-content .woocommerce-address-fields h3,
.nv-account-content > h2:first-child,
.nv-account-content > .woocommerce-notices-wrapper + h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--novo-navy);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.nv-account-content fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 20px 8px;
  margin: 24px 0 16px;
}

.nv-account-content fieldset legend {
  padding: 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--novo-navy);
}

.nv-account-content .woocommerce-Button,
.nv-account-content button[type="submit"],
.nv-account-content .button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--novo-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.nv-account-content .woocommerce-Button:hover,
.nv-account-content button[type="submit"]:hover,
.nv-account-content .button:hover {
  background: #0a304a;
}

/* two-col form rows (first/last) */
.nv-account-content .form-row-first,
.nv-account-content .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
  margin-bottom: 16px;
}

.nv-account-content .form-row-first {
  margin-right: 16px;
}

/* full-width rows override */
.nv-account-content .form-row-wide {
  display: block;
  width: 100%;
}

/* ── Address/account responsive ───────────────────────────── */
@media (max-width: 700px) {
  .nv-account-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .nv-account-content .form-row-first,
  .nv-account-content .form-row-last {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* ── Select2 dropdown — body-level, scoped to WC account pages ── */
/* The dropdown is appended to <body>, so .nv-account-content scope doesn't reach it. */
.woocommerce-account .select2-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-size: 0.9375rem;
}

/* Search input inside the dropdown */
.woocommerce-account .select2-search--dropdown {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.woocommerce-account .select2-search--dropdown .select2-search__field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db !important;
  border-radius: 5px;
  font-size: 0.875rem;
  color: #111827;
  box-sizing: border-box;
  outline: none;
}

.woocommerce-account .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--novo-navy) !important;
  box-shadow: 0 0 0 3px rgba(11, 57, 84, 0.08);
}

/* Results list */
.woocommerce-account .select2-results__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

.woocommerce-account .select2-results__option {
  padding: 9px 14px;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.woocommerce-account .select2-results__option--highlighted,
.woocommerce-account .select2-results__option[aria-selected="true"] {
  background: var(--novo-navy) !important;
  color: #fff !important;
}

.woocommerce-account .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
  background: #eef2f5 !important;
  color: var(--novo-navy) !important;
  font-weight: 500;
}

/* Scrollbar styling for the list */
.woocommerce-account .select2-results__options::-webkit-scrollbar {
  width: 5px;
}
.woocommerce-account .select2-results__options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}