/* Readable account identity without taking a row away from the dashboard. */
.content > .client-account-header {
  flex: 0 0 auto;
  height: auto;
  min-height: 104px;
  min-width: 0;
  margin: 12px 28px 0;
  padding: 12px 20px;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d5dedb;
  border-radius: 14px;
  background: #fff;
  color: #102035;
  box-shadow: 0 5px 16px rgba(16, 48, 39, .1);
}

.client-account-header .client-summary {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 14px;
  min-width: 0;
}

.client-summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #103e30;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #0b2e23;
}

.client-summary-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 5px;
}

.client-summary-kicker {
  color: #626d75;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.client-account-header .client-summary-copy #welcome {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: none;
  margin: 0;
  color: #102035;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.client-account-header .client-summary-copy #meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  overflow: visible;
  white-space: normal;
}

.client-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef0f3;
  color: #37414d;
  font-size: 13px;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
}

.client-meta-chip > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-meta-chip b { font-weight: 750; }
.client-meta-chip svg { flex: 0 0 15px; width: 15px; height: 15px; color: #707b85; }
.client-meta-discount { background: #ddf3e3; color: #124e31; }
.client-meta-discount svg { color: #124e31; }
.client-meta-city { max-width: 240px; }

.cashback-summary {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-width: 174px;
  max-width: 100%;
  padding: 10px 14px 10px 11px;
  border: 1px solid #ecdca5;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9e6, #fffdf6);
  color: #55400c;
  box-shadow: 0 5px 18px rgba(106, 76, 4, .08);
}

.cashback-summary[hidden] { display: none !important; }

.cashback-summary-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #f3c955;
  color: #674b00;
  font-size: 15px;
}

.cashback-summary > span:last-child { display: grid; gap: 1px; }
.cashback-summary small,
.cashback-summary em { margin: 0; color: #6d5716; font-size: 11px; line-height: 1.25; }
.cashback-summary small { font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.cashback-summary strong { color: #3e3009; font-size: 20px; line-height: 1.2; }
.cashback-summary em { font-style: normal; }

@media (max-width: 1000px) {
  .content > .client-account-header { margin-inline: 18px; padding-inline: 16px; }
  .client-summary-icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 21px; }
  .client-account-header .client-summary-copy #welcome { font-size: 20px; }
}

@media (max-width: 760px) {
  .content > .client-account-header {
    /* Override the legacy mobile header's 34px fixed height. */
    height: auto !important;
    min-height: 104px;
    margin: 12px 12px 0;
    padding: 12px 14px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .client-account-header .client-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 5px 12px; }
  .client-summary-icon { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; font-size: 19px; align-self: center; }
  .client-summary-copy { display: contents; }
  .client-summary-kicker,
  .client-account-header .client-summary-copy #welcome { grid-column: 2; }
  .client-account-header .client-summary-copy #welcome { font-size: 18px; }
  .client-account-header .client-summary-copy #meta { grid-column: 1 / -1; margin-top: 4px; }
  .cashback-summary { align-self: flex-start; }
}
