/* Área do cliente — Minha conta, aplicação do Organon UI Foundations v0.1. */
.customer-profile-organon-page {
  background: var(--org-sys-color-surface);
  color: var(--org-sys-color-on-surface);
  min-height: 100vh;
}

.customer-profile-organon-page svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.customer-topbar {
  align-items: center;
  background: color-mix(in srgb, var(--org-sys-color-surface) 94%, transparent);
  border-bottom: 1px solid var(--org-sys-color-outline-variant);
  display: grid;
  gap: var(--org-sys-space-6);
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 5rem;
  padding: var(--org-sys-space-3) max(var(--org-sys-space-6), calc((100vw - var(--org-sys-content-max)) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}

.customer-brand {
  align-items: center;
  color: var(--org-sys-color-on-surface);
  display: inline-flex;
  gap: var(--org-sys-space-3);
  justify-self: start;
  min-height: var(--org-sys-target-min);
  text-decoration: none;
}

.customer-brand-mark {
  align-items: center;
  background: var(--org-sys-color-primary);
  border-radius: var(--org-sys-shape-medium);
  color: var(--org-sys-color-on-primary);
  display: inline-flex;
  flex: 0 0 2.55rem;
  font-size: 1.4rem;
  font-weight: 750;
  height: 2.55rem;
  justify-content: center;
  letter-spacing: -0.05em;
  width: 2.55rem;
}

.customer-brand-copy {
  display: grid;
}

.customer-brand-copy strong {
  color: var(--org-ref-color-teal-900);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.customer-brand-copy small {
  color: var(--org-sys-color-on-surface-variant);
  font-size: var(--org-sys-type-label-small-size);
  line-height: var(--org-sys-type-label-small-line);
}

.customer-desktop-nav {
  align-items: center;
  display: flex;
  gap: var(--org-sys-space-1);
}

.customer-desktop-nav a {
  align-items: center;
  border-radius: var(--org-sys-shape-full);
  color: var(--org-sys-color-on-surface-variant);
  display: inline-flex;
  font-size: var(--org-sys-type-label-large-size);
  font-weight: var(--org-sys-type-label-large-weight);
  gap: var(--org-sys-space-2);
  min-height: 2.75rem;
  padding: var(--org-sys-space-2) var(--org-sys-space-4);
  text-decoration: none;
}

.customer-desktop-nav a:hover {
  background: color-mix(in srgb, var(--org-sys-color-primary) 8%, transparent);
  color: var(--org-sys-color-on-surface);
}

.customer-desktop-nav a[aria-current='page'] {
  background: var(--org-sys-color-primary-container);
  color: var(--org-sys-color-on-primary-container);
}

.customer-desktop-nav svg,
.customer-logout-button svg,
.customer-bottom-navigation svg {
  height: 1.25rem;
  width: 1.25rem;
}

.customer-logout-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--org-sys-color-outline-variant);
  border-radius: var(--org-sys-shape-full);
  color: var(--org-sys-color-on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  font-size: var(--org-sys-type-label-large-size);
  font-weight: var(--org-sys-type-label-large-weight);
  gap: var(--org-sys-space-2);
  justify-content: center;
  padding: var(--org-sys-space-2) var(--org-sys-space-4);
}

.customer-logout-button:hover {
  background: var(--org-sys-color-surface-container-high);
  color: var(--org-sys-color-on-surface);
}

.customer-page-shell {
  display: grid;
  gap: var(--org-sys-space-8);
  margin: 0 auto;
  max-width: 74rem;
  padding: var(--org-sys-space-10) var(--org-sys-space-8) var(--org-sys-space-16);
}

.customer-page-heading {
  max-width: 52rem;
}

.customer-kicker,
.customer-section-label {
  color: var(--org-sys-color-primary);
  font-size: var(--org-sys-type-label-small-size);
  font-weight: var(--org-sys-type-label-small-weight);
  letter-spacing: 0.07em;
  line-height: var(--org-sys-type-label-small-line);
  margin: 0 0 var(--org-sys-space-1);
  text-transform: uppercase;
}

.customer-page-heading h1 {
  color: var(--org-ref-color-teal-900);
  font-size: clamp(2.2rem, 5vw, var(--org-sys-type-display-large-size));
  font-weight: var(--org-sys-type-display-large-weight);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: var(--org-sys-space-2);
}

.customer-page-heading > p:last-child {
  color: var(--org-sys-color-on-surface-variant);
  font-size: var(--org-sys-type-body-large-size);
  margin-bottom: 0;
}

.customer-account-layout {
  align-items: start;
  display: grid;
  gap: var(--org-sys-space-6);
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
}

.customer-account-secondary {
  display: grid;
  gap: var(--org-sys-space-6);
}

.customer-account-card {
  border-radius: var(--org-sys-shape-extra-large);
  padding: var(--org-sys-space-6);
}

.customer-card-heading {
  align-items: start;
  display: grid;
  gap: var(--org-sys-space-4);
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: var(--org-sys-space-6);
}

.customer-card-heading-compact {
  margin-bottom: var(--org-sys-space-4);
}

.customer-card-icon {
  align-items: center;
  background: var(--org-sys-color-primary-container);
  border-radius: var(--org-sys-shape-large);
  color: var(--org-sys-color-on-primary-container);
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.customer-card-icon svg,
.customer-delete-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.customer-card-heading h2,
.customer-delete-heading h2 {
  color: var(--org-ref-color-teal-900);
  font-size: var(--org-sys-type-headline-small-size);
  font-weight: var(--org-sys-type-headline-small-weight);
  line-height: var(--org-sys-type-headline-small-line);
  margin-bottom: var(--org-sys-space-1);
}

.customer-card-heading > div > p:last-child,
.customer-card-copy,
.customer-delete-heading > div > p:last-child {
  color: var(--org-sys-color-on-surface-variant);
  margin-bottom: 0;
}

.customer-form {
  display: grid;
  gap: var(--org-sys-space-4);
}

.customer-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: var(--org-sys-space-1);
}

.customer-optional-label {
  color: var(--org-sys-color-on-surface-variant);
  font-size: var(--org-sys-type-label-small-size);
  font-weight: var(--org-sys-type-label-small-weight);
}

.customer-verification-card {
  background: var(--org-sys-color-surface-container);
}

.customer-verification-status {
  align-items: center;
  color: var(--org-sys-color-on-surface);
  display: inline-flex;
  font-size: var(--org-sys-type-body-medium-size);
  font-weight: 650;
  gap: var(--org-sys-space-2);
  margin-bottom: var(--org-sys-space-4);
}

.customer-verification-status::before {
  background: var(--org-sys-color-outline);
  border-radius: var(--org-sys-shape-full);
  content: '';
  height: 0.65rem;
  width: 0.65rem;
}

.customer-verification-status[data-state='verified'] {
  color: var(--org-sys-color-success);
}

.customer-verification-status[data-state='verified']::before {
  background: var(--org-sys-color-success);
}

.customer-verification-status[data-state='pending'] {
  color: var(--org-sys-color-warning);
}

.customer-verification-status[data-state='pending']::before {
  background: var(--org-sys-color-warning);
}

.customer-verification-action {
  justify-self: start;
}

.customer-password-card .customer-card-copy {
  margin: calc(-1 * var(--org-sys-space-2)) 0 var(--org-sys-space-6);
}

.customer-delete-card {
  border-color: color-mix(in srgb, var(--org-sys-color-error) 30%, var(--org-sys-color-outline-variant));
  display: grid;
  gap: var(--org-sys-space-6);
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
}

.customer-delete-heading {
  align-items: start;
  display: grid;
  gap: var(--org-sys-space-4);
  grid-template-columns: auto minmax(0, 1fr);
}

.customer-delete-icon {
  align-items: center;
  background: var(--org-sys-color-error-container);
  border-radius: var(--org-sys-shape-large);
  color: var(--org-sys-color-on-error-container);
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.customer-section-label-danger {
  color: var(--org-sys-color-error);
}

.customer-delete-form {
  align-items: end;
  display: grid;
  gap: var(--org-sys-space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-delete-form .org-button-danger {
  grid-column: 1 / -1;
  justify-self: start;
}

.customer-bottom-navigation {
  display: none;
}

@media (max-width: 839px) {
  .customer-topbar {
    gap: var(--org-sys-space-3);
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: var(--org-sys-space-6);
  }

  .customer-desktop-nav {
    display: none;
  }

  .customer-page-shell {
    padding-inline: var(--org-sys-space-6);
  }

  .customer-account-layout,
  .customer-delete-card {
    grid-template-columns: 1fr;
  }

  .customer-account-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-password-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .customer-topbar {
    min-height: 4.5rem;
    padding: var(--org-sys-space-2) var(--org-sys-space-4);
  }

  .customer-brand-copy small,
  .customer-logout-button span {
    display: none;
  }

  .customer-logout-button {
    border: 0;
    height: var(--org-sys-target-mobile);
    padding: 0;
    width: var(--org-sys-target-mobile);
  }

  .customer-page-shell {
    gap: var(--org-sys-space-6);
    padding: var(--org-sys-space-8) var(--org-sys-space-4) calc(var(--org-sys-bottom-nav-height) + var(--org-sys-space-10));
  }

  .customer-page-heading h1 {
    font-size: 2.15rem;
  }

  .customer-account-secondary {
    grid-template-columns: 1fr;
  }

  .customer-account-card {
    border-radius: var(--org-sys-shape-large);
    padding: 1.25rem;
  }

  .customer-card-heading,
  .customer-delete-heading {
    gap: var(--org-sys-space-3);
  }

  .customer-card-icon,
  .customer-delete-icon {
    height: 2.75rem;
    width: 2.75rem;
  }

  .customer-card-heading h2,
  .customer-delete-heading h2 {
    font-size: 1.35rem;
    line-height: 1.7rem;
  }

  .customer-form-actions .org-button,
  .customer-verification-action,
  .customer-delete-form .org-button-danger {
    width: 100%;
  }

  .customer-delete-form {
    grid-template-columns: 1fr;
  }

  .customer-delete-form .org-button-danger {
    grid-column: auto;
  }

  .customer-bottom-navigation {
    align-items: stretch;
    background: color-mix(in srgb, var(--org-sys-color-surface-container-low) 96%, transparent);
    border-top: 1px solid var(--org-sys-color-outline-variant);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 0;
    min-height: var(--org-sys-bottom-nav-height);
    padding: var(--org-sys-space-1) var(--org-sys-space-3) max(var(--org-sys-space-1), env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 35;
  }

  .customer-bottom-navigation a {
    align-items: center;
    border-radius: var(--org-sys-shape-large);
    color: var(--org-sys-color-on-surface-variant);
    display: flex;
    flex-direction: column;
    font-size: var(--org-sys-type-label-small-size);
    font-weight: var(--org-sys-type-label-small-weight);
    gap: var(--org-sys-space-1);
    justify-content: center;
    min-height: 3.75rem;
    text-decoration: none;
  }

  .customer-bottom-navigation a[aria-current='page'] {
    color: var(--org-sys-color-on-primary-container);
  }

  .customer-bottom-navigation a[aria-current='page'] svg {
    background: var(--org-sys-color-primary-container);
    border-radius: var(--org-sys-shape-full);
    box-sizing: content-box;
    padding: 0.25rem 1rem;
  }

  .toast {
    bottom: calc(var(--org-sys-bottom-nav-height) + var(--org-sys-space-4));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
