/*--------------------------------------------------------------
This is your custom stylesheet.

Add your own styles here to make theme updates easier.
To override any styles from other stylesheets, simply copy them into here and edit away.

Make sure to respect the media queries! Otherwise you may
accidentally add desktop styles to the mobile layout.
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
--------------------------------------------------------------*/

/* Reset BuddyBoss paragraph margin for page content */
p {
  margin-bottom: 0;
}

#buddypress .users-header .centered #item-header-avatar .bp-member-type {
  width: max-content;
}

/* Grundstil für das Pseudo-Icon */
.member-title-wrap .user-nicename::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
}

/* Mapping Profil-Typ -> Badge (using CSS custom properties) */
body[class*="member-type-"] .member-title-wrap .user-nicename::after {
  background-image: var(--badge-url);
}

/* Type-specific variable assignment */
body.member-type-gold-instructor {
  --badge-url: var(--badge-gold-instructor);
}
body.member-type-silver-instructor {
  --badge-url: var(--badge-silver-instructor);
}
body.member-type-pro {
  --badge-url: var(--badge-pro);
}
body.member-type-senior {
  --badge-url: var(--badge-senior);
}
body.member-type-master {
  --badge-url: var(--badge-master);
}
body.member-type-junior {
  --badge-url: var(--badge-junior);
}
body.member-type-lover {
  --badge-url: var(--badge-lover);
}

/* Verhindert Badge-Anzeige für Admin */
body.member-type-admin .member-title-wrap .user-nicename::after {
  content: none !important;
  background: none !important;
}

/* Profil-Header Layout */
.bb-user-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TRC über den Namen */
.bb-user-content-wrap .iy-training-credits {
  order: -1; /* kleiner Wert = nach oben */
  margin-bottom: 32px; /* Abstand zum Namen */
  font-size: 18px;
  color: #666;
}
.bb-user-content-wrap .iy-training-credits strong {
  color: #000;
}

/* Certification-Tab im BuddyBoss-Look */

:root {
  /* falls BuddyBoss-Variablen fehlen, sorgen diese Defaults für gute Kontraste */
  --iy-bg: #fff;
  --iy-text: #222;
  --iy-muted: #666;
  --iy-border: rgba(0, 0, 0, 0.08);
  --iy-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  --iy-radius: 12px;
}

.iy-cert {
  margin: 0 auto 28px auto;
  padding: 20px 22px;
  background: var(--iy-bg);
  color: var(--iy-text);
  border: 1px solid #d6d9dd;
  border-radius: var(--iy-radius);
}

.iy-cert__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--iy-border);
}

.iy-cert__title {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 600;
}

.iy-cert__edit:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Grid für Label/Wert-Zeilen */
.iy-cert__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  row-gap: 10px;
  column-gap: 16px;
}

.iy-cert__row {
  display: contents; /* erlaubt volle Spaltenbreiten pro Zeile */
}

.iy-cert__label {
  padding: 10px 0;
  color: var(--iy-muted);
  font-weight: 400;
  font-size: 14px;
}

.iy-cert__value {
  padding: 10px 0;
  font-size: 14px;
}

.iy-cert__badge {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
}

/* Mobile: untereinander statt zwei Spalten */
@media (max-width: 680px) {
  .iy-cert {
    padding: 16px;
  }
  .iy-cert__grid {
    grid-template-columns: 1fr;
  }
  .iy-cert__label {
    padding-bottom: 4px;
  }
  .iy-cert__value {
    padding-top: 0;
    margin-bottom: 6px;
  }
}

/* Optional: Dark-Mode Hook (falls Seite dark ist) */
@media (prefers-color-scheme: dark) {
  .iy-cert {
    --iy-bg: #1c1c1c;
    --iy-text: #eee;
    --iy-muted: #aaa;
    --iy-border: rgba(255, 255, 255, 0.12);
    --iy-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

/* Zoho prefill button */
.zoho-prefill-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  background-color: var(--iy-teal, #3B6063);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.zoho-prefill-btn:hover {
  background-color: #2d4a4d;
  color: #fff;
}

/* "Page (No Sidebar)" template — clean slate for Elementor */
.iy-no-sidebar .buddypanel,
.iy-no-sidebar #secondary {
  display: none !important;
}
body.iy-no-sidebar {
  --bb-body-background-color: #fff;
  background-color: #fff !important;
}
.iy-no-sidebar .site-content {
  padding-left: 0 !important;
  padding-right: 0 !important; /* phones: theme adds 10px right (ticket 3) */
  padding-top: 0 !important;
  min-height: auto !important;
}
.iy-no-sidebar .site-content .container {
  max-width: 100% !important;
  padding: 0 !important;
}
.iy-no-sidebar .bb-grid.site-content-grid {
  display: block !important;
  /* the grid's -10px gutter margins outlive the zeroed #primary padding:
     content started at -10px and was 20px too wide (mobile audit, ticket 3) */
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.iy-no-sidebar #primary.content-area {
  max-width: 100% !important;
  padding: 0 !important;
}
.iy-no-sidebar .entry-header {
  display: none;
}
.iy-no-sidebar .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}
.iy-no-sidebar.mepr-login-page .entry-content {
  padding: 100px 0 !important;
}

/* Plain-content pages on the no-sidebar template (Legal Notice, Privacy
   Policy): title + content inside the site's regular 1200px container
   instead of edge to edge. */
.iy-no-sidebar--plain:not(.mepr-login-page) .entry-header,
.iy-no-sidebar--plain:not(.mepr-login-page) .entry-content {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.iy-no-sidebar--plain:not(.mepr-login-page) .entry-header {
  display: block;
  margin-top: 56px !important;
}
.iy-no-sidebar--plain:not(.mepr-login-page) .entry-header .entry-title {
  font-size: 32px;
  font-weight: 800;
}
.iy-no-sidebar--plain:not(.mepr-login-page) .entry-content {
  padding-top: 24px !important;
  padding-bottom: 96px !important;
  line-height: 1.65;
}

/* Login page: style submit button with primary button look */
.mepr-login-page .mp_wrapper.mp_login_form #wp-submit {
  background-color: var(--bb-primary-button-background-regular);
  color: var(--bb-primary-button-text-regular);
  border: 1px solid var(--bb-primary-button-border-regular);
  border-radius: 100px;
  padding: 10px 28px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.mepr-login-page .mp_wrapper.mp_login_form #wp-submit:hover {
  background-color: var(--e-global-color-3d0863e);
  color: var(--bb-primary-button-text-hover);
  border-color: var(--e-global-color-3d0863e);
}

/* Login page: hide header Login button (already on the page) */
.mepr-login-page .elementor-element-5f78d76 {
  display: none !important;
}

.mp_wrapper_home {
  background: var(--bb-content-background-color);
  border: 1px solid var(--bb-content-border-color);
  border-radius: var(--bb-block-radius);
  margin-bottom: 30px;
  padding: 30px;
}

/* ===== MemberPress Price Box ===== */

.iy-price-box {
  background: #fff;
  border: 1px solid var(--bb-content-border-color);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.iy-price-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.iy-price-box__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--bb-headings-color, #122b46);
  margin: 0;
}

.iy-price-box__tag {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-primary-color, #2e6164);
  background: rgba(var(--bb-primary-color-rgb, 46, 97, 100), 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.iy-price-box__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.iy-price-box__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--bb-body-text-color, #4d5c6d);
}

.iy-price-box__check {
  flex-shrink: 0;
  color: #22c55e;
}

/* MemberPress payment step (/checkout/{product}/?action=checkout) — the
   checkout card: head, order summary (child override checkout/invoice.php),
   Stripe fields, pay button, trust line. Tokens from iy-components.css. */

.iy-pay-head {
  margin-bottom: 26px;
}

.iy-pay-head .iy-eyebrow {
  margin-bottom: 8px;
}

.iy-pay-head__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--iy-ink, #1d2b2a);
}

.iy-pay-head .iy-sub {
  margin: 0;
}

.iy-pay-summary__rows {
  border-top: 1px solid var(--iy-line, #e2e7e5);
}

.iy-pay-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--iy-line, #e2e7e5);
}

.iy-pay-summary__label {
  font-size: 15px;
  color: var(--iy-ink-soft, #5a6c6a);
}

.iy-pay-summary__label small {
  font-size: 13px;
  color: var(--iy-ink-soft, #5a6c6a);
}

.iy-pay-summary__amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--iy-ink, #1d2b2a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.iy-pay-summary__row--coupon .iy-pay-summary__amount {
  color: var(--iy-teal, #3b6063);
}

.iy-pay-summary__row--total {
  border-bottom: 0;
  padding: 16px 0 0;
}

.iy-pay-summary__row--total .iy-pay-summary__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--iy-ink, #1d2b2a);
}

.iy-pay-summary__row--total .iy-pay-summary__amount {
  font-size: 24px;
  font-weight: 800;
}

.iy-pay-summary__terms {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--iy-ink-soft, #5a6c6a);
}

/* Single item without coupon/tax: the item row IS the total */
.iy-pay-summary__rows--single .iy-pay-summary__row--total {
  align-items: flex-start;
  padding: 16px 0 0;
}

.iy-pay-summary__rows--single .iy-pay-summary__label b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--iy-ink, #1d2b2a);
}

.iy-pay-summary__rows--single .iy-pay-summary__label small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--iy-ink-soft, #5a6c6a);
}

.iy-pay-summary__rows--single .iy-pay-summary__amount {
  line-height: 1.3;
}

.iy-pay .mp_payment_form_wrapper {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--iy-line, #e2e7e5);
}

.iy-pay .mepr-stripe-elements {
  margin-bottom: 22px;
}

.iy-pay .mepr-submit {
  display: block;
  width: 100%;
  height: auto; /* parent theme forces 41px on submit inputs — breaks centering */
  padding: 14px 28px;
  line-height: 1.2;
  border: 0;
  border-radius: var(--iy-radius-button, 100px);
  background: var(--iy-teal, #3b6063);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.iy-pay .mepr-submit:hover {
  background: var(--iy-teal-deep, #22403e);
}

.iy-pay .mepr-submit:focus-visible {
  outline: 2px solid var(--iy-teal, #3b6063);
  outline-offset: 3px;
}

/* Payment processing state: MemberPress shows a bottom-left wp-admin
   loading.gif — hide it and key a branded spinner + dimmed button off the
   disabled state form.js sets while submitting. */
.iy-pay .mepr-loading-gif {
  display: none !important;
}

.iy-pay .mepr-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.iy-pay #mepr-stripe-payment-form:has(.mepr-submit:disabled)::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 16px auto 0;
  border-radius: 50%;
  border: 2.5px solid var(--iy-teal-soft, #eaf0ef);
  border-top-color: var(--iy-teal, #3b6063);
  animation: iy-pay-spin 0.7s linear infinite;
}

@keyframes iy-pay-spin {
  to { transform: rotate(360deg); }
}

.iy-pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--iy-ink-soft, #5a6c6a);
}

.iy-pay-secure i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 14px;
  color: var(--iy-gold, #a77637);
}

/* Billing address heading inside the MemberPress checkout form */
.iy-billing-head {
  margin: 28px 0 4px;
  padding-top: 20px;
  border-top: 1px solid var(--bb-content-border-color, #e7e9ec);
}

.iy-billing-head__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--bb-headings-color, #122b46);
  margin: 0 0 4px;
}

.iy-billing-head__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bb-alternate-text-color, #7f868f);
  margin: 0;
}

@media (max-width: 680px) {
  .iy-price-box {
    padding: 18px 20px;
  }
  .iy-price-box__price {
    font-size: 24px;
  }
}

.iy-price-box__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.iy-price-box__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.iy-price-box__logo {
  height: 36px;
  width: auto;
}

.iy-price-box__home-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-body-text-color, #4d5c6d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.iy-price-box__home-btn:hover {
  color: var(--bb-headings-color, #122b46);
}

/* Hide featured image / media on MemberPress products (registration pages) */
.postid-210 .entry-media,
.postid-210 .entry-img,
.postid-210 .bb-vw-container1,
.postid-210 .entry-title,
.postid-490 .entry-title,
.postid-491 .entry-title {
  display: none !important;
}

/* ==========================================================================
   Header Language Switcher (flags + dropdown) — see inc/language-switcher.php
   ========================================================================== */
/* Spacing between header icons is handled by the theme rule
   `.header-aside-inner > * { padding: 0 8px }`, so the switcher carries no
   margin of its own — that keeps the gap to the bell/avatar even. */
.iy-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* Logged-out Elementor header: sits right of the Login button (custom.js),
   spaced by the container gap like the buttons themselves. On phones the
   row must stay one line: slimmer buttons, smaller gap (Alessio, 2026-09-21). */
.iy-lang-switcher--elementor {
  align-self: center;
}
@media (max-width: 767px) {
  .iy-header-actions {
    flex-wrap: nowrap !important;
    column-gap: 8px !important;
    gap: 8px !important;
  }
  /* 40px tall for thumbs (mobile audit, ticket 3, 2026-10-12) */
  .iy-header-actions .elementor-button {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  /* the wordmark must not run under the buttons */
  .elementor-location-header .iy-header-wordmark .elementor-heading-title {
    font-size: 13px !important;
    letter-spacing: .12em !important;
  }
  /* Globe: 40px tap area everywhere (header, onboarding bar); negative
     margins keep the icon where it was */
  .iy-lang-switcher:not(.iy-lang-switcher--panel) .iy-lang-toggle {
    min-width: 40px;
    min-height: 40px;
    margin: -8px;
  }
}
/* German "Registrieren" ran into the two-line wordmark at 360px */
@media (max-width: 400px) {
  .iy-header-actions {
    column-gap: 6px !important;
    gap: 6px !important;
  }
  .iy-header-actions .elementor-button {
    padding: 10px 11px !important;
  }
  .elementor-location-header .iy-header-wordmark .elementor-heading-title {
    letter-spacing: .06em !important;
  }
}

.iy-lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none !important;
  border: 0;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--bb-header-links, #1e2132);
  line-height: 1;
  -webkit-appearance: none;
          appearance: none;
}
/* Kill the theme's global <button> hover/focus/active styling (round primary
   background). No hover state on purpose — matches the other header icons. */
.iy-lang-toggle:hover,
.iy-lang-toggle:focus,
.iy-lang-toggle:active {
  background: none !important;
  box-shadow: none !important;
  color: var(--bb-header-links, #1e2132);
}
.iy-lang-toggle:focus-visible {
  outline: 2px solid var(--iy-gold, #a77637);
  outline-offset: 3px;
  border-radius: 4px;
}

.iy-lang-globe {
  font-size: 24px;
}

/* Small language code laid over the globe, like a notification bubble */
.iy-lang-badge {
  position: absolute;
  right: -7px;
  bottom: -4px;
  min-width: 15px;
  padding: 1px 3px;
  border-radius: 7px;
  background: var(--iy-gold, #a77637);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
  box-shadow: 0 0 0 2px #fff; /* white ring to lift it off the icon */
  pointer-events: none;
}

/* Language code shown as a small beige box in front of each name */
.iy-lang-code {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(167, 118, 55, .12); /* beige tint of the brand gold */
  color: #8a5e2a; /* bronze, readable on beige */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.iy-lang-item.is-active .iy-lang-code {
  background: var(--iy-gold, #a77637);
  color: #fff;
}

.iy-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content; /* fit the longest language, never wrap */
  min-width: 200px;
  max-width: 320px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 9999;
}
.iy-lang-switcher.is-open .iy-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.iy-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #1e2132;
  font-size: 14px;
  white-space: nowrap; /* names never break */
  text-decoration: none;
  transition: background-color .12s ease;
}
.iy-lang-item:hover {
  background: rgba(0, 0, 0, .045);
  color: #1e2132;
}
.iy-lang-item .iy-lang-name {
  flex: 1 1 auto;
}
.iy-lang-tick {
  font-size: 15px;
  opacity: 0;
  color: var(--iy-gold, #a77637);
}
.iy-lang-item.is-active {
  font-weight: 600;
}
.iy-lang-item.is-active .iy-lang-tick {
  opacity: 1;
}
/* Admin-only: languages planned but not set up in WPML yet. Not clickable. */
.iy-lang-item.is-pending {
  opacity: .55;
  cursor: default;
}
.iy-lang-item.is-pending:hover {
  background: transparent;
}
.iy-lang-soon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--iy-ink-soft, #5a6c6a);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 7px;
  padding: 1px 6px;
}
.iy-lang-hint {
  margin-top: 6px;
  padding: 8px 10px 2px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 11.5px;
  line-height: 1.4;
  color: #6b7280;
  white-space: normal;
}

/* Keep the popover within the viewport on narrow screens */
@media (max-width: 600px) {
  .iy-lang-menu { min-width: 180px; }
}

/* ==========================================================================
   Billing page hero (page-billing.php)
   ========================================================================== */
.iy-billing-hero {
  margin: 0 0 2rem;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b6063 0%, #335457 100%);
  color: #f3f7f6; /* tinted near-white, not pure #fff */
}
.iy-billing-hero__inner {
  max-width: 60ch;
}
.iy-billing-hero__eyebrow {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d9b483; /* lightened brand gold for contrast on teal */
}
.iy-billing-hero__title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #f3f7f6;
}
.iy-billing-hero__subtitle {
  margin: .85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(243, 247, 246, .78);
}
.iy-billing-content {
  margin: 0 0 2rem;
}

/* Sections below the hero (inc/billing.php) — built from iy-* components. */
.iy-billing-sections > .iy-card {
  margin-bottom: 18px;
}
/* Title block left, status pinned top-right (flex-start, not centered). */
.iy-billing-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.iy-billing-card__head h2 {
  margin: 4px 0 0;
}
.iy-billing-card__title {
  min-width: 0;
}
.iy-billing-status {
  flex-shrink: 0;
}
.iy-billing-status.is-inactive {
  background: var(--iy-card-muted);
  color: var(--iy-ink-soft);
}
/* Facts as aligned columns: label above value, not inline pairs. */
.iy-billing-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 40px;
  margin-top: 22px;
}
.iy-billing-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.iy-billing-fact__k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iy-ink-soft);
}
.iy-billing-fact__v {
  font-size: 16px;
  font-weight: 700;
  color: var(--iy-ink);
  font-variant-numeric: tabular-nums;
}
.iy-billing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--iy-ink-soft);
}
.iy-billing-note i {
  color: var(--iy-gold);
  font-size: 15px;
  line-height: 1.4;
  flex-shrink: 0;
}
.iy-billing-topics {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.iy-billing-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--iy-line);
  border-radius: var(--iy-radius-tag);
  color: var(--iy-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .18s ease, background .18s ease;
}
.iy-billing-topic:hover {
  border-color: var(--iy-teal);
  background: var(--iy-card-muted);
  color: var(--iy-ink);
}
.iy-billing-topic > span {
  flex: 1;
}
.iy-billing-topic i:first-child {
  color: var(--iy-gold);
  font-size: 18px;
}
.iy-billing-topic__go {
  color: var(--iy-ink-soft);
}

@media (max-width: 600px) {
  .iy-billing-hero { padding: 2rem 1.5rem; }
  .iy-billing-hero__title { font-size: 1.9rem; }
}


/* Activity feed: flows-vs-posts hint under the post form */
.iy-feed-flowhint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
  padding: 12px 16px;
  background: var(--iy-card, #fff);
  border: 1px solid var(--iy-line, #e2e7e5);
  border-radius: 14px;
}

.iy-feed-flowhint span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--iy-ink-soft, #5a6c6a);
}


/* Activity editor toolbar (ticket 28): no quote, no code block, one heading
   level only. BuddyBoss hardcodes the button list in its JS, so the extra
   buttons are hidden here. */
.medium-editor-toolbar .medium-editor-action-quote,
.medium-editor-toolbar .medium-editor-action-pre,
.medium-editor-toolbar .medium-editor-action-h4 {
	display: none !important;
}

/* "Inside Community" wordmark (ticket 13): the theme's logo images are off,
   so #site-logo prints the site name as text. Same on the mobile bar. */
#site-logo .site-title > a,
.mobile-logo-wrapper .site-title > a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--iy-gold, #A77637);
}
#site-logo .site-title > a:hover,
.mobile-logo-wrapper .site-title > a:hover {
  color: var(--iy-gold-bright, #C9995C);
}

/* ==========================================================================
   Mobile shell (ticket 3, 2026-10-12). BuddyBoss swaps to its mobile header
   + burger panel below 800px; everything here is scoped to that range.
   ========================================================================== */
@media (max-width: 799px) {
  /* Header icons: 44px tap areas, icons stay where they were */
  .bb-mobile-header .bb-left-panel-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0; /* the theme's 10px offset; icon stays where it was */
  }
  .bb-mobile-header .header-aside .header-search-link,
  .bb-mobile-header .header-aside .notification-wrap > a.notification-link {
    min-width: 40px;
    justify-content: center;
  }
  .bb-mobile-header .header-aside .notification-wrap > a.notification-link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  /* bell + search + burger leave less room: slimmer wordmark (one line) */
  .mobile-logo-wrapper .site-title > a {
    font-size: 15px;
    letter-spacing: 0.12em;
  }
}
@media (max-width: 374px) {
  .mobile-logo-wrapper .site-title > a {
    font-size: 14px;
    letter-spacing: 0.08em;
  }
}

/* Burger panel sections filled by custom.js (injectMobilePanel). The
   theme's nav is a flex row; stack the menu and our sections. */
.bb-mobile-panel-inner .main-navigation {
  flex-direction: column;
}
.bb-mobile-panel-inner .main-navigation > ul,
.bb-mobile-panel-inner .main-navigation > .iy-mpanel {
  flex: 0 0 auto;
  width: 100%;
}
.iy-mpanel__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--iy-line, #e2e7e5);
}
.iy-mpanel .iy-mpanel__label {
  margin: 0 0 4px 15px;
}
.iy-mpanel__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.iy-mpanel .iy-profile-quicklink--last {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Language switcher inside the panel: a full-width row that unfolds the
   list in place (no floating popover inside a scrolling panel) */
.iy-lang-switcher--panel {
  display: block;
}
.iy-lang-switcher--panel .iy-lang-toggle,
.iy-lang-switcher--panel .iy-lang-toggle:hover,
.iy-lang-switcher--panel .iy-lang-toggle:focus,
.iy-lang-switcher--panel .iy-lang-toggle:active {
  display: flex;
  justify-content: flex-start;
  gap: 10px; /* text lines up with the nav labels above */
  width: 100%;
  min-height: 48px;
  padding: 0 4px 0 15px !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--bb-headings-color, #1e2132);
}
.iy-lang-switcher--panel .iy-lang-badge {
  display: none;
}
.iy-lang-switcher--panel .iy-lang-current {
  flex: 1 1 auto;
  text-align: left;
}
.iy-lang-switcher--panel .iy-lang-chevron {
  font-size: 20px;
  transition: transform .2s ease;
}
.iy-lang-switcher--panel.is-open .iy-lang-chevron {
  transform: rotate(180deg);
}
.iy-lang-switcher--panel .iy-lang-menu,
.iy-lang-switcher--panel.is-open .iy-lang-menu {
  position: static;
  display: none;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 2px 0 0 15px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.iy-lang-switcher--panel.is-open .iy-lang-menu {
  display: block;
}
.iy-lang-switcher--panel .iy-lang-item {
  min-height: 46px;
  font-size: 15px;
}

/* Language toggle tooltip ("Language") hangs off the right screen edge on
   phones and widens the page (join/register scrolled sideways by 7px).
   Touch has no hover anyway. */
@media (max-width: 799px), (hover: none) {
  .iy-lang-toggle[data-balloon]::before,
  .iy-lang-toggle[data-balloon]::after {
    display: none !important;
  }
}

/* Font stack fallback: the theme options print "font-family: Poppins" with no
   generic family. Poppins has no Cyrillic, so Russian pages fell back to the
   browser's serif font (mobile audit, ticket 3). Same specificity + 1 to beat
   the inline redux CSS that loads after this file. */
html body,
body h1, body h2, body h3, body h4, body h5, body h6,
body .site-header .site-title {
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Elementor footer (#315 + language copies): "Legal Notice" / "Privacy
   Policy" were 15px tall tap targets on phones */
@media (max-width: 767px) {
  .elementor-location-footer .elementor-button.elementor-size-sm {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* Activity feed on phones (requests from the feed agent, ticket 3):
   comment Like/Reply were 12px text on 12px tap targets, the Like/Comment
   bar 32px, the feed search 14px (iOS zooms into inputs below 16px). */
@media (max-width: 767px) {
  /* BuddyBoss sizes these with deep #buddypress selectors (+ line-height
     10px on the wrapper), hence the !important */
  body #buddypress .activity-comments .acomment-foot-actions .generic-button a {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  body #buddypress .activity-comments .acomment-foot-actions .generic-button a .like-count {
    font-size: 14px !important;
  }
  body #buddypress .activity-comments .acomment-foot-actions .bp-generic-meta .generic-button {
    margin-top: 0;
    margin-right: 2px;
  }
  .activity-list .activity-item > .activity-meta.action .generic-button > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  #buddypress #dir-activity-search {
    height: 44px;
    font-size: 16px;
  }
  /* keep the magnifier centred in the taller field */
  #buddypress #dir-activity-search-form::before {
    top: 50%;
    transform: translateY(-50%);
  }
  #buddypress #dir-activity-search-form .search-form_submit {
    top: 50%;
    transform: translateY(-50%);
  }
  .iy-feed-flowhint span {
    font-size: 14.5px;
  }
  /* Round 2 (2026-11-02): the camera icon in the post box was a 24px target,
     the "Show all updates" / "by new posts" filter openers 20px tall.
     Bigger tap areas only, the look stays. */
  #buddypress #whats-new-toolbar .toolbar-button,
  #buddypress .ac-reply-toolbar .toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  /* Height only: BuddyBoss hides a search toggle with the same class, a
     display value here would show it. */
  #buddypress .subnav-filters-opener {
    min-height: 40px;
  }
  #buddypress .activity-state-comments {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* Shell on phones, round 2 (requests from the profile/discovery agents):
   panel "My Account" link 13px, wordmark link only 17px tall, footer social
   icons 24px. */
@media (max-width: 799px) {
  .bb-mobile-panel-header .my-account-link a {
    display: inline-block;
    padding: 8px 0; /* 2026-11-02: was 28px tall, now ~36px */
    font-size: 14px;
  }
  /* Member name above it: was a 23px tall link */
  .bb-mobile-panel-header .user-wrap > div:not(.my-account-link) > a {
    display: inline-block;
    padding: 6px 0;
  }
  .mobile-logo-wrapper .site-title > a {
    display: inline-block;
    padding: 12px 0;
    margin: -12px 0;
  }
  .footer-bottom .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }
}
