.seller-profile {
  padding: clamp(110px, 8vw, 132px) 0 clamp(64px, 8vw, 116px);
  color: #17233b;
}

.seller-profile-back, .seller-byline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--navy);
  line-height: 1.5;
  text-decoration: none;
}

.seller-profile-back {
  gap: 9px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 650;
}

.seller-profile-back:hover, .seller-byline:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.seller-profile-back .icon, .seller-profile-share .icon, .seller-byline .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.seller-profile > .container { max-width: 1240px; }

.profile-masthead {
  color: #17213c;
  border-bottom: 1px solid #e3e6ed;
}

.profile-cover {
  position: relative;
  isolation: isolate;
  height: clamp(142px, 17vw, 232px);
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(110deg, #bed3de, #d8e0e6 66%, #d7cdbd);
}

.profile-cover > img { width: 100%; height: 100%; object-fit: cover; }
.profile-back, .profile-sample {
  position: absolute;
  top: 13px;
  background: white;
  color: #25314b;
  box-shadow: 0 1px 5px #0c173324;
}
.profile-back {
  left: 13px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}
.profile-back:hover { background: #f0f3f8; }
.profile-sample {
  right: 13px;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.profile-details {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 19px;
  padding: 16px clamp(10px, 1.5vw, 22px) 20px;
}
.profile-avatar {
  position: relative;
  display: grid;
  align-self: start;
  place-items: center;
  width: clamp(72px, 7.7vw, 106px);
  aspect-ratio: 1;
  margin-top: -37px;
  border: 4px solid white;
  border-radius: 50%;
  overflow: hidden;
  color: white;
  background: #1a2959;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
}
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-identity { min-width: 0; }
.profile-masthead .profile-identity h1 {
  margin: 0;
  color: #182341;
  font-size: clamp(26px, 3.1vw, 43px);
  font-weight: 750;
  letter-spacing: -.045em;
  text-wrap: initial;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.profile-facts, .profile-facts > span, .profile-actions, .profile-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.profile-facts { gap: 4px 14px; margin-top: 6px; color: #505c70; font-size: 13px; line-height: 1.45; }
.profile-facts > span { flex-wrap: nowrap; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.profile-facts .icon { width: 14px; height: 14px; }
.profile-actions { justify-content: flex-end; gap: 7px; min-width: 0; }
.profile-socials { gap: 2px; }
.profile-action, .profile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #233153;
  border-radius: 99px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.profile-action { gap: 8px; padding: 9px 16px; background: #eff2f7; border: 1px solid #e4e8ef; }
.profile-social-link { width: 44px; background: #f3f5f8; }
.profile-action:hover, .profile-social-link:hover { background: #e1e8f2; color: var(--navy); }
.profile-action .icon { width: 16px; height: 16px; }
.profile-social-link .icon { width: 20px; height: 20px; }
.seller-profile-share { position: relative; max-width: 100%; }

.seller-profile-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.seller-profile-state h1 { font-size: clamp(26px, 4vw, 46px); color: var(--navy); letter-spacing: -.04em; }
.seller-profile-more .pill, .seller-profile-state .pill { min-height: 44px; }

.seller-profile-share label:not([hidden]) {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  right: 0;
  width: min(276px, 78vw);
  padding: 12px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 18px #17213c21;
}
.seller-profile-share label span { display: block; font-size: 12px; margin-bottom: 5px; }
.seller-profile-share input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd5e0;
  border-radius: 8px;
  padding: 8px 11px;
  color: inherit;
  background: white;
  font: inherit;
  font-size: 16px;
}

.seller-profile-listings { padding-top: clamp(20px, 2.4vw, 32px); }
.seller-profile-section-heading {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content;
  justify-content: start;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(16px, 1.8vw, 24px);
}
.seller-profile-section-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -.04em;
  line-height: 1.15;
}
.seller-profile-count {
  display: inline-grid;
  min-width: 32px;
  min-height: 30px;
  padding: 4px 10px;
  place-items: center;
  border-radius: 999px;
  background: #edf1f7;
  color: #3b4767;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.seller-profile-more { margin-top: 32px; text-align: center; }
.seller-profile-more .pill:disabled { opacity: .65; cursor: wait; }
.seller-profile-more p:not(:empty) { margin-top: 10px; }
.seller-profile-empty, .seller-profile-state, .seller-profile-message {
  border: 1px solid #dce2eb;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  background: #f7f8fb;
}
.seller-profile-empty h3 { color: var(--navy); font-size: 21px; line-height: 1.3; }
.seller-profile-empty p, .seller-profile-state > p:not(.seller-profile-kicker) {
  margin-top: 10px;
  color: #515e72;
  font-size: 15px;
  line-height: 1.6;
}
.seller-profile-state .pill { margin-top: 20px; }
.seller-byline {
  flex-wrap: wrap;
  gap: 3px 7px;
  margin-top: 10px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  text-align: start;
}
.seller-byline strong { font-weight: 700; overflow-wrap: anywhere; }
.seller-byline .icon:last-child { width: 16px; height: 16px; }

/* Keep both the count and the listing controls close to the photographs. */
.seller-profile-listings .pages-listing-tools { padding: 0; border: 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; }
.seller-profile-listings .pages-listing-tools label { min-width: 0; flex: 0 1 auto; }
.seller-profile-listings .pages-listing-tools select { max-width: 100%; min-height: 44px; border: 1px solid #dbe1eb; border-radius: 24px; padding-inline: 14px 10px; font-size: 12px; }
.seller-profile-listings .pages-result-count { margin: 12px 0 15px; }
.seller-profile-listings .pages-tabs > button { min-height: 44px; }
@media (max-width: 800px) {
  .profile-details { grid-template-columns: auto minmax(0, 1fr); }
  .profile-actions { grid-column: 2; justify-content: flex-start; }
  .seller-profile-share label:not([hidden]) { position: static; margin-top: 5px; width: min(260px, 100%); }
}
@media (max-width: 600px) {
  .seller-profile { padding-top: 96px; }
  .profile-cover { height: clamp(116px, 32vw, 170px); border-radius: 12px; }
  .profile-details { padding: 13px 2px 14px; column-gap: 11px; }
  .profile-avatar { width: 64px; margin-top: -24px; border-width: 3px; }
  .profile-facts { gap: 4px 9px; font-size: 12px; margin-top: 5px; }
  .profile-actions { grid-column: 1 / -1; gap: 5px; }
  .profile-back { top: 8px; left: 8px; }
  .profile-sample { top: 10px; right: 10px; }
  .seller-profile-section-heading { gap: 9px; }
}
