/* My HERA account page (/my-hera). Rendered by shared/my-hera-app.js. Shares tokens with
   shared/wishlist.css, which the page also loads. */
.myh { background: var(--wl-bg); color: var(--wl-body); font-family: 'DM Sans', system-ui, sans-serif; min-height: 70vh; }
.myh-wrap { max-width: 1080px; margin: 0 auto; padding: 140px 20px 80px; }
.myh-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wl-teal-ink); margin: 0 0 8px; }
.myh h1 { font: 500 clamp(2.2rem, 5vw, 3.1rem)/1.08 'Cormorant Garamond', Georgia, serif; color: var(--wl-ink); margin: 0; text-wrap: balance; }
.myh-sub { margin: 10px 0 0; color: var(--wl-muted); max-width: 60ch; line-height: 1.6; }
.myh-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.myh-who { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--wl-line); font-size: 0.86rem; color: var(--wl-ink); }
.myh-who b { font-weight: 600; }

.myh-tabs { display: flex; gap: 8px; margin: 28px 0 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.myh-tabs::-webkit-scrollbar { display: none; }
.myh-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--wl-line); background: #fff; color: var(--wl-body); font: 500 0.92rem 'DM Sans', system-ui, sans-serif; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.myh-tab[aria-selected="true"] { background: var(--wl-ink); border-color: var(--wl-ink); color: #fff; }
.myh-tab .myh-n { font-size: 0.76rem; padding: 1px 8px; border-radius: 999px; background: var(--wl-bg); color: var(--wl-ink); font-weight: 600; }
.myh-tab[aria-selected="true"] .myh-n { background: rgba(255, 255, 255, 0.18); color: #fff; }

.myh-card { background: #fff; border-radius: 18px; padding: clamp(18px, 3vw, 28px); margin: 0 0 16px; }
.myh-card h2 { font: 500 1.6rem/1.15 'Cormorant Garamond', Georgia, serif; color: var(--wl-ink); margin: 0 0 6px; }
.myh-card h3 { font: 600 0.98rem/1.3 'DM Sans', system-ui, sans-serif; color: var(--wl-ink); margin: 0 0 4px; }
.myh-card p { line-height: 1.6; margin: 0 0 12px; }
.myh-card p + p { margin-top: .7rem; }
.myh-muted { color: var(--wl-muted); font-size: 0.9rem; }
.myh-card a:not(.mh-btn) { color: var(--wl-teal-ink); text-underline-offset: 3px; }
.myh-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--wl-ink); color: #E6F1F4; }
.myh-banner h2 { color: #fff; }
.myh-banner p { margin: 0; color: #B9CDD3; max-width: 52ch; }
.myh-banner .mh-btn { width: auto; background: var(--wl-gold); color: var(--wl-ink); }
.myh-banner .mh-btn:hover { background: #D8BE88; }
.myh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.myh-actions .mh-btn { width: auto; flex: 1 1 240px; margin-top: 0; }

/* Wish list */
.myh-group { margin: 0 0 28px; }
.myh-group-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.myh-group-h h2 { font: 500 1.5rem 'Cormorant Garamond', Georgia, serif; color: var(--wl-ink); margin: 0; }
.myh-group-h a { color: inherit; text-decoration: none; }
.myh-group-h span { font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--wl-teal-ink); }
.myh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.myh-item { position: relative; background: #fff; border-radius: 14px; overflow: hidden; transition: transform .3s var(--wl-ease), box-shadow .3s var(--wl-ease); }
.myh-item a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.myh-item-img { display: block; aspect-ratio: 1 / 1; background: #F6FBFC; }
.myh-item-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.myh-item-name { padding: 12px 14px 4px; font-weight: 600; color: var(--wl-ink); line-height: 1.35; font-size: 0.94rem; }
.myh-item-price { padding: 0 14px 14px; color: var(--wl-muted); font-size: 0.88rem; }
@media (hover: hover) and (pointer: fine) { .myh-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26, 58, 74, 0.12); } }
.myh-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; }
.myh-empty-mark { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #FBEDEB; color: var(--wl-heart); }
.myh-empty-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.myh-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; justify-content: center; }
.myh-pills.left { justify-content: flex-start; }
.myh-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--wl-bg); color: var(--wl-ink); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.myh-pills a:hover { background: #DDEDF1; }

/* Switches (update topics, channels) */
.myh-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.myh-rows li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--wl-bg); }
.myh-rows li:first-child { border-top: 0; }
.myh-rows p { margin: 2px 0 0; font-size: 0.86rem; color: var(--wl-muted); }
.myh-switch {
  position: relative; width: 52px; height: 32px; flex-shrink: 0; border: 0; border-radius: 999px; padding: 0; cursor: pointer;
  background: #C9D6DB; transition: background .2s; -webkit-tap-highlight-color: transparent;
}
.myh-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(26, 58, 74, 0.25); transition: transform .2s var(--wl-ease-out); }
.myh-switch[aria-checked="true"] { background: var(--wl-teal); }
.myh-switch[aria-checked="true"]::after { transform: translateX(20px); }
.myh-switch:focus-visible, .myh-opt:focus-visible, .myh-tab:focus-visible { outline: 2px solid var(--wl-teal); outline-offset: 2px; }
.myh-switch[disabled] { opacity: 0.5; cursor: default; }

/* Option cards (frequency, home profile) */
.myh-q { margin: 22px 0 0; }
.myh-q:first-of-type { margin-top: 14px; }
.myh-q-h { font-weight: 600; color: var(--wl-ink); margin: 0 0 4px; font-size: 0.96rem; }
.myh-q-note { font-size: 0.84rem; color: var(--wl-muted); margin: 0 0 10px; }
.myh-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.myh-opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--wl-line); background: #fff; color: var(--wl-body); font: 500 0.92rem 'DM Sans', system-ui, sans-serif;
  transition: background .16s, border-color .16s, color .16s, transform .16s var(--wl-ease-out); -webkit-tap-highlight-color: transparent;
}
.myh-opt:active { transform: scale(0.97); }
.myh-opt[aria-pressed="true"] { border-color: var(--wl-teal); background: #E7F3F6; color: var(--wl-ink); font-weight: 600; }
/* Picture cards: the ranges under "What are you looking for?" */
.myh-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin-top: 10px; }
.myh-pic {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 1.5px solid var(--wl-line); border-radius: 14px; background: #fff; color: var(--wl-body);
  font: 500 0.88rem/1.3 'DM Sans', system-ui, sans-serif; -webkit-tap-highlight-color: transparent;
  transition: border-color .16s, box-shadow .16s, transform .16s var(--wl-ease-out);
}
.myh-pic:active { transform: scale(0.97); }
.myh-pic:focus-visible { outline: 2px solid var(--wl-teal); outline-offset: 2px; }
.myh-pic-img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.myh-pic-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.myh-pic-name { padding: 9px 10px 11px; }
.myh-pic-tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--wl-teal); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity .16s, transform .2s var(--wl-ease-out); }
.myh-pic-tick svg { width: 13px; height: 13px; }
.myh-pic[aria-pressed="true"] { border-color: var(--wl-teal); box-shadow: 0 0 0 3px rgba(61, 139, 158, 0.16); color: var(--wl-ink); font-weight: 600; }
.myh-pic[aria-pressed="true"] .myh-pic-tick { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .myh-pic:hover { border-color: var(--wl-teal); } }

/* A text field with a search glyph inside its left edge */
.myh-search { position: relative; max-width: 420px; }
.myh-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--wl-muted); pointer-events: none; }
.myh-search .myh-input { padding-left: 42px; max-width: none; }

.myh-input { width: 100%; max-width: 420px; height: 52px; border: 1px solid var(--wl-line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--wl-ink); background: #fff; }
.myh-input:focus { outline: 2px solid var(--wl-teal); outline-offset: 1px; border-color: var(--wl-teal); }
.myh-input.bad { border-color: var(--wl-bad); }
.myh-fill { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.myh-fill button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--wl-line); background: #fff; color: var(--wl-body); font: 500 0.82rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.myh-fill button[aria-pressed="true"] { border-color: var(--wl-teal); background: #E7F3F6; color: var(--wl-ink); }
.myh-fill button[disabled] { opacity: 0.45; cursor: default; }
.myh-err { min-height: 1.3em; margin: 6px 0 0; font-size: 0.82rem; color: var(--wl-bad); }

/* Saving state, beside what changed */
.myh-state { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-size: 0.84rem; color: var(--wl-muted); }
.myh-state.is-bad { color: var(--wl-bad); }
.myh-orb { width: 10px; height: 10px; border-radius: 50%; background: var(--wl-teal); animation: myh-pulse 1s ease-in-out infinite; }
@keyframes myh-pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.myh-callout { padding: 14px 16px; border-radius: 12px; background: var(--wl-bg); font-size: 0.9rem; line-height: 1.55; margin: 14px 0 0; }
.myh-callout.warn { background: #FDF1EF; color: #7A2018; }

/* Sign-in tab lists */
.myh-list { list-style: none; margin: 12px 0 0; padding: 0; }
.myh-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--wl-bg); }
.myh-list li:first-child { border-top: 0; }
.myh-list small { display: block; color: var(--wl-muted); font-size: 0.82rem; }
.myh-tag { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #E7F3F6; color: var(--wl-teal-ink); margin-left: 6px; }
.myh-btn-sm { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--wl-line); background: #fff; color: var(--wl-ink); font: 600 0.86rem 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.myh-btn-sm:hover { background: var(--wl-bg); }
.myh-btn-sm.danger { color: var(--wl-bad); border-color: #E9C5C1; }
.myh-btn-sm[disabled] { opacity: 0.55; cursor: default; }
.myh-confirm { margin-top: 14px; padding: 16px; border-radius: 12px; background: #FDF1EF; color: #7A2018; }
.myh-confirm p { margin: 0 0 12px; }
.myh-confirm .myh-actions { margin-top: 0; }

.myh-skel { border-radius: 14px; background: linear-gradient(90deg, #fff 0%, #F3F9FA 50%, #fff 100%); background-size: 200% 100%; animation: myh-skel 1.2s linear infinite; }
@keyframes myh-skel { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .myh-wrap { padding: 128px 16px 64px; }
  .myh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .myh-item-name { font-size: 0.86rem; padding: 10px 10px 2px; }
  .myh-item-price { padding: 0 10px 12px; font-size: 0.82rem; }
  .myh-opt { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; padding: 8px 10px; }
  .myh-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .myh-pic { font-size: 0.8rem; }
  .myh-pic-name { padding: 7px 8px 9px; }
}
@media (prefers-reduced-motion: reduce) { .myh-item, .myh-switch::after, .myh-opt, .myh-pic, .myh-pic-tick { transition: none; } .myh-orb, .myh-skel { animation: none; } }
