/* B2C account dashboard — uses existing ShopIt brand tokens from b2c-storefront.css */

.b2c-account-page {
  padding: 1.5rem 0 2.75rem;
  background: var(--b2c-bg);
}

body:has(.b2c-account-page) .b2c-top-inner,
body:has(.b2c-account-page) .b2c-main,
body:has(.b2c-account-page) .b2c-shop-footer-inner {
  max-width: none;
}

.b2c-account-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.35rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

/* —— Sidebar —— */
.b2c-account-sidebar {
  background: #fff;
  border: 1px solid var(--b2c-line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(31, 31, 35, 0.06);
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}

.b2c-account-sidebar-hero {
  background: linear-gradient(135deg, var(--b2c-brand) 0%, var(--b2c-brand-dark) 100%);
  color: #fff;
  padding: 1.35rem 1.15rem 1.25rem;
  text-align: center;
}

.b2c-account-sidebar-avatar {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.b2c-account-sidebar-hero strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.b2c-account-sidebar-hero p {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.b2c-account-nav {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0;
}

.b2c-account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--b2c-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.b2c-account-nav-link .bi {
  font-size: 1rem;
  color: #94969f;
}

.b2c-account-nav-link:hover {
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
}

.b2c-account-nav-link:hover .bi {
  color: var(--b2c-brand);
}

.b2c-account-nav-link.is-active {
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
  border-left-color: var(--b2c-brand);
  font-weight: 700;
}

.b2c-account-nav-link.is-active .bi {
  color: var(--b2c-brand);
}

.b2c-account-sidebar-divider {
  height: 1px;
  background: var(--b2c-line);
  margin: 0.35rem 1rem;
}

.b2c-account-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  margin: 0.35rem 1rem 0;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--b2c-ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.b2c-account-logout:hover {
  background: #fafafa;
  color: #d32f2f;
}

.b2c-account-sidebar-foot {
  margin: 0.75rem 1rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--b2c-line);
  font-size: 0.72rem;
  color: #94969f;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.b2c-account-sidebar-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--b2c-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.b2c-account-sidebar-foot a .bi {
  font-size: 0.65rem;
}

/* —— Main pane —— */
.b2c-account-pane {
  background: #fff;
  border: 1px solid var(--b2c-line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(31, 31, 35, 0.05);
  min-height: 32rem;
  padding: 1.5rem 1.65rem 1.75rem;
}

.b2c-account-pane-head h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--b2c-ink);
}

.b2c-account-pane-head {
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #f0f0f2;
}

/* Profile hero header */
.b2c-profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--b2c-line);
  margin-bottom: 1.85rem;
}

.b2c-profile-hero-copy {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.b2c-profile-hero-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--b2c-brand-mid);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--b2c-brand);
  background: var(--b2c-brand-soft);
  flex-shrink: 0;
}

.b2c-profile-hero-copy h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--b2c-ink);
  letter-spacing: -0.01em;
}

.b2c-profile-hero-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--b2c-muted);
  line-height: 1.45;
  max-width: 26rem;
}

.b2c-profile-hero-art {
  flex-shrink: 0;
  opacity: 0.95;
}

.b2c-profile-hero-art img {
  display: block;
}

/* Profile form */
.b2c-profile-pane {
  max-width: 36rem;
}

.b2c-profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.b2c-profile-field label {
  display: block;
  margin-bottom: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #535766;
}

.b2c-profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.b2c-profile-field-edit {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  border: 0;
  background: transparent;
  color: var(--b2c-brand);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  text-decoration: none;
}

.b2c-profile-field-edit:hover,
.b2c-profile-field-edit:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.b2c-profile-form.is-setup .b2c-profile-field-edit,
.b2c-profile-field-edit[hidden],
.b2c-profile-form.is-view .b2c-profile-field.is-empty .b2c-profile-field-edit {
  display: none !important;
}

.b2c-profile-form.is-view .b2c-profile-field:not(.is-editing):not(.is-empty) .b2c-profile-input-wrap:not(.b2c-profile-input-wrap--readonly) input,
.b2c-profile-form.is-view .b2c-profile-field:not(.is-editing):not(.is-empty) .b2c-profile-select-trigger {
  background: #f5f5f6;
  color: #535766;
  cursor: default;
  pointer-events: none;
}

.b2c-profile-form.is-view .b2c-profile-field.is-empty .b2c-profile-input-wrap input,
.b2c-profile-form.is-view .b2c-profile-field.is-empty .b2c-profile-select-trigger {
  background: #fff;
  color: var(--b2c-ink);
  cursor: text;
  pointer-events: auto;
}

.b2c-profile-form.is-view .b2c-profile-field.is-empty .b2c-profile-select-trigger {
  cursor: pointer;
}

.b2c-profile-form.is-view .b2c-profile-field:not(.is-editing):not(.is-empty) .b2c-profile-select-trigger .bi-chevron-down {
  opacity: 0.45;
}

.b2c-profile-form.is-view .b2c-profile-actions {
  display: none;
}

.b2c-profile-form.is-view.is-editing .b2c-profile-actions,
.b2c-profile-form.is-view.has-empty-fields .b2c-profile-actions {
  display: block;
}

.b2c-profile-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.b2c-profile-input-wrap > .bi {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #94969f;
  pointer-events: none;
  z-index: 1;
}

.b2c-profile-input-wrap input,
.b2c-profile-input-wrap select {
  width: 100%;
  padding: 0.72rem 0.85rem 0.72rem 2.45rem;
  border: 1px solid var(--b2c-line);
  border-radius: var(--b2c-radius-ctl);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--b2c-ink);
  background-color: var(--b2c-surface);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2c-profile-select-wrap {
  width: 100%;
}

.b2c-profile-select {
  position: relative;
  width: 100%;
}

.b2c-profile-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.72rem 0.85rem 0.72rem 2.45rem;
  border: 1px solid var(--b2c-line);
  border-radius: var(--b2c-radius-ctl);
  background: var(--b2c-surface);
  color: var(--b2c-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2c-profile-select-trigger:hover {
  border-color: #cbd5e1;
}

.b2c-profile-select.is-open .b2c-profile-select-trigger,
.b2c-profile-select-trigger:focus {
  outline: none;
  border-color: var(--b2c-brand);
  box-shadow: 0 0 0 3px var(--b2c-brand-glow);
}

.b2c-profile-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2c-profile-select-value.is-placeholder {
  color: #94969f;
  font-weight: 500;
}

.b2c-profile-select-trigger .bi-chevron-down {
  position: static;
  flex-shrink: 0;
  margin-left: 0.35rem;
  font-size: 0.8rem;
  color: var(--b2c-brand);
  transition: transform 0.15s ease;
}

.b2c-profile-select.is-open .b2c-profile-select-trigger .bi-chevron-down {
  transform: rotate(180deg);
}

.b2c-profile-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border: 1px solid var(--b2c-line);
  border-radius: var(--b2c-radius-ctl);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.b2c-profile-select-menu button {
  display: block;
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 2.45rem;
  border: 0;
  background: transparent;
  color: var(--b2c-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.b2c-profile-select-menu button:hover,
.b2c-profile-select-menu button:focus {
  outline: none;
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
}

.b2c-profile-select-menu button.is-selected {
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
  font-weight: 700;
}

.b2c-profile-select-menu button.is-placeholder {
  color: #94969f;
}

.b2c-profile-input-wrap select {
  cursor: pointer;
  padding-right: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--b2c-brand) 50%),
    linear-gradient(135deg, var(--b2c-brand) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.b2c-profile-input-wrap select:hover {
  border-color: #cbd5e1;
}

.b2c-profile-input-wrap select option {
  color: var(--b2c-ink);
  background: #fff;
}

.b2c-profile-input-wrap input:focus,
.b2c-profile-input-wrap select:focus {
  outline: none;
  border-color: var(--b2c-brand);
  box-shadow: 0 0 0 3px var(--b2c-brand-glow);
}

.b2c-profile-input-wrap--readonly input {
  background: #f5f5f6;
  color: #535766;
  cursor: not-allowed;
}

.b2c-profile-input-wrap--grow {
  flex: 1;
  min-width: 0;
}

.b2c-profile-input-wrap--has-badge input {
  padding-right: 7.25rem;
}

.b2c-profile-email-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.b2c-profile-verify-btn {
  flex-shrink: 0;
  align-self: center;
  height: 2rem;
  padding: 0 0.9rem;
  border: 1px solid #d5d7db;
  border-radius: 0.5rem;
  background: #fff;
  color: #282c3f;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.b2c-profile-verify-btn:hover {
  border-color: var(--b2c-brand);
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
}

.b2c-profile-outlined-row .b2c-profile-verify-btn[hidden] {
  display: none !important;
}

.b2c-profile-referral {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--b2c-line);
}

.b2c-profile-referral h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.b2c-profile-referral p {
  margin: 0 0 0.75rem;
  color: var(--b2c-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.b2c-profile-referral-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.b2c-profile-referral-row .b2c-profile-input-wrap {
  flex: 1;
  min-width: 0;
}

.b2c-profile-verify-btn--confirm {
  margin-top: 0.55rem;
  width: 100%;
  height: auto;
  min-height: 2.5rem;
  padding: 0.65rem;
  border-color: var(--b2c-brand);
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
  font-weight: 700;
}

.b2c-profile-email-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #16a34a;
  line-height: 0;
  pointer-events: none;
}

.b2c-profile-email-badge[hidden] {
  display: none !important;
}

.b2c-profile-email-badge .bi,
.b2c-profile-email-badge i {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
  position: static;
  transform: none;
  color: inherit;
}

.b2c-profile-email-otp {
  margin-top: 0.55rem;
}

.b2c-profile-email-error {
  margin: 0.45rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.4;
}

.b2c-profile-email-dev {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--b2c-brand);
  font-weight: 600;
  line-height: 1.4;
}

.b2c-profile-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #94969f;
  line-height: 1.4;
}

.b2c-profile-form.is-view .b2c-profile-field[data-profile-field="alternates"]:not(.is-editing) .b2c-profile-alt-remove {
  display: none;
}

.b2c-profile-form.is-view .b2c-profile-field[data-profile-field="alternates"]:not(.is-editing) .b2c-profile-alt-row input {
  background: #f5f5f6;
  color: #535766;
  pointer-events: none;
}

.b2c-profile-field[data-profile-field="alternates"].is-alt-empty:not(.is-editing) .b2c-profile-alt-list {
  display: none;
  margin: 0;
}

.b2c-profile-alt-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.b2c-profile-alt-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.b2c-profile-alt-row .b2c-profile-input-wrap {
  flex: 1;
}

.b2c-profile-alt-remove {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--b2c-line);
  border-radius: 8px;
  background: #fff;
  color: #94969f;
  cursor: pointer;
}

.b2c-profile-alt-remove:hover {
  color: #d32f2f;
  border-color: #f5c6cb;
}

.b2c-profile-alt-add {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px dashed #d4d5d9;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.b2c-profile-alt-add:hover:not(:disabled) {
  border-color: var(--b2c-brand);
  background: var(--b2c-brand-soft);
}

.b2c-profile-alt-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.b2c-profile-alt-add-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.b2c-profile-alt-add-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.b2c-profile-alt-add-text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--b2c-brand);
}

.b2c-profile-alt-add-text small {
  font-size: 0.72rem;
  color: #94969f;
  font-weight: 400;
}

.b2c-profile-status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.b2c-profile-status.is-error { color: #d32f2f; }
.b2c-profile-status.is-success { color: #1b8f3a; }

.b2c-req { color: #e11d48; margin-left: 2px; }
.b2c-profile-outlined-field { margin-bottom: 0.85rem; }
.b2c-profile-outlined {
  border: 1px solid #d5d7db;
  border-radius: 4px;
  padding: 0.45rem 0.85rem 0.55rem;
  background: #fff;
}
.b2c-profile-outlined label {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #696b79;
}
.b2c-profile-outlined input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #282c3f;
  background: transparent;
  padding: 0.15rem 0;
}
.b2c-profile-outlined-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.45rem;
}
.b2c-profile-outlined-row input { flex: 1; min-width: 0; line-height: 1.45rem; height: 1.45rem; padding: 0; }
.b2c-profile-verified-tick,
.b2c-profile-email-badge {
  color: #16a34a;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.b2c-profile-verified-tick[hidden],
.b2c-profile-email-badge[hidden] {
  display: none !important;
}
.b2c-profile-verified-tick i,
.b2c-profile-email-badge i {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
}
.b2c-profile-cc {
  font-size: 0.95rem;
  font-weight: 700;
  color: #282c3f;
}
.b2c-profile-cc-split {
  width: 1px;
  height: 1.1rem;
  background: #d5d7db;
}
.b2c-profile-helper {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.75rem;
  color: #94969f;
}
.b2c-profile-alt-block h2 {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #535766;
}
.b2c-profile-save-btn--accent {
  width: 100%;
  min-height: 3rem;
  border-radius: var(--b2c-radius-ctl);
  background: var(--b2c-brand);
  box-shadow: 0 8px 20px rgba(0, 80, 255, 0.28);
  letter-spacing: 0.08em;
}
.b2c-profile-save-btn--accent:hover {
  background: var(--b2c-brand-dark);
  box-shadow: 0 10px 24px rgba(0, 80, 255, 0.32);
}
.b2c-profile-danger {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ececf0;
  text-align: center;
}
.b2c-profile-delete-btn {
  border: 0;
  background: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.b2c-profile-delete-btn:hover {
  color: #b91c1c;
}
.b2c-profile-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.b2c-profile-delete-modal[hidden] { display: none; }
.b2c-profile-delete-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.b2c-profile-delete-card {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.b2c-profile-delete-card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.b2c-profile-delete-card p {
  margin: 0.55rem 0 0;
  color: #535766;
  font-size: 0.88rem;
  line-height: 1.45;
}
.b2c-profile-delete-error { color: #c62828 !important; }
.b2c-profile-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.b2c-profile-delete-cancel,
.b2c-profile-delete-confirm {
  border-radius: 8px;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  font-weight: 800;
  cursor: pointer;
}
.b2c-profile-delete-cancel {
  border: 1px solid #d5d7db;
  background: #fff;
  color: #3e4152;
}
.b2c-profile-delete-confirm {
  border: 0;
  background: var(--b2c-brand);
  color: #fff;
}

.b2c-profile-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 11rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--b2c-radius-ctl);
  background: var(--b2c-brand);
  color: #fff;
  font-family: var(--b2c-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 80, 255, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.b2c-profile-save-btn:hover {
  background: var(--b2c-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 80, 255, 0.32);
}

.b2c-profile-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Wishlist inside account */
.b2c-account-wishlist-pane .b2c-wishlist-grid {
  margin-top: 0.15rem;
}

.b2c-account-wishlist-pane .b2c-wishlist-grid > .b2c-account-empty {
  max-width: 28rem;
  margin: 1.5rem auto;
}

.b2c-account-wishlist-pane .b2c-wishlist-list {
  border-color: #f0f0f2;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.b2c-account-wishlist-pane .b2c-wishlist-row {
  padding-left: 0;
  padding-right: 0;
}

/* Addresses */
.b2c-account-address-list {
  margin-top: 0.35rem;
}

.b2c-account-address-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--b2c-brand);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.b2c-account-address-add:hover,
.b2c-account-address-add:focus-visible {
  color: #003dcc;
}

.b2c-account-address-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 0;
  border-bottom: 1px solid #f0f0f2;
}

.b2c-account-address-row:last-child {
  border-bottom: none;
}

.b2c-account-address-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #f5f5f6;
  display: grid;
  place-items: center;
  color: #696b79;
  font-size: 1.05rem;
}

.b2c-account-address-body {
  min-width: 0;
}

.b2c-account-address-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--b2c-ink);
  margin-bottom: 0.2rem;
}

.b2c-account-address-line,
.b2c-account-address-phone {
  margin: 0;
  font-size: 0.82rem;
  color: #696b79;
  line-height: 1.45;
}

.b2c-account-address-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b2c-account-address-phone {
  margin-top: 0.2rem;
}

.b2c-account-address-menu-wrap {
  position: relative;
}

.b2c-account-address-menu-btn {
  border: none;
  background: transparent;
  color: #94969f;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
}

.b2c-account-address-menu-btn:hover,
.b2c-account-address-menu-wrap.is-open .b2c-account-address-menu-btn {
  color: var(--b2c-ink);
}

.b2c-account-address-dropdown {
  position: absolute;
  top: calc(100% - 0.15rem);
  right: 0;
  z-index: 5;
  min-width: 7.5rem;
  padding: 0.35rem 0;
  border: 1px solid var(--b2c-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 44, 63, 0.12);
}

.b2c-account-address-dropdown button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  color: var(--b2c-ink);
  cursor: pointer;
}

.b2c-account-address-dropdown button:hover,
.b2c-account-address-dropdown button:focus-visible {
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
}

.b2c-account-address-dropdown button.is-danger {
  color: #d6324d;
}

.b2c-account-address-dropdown button.is-danger:hover,
.b2c-account-address-dropdown button.is-danger:focus-visible {
  background: #fff0f3;
  color: #d6324d;
}

.b2c-account-loading {
  margin-top: 1.25rem;
  text-align: center;
  color: #535766;
  font-size: 0.88rem;
}

/* Premium empty states */
.b2c-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(52vh, 28rem);
  padding: 2.5rem 1.5rem 3rem;
}

.b2c-account-empty-art {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.b2c-account-empty-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.b2c-account-empty-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--b2c-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.b2c-account-empty-sub {
  margin: 0.5rem 0 1.35rem;
  max-width: 24rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--b2c-muted);
  line-height: 1.5;
}

.b2c-account-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--b2c-brand);
  border-radius: var(--b2c-radius-ctl);
  background: #fff;
  color: var(--b2c-brand);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.b2c-account-empty-cta:hover,
.b2c-account-empty-cta:focus {
  background: var(--b2c-brand-soft);
  color: var(--b2c-brand);
  text-decoration: none;
}

.b2c-account-wishlist-pane .b2c-account-empty,
.b2c-account-addresses-pane .b2c-account-empty {
  width: 100%;
}

@media (max-width: 900px) {
  .b2c-account-shell {
    grid-template-columns: 1fr;
  }

  .b2c-account-sidebar {
    position: static;
  }

  .b2c-account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem;
    padding: 0.35rem 0.35rem 0.55rem;
  }

  .b2c-account-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }

  .b2c-account-nav-link.is-active {
    border-bottom-color: transparent;
    box-shadow: inset 0 -2px 0 var(--b2c-brand);
  }

  .b2c-account-sidebar-hero,
  .b2c-account-sidebar-divider,
  .b2c-account-logout,
  .b2c-account-sidebar-foot {
    display: none;
  }

  .b2c-profile-hero {
    flex-direction: column;
  }

  .b2c-profile-hero-art {
    align-self: flex-end;
  }

  .b2c-money-hero {
    flex-direction: column;
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .b2c-money-hero-art {
    align-self: center;
    width: min(16rem, 100%);
  }

  .b2c-money-balance-amount {
    font-size: 2.4rem;
  }

  .b2c-money-flow,
  .b2c-money-steps {
    grid-template-columns: 1fr;
  }

  .b2c-money-code-row {
    flex-direction: column;
  }
}

.b2c-money-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
}

.b2c-money-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 17.5rem;
  padding: 1.65rem 1.75rem 1.8rem;
  border: 1px solid #d9e7ff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, #eef5ff 0%, #dce9ff 52%, #eaf2ff 100%);
  box-shadow: 0 10px 28px rgba(0, 80, 255, 0.08);
}

.b2c-money-hero::before {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  top: 1.35rem;
  right: 38%;
  border-radius: 50%;
  background: #7aa2ff;
  box-shadow:
    7.5rem 2.8rem 0 0.08rem #9bb8ff,
    -1.5rem 8.5rem 0 0 #c5d8ff,
    2.2rem 11rem 0 0.12rem #8eb0ff;
  pointer-events: none;
}

.b2c-money-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: url("../images/b2c-money-waves.svg") no-repeat bottom / 100% 100%;
  pointer-events: none;
}

.b2c-money-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 34rem;
}

.b2c-money-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: #dff0ff;
  color: var(--b2c-brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.b2c-money-hero-copy h1 {
  margin: 0.85rem 0 0.4rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #10203a;
}

.b2c-money-hero-lead {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  color: #6b7285;
  font-size: 0.95rem;
  line-height: 1.55;
}

.b2c-money-balance-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b93a7;
}

.b2c-money-balance-amount {
  margin: 0.1rem 0 0;
  font-size: 3.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--b2c-brand);
}

.b2c-money-hero-art {
  position: relative;
  z-index: 1;
  flex: 0 1 17.5rem;
  width: min(17.5rem, 42%);
}

.b2c-money-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.b2c-money-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.b2c-money-flow-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 22px rgba(31, 31, 35, 0.045);
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.b2c-money-flow-card > .bi-chevron-right {
  margin-left: auto;
  color: #c5c8d1;
  font-size: 1.05rem;
}

.b2c-money-flow-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.b2c-money-flow-card.is-in .b2c-money-flow-icon {
  background: #e7f8ee;
  color: #15803d;
}

.b2c-money-flow-card.is-out .b2c-money-flow-icon {
  background: #fdecec;
  color: #c62828;
}

.b2c-money-flow-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--b2c-ink);
}

.b2c-money-flow-card strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.b2c-money-flow-card small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  color: var(--b2c-muted);
}

.b2c-money-flow-card.is-in strong { color: #15803d; }
.b2c-money-flow-card.is-out strong { color: #c0392b; }

.b2c-money-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.b2c-money-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  padding: 0.85rem 1rem 3.4rem;
  border: 1px solid #eef0f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 31, 35, 0.045);
}

.b2c-money-step img {
  display: block;
  width: min(9.5rem, 70%);
  height: auto;
  margin: 0.15rem auto 0.55rem;
}

.b2c-money-step h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--b2c-ink);
}

.b2c-money-step p {
  margin: 0.25rem 0 0;
  padding-right: 2.4rem;
  color: var(--b2c-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.b2c-money-step-go {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--b2c-brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 80, 255, 0.25);
}

.b2c-money-step-go:hover,
.b2c-money-step-go:focus {
  color: #fff;
  background: var(--b2c-brand-dark);
}

.b2c-money-referral-card,
.b2c-money-txn {
  border: 1px solid #eef0f5;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 31, 35, 0.04);
}

.b2c-money-referral-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.b2c-money-referral-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff7d6 0%, #ffe9a8 100%);
  flex-shrink: 0;
}

.b2c-money-referral-card h2,
.b2c-money-txn-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.b2c-money-referral-card p,
.b2c-money-txn-head p,
.b2c-money-empty {
  margin: 0;
  color: var(--b2c-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.b2c-money-code-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.b2c-money-code-row code,
.b2c-money-link {
  flex: 1;
  min-width: 0;
  border: 1px solid #ececf0;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  background: #f7f8fb;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.b2c-money-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--b2c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}

.b2c-money-empty-state {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  padding: 1.4rem 0.5rem 0.6rem;
  text-align: center;
}

.b2c-money-empty-state p {
  margin: 0;
  max-width: 18rem;
  color: var(--b2c-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.b2c-money-txn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.b2c-money-txn-all {
  border: 0;
  background: none;
  color: var(--b2c-brand);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.b2c-money-txn-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}

.b2c-money-txn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid #f3f3f5;
}

.b2c-money-txn-row:first-child { border-top: 0; }

.b2c-money-txn-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.b2c-money-txn-row.is-credit .b2c-money-txn-icon {
  background: #e8f8ee;
  color: #15803d;
}

.b2c-money-txn-row.is-debit .b2c-money-txn-icon {
  background: #fdecec;
  color: #c62828;
}

.b2c-money-txn-row div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.b2c-money-txn-row strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--b2c-ink);
}

.b2c-money-txn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.74rem;
  color: var(--b2c-muted);
  font-style: normal;
}

.b2c-money-txn-meta em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.b2c-money-txn-row.is-credit .b2c-money-txn-meta em {
  background: #e8f8ee;
  color: #15803d;
}

.b2c-money-txn-row.is-debit .b2c-money-txn-meta em {
  background: #fdecec;
  color: #c62828;
}

.b2c-money-txn-amt {
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.b2c-money-txn-row.is-credit .b2c-money-txn-amt { color: #15803d; }
.b2c-money-txn-row.is-debit .b2c-money-txn-amt { color: #c62828; }

.b2c-money-txn-row.is-filtered-out {
  display: none;
}

.b2c-money-referral-card,
.b2c-money-txn {
  scroll-margin-top: 5.5rem;
}

.b2c-money-secure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #eef5ff;
  color: #1e3a6e;
}

.b2c-money-secure > .bi-shield-check {
  font-size: 1.35rem;
  color: var(--b2c-brand);
  flex-shrink: 0;
}

.b2c-money-secure p {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5a78;
}

.b2c-money-secure strong {
  color: #1a2d52;
}

.b2c-money-secure span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--b2c-brand);
  box-shadow: 0 4px 10px rgba(0, 80, 255, 0.12);
  flex-shrink: 0;
}
