.jh-profile,
.jh-comments {
  --jh-accent: #e384e8;
  --jh-ink: #161616;
  --jh-muted: #6b6763;
  --jh-paper: #fffdfb;
  --jh-line: #d8d3ce;
  max-width: 920px;
  color: var(--jh-ink);
}

.jh-account-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--jh-line);
}

.jh-account-header h2 {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.jh-account-header p:last-child {
  margin: 0;
  color: var(--jh-muted);
  line-height: 1.6;
}

.jh-account-kicker {
  margin: 0;
  color: #7e3d82;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jh-profile__layout {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--jh-line);
  background: var(--jh-paper);
  box-shadow: 0 18px 45px rgb(30 20 15 / 7%);
}

.jh-profile__preview {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.jh-profile__preview .avatar,
.jh-profile__avatar {
  display: block;
  width: min(180px, 100%);
  height: auto;
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--jh-line), 0 12px 28px rgb(30 20 15 / 14%);
}

.jh-profile__preview span,
.jh-profile__hint {
  color: var(--jh-muted);
  font-size: 0.86rem;
}

.jh-profile__form {
  display: grid;
  gap: 0.85rem;
}

.jh-profile__form > label:first-of-type {
  font-weight: 750;
}

.jh-profile__form input[type="file"] {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--jh-line);
  background: #fff;
}

.jh-profile__form input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  background: #efe9e5;
  font-weight: 750;
  cursor: pointer;
}

.jh-profile__hint {
  margin: -0.2rem 0 0.5rem;
  line-height: 1.5;
}

.jh-profile__remove {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.jh-profile__form button[type="submit"] {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid #161616;
  border-radius: 0;
  background: #161616;
  color: #fff;
  font-weight: 800;
}

.jh-profile__form button[type="submit"]:hover,
.jh-profile__form button[type="submit"]:focus-visible {
  border-color: var(--jh-accent);
  background: var(--jh-accent);
  color: #161616;
}

.jh-comments__list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jh-comments__item,
.jh-comments__empty {
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border: 1px solid var(--jh-line);
  background: var(--jh-paper);
  box-shadow: 0 12px 30px rgb(30 20 15 / 5%);
}

.jh-comments__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--jh-muted);
  font-size: 0.78rem;
}

.jh-comments__status {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.jh-comments__status--approved { color: #25653a; background: #edf8f0; }
.jh-comments__status--unapproved { color: #7a5a08; background: #fff8df; }
.jh-comments__status--rejected { color: #8a3030; background: #fff0f0; }

.jh-comments__item h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.jh-comments__item h3 a {
  color: inherit;
  text-decoration: none;
}

.jh-comments__excerpt {
  margin: 0 0 1rem;
  color: #45413e;
  line-height: 1.65;
}

.jh-comments__link {
  color: #7e3d82;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.jh-comments__empty {
  text-align: center;
}

.jh-comments__pagination {
  margin-top: 1.5rem;
}

.jh-comments__pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jh-comments__pagination a,
.jh-comments__pagination span {
  display: inline-flex;
  min-width: 2.35rem;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--jh-line);
  color: var(--jh-ink);
  text-decoration: none;
}

.jh-comments__pagination .current,
.jh-comments__pagination a:hover,
.jh-comments__pagination a:focus-visible {
  border-color: var(--jh-accent);
  background: var(--jh-accent);
}

@media (max-width: 700px) {
  .jh-profile__layout { grid-template-columns: 1fr; }
  .jh-profile__preview .avatar,
  .jh-profile__avatar { width: 150px; }
  .jh-profile__form button[type="submit"] { width: 100%; }
}

/* Einheitliche Gestaltung aller rechten Inhalte unter «Mein Konto». */
.woocommerce-account .woocommerce-MyAccount-content {
  box-sizing: border-box;
  padding: 30px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #fffcfa !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content * {
  font-family: "Obliqua", serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: #000 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a,
.woocommerce-account .woocommerce-MyAccount-content a * {
  color: #e384e8 !important;
  transition: color 160ms ease;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:hover *,
.woocommerce-account .woocommerce-MyAccount-content a:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content a:focus-visible * {
  color: #e384e87d !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(button, .button, input[type="submit"]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 13.5px 20px 10px !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #e384e8 !important;
  color: #fffcfa !important;
  font-family: "roca", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(button, .button, input[type="submit"]):hover,
.woocommerce-account .woocommerce-MyAccount-content :is(button, .button, input[type="submit"]):focus-visible {
  border: 0 !important;
  background: #fffcfa !important;
  color: #e384e8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button + .button {
  margin-left: 40px !important;
}

/* Aktionsbuttons in den Abonnementdetails sauber in einer Reihe ausrichten. */
.woocommerce-account .woocommerce-MyAccount-content
  table.subscription_details
  td:has(> .woocommerce-button) {
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content
  table.subscription_details
  td:has(> .woocommerce-button)
  > .woocommerce-button {
  min-height: 46px;
  margin: 0 12px 0 0 !important;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content
  table.subscription_details
  td:has(> .woocommerce-button)
  > .woocommerce-button:last-child {
  margin-right: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .jh-profile__layout {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(.jh-comments__item, .jh-comments__empty) {
  padding: 30px !important;
  border-radius: 7px !important;
  background: #fffcfa !important;
  box-shadow: none !important;
}

/* WooCommerce- und Subscriptions-Tabellen ohne harten schwarzen Rahmen. */
.woocommerce-account .woocommerce-MyAccount-content :is(table, .shop_table, .woocommerce-table) {
  overflow: hidden;
  width: 100%;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 7px !important;
  background: #fffcfa !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(table, .shop_table, .woocommerce-table) :is(th, td) {
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #eadfe0 !important;
  background: transparent !important;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content :is(table, .shop_table, .woocommerce-table) tr:last-child > :is(th, td) {
  border-bottom: 0 !important;
}

/* Adress- und Kundendetailbereiche ohne zusätzliche Rahmenfragmente. */
.woocommerce-account .woocommerce-MyAccount-content :is(
  .woocommerce-Addresses,
  .woocommerce-Address,
  .woocommerce-Address-title,
  .woocommerce-Address-title.title,
  .woocommerce-column,
  .woocommerce-column__title,
  .woocommerce-customer-details,
  .woocommerce-customer-details address
) {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(
  .woocommerce-Address-title,
  .woocommerce-Address-title.title,
  .woocommerce-Address-title h2,
  .woocommerce-column__title,
  .woocommerce-customer-details h2,
  .woocommerce-customer-details h3
) {
  background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-content :is(
  .woocommerce-Address-title,
  .woocommerce-column__title,
  .woocommerce-customer-details h2,
  .woocommerce-customer-details h3
)::before,
.woocommerce-account .woocommerce-MyAccount-content :is(
  .woocommerce-Address-title,
  .woocommerce-column__title,
  .woocommerce-customer-details h2,
  .woocommerce-customer-details h3
)::after {
  display: none !important;
  content: none !important;
}

/* Das Kundenbild bleibt auf der gesamten Website kreisrund, auch in Kommentaren. */
img.jh-custom-avatar,
img.avatar.jh-custom-avatar {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

@media (max-width: 700px) {
  .woocommerce-account .woocommerce-MyAccount-content
    table.subscription_details
    td:has(> .woocommerce-button) {
    white-space: normal;
  }

  .woocommerce-account .woocommerce-MyAccount-content
    table.subscription_details
    td:has(> .woocommerce-button)
    > .woocommerce-button {
    width: 100%;
    margin: 0 0 12px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content
    table.subscription_details
    td:has(> .woocommerce-button)
    > .woocommerce-button:last-child {
    margin-bottom: 0 !important;
  }
}
