/* Loyalty Hub by Webfarol 0.4.16
   Frontend CSS is deliberately structural. Typography, buttons, inputs,
   tables and most visual treatments are inherited from the active Joomla
   template. Explicit component design settings are applied only through
   lh-override-* classes generated by FrontendStyleHelper. */

.lh-page-shell,
.lh-member {
  box-sizing: border-box;
  width: min(100%, var(--lh-page-max-width, 1240px));
  max-width: var(--lh-page-max-width, 1240px);
  margin-inline: auto;
  padding: var(--lh-page-padding-y, clamp(1.25rem, 3vw, 3rem)) var(--lh-page-padding-x, clamp(1rem, 2.4vw, 2rem));
}

/*
   YOOtheme and most Joomla templates render components inside a centred
   content container. Width settings such as 1440, 1600 or full browser width
   must therefore break out of that container and centre against the viewport,
   otherwise width: 100% is limited by the template container.
*/
.lh-page-shell.lh-page-breakout,
.lh-member.lh-page-breakout {
  position: relative;
  left: 50%;
  width: min(100vw, var(--lh-page-max-width, 1240px));
  max-width: none;
  margin-left: max(-50vw, calc(var(--lh-page-max-width, 1240px) / -2));
  margin-right: 0;
}

.lh-page-shell.lh-page-breakout.lh-width-full,
.lh-member.lh-page-breakout.lh-width-full {
  width: 100vw;
  margin-left: -50vw;
}

.lh-page-shell *,
.lh-member * {
  box-sizing: border-box;
}

.lh-member-header,
.lh-portal-hero,
.lh-panel-heading,
.lh-section-heading,
.lh-card-row,
.lh-meta-row,
.lh-actions-row,
.lh-auth-actions,
.lh-member-header-actions,
.lh-section-actions,
.lh-form-actions,
.lh-user-actions,
.lh-card-management-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lh-member-header,
.lh-portal-hero {
  align-items: flex-end;
  margin-block-end: 2rem;
}

.lh-member-header h1,
.lh-portal-hero h1,
.lh-panel-heading h2,
.lh-section-heading h2,
.lh-staff-card h2,
.lh-reward-card h3,
.lh-voucher h3,
.lh-locations-grid h3 {
  margin-block: .2rem .45rem;
}

.lh-eyebrow {
  display: inline-block;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.lh-muted,
.lh-help-text,
.lh-rule-summary,
.lh-location-fixed,
.lh-voucher small,
.lh-qr-card small,
.lh-auth-form small,
.lh-mini-details dt,
.lh-verification-details dt {
  opacity: .72;
}

.lh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.lh-button:disabled {
  cursor: not-allowed;
}

.lh-auth-page {
  display: grid;
  min-height: min(70vh, 760px);
  place-items: center;
}

.lh-auth-card,
.lh-panel,
.lh-program-section,
.lh-reward-card,
.lh-voucher,
.lh-staff-card,
.lh-qr-card,
.lh-locations-grid article,
.lh-summary-grid > div,
.lh-stats-grid article,
.lh-verification-card,
.lh-empty-state {
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.lh-auth-card {
  width: min(100%, 640px);
}

.lh-auth-form,
.lh-form-stack,
.lh-modern-form,
.lh-voucher-form,
.lh-search-form {
  display: grid;
  gap: .85rem;
}

.lh-auth-form label,
.lh-modern-form label,
.lh-form-stack label {
  display: grid;
  gap: .35rem;
}

.lh-checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: .6rem;
}

.lh-auth-links,
.lh-auth-switch {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-start: 1rem;
}

.lh-auth-status-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
}

.lh-catalog,
.lh-staff-portal {
  padding-block-start: clamp(.75rem, 2vw, 1.5rem);
}

.lh-program-section,
.lh-section,
.lh-panel {
  margin-block-end: 1.5rem;
}

.lh-program-heading {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-block-end: 1.25rem;
}

.lh-program-heading img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.lh-catalog-cards,
.lh-rewards-grid,
.lh-public-rewards,
.lh-vouchers-grid,
.lh-summary-grid,
.lh-stats-grid,
.lh-dashboard-grid,
.lh-locations-grid,
.lh-staff-rewards {
  display: grid;
  gap: 1rem;
}

.lh-catalog-cards,
.lh-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lh-rewards-grid,
.lh-public-rewards,
.lh-vouchers-grid,
.lh-locations-grid,
.lh-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lh-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lh-span-2 {
  grid-column: span 2;
}

.lh-reward-card,
.lh-voucher,
.lh-catalog-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.lh-reward-card p,
.lh-reward-short-description,
.lh-reward-long-description {
  white-space: pre-line;
}

.lh-reward-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lh-reward-card .lh-button,
.lh-catalog-card-actions .lh-button,
.lh-catalog-card-actions form {
  width: 100%;
}

.lh-reward-points,
.lh-positive,
.lh-negative {
  font-weight: 700;
}

.lh-positive {
  color: var(--bs-success, green);
}

.lh-negative,
.lh-text-button.is-danger {
  color: var(--bs-danger, red);
}

.lh-card-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 1.25rem;
  align-items: stretch;
  margin-block-end: 1.5rem;
}

.lh-digital-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.586 / 1;
  padding: clamp(1.15rem, 2.4vw, 2rem);
  overflow: hidden;
  border-radius: var(--lh-card-radius, 28px);
  color: var(--lh-card-text, white);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .2);
}

.lh-digital-card > * {
  position: relative;
  z-index: 2;
}

.lh-digital-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--lh-card-overlay, black);
  opacity: 0;
  pointer-events: none;
}

.lh-bg-solid {
  background: var(--lh-card-bg, currentColor);
}

.lh-bg-gradient {
  background: linear-gradient(var(--lh-card-grad-angle, 135deg), var(--lh-card-grad-start, currentColor), var(--lh-card-grad-end, color-mix(in srgb, currentColor 55%, white)));
}

.lh-bg-image {
  background-color: var(--lh-card-bg, currentColor);
  background-image: var(--lh-card-image), linear-gradient(var(--lh-card-grad-angle, 135deg), var(--lh-card-grad-start, currentColor), var(--lh-card-grad-end, color-mix(in srgb, currentColor 55%, white)));
  background-position: var(--lh-card-bg-position, center center), center;
  background-repeat: no-repeat, no-repeat;
  background-size: var(--lh-card-bg-size, cover), cover;
}

.lh-bg-image::before {
  opacity: var(--lh-card-overlay-opacity, .2);
}

.lh-card-logo-row {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: flex-start;
}

.lh-logo-left { justify-content: flex-start; text-align: left; }
.lh-logo-center { justify-content: center; text-align: center; }
.lh-logo-right { justify-content: flex-end; text-align: right; }

.lh-card-logo {
  display: block;
  width: min(var(--lh-card-logo-width, 140px), 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.lh-card-brand {
  font-size: .82em;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lh-card-title {
  margin-block-start: clamp(.75rem, 1.7vw, 1.35rem);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.lh-card-description {
  display: -webkit-box;
  margin-block: clamp(.55rem, 1.2vw, .9rem) clamp(.75rem, 1.5vw, 1.1rem);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  white-space: pre-line;
}

.lh-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: auto;
}

.lh-card-bottom small,
.lh-card-bottom strong {
  display: block;
}

.lh-card-bottom small {
  opacity: .72;
}

.lh-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.lh-qr-card svg,
.lh-qr-display-code svg {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.lh-qr-card small {
  margin-block-start: .75rem;
}

.lh-card-switcher,
.lh-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-end: 1.5rem;
}

.lh-portal-nav {
  overflow-x: auto;
}

.lh-portal-nav a,
.lh-card-switcher a {
  white-space: nowrap;
}

.lh-table-wrap {
  overflow-x: auto;
}

.lh-table {
  width: 100%;
}

.lh-empty-state,
.lh-empty-cell {
  text-align: center;
}

.lh-empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
}

.lh-staff-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 1.25rem;
}

.lh-staff-results {
  display: grid;
  gap: 1rem;
}

.lh-search-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}

.lh-staff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.lh-staff-form-grid .lh-span-2 {
  grid-column: 1 / -1;
}

.lh-mini-details,
.lh-verification-details,
.lh-user-status-summary {
  display: grid;
  gap: .6rem;
  margin-block: 1rem 0;
}

.lh-mini-details div,
.lh-verification-details div,
.lh-user-status-summary div {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-block-end: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding-block-end: .45rem;
}

.lh-mini-details dd,
.lh-verification-details dd,
.lh-user-status-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.lh-status-pill,
.lh-voucher span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  padding: .2rem .6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .78em;
  font-weight: 700;
  text-transform: uppercase;
}

.lh-status-pill.is-active,
.lh-status-pill.is-issued,
.lh-status-pill.is-valid {
  color: var(--bs-success, green);
}

.lh-status-pill.is-used {
  color: var(--bs-info, currentColor);
}

.lh-status-pill.is-cancelled,
.lh-status-pill.is-inactive,
.lh-status-pill.is-suspended,
.lh-status-pill.is-expired,
.lh-status-pill.is-rejected,
.lh-status-pill.is-deleted {
  color: var(--bs-danger, red);
}

.lh-actions-row {
  justify-content: flex-start;
}

.lh-actions-row form {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}

.lh-actions-row input[type="text"] {
  width: min(100%, 150px);
}

.lh-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.lh-back-link,
.lh-panel-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.lh-back-link {
  margin-block-end: 1.25rem;
}

.lh-qr-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 420px;
}

.lh-qr-display h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.lh-qr-display-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.lh-qr-display-code span {
  margin-block-start: 1rem;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

.lh-qr-display-code strong {
  margin-block-start: .25rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: .08em;
}

.lh-verify-page {
  display: grid;
  min-height: 65vh;
  place-items: center;
}

.lh-verification-card {
  width: min(100%, 620px);
  text-align: center;
}

.lh-verification-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
}

.lh-verification-card.is-valid .lh-verification-icon { color: var(--bs-success, green); }
.lh-verification-card.is-invalid .lh-verification-icon,
.lh-verification-card.is-inactive .lh-verification-icon { color: var(--bs-danger, red); }

.lh-alert {
  padding: 1rem;
  border: 1px solid currentColor;
}

/* Optional backend-selected design overrides. */
.lh-configurable-page.lh-override-page-background {
  background: var(--lh-page-background) !important;
  border-radius: var(--lh-page-shell-radius, 0) !important;
}

.lh-configurable-page.lh-override-surface .lh-auth-card,
.lh-configurable-page.lh-override-surface .lh-panel,
.lh-configurable-page.lh-override-surface .lh-program-section,
.lh-configurable-page.lh-override-surface .lh-reward-card,
.lh-configurable-page.lh-override-surface .lh-voucher,
.lh-configurable-page.lh-override-surface .lh-staff-card,
.lh-configurable-page.lh-override-surface .lh-qr-card,
.lh-configurable-page.lh-override-surface .lh-locations-grid article,
.lh-configurable-page.lh-override-surface .lh-summary-grid > div,
.lh-configurable-page.lh-override-surface .lh-stats-grid article,
.lh-configurable-page.lh-override-surface .lh-verification-card,
.lh-configurable-page.lh-override-surface .lh-qr-display-code {
  background-color: var(--lh-surface) !important;
}

.lh-configurable-page.lh-override-soft-surface .lh-empty-state,
.lh-configurable-page.lh-override-soft-surface .lh-locations-grid article {
  background-color: var(--lh-surface-soft) !important;
}

.lh-configurable-page.lh-override-corners .lh-auth-card,
.lh-configurable-page.lh-override-corners .lh-panel,
.lh-configurable-page.lh-override-corners .lh-program-section,
.lh-configurable-page.lh-override-corners .lh-catalog-card.lh-card-option,
.lh-configurable-page.lh-override-corners .lh-reward-card,
.lh-configurable-page.lh-override-corners .lh-voucher,
.lh-configurable-page.lh-override-corners .lh-staff-card,
.lh-configurable-page.lh-override-corners .lh-qr-card,
.lh-configurable-page.lh-override-corners .lh-locations-grid article,
.lh-configurable-page.lh-override-corners .lh-summary-grid > div,
.lh-configurable-page.lh-override-corners .lh-stats-grid article,
.lh-configurable-page.lh-override-corners .lh-verification-card,
.lh-configurable-page.lh-override-corners .lh-qr-display-code,
.lh-configurable-page.lh-override-corners .lh-empty-state {
  border-radius: var(--lh-panel-radius) !important;
}

.lh-configurable-page.lh-override-corners .lh-member-header,
.lh-configurable-page.lh-override-corners .lh-portal-hero {
  border-radius: var(--lh-hero-radius) !important;
}

.lh-configurable-page.lh-override-corners .lh-status-pill,
.lh-configurable-page.lh-override-corners .lh-voucher span,
.lh-configurable-page.lh-override-corners .lh-auth-status-icon,
.lh-configurable-page.lh-override-corners .lh-verification-icon,
.lh-configurable-page.lh-override-corners .lh-button,
.lh-configurable-page.lh-override-corners button.lh-button {
  border-radius: var(--lh-control-radius) !important;
}

.lh-configurable-page.lh-override-shadow .lh-auth-card,
.lh-configurable-page.lh-override-shadow .lh-panel,
.lh-configurable-page.lh-override-shadow .lh-program-section,
.lh-configurable-page.lh-override-shadow .lh-reward-card,
.lh-configurable-page.lh-override-shadow .lh-voucher,
.lh-configurable-page.lh-override-shadow .lh-staff-card,
.lh-configurable-page.lh-override-shadow .lh-qr-card,
.lh-configurable-page.lh-override-shadow .lh-locations-grid article,
.lh-configurable-page.lh-override-shadow .lh-summary-grid > div,
.lh-configurable-page.lh-override-shadow .lh-stats-grid article,
.lh-configurable-page.lh-override-shadow .lh-verification-card,
.lh-configurable-page.lh-override-shadow .lh-qr-display-code,
.lh-configurable-page.lh-override-shadow .lh-empty-state {
  box-shadow: var(--lh-shadow-soft) !important;
}

.lh-configurable-page.lh-override-border .lh-auth-card,
.lh-configurable-page.lh-override-border .lh-panel,
.lh-configurable-page.lh-override-border .lh-program-section,
.lh-configurable-page.lh-override-border .lh-reward-card,
.lh-configurable-page.lh-override-border .lh-voucher,
.lh-configurable-page.lh-override-border .lh-staff-card,
.lh-configurable-page.lh-override-border .lh-qr-card,
.lh-configurable-page.lh-override-border .lh-locations-grid article,
.lh-configurable-page.lh-override-border .lh-summary-grid > div,
.lh-configurable-page.lh-override-border .lh-stats-grid article,
.lh-configurable-page.lh-override-border .lh-verification-card,
.lh-configurable-page.lh-override-border .lh-qr-display-code,
.lh-configurable-page.lh-override-border .lh-empty-state,
.lh-configurable-page.lh-override-border .lh-card-reward-mini {
  border: var(--lh-border-width, 1px) solid var(--lh-border-color, color-mix(in srgb, currentColor 16%, transparent)) !important;
}

.lh-configurable-page.lh-override-text {
  color: var(--lh-ink) !important;
}

.lh-configurable-page.lh-override-muted .lh-eyebrow,
.lh-configurable-page.lh-override-muted .lh-muted,
.lh-configurable-page.lh-override-muted .lh-help-text,
.lh-configurable-page.lh-override-muted .lh-rule-summary,
.lh-configurable-page.lh-override-muted .lh-location-fixed,
.lh-configurable-page.lh-override-muted .lh-voucher small,
.lh-configurable-page.lh-override-muted .lh-qr-card small,
.lh-configurable-page.lh-override-muted .lh-auth-form small,
.lh-configurable-page.lh-override-muted .lh-mini-details dt,
.lh-configurable-page.lh-override-muted .lh-verification-details dt {
  color: var(--lh-muted) !important;
  opacity: 1;
}

.lh-configurable-page.lh-override-primary h1,
.lh-configurable-page.lh-override-primary h2,
.lh-configurable-page.lh-override-primary h3,
.lh-configurable-page.lh-override-primary .lh-eyebrow,
.lh-configurable-page.lh-override-primary .lh-reward-points {
  color: var(--lh-blue) !important;
}

.lh-configurable-page.lh-override-accent .lh-balance-box,
.lh-configurable-page.lh-override-accent .lh-card-switcher .nav-link.active,
.lh-configurable-page.lh-override-accent .lh-portal-nav .nav-link.active,
.lh-configurable-page.lh-override-accent .btn-primary,
.lh-configurable-page.lh-override-accent .lh-button.btn-primary {
  border-color: var(--lh-navy) !important;
  background-color: var(--lh-navy) !important;
  color: var(--lh-surface, white) !important;
}

.lh-configurable-page.lh-header-plain .lh-member-header,
.lh-configurable-page.lh-header-plain .lh-portal-hero {
  padding-block-end: 0;
  border: 0 !important;
  background: transparent !important;
}

.lh-configurable-page.lh-header-soft .lh-member-header,
.lh-configurable-page.lh-header-soft .lh-portal-hero,
.lh-configurable-page.lh-header-glass .lh-member-header,
.lh-configurable-page.lh-header-glass .lh-portal-hero {
  padding: clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--lh-surface, currentColor) 12%, transparent) !important;
}

.lh-configurable-page.lh-header-solid .lh-member-header,
.lh-configurable-page.lh-header-solid .lh-portal-hero {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--lh-blue, currentColor) !important;
  color: var(--lh-surface, Canvas) !important;
}

@media (max-width: 900px) {
  .lh-card-wrap,
  .lh-dashboard-grid,
  .lh-staff-card,
  .lh-qr-display {
    grid-template-columns: 1fr;
  }

  .lh-rewards-grid,
  .lh-public-rewards,
  .lh-vouchers-grid,
  .lh-locations-grid,
  .lh-stats-grid,
  .lh-summary-grid,
  .lh-catalog-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .lh-page-shell,
  .lh-member {
    padding-inline: .8rem;
  }

  .lh-member-header,
  .lh-portal-hero,
  .lh-panel-heading,
  .lh-section-heading,
  .lh-search-inline,
  .lh-staff-form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lh-rewards-grid,
  .lh-public-rewards,
  .lh-vouchers-grid,
  .lh-locations-grid,
  .lh-stats-grid,
  .lh-summary-grid,
  .lh-catalog-cards {
    grid-template-columns: 1fr;
  }

  .lh-card-bottom,
  .lh-program-heading {
    flex-direction: column;
  }

  .lh-digital-card {
    padding: 1rem;
  }

  .lh-card-logo-row {
    min-height: 32px;
  }

  .lh-card-title {
    margin-block-start: .5rem;
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
  }

  .lh-card-description {
    margin-block: .4rem .55rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: .88em;
  }
}

/* 0.4.31 public catalogue card/reward presentation */
.lh-catalog-header-actions-only {
  justify-content: flex-end;
  margin-block-end: 1rem;
}

.lh-card-options-heading {
  margin-block: 1.25rem .9rem;
}

.lh-catalog .lh-catalog-cards {
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.lh-catalog-card.lh-card-option {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 1fr);
  grid-template-areas:
    "visual info"
    "rewards rewards";
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
}

.lh-catalog-card-visual,
.lh-catalog-card-info,
.lh-card-rewards-panel {
  min-width: 0;
}

.lh-catalog-card-visual {
  grid-area: visual;
  align-self: start;
  width: 100%;
}

.lh-catalog-card-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(.25rem, .8vw, .75rem) 0;
}

.lh-card-rewards-panel {
  grid-area: rewards;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-block-start: .25rem;
}

.lh-catalog-card-info h3,
.lh-card-reward-mini h4 {
  margin-block: .1rem .35rem;
}

.lh-card-option-description,
.lh-card-reward-mini p {
  white-space: pre-line;
}

.lh-card-option-rule {
  display: grid;
  gap: .15rem;
  margin-block-start: auto;
}

.lh-card-option-rule small {
  opacity: .72;
}

.lh-catalog-card-info .lh-catalog-card-actions {
  margin-block-start: .25rem;
}

.lh-card-rewards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.75rem, 1.6vw, 1rem);
  max-height: none;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.lh-card-reward-mini {
  display: grid;
  grid-template-columns: minmax(72px, 28%) minmax(0, 1fr);
  gap: .75rem;
  flex: 1 1 min(100%, 270px);
  min-width: min(100%, 240px);
  max-width: 420px;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  scroll-snap-align: none;
}

.lh-card-reward-mini-no-image {
  grid-template-columns: 1fr;
}

.lh-card-reward-mini-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lh-card-reward-mini-body {
  min-width: 0;
}

.lh-card-reward-mini p {
  margin-block-end: 0;
}

.lh-catalog-card.lh-card-option .lh-digital-card {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.586 / 1;
  border-radius: var(--lh-card-radius, 28px) !important;
}

.lh-catalog-card.lh-card-option .lh-card-title {
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .lh-catalog-card.lh-card-option {
    grid-template-columns: minmax(240px, 35%) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .lh-catalog-card.lh-card-option {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "info"
      "rewards";
  }

  .lh-card-reward-mini {
    flex-basis: min(100%, 320px);
    max-width: none;
  }

  .lh-catalog-card.lh-card-option .lh-digital-card {
    min-height: 0;
  }
}

/* 0.4.41 refined public catalogue card/reward presentation */
.lh-catalog-card-info .lh-catalog-card-actions,
.lh-catalog-card-info .lh-catalog-card-actions form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
}

.lh-catalog-card-info .lh-catalog-card-actions .lh-button,
.lh-catalog-card-info .lh-catalog-card-actions button.lh-button {
  width: auto;
  max-width: 100%;
  min-width: min(100%, 260px);
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.lh-card-rewards-panel {
  padding-block-start: clamp(.75rem, 1.5vw, 1.15rem);
}

.lh-card-rewards-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: clamp(.9rem, 1.8vw, 1.25rem);
  align-items: stretch;
  justify-content: start;
}

.lh-card-reward-mini {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-width: 0;
  max-width: 300px;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--lh-surface, var(--card-bg, var(--bs-body-bg, #fff)));
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: var(--lh-panel-radius, 18px);
  box-shadow: var(--lh-reward-card-shadow, 0 16px 36px rgba(0, 0, 0, .055));
}

.lh-card-reward-mini-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lh-card-reward-mini-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: clamp(.85rem, 1.5vw, 1rem);
}

.lh-card-reward-mini .lh-reward-points {
  font-size: .86rem;
  line-height: 1.2;
  opacity: .78;
}

.lh-card-reward-mini h4 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.18;
}

.lh-card-reward-mini p {
  margin-block: .25rem 0;
  line-height: 1.55;
  opacity: .82;
}

.lh-card-reward-mini-no-image .lh-card-reward-mini-body {
  min-height: 150px;
}

@media (max-width: 520px) {
  .lh-card-rewards-strip {
    grid-template-columns: 1fr;
  }

  .lh-card-reward-mini {
    max-width: none;
  }
}

.lh-configurable-page.lh-override-shadow .lh-card-reward-mini {
  box-shadow: var(--lh-shadow-soft) !important;
}

.lh-configurable-page.lh-override-corners .lh-card-reward-mini {
  border-radius: var(--lh-panel-radius) !important;
}

.lh-configurable-page.lh-override-corners .lh-card-reward-mini-image {
  border-radius: var(--lh-panel-radius) var(--lh-panel-radius) 0 0 !important;
}

.lh-configurable-page.lh-override-surface .lh-card-reward-mini {
  background-color: var(--lh-surface) !important;
}

@media (max-width: 720px) {
  .lh-catalog-card-info .lh-catalog-card-actions .lh-button,
  .lh-catalog-card-info .lh-catalog-card-actions button.lh-button {
    min-width: 0;
  }
}

/* 0.4.34 subtle image/card hover motion */
.lh-program-heading img,
.lh-reward-image,
.lh-card-reward-mini-image,
.lh-digital-card {
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), filter .42s cubic-bezier(.2, .8, .2, 1);
  transform-origin: center center;
  will-change: transform;
}

.lh-program-heading img:hover,
.lh-program-heading img:focus-visible {
  transform: scale(1.045);
}

.lh-reward-card,
.lh-card-reward-mini,
.lh-catalog-card-visual {
  overflow: hidden;
}

.lh-reward-card:hover .lh-reward-image,
.lh-reward-card:focus-within .lh-reward-image,
.lh-card-reward-mini:hover .lh-card-reward-mini-image,
.lh-card-reward-mini:focus-within .lh-card-reward-mini-image {
  transform: scale(1.055);
}

.lh-catalog-card-visual:hover .lh-digital-card,
.lh-catalog-card-visual:focus-within .lh-digital-card,
.lh-card-wrap .lh-digital-card:hover,
.lh-card-wrap .lh-digital-card:focus-within {
  transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .lh-program-heading img,
  .lh-reward-image,
  .lh-card-reward-mini-image,
  .lh-digital-card {
    transition: none !important;
    transform: none !important;
    will-change: auto;
  }
}


/* 0.4.35 public catalogue card/info ratio: visual 35% / content 65% */

/* 0.4.36 — separate public catalogue section backgrounds */
.lh-catalog-card.lh-card-option {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.lh-card-main-row {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
  min-width: 0;
}

.lh-card-main-row .lh-catalog-card-visual,
.lh-card-main-row .lh-catalog-card-info {
  min-width: 0;
}

.lh-card-main-row .lh-catalog-card-visual {
  width: 100%;
}

.lh-card-rewards-panel {
  width: 100%;
}

.lh-configurable-page.lh-override-catalog-programme-bg .lh-program-heading {
  background-color: var(--lh-catalog-programme-module-bg) !important;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: var(--lh-panel-radius, 18px);
}

.lh-configurable-page.lh-override-catalog-card-row-bg .lh-card-main-row {
  background-color: var(--lh-catalog-card-row-bg) !important;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: var(--lh-panel-radius, 18px);
}

.lh-configurable-page.lh-override-catalog-rewards-row-bg .lh-card-rewards-panel {
  background-color: var(--lh-catalog-rewards-row-bg) !important;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: var(--lh-panel-radius, 18px);
}

.lh-configurable-page.lh-override-corners .lh-card-main-row,
.lh-configurable-page.lh-override-corners .lh-card-rewards-panel,
.lh-configurable-page.lh-override-corners.lh-override-catalog-programme-bg .lh-program-heading {
  border-radius: var(--lh-panel-radius) !important;
}

@media (max-width: 720px) {
  .lh-card-main-row {
    grid-template-columns: 1fr;
  }
}

/* 0.4.37 — fix card row grid after separating catalogue backgrounds
   The visual and info blocks previously inherited grid-area names from the
   parent catalogue grid. Inside .lh-card-main-row they must be normal grid
   children, otherwise the browser creates implicit areas and moves/hides them. */
.lh-card-main-row > .lh-catalog-card-visual,
.lh-card-main-row > .lh-catalog-card-info {
  grid-area: auto !important;
}

.lh-card-main-row > .lh-catalog-card-info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(.25rem, .8vw, .75rem) 0;
}

.lh-card-main-row > .lh-catalog-card-visual .lh-digital-card {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.586 / 1;
}

/* 0.4.44 — catalogue terms modal */
.lh-catalog-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

.lh-catalog-header-actions .lh-auth-actions {
  margin: 0;
}

.lh-terms-button {
  white-space: nowrap;
}

html.lh-modal-open {
  overflow: hidden;
}

.lh-terms-modal[hidden] {
  display: none !important;
}

.lh-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 10550;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.lh-terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.lh-terms-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: min(82vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--lh-surface, var(--card-bg, var(--bs-body-bg, #fff)));
  color: var(--lh-ink, inherit);
  border: var(--lh-border-width, 1px) solid var(--lh-border-color, color-mix(in srgb, currentColor 16%, transparent));
  border-radius: var(--lh-panel-radius, 18px);
  box-shadow: var(--lh-shadow, 0 28px 90px rgba(0, 0, 0, .22));
}

.lh-terms-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.lh-terms-modal-header h2 {
  margin: 0;
}

.lh-terms-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .25rem;
}

.lh-terms-modal-body {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  overflow: auto;
  white-space: normal;
}

@media (max-width: 640px) {
  .lh-catalog-header-actions,
  .lh-catalog-header-actions .lh-auth-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .lh-terms-modal {
    align-items: end;
    padding: .75rem;
  }

  .lh-terms-modal-dialog {
    max-height: 88vh;
    border-radius: var(--lh-panel-radius, 16px);
  }
}


/* 0.4.47 — terms link inside registration consent */
.lh-inline-terms-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.lh-inline-terms-link {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.lh-inline-terms-button:hover,
.lh-inline-terms-link:hover {
  opacity: .78;
}


/* 0.4.48 — refined staff portal structure and spacing */
.lh-staff-portal {
  --lh-staff-gap: clamp(1rem, 2.2vw, 1.5rem);
}

.lh-staff-portal .lh-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  margin-block-end: clamp(1.25rem, 3vw, 2.25rem);
}

.lh-staff-portal .lh-portal-hero h1 {
  margin-block: .25rem .45rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
}

.lh-staff-portal .lh-portal-hero p {
  max-width: 70ch;
  margin: 0;
}

.lh-staff-portal .lh-auth-actions {
  justify-content: flex-end;
}

.lh-staff-portal .lh-auth-actions form {
  margin: 0;
}

.lh-staff-portal .lh-portal-nav {
  gap: .35rem;
  margin-block: 0 clamp(1rem, 2.2vw, 1.5rem);
  padding-block-end: .4rem;
  border-block-end: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.lh-staff-portal .lh-portal-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .65rem 1rem;
  border-radius: var(--lh-control-radius, .45rem);
  text-decoration: none;
}

.lh-staff-portal .lh-portal-nav .nav-link:not(.active):not(.is-active):hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.lh-staff-portal .lh-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--lh-staff-gap);
  margin-block-end: var(--lh-staff-gap);
}

.lh-staff-portal .lh-stats-grid article {
  display: grid;
  grid-template-rows: auto auto;
  gap: .35rem;
  min-height: 112px;
  align-content: center;
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.lh-staff-portal .lh-stats-grid article strong {
  order: 1;
  display: block;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.03em;
}

.lh-staff-portal .lh-stats-grid article span {
  order: 2;
  display: block;
  font-size: .98rem;
  line-height: 1.35;
  opacity: .78;
}

.lh-staff-portal .lh-dashboard-grid {
  gap: var(--lh-staff-gap);
  margin-block-end: var(--lh-staff-gap);
}

.lh-staff-portal .lh-dashboard-grid .lh-panel {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lh-staff-portal .lh-panel-heading {
  align-items: flex-start;
  margin-block-end: 1rem;
}

.lh-staff-portal .lh-panel-heading h2 {
  margin-block: .25rem 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.lh-staff-portal .lh-search-inline {
  align-items: center;
  gap: .75rem;
}

.lh-staff-portal .lh-search-inline .form-control {
  min-height: 2.85rem;
}

.lh-staff-portal .lh-search-inline .lh-button {
  width: auto;
  min-width: 7.25rem;
  min-height: 2.85rem;
  padding-inline: 1.35rem;
}

.lh-staff-portal .lh-panel > .lh-table-wrap {
  margin-block-start: .5rem;
}

.lh-staff-portal .lh-table th,
.lh-staff-portal .lh-table td {
  vertical-align: middle;
  padding-block: .8rem;
}

.lh-staff-portal .lh-table thead th {
  font-weight: 700;
  opacity: .84;
}

.lh-staff-portal .lh-empty-cell {
  padding: 1.25rem;
  opacity: .75;
}

@media (max-width: 900px) {
  .lh-staff-portal .lh-portal-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lh-staff-portal .lh-auth-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .lh-staff-portal .lh-portal-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block-end: .55rem;
  }

  .lh-staff-portal .lh-search-inline {
    grid-template-columns: 1fr;
  }

  .lh-staff-portal .lh-search-inline .lh-button {
    width: 100%;
  }
}

/* 0.4.50 — refined staff users list and actions */
.lh-staff-portal .lh-user-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block: 1.15rem 1.35rem;
}

.lh-staff-portal .lh-user-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: .45rem .75rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: var(--lh-control-radius, 999px);
  background: color-mix(in srgb, currentColor 3%, transparent);
  font-size: .82rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.lh-staff-portal .lh-user-summary-pill strong {
  display: inline-grid;
  min-width: 1.45rem;
  height: 1.45rem;
  padding-inline: .25rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: .78rem;
  line-height: 1;
}

.lh-staff-portal .lh-user-summary-pill.is-pending,
.lh-staff-portal .lh-status-pill.is-pending {
  color: color-mix(in srgb, var(--lh-blue, currentColor) 76%, #777);
}

.lh-staff-portal .lh-users-table {
  min-width: 980px;
}

.lh-staff-portal .lh-users-table td,
.lh-staff-portal .lh-users-table th {
  padding-block: 1rem;
}

.lh-staff-portal .lh-users-table tbody tr {
  border-block-end: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.lh-staff-portal .lh-user-identity {
  display: grid;
  gap: .25rem;
}

.lh-staff-portal .lh-user-identity strong {
  font-weight: 700;
  line-height: 1.25;
}

.lh-staff-portal .lh-user-identity small {
  opacity: .72;
  line-height: 1.25;
}

.lh-staff-portal .lh-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  min-width: 320px;
}

.lh-staff-portal .lh-user-actions form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
}

.lh-staff-portal .lh-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .45rem .75rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: var(--lh-control-radius, .45rem);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease;
}

.lh-staff-portal .lh-action-btn:hover,
.lh-staff-portal .lh-action-btn:focus-visible {
  opacity: .92;
  transform: translateY(-1px);
  text-decoration: none;
}

.lh-staff-portal .lh-action-btn.is-primary {
  border-color: var(--lh-navy, currentColor);
  background: var(--lh-navy, currentColor);
  color: var(--lh-surface, #fff);
}

.lh-staff-portal .lh-action-btn.is-secondary {
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.lh-staff-portal .lh-action-btn.is-danger {
  border-color: color-mix(in srgb, #d71920 72%, currentColor);
  color: #d71920;
  background: color-mix(in srgb, #d71920 5%, transparent);
}

.lh-staff-portal .lh-inline-reject {
  padding: .35rem;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: var(--lh-control-radius, .45rem);
  background: color-mix(in srgb, currentColor 3%, transparent);
}

.lh-staff-portal .lh-inline-reject .form-control {
  width: min(18rem, 100%);
  min-height: 2.25rem;
  border-radius: var(--lh-control-radius, .45rem);
}

@media (max-width: 720px) {
  .lh-staff-portal .lh-user-status-summary {
    gap: .5rem;
  }

  .lh-staff-portal .lh-user-summary-pill {
    width: 100%;
    justify-content: space-between;
  }

  .lh-staff-portal .lh-user-actions,
  .lh-staff-portal .lh-user-actions form,
  .lh-staff-portal .lh-action-btn,
  .lh-staff-portal .lh-inline-reject .form-control {
    width: 100%;
  }
}

/* 0.4.52 — clean staff user approval actions */
.lh-staff-portal .lh-users-table th:last-child,
.lh-staff-portal .lh-users-table td:last-child {
  width: 34rem;
}

.lh-staff-portal .lh-user-actions-stack {
  display: grid;
  gap: .65rem;
  align-items: start;
  min-width: min(34rem, 100%);
}

.lh-staff-portal .lh-user-actions-primary {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.lh-staff-portal .lh-user-actions-primary form,
.lh-staff-portal .lh-user-reject-form {
  margin: 0;
}

.lh-staff-portal .lh-user-actions-stack .lh-action-btn {
  min-height: 2.35rem;
  border-radius: var(--lh-control-radius, 999px);
  padding: .52rem .88rem;
  box-shadow: none;
}

.lh-staff-portal .lh-user-actions-stack .lh-action-btn.is-primary {
  border-color: var(--lh-primary, var(--lh-navy, #26244c));
  background: var(--lh-primary, var(--lh-navy, #26244c));
  color: #fff;
}

.lh-staff-portal .lh-user-actions-stack .lh-action-btn.is-secondary {
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  background: #fff;
  color: inherit;
}

.lh-staff-portal .lh-user-actions-stack .lh-action-btn.is-danger {
  border-color: #d71920;
  background: #fff;
  color: #d71920;
}

.lh-staff-portal .lh-user-reject-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: .5rem;
  align-items: center;
  max-width: 28rem;
  padding: .55rem;
  border: 1px solid color-mix(in srgb, #d71920 14%, currentColor 8%);
  border-radius: var(--lh-panel-radius, .75rem);
  background: color-mix(in srgb, #d71920 3%, transparent);
}

.lh-staff-portal .lh-user-reject-form .form-control {
  width: 100%;
  min-height: 2.35rem;
  border-radius: var(--lh-control-radius, 999px);
  background: var(--lh-input-background, color-mix(in srgb, currentColor 4%, transparent));
}

@media (max-width: 1100px) {
  .lh-staff-portal .lh-users-table th:last-child,
  .lh-staff-portal .lh-users-table td:last-child {
    width: auto;
  }

  .lh-staff-portal .lh-user-actions-stack {
    min-width: 24rem;
  }
}

@media (max-width: 720px) {
  .lh-staff-portal .lh-user-actions-stack,
  .lh-staff-portal .lh-user-actions-primary,
  .lh-staff-portal .lh-user-actions-primary form,
  .lh-staff-portal .lh-user-actions-stack .lh-action-btn,
  .lh-staff-portal .lh-user-reject-form {
    width: 100%;
    min-width: 0;
  }

  .lh-staff-portal .lh-user-reject-form {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* 0.4.53 member area layout refinements */
.lh-member-nav {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  margin-block: -0.75rem 2rem;
  padding: clamp(.85rem, 1.8vw, 1.25rem);
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.lh-member-nav .lh-button {
  min-width: clamp(9rem, 14vw, 14rem);
}

.lh-member .lh-card-wrap {
  grid-template-columns: minmax(280px, 820px) minmax(190px, 240px);
  justify-content: start;
  align-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lh-member .lh-card-wrap .lh-digital-card {
  max-width: 820px;
}

.lh-member .lh-qr-card {
  align-self: stretch;
  min-height: 0;
}

.lh-member .lh-qr-card svg {
  width: min(100%, 180px);
}

.lh-balance-box {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  white-space: nowrap;
}

.lh-balance-box span,
.lh-balance-box strong,
.lh-summary-grid > div span,
.lh-summary-grid > div strong {
  display: block;
}

.lh-summary-grid > div {
  display: grid;
  gap: .35rem;
  align-content: center;
  min-height: 5.25rem;
}

.lh-summary-grid > div span {
  opacity: .72;
}

.lh-summary-grid > div strong {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.05;
}

.lh-member .lh-rewards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: start;
}

@media (max-width: 900px) {
  .lh-member .lh-card-wrap {
    grid-template-columns: 1fr;
  }

  .lh-member .lh-card-wrap .lh-digital-card {
    max-width: 760px;
  }

  .lh-member-nav {
    justify-content: flex-start;
    margin-block-start: 0;
  }
}

@media (max-width: 620px) {
  .lh-member-nav .lh-button {
    width: 100%;
    min-width: 0;
  }

  .lh-balance-box {
    white-space: normal;
  }
}


.lh-member-standalone-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

.lh-member-standalone-actions .lh-balance-box {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

@media (max-width: 720px) {
    .lh-member-standalone-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.lh-transaction-card-picker {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.lh-transaction-card-picker legend {
  padding-inline: .35rem;
  font-weight: 700;
}

.lh-transaction-card-picker-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: .85rem;
}

.lh-transaction-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

.lh-warning-text {
  color: #b45309;
}

@media (max-width: 760px) {
  .lh-transaction-card-picker-grid,
  .lh-transaction-search-row {
    grid-template-columns: 1fr;
  }
}


.lh-transaction-search-row {
    flex-wrap: wrap;
}

.lh-transaction-search-row [data-lh-transaction-card-clear] {
    white-space: nowrap;
}

.lh-portal-actions-only {
    justify-content: flex-end;
    margin-bottom: var(--lh-gap, 1.5rem);
}

/* 0.4.59 — Staff transaction form cleanup */
.lh-staff-portal .lh-staff-editor[data-lh-transaction-editor] {
  overflow: visible;
}

.lh-staff-portal .lh-transaction-card-picker {
  min-width: 0;
  margin: 0 0 .35rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: var(--lh-panel-radius, .75rem);
  background: color-mix(in srgb, currentColor 3%, transparent);
}

.lh-staff-portal .lh-transaction-card-picker legend {
  float: none;
  width: auto;
  margin: 0 0 .75rem;
  padding-inline: .45rem;
  font-size: .95rem;
  font-weight: 700;
}

.lh-staff-portal .lh-transaction-card-picker-grid {
  display: grid;
  grid-template-columns: minmax(14rem, .9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  align-items: end;
}

.lh-staff-portal .lh-transaction-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .5rem;
  align-items: center;
}

.lh-staff-portal [data-lh-transaction-card-results],
.lh-staff-portal .lh-modern-form small {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  line-height: 1.35;
  opacity: .78;
}

.lh-staff-portal .lh-warning-text {
  color: #b45309;
  opacity: 1 !important;
}

.lh-staff-portal .lh-transaction-rule-grid,
.lh-staff-portal .lh-transaction-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-block: .35rem .65rem;
}

.lh-staff-portal .lh-transaction-rule,
.lh-staff-portal .lh-transaction-result > div {
  min-width: 0;
  padding: .95rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: var(--lh-panel-radius, .75rem);
  background: color-mix(in srgb, currentColor 3%, transparent);
}

.lh-staff-portal .lh-transaction-rule span,
.lh-staff-portal .lh-transaction-result span {
  display: block;
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: .68;
}

.lh-staff-portal .lh-transaction-rule strong,
.lh-staff-portal .lh-transaction-result strong {
  display: block;
  min-height: 1.25rem;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lh-staff-portal .lh-transaction-result {
  padding: .95rem;
  border: 1px solid color-mix(in srgb, var(--lh-blue, currentColor) 20%, transparent);
  border-radius: var(--lh-panel-radius, .75rem);
  background: color-mix(in srgb, var(--lh-blue, currentColor) 5%, transparent);
}

.lh-staff-portal .lh-transaction-result > div {
  border: 0;
  background: transparent;
  padding: 0 .75rem;
  border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 0;
}

.lh-staff-portal .lh-transaction-result > div:first-child {
  border-left: 0;
}

.lh-staff-portal .lh-staff-form-grid > label {
  min-width: 0;
}

.lh-staff-portal .lh-staff-form-grid textarea.form-control {
  min-height: 7.25rem;
  resize: vertical;
}

.lh-staff-portal .lh-form-actions {
  justify-content: space-between;
  margin-top: .45rem;
}

@media (max-width: 900px) {
  .lh-staff-portal .lh-transaction-card-picker-grid,
  .lh-staff-portal .lh-transaction-rule-grid,
  .lh-staff-portal .lh-transaction-result {
    grid-template-columns: 1fr;
  }

  .lh-staff-portal .lh-transaction-result > div {
    padding: .65rem 0 0;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-left: 0;
  }

  .lh-staff-portal .lh-transaction-result > div:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 620px) {
  .lh-staff-portal .lh-transaction-search-row {
    grid-template-columns: 1fr;
  }
}


/* 0.4.60 — make staff controls obey the selected corner style everywhere. */
.lh-staff-portal.lh-override-corners :where(input.form-control, select.form-select, textarea.form-control, .lh-modern-form input, .lh-modern-form select, .lh-modern-form textarea, .btn, .lh-button, .lh-action-btn, .nav-link) {
  border-radius: var(--lh-control-radius, .45rem) !important;
}

.lh-staff-portal.lh-override-corners :where(.lh-transaction-card-picker, .lh-transaction-rule, .lh-transaction-result, .lh-transaction-result > div, .lh-user-reject-form) {
  border-radius: var(--lh-panel-radius, .75rem) !important;
}

.lh-staff-portal.lh-override-corners .lh-transaction-result > div {
  border-radius: 0 !important;
}

.lh-staff-portal.lh-override-corners .lh-transaction-result > div:first-child {
  border-radius: var(--lh-panel-radius, .75rem) 0 0 var(--lh-panel-radius, .75rem) !important;
}

.lh-staff-portal.lh-override-corners .lh-transaction-result > div:last-child {
  border-radius: 0 var(--lh-panel-radius, .75rem) var(--lh-panel-radius, .75rem) 0 !important;
}

@media (max-width: 900px) {
  .lh-staff-portal.lh-override-corners .lh-transaction-result > div,
  .lh-staff-portal.lh-override-corners .lh-transaction-result > div:first-child,
  .lh-staff-portal.lh-override-corners .lh-transaction-result > div:last-child {
    border-radius: var(--lh-panel-radius, .75rem) !important;
  }
}


/* Loyalty Hub 0.4.62 */
.lh-admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin: 1rem 0;
    padding: .9rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: var(--lh-radius, .75rem);
    background: rgba(0, 0, 0, .025);
}
.lh-admin-filter-bar .form-control,
.lh-admin-filter-bar .form-select {
    min-width: 220px;
    max-width: 360px;
}
.lh-redemption-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .lh-redemption-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.lh-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding: .85rem 1rem;
    border: var(--lh-border-width, 1px) solid var(--lh-border-color, rgba(38, 36, 76, .14));
    border-radius: var(--lh-radius, 0);
    background: var(--lh-surface, transparent);
}
.lh-pagination-summary {
    color: var(--lh-muted, #6d7b91);
    font-size: .95rem;
}
.lh-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    flex-wrap: wrap;
}
.lh-pagination-controls .btn.disabled,
.lh-pagination-controls .lh-button.disabled {
    pointer-events: none;
}
.lh-pagination-ellipsis {
    padding: .25rem .35rem;
    color: var(--lh-muted, #6d7b91);
}
.lh-pagination-limit {
    margin: 0 0 0 .5rem;
}
.lh-pagination-limit select {
    min-width: 76px;
    min-height: 2.25rem;
}
@media (max-width: 720px) {
    .lh-pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .lh-pagination-controls {
        justify-content: flex-start;
    }
}
