.customer-profile-widget {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 38px);
  left: 18px;
  z-index: 10050;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.customer-profile-widget.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.customer-profile-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1d3a;
  box-shadow: 0 14px 34px rgba(11, 29, 58, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.customer-profile-button svg {
  width: 23px;
  height: 23px;
  display: block;
}

.customer-profile-panel {
  position: absolute;
  top: 56px;
  left: 0;
  width: min(314px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  color: #0b1d3a;
  box-shadow: 0 24px 70px rgba(11, 29, 58, 0.2);
  backdrop-filter: blur(18px);
  display: none;
}

.customer-profile-widget.is-open .customer-profile-panel {
  display: block;
}

.customer-profile-panel h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 950;
}

.customer-profile-panel p {
  margin: 0 0 12px;
  color: #5c6a80;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
}

.customer-profile-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.customer-profile-item {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-radius: 14px;
  background: #fffdf4;
}

.customer-profile-item small {
  color: #ff7a00;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-profile-item strong {
  color: #0b1d3a;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.customer-profile-logout {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  background: #0b1d3a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  cursor: pointer;
}

@media (max-width: 480px) {
  .customer-profile-widget {
    top: calc(env(safe-area-inset-top, 0px) + 34px);
    left: 14px;
  }

  .customer-profile-button {
    width: 42px;
    height: 42px;
  }
}
