/**
 * BombonHub Course Store presentation layer.
 *
 * The unqualified rules are the approved phone UI. Progressive breakpoints at
 * 768px, 1024px, and 1280px add tablet, desktop, and full POS layouts without
 * changing the mobile markup or requiring device detection.
 */
.bhc-store,
.bhc-library,
.bhc-content-lock,
.bhc-auth,
.bhc-learning-shell {
  --bhc-primary: #6c4bff;
  --bhc-accent: #ff655f;
  --bhc-aqua: #42c9c7;
  --bhc-bg: #fffdf8;
  --bhc-text: #2c1230;
  --bhc-muted: #776a78;
  color: var(--bhc-text);
  font-family: inherit;
}

.bhc-store *,
.bhc-store *::before,
.bhc-store *::after,
.bhc-library *,
.bhc-library *::before,
.bhc-library *::after,
.bhc-content-lock *,
.bhc-content-lock *::before,
.bhc-content-lock *::after,
.bhc-auth *,
.bhc-auth *::before,
.bhc-auth *::after,
.bhc-learning-shell *,
.bhc-learning-shell *::before,
.bhc-learning-shell *::after {
  box-sizing: border-box;
}

.bhc-store svg,
.bhc-library svg,
.bhc-content-lock svg,
.bhc-learning-shell svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* The dashboard supplies its own heading, so block-theme page titles are hidden. */
.bhc-my-learning-page .entry-title,
.bhc-my-learning-page .wp-block-post-title {
  display: none !important;
}

.bhc-my-learning-page .entry-content,
.bhc-my-learning-page .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin-block-start: 0 !important;
}

/* Branded account, sign-in, registration, and My Learning experience. */
.bhc-auth {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100svh - 80px));
  margin: 0 calc(50% - 50vw);
  padding-bottom: 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--bhc-aqua) 20%, transparent) 0 12%, transparent 31%),
    var(--bhc-bg);
}

.bhc-auth button,
.bhc-auth input,
.bhc-auth a {
  font: inherit;
}

.bhc-auth__visual {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bhc-primary) 0%, color-mix(in srgb, var(--bhc-primary) 70%, #b15cff) 58%, var(--bhc-aqua) 145%);
}

.bhc-auth__visual::after {
  position: absolute;
  right: -8%;
  bottom: -46px;
  left: -8%;
  height: 90px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--bhc-bg);
  content: "";
}

.bhc-auth__orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.2), 0 18px 50px rgba(44, 18, 48, 0.2);
}

.bhc-auth__orb--one {
  top: -24px;
  right: 8%;
  width: 96px;
  height: 96px;
}

.bhc-auth__orb--two {
  bottom: 18px;
  left: -18px;
  width: 74px;
  height: 74px;
}

.bhc-auth__cloud {
  position: absolute;
  width: 78px;
  height: 34px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.bhc-auth__cloud::before,
.bhc-auth__cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.bhc-auth__cloud::before {
  left: 12px;
  width: 38px;
  height: 38px;
}

.bhc-auth__cloud::after {
  right: 9px;
  width: 28px;
  height: 28px;
}

.bhc-auth__cloud--top { top: 35px; left: 10%; }
.bhc-auth__cloud--bottom { right: 13%; bottom: 34px; transform: scale(0.75); }

.bhc-auth__brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 38px 24px 60px;
  color: #fff;
  text-align: center;
}

.bhc-auth__brand span {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.bhc-auth__brand strong {
  margin-top: 12px;
  font-size: clamp(1.35rem, 6vw, 2.1rem);
  line-height: 1.05;
}

.bhc-auth__brand p {
  display: none;
}

.bhc-auth__panel {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  padding: 0 16px 48px;
}

.bhc-auth__card {
  width: min(100%, 480px);
  margin: -26px auto 0;
  padding: 26px 20px 24px;
  border: 1px solid color-mix(in srgb, var(--bhc-primary) 12%, #fff);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(44, 18, 48, 0.13);
  backdrop-filter: blur(16px);
}

.bhc-auth__heading {
  margin-bottom: 20px;
  text-align: center;
}

.bhc-auth__mini-logo {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 15px 15px 17px 13px;
  background: linear-gradient(145deg, var(--bhc-accent), color-mix(in srgb, var(--bhc-accent) 58%, #ffb967));
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  transform: rotate(-4deg);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--bhc-accent) 28%, transparent);
}

.bhc-auth__heading h1 {
  margin: 0;
  color: var(--bhc-text);
  font-size: clamp(1.85rem, 8vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.bhc-auth__heading p {
  margin: 8px auto 0;
  color: var(--bhc-muted);
  font-size: 0.96rem;
}

.bhc-auth__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--bhc-accent) 28%, white);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bhc-accent) 8%, white);
  color: var(--bhc-text);
  font-size: 0.9rem;
}

.bhc-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 11px;
  border: 1px solid #ded7df;
  border-radius: 15px;
  background: #fff;
  color: var(--bhc-text);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(44, 18, 48, 0.06);
}

.bhc-google-button:hover {
  border-color: color-mix(in srgb, var(--bhc-primary) 40%, #ded7df);
  color: var(--bhc-primary);
}

.bhc-google-button svg {
  width: 22px;
  height: 22px;
}

.bhc-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: var(--bhc-muted);
  font-size: 0.78rem;
}

.bhc-auth__divider::before,
.bhc-auth__divider::after {
  flex: 1;
  height: 1px;
  background: #ebe5eb;
  content: "";
}

.bhc-auth__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bhc-primary) 7%, #f7f4f7);
}

.bhc-auth__tabs:has(button:only-child) { grid-template-columns: 1fr; }

.bhc-auth__tabs button {
  min-height: 39px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--bhc-muted);
  cursor: pointer;
  font-weight: 750;
}

.bhc-auth__tabs button.is-active {
  background: #fff;
  color: var(--bhc-primary);
  box-shadow: 0 5px 16px rgba(44, 18, 48, 0.08);
}

.bhc-auth-form {
  display: none;
  gap: 14px;
}

.bhc-auth-form.is-active {
  display: grid;
}

.bhc-auth-form label > span:first-child {
  display: block;
  margin: 0 0 6px;
  color: var(--bhc-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.bhc-auth-form input[type="text"],
.bhc-auth-form input[type="email"],
.bhc-auth-form input[type="password"] {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid #e5dfe6;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--bhc-text);
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(44, 18, 48, 0.02);
}

.bhc-auth-form input:focus {
  border-color: var(--bhc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bhc-primary) 14%, transparent);
}

.bhc-password {
  position: relative;
  display: block;
}

.bhc-password input { padding-right: 48px !important; }

.bhc-password button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bhc-primary);
  cursor: pointer;
  transform: translateY(-50%);
}

.bhc-auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--bhc-muted);
  font-size: 0.8rem;
}

.bhc-auth-form__row a { color: var(--bhc-primary); text-decoration: none; }
.bhc-remember { display: flex; align-items: center; gap: 7px; }
.bhc-remember input { accent-color: var(--bhc-primary); }
.bhc-remember > span:first-child { margin: 0 !important; color: inherit !important; font-weight: 500 !important; }

.bhc-auth-submit {
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(120deg, var(--bhc-primary), color-mix(in srgb, var(--bhc-primary) 72%, #b754ff));
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--bhc-primary) 28%, transparent);
}

.bhc-auth-submit:hover { filter: brightness(1.04); transform: translateY(-1px); }

.bhc-auth__terms {
  margin: -2px 0 0;
  color: var(--bhc-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Signed-in My Learning dashboard and purchased-course library. */
.bhc-learning-shell {
  position: relative;
  left: 50%;
  grid-column: 1 / -1;
  justify-self: center !important;
  width: 100vw !important;
  max-width: none !important;
  min-height: 70vh;
  margin-right: -50vw !important;
  margin-left: -50vw !important;
  padding: 0 0 110px;
  overflow-x: clip;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 8% 5%, color-mix(in srgb, var(--bhc-primary) 9%, transparent) 0 12%, transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--bhc-primary) 4%, var(--bhc-bg)) 0 340px, var(--bhc-bg) 620px);
}

/* This centered boundary is independent of Gutenberg's content-column width. */
.bhc-learning-shell__inner {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding: 18px 14px 0;
  box-sizing: border-box;
}

.bhc-learning-profile {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border: 1px solid color-mix(in srgb, var(--bhc-primary) 12%, white);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--bhc-aqua) 22%, transparent) 0 16%, transparent 36%),
    radial-gradient(circle at 2% 100%, color-mix(in srgb, var(--bhc-accent) 12%, transparent) 0 18%, transparent 38%),
    linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--bhc-primary) 8%, var(--bhc-bg)) 100%);
  box-shadow: 0 18px 48px rgba(44, 18, 48, 0.09);
}

.bhc-learning-profile::after {
  position: absolute;
  z-index: 0;
  top: 22px;
  right: 28px;
  color: color-mix(in srgb, var(--bhc-primary) 7%, transparent);
  content: "b";
  font-size: 11rem;
  font-weight: 950;
  line-height: 0.8;
  transform: rotate(8deg);
}

.bhc-learning-profile__settings {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--bhc-primary) 12%, white);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  color: var(--bhc-primary) !important;
  box-shadow: 0 8px 22px rgba(44, 18, 48, 0.08);
}

.bhc-learning-profile__settings svg { width: 22px; height: 22px; }

.bhc-learning-profile__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 28px 48px 12px 0;
}

.bhc-learning-profile__identity > div { min-width: 0; }
.bhc-learning-profile__welcome { display: block; margin-bottom: 3px; color: var(--bhc-muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bhc-learning-profile h2 { overflow: hidden; margin: 0 0 8px; color: var(--bhc-text); font-size: clamp(1.25rem, 6vw, 1.75rem); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.bhc-learning-avatar { display: grid; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; place-items: center; border: 5px solid #fff; border-radius: 25px; background: linear-gradient(145deg, var(--bhc-primary), var(--bhc-aqua)); color: #fff; font-size: 1.7rem; font-weight: 900; box-shadow: 0 12px 28px color-mix(in srgb, var(--bhc-primary) 22%, transparent); }
.bhc-learning-avatar img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.bhc-learning-profile__badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; padding: 5px 9px; border-radius: 999px; background: var(--bhc-primary); color: #fff; font-size: .66rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bhc-learning-profile__badge b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; background: var(--bhc-accent); color: #fff; font-size: .72rem; }

.bhc-learning-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, var(--bhc-primary) 10%, white);
}

.bhc-learning-stats > div { display: grid; justify-items: center; min-width: 0; padding: 0 5px; text-align: center; }
.bhc-learning-stats > div + div { border-left: 1px solid color-mix(in srgb, var(--bhc-primary) 10%, white); }
.bhc-learning-stats strong { color: var(--bhc-text); font-size: 1.55rem; line-height: 1; }
.bhc-learning-stats span { margin-top: 6px; color: var(--bhc-muted); font-size: .62rem; font-weight: 700; line-height: 1.2; }

.bhc-learning-dashboard-cards { display: grid; gap: 12px; margin-top: 14px; }

.bhc-learning-feature,
.bhc-learning-services,
.bhc-learning-tools {
  border: 1px solid rgba(44,18,48,.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(44,18,48,.065);
}

.bhc-learning-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 190px;
  overflow: hidden;
  padding: 22px 16px 20px 20px;
}

.bhc-learning-feature > div:first-child { position: relative; z-index: 2; min-width: 0; }
.bhc-learning-feature > div:first-child > span,
.bhc-learning-tools header span { color: var(--bhc-aqua); font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.bhc-learning-feature h3 { margin: 5px 0 7px; color: var(--bhc-text); font-size: 1.18rem; line-height: 1.12; }
.bhc-learning-feature p { max-width: 260px; margin: 0 0 14px; color: var(--bhc-muted); font-size: .75rem; line-height: 1.45; }
.bhc-learning-feature a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 13px; border-radius: 12px; background: var(--bhc-primary); color: #fff !important; font-size: .72rem; font-weight: 850; text-decoration: none !important; box-shadow: 0 9px 20px color-mix(in srgb, var(--bhc-primary) 23%, transparent); }
.bhc-learning-feature a svg { width: 15px; height: 15px; }
.bhc-learning-feature__art { position: relative; min-width: 0; }
.bhc-learning-feature__art::before { position: absolute; right: -35px; bottom: -40px; width: 145px; height: 145px; border-radius: 50%; background: color-mix(in srgb, var(--bhc-primary) 11%, white); content: ""; }
.bhc-learning-feature__art span { position: absolute; z-index: 1; padding: 7px 9px; border-radius: 10px; background: #fff; color: var(--bhc-primary); font-size: .67rem; font-weight: 900; box-shadow: 0 8px 20px rgba(44,18,48,.08); transform: rotate(-7deg); }
.bhc-learning-feature__art span:first-child { top: 24px; left: -2px; }
.bhc-learning-feature__art span:nth-child(2) { top: 72px; right: -2px; color: var(--bhc-accent); transform: rotate(8deg); }
.bhc-learning-feature__art b { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--bhc-primary), color-mix(in srgb, var(--bhc-primary) 65%, #b754ff)); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--bhc-primary) 28%, transparent); }

.bhc-learning-services { padding: 20px; }
.bhc-learning-services h3 { margin: 0 0 11px; color: var(--bhc-text); font-size: 1.03rem; }
.bhc-learning-services > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-top: 1px solid #f0eaf0; color: var(--bhc-muted) !important; font-size: .75rem; font-weight: 700; text-decoration: none !important; }
.bhc-learning-services > a > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bhc-learning-services svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--bhc-primary); }
.bhc-learning-services > a > svg { flex-basis: 16px; width: 16px; height: 16px; color: var(--bhc-muted); }

.bhc-learning-tools { margin-top: 14px; padding: 19px 12px 15px; }
.bhc-learning-tools header { padding: 0 7px 14px; }
.bhc-learning-tools h3 { margin: 3px 0 0; color: var(--bhc-text); font-size: 1.02rem; }
.bhc-learning-tools > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.bhc-learning-tools a { display: grid; justify-items: center; align-content: start; gap: 7px; min-width: 0; padding: 3px 1px; color: var(--bhc-muted) !important; text-align: center; text-decoration: none !important; }
.bhc-learning-tools a > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--bhc-primary) 8%, white); color: var(--bhc-primary); }
.bhc-learning-tools a:nth-child(2) > span { background: color-mix(in srgb, var(--bhc-aqua) 12%, white); color: var(--bhc-aqua); }
.bhc-learning-tools a:nth-child(3) > span { background: color-mix(in srgb, var(--bhc-accent) 10%, white); color: var(--bhc-accent); }
.bhc-learning-tools a svg { width: 21px; height: 21px; }
.bhc-learning-tools a b { overflow-wrap: anywhere; font-size: .58rem; line-height: 1.15; }

@media (min-width: 760px) {
  .bhc-auth {
    grid-template-columns: minmax(320px, 0.82fr) minmax(430px, 1.18fr);
    min-height: min(800px, calc(100svh - 70px));
    padding-bottom: 0;
  }

  .bhc-auth__visual { min-height: 100%; }
  .bhc-auth__visual::after { top: -8%; right: -88px; bottom: -8%; left: auto; width: 150px; height: auto; border-radius: 50% 0 0 50% / 12% 0 0 88%; }
  .bhc-auth__brand { align-content: center; height: 100%; padding: 50px; text-align: left; justify-items: start; }
  .bhc-auth__brand span { font-size: 1.25rem; }
  .bhc-auth__brand strong { max-width: 420px; margin-top: 28px; font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -0.05em; }
  .bhc-auth__brand p { display: block; max-width: 370px; margin: 18px 0 0; color: rgba(255,255,255,.8); font-size: 1.02rem; line-height: 1.55; }
  .bhc-auth__panel { padding: 45px; }
  .bhc-auth__card { margin: 0 auto; padding: 34px; }
  .bhc-learning-shell__inner { padding: 28px 32px 0; }
  .bhc-learning-profile { padding: 30px 30px 24px; }
  .bhc-learning-profile__identity { padding-top: 10px; }
  .bhc-learning-avatar { flex-basis: 92px; width: 92px; height: 92px; }
  .bhc-learning-stats { max-width: 620px; }
  .bhc-learning-dashboard-cards { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: 16px; }
  .bhc-learning-feature { min-height: 230px; grid-template-columns: minmax(0, 1fr) 170px; padding: 30px; }
  .bhc-learning-feature h3 { font-size: 1.45rem; }
  .bhc-learning-feature__art span:first-child { left: 20px; }
  .bhc-learning-feature__art span:nth-child(2) { right: 12px; }
  .bhc-learning-feature__art b { right: 45px; bottom: 32px; width: 56px; height: 56px; }
  .bhc-learning-services { padding: 24px; }
  .bhc-learning-tools { padding: 22px 20px 18px; }
  .bhc-learning-tools a b { font-size: .68rem; }
}

/* Mobile-first course catalog. */
.bhc-store {
  min-height: 70vh;
  margin: 0 calc(50% - 50vw);
  padding: 20px max(12px, calc((100vw - 1180px) / 2)) 180px;
  overflow-x: clip;
  background: var(--bhc-bg);
}

.bhc-store button,
.bhc-store input,
.bhc-store a {
  font: inherit;
}

.bhc-store__header {
  display: grid;
  gap: 16px;
  padding: 8px 4px 20px;
}

.bhc-store__header h1,
.bhc-library h2 {
  margin: 2px 0 6px;
  color: var(--bhc-text);
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.bhc-store__header p,
.bhc-library p {
  margin: 0;
  color: var(--bhc-muted);
}

.bhc-store__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px !important;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--bhc-aqua) 42%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bhc-aqua) 11%, white);
  color: color-mix(in srgb, var(--bhc-aqua) 72%, #075c5a) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bhc-search {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e8e0e8;
  border-radius: 999px;
  background: #fff;
  color: var(--bhc-muted);
  box-shadow: 0 8px 26px rgba(44, 18, 48, 0.05);
}

.bhc-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bhc-text);
  font-size: 16px;
}

.bhc-store__layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.bhc-categories {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.bhc-categories::-webkit-scrollbar {
  display: none;
}

.bhc-categories button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 9px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--bhc-muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.bhc-categories button::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  content: "";
}

.bhc-categories button.is-active {
  background: #fff;
  color: var(--bhc-text);
  box-shadow: 0 8px 24px rgba(44, 18, 48, 0.06);
}

.bhc-categories button.is-active::before {
  background: var(--bhc-primary);
}

.bhc-category-icon {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 26px;
  color: var(--bhc-primary);
  font-size: 1rem;
  font-weight: 900;
}

.bhc-course-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

/* Hidden on phones; larger POS layouts expose result context above the tiles. */
.bhc-course-list__toolbar {
  display: none;
}

.bhc-course-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(44, 18, 48, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44, 18, 48, 0.055);
}

.bhc-course-card[hidden] {
  display: none;
}

.bhc-course-card__image {
  position: relative;
  align-self: start;
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bhc-primary) 6%, white);
}

.bhc-course-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
}

.bhc-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  padding: 3px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--bhc-primary);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.bhc-course-card__body {
  min-width: 0;
}

.bhc-course-card h2 {
  margin: 0 0 5px;
  color: var(--bhc-text);
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.bhc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.bhc-tags span {
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--bhc-accent) 35%, #eee);
  border-radius: 4px;
  color: color-mix(in srgb, var(--bhc-accent) 70%, var(--bhc-text));
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.2;
}

.bhc-course-card__description,
.bhc-course-card__detail {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--bhc-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bhc-course-card__detail {
  color: color-mix(in srgb, var(--bhc-muted) 78%, white);
  font-size: 0.64rem;
  -webkit-line-clamp: 1;
}

.bhc-course-card__footer {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: space-between;
  min-height: 34px;
}

.bhc-course-card__footer > div:first-child {
  display: grid;
  min-width: 0;
}

.bhc-price {
  color: var(--bhc-accent);
  font-size: 0.92rem;
  font-weight: 850;
}

.bhc-price del {
  color: #aaa;
  font-size: 0.7em;
  font-weight: 600;
}

.bhc-price ins {
  text-decoration: none;
}

.bhc-course-card small {
  color: var(--bhc-aqua);
  font-size: 0.59rem;
  font-weight: 750;
}

.bhc-course-card small.is-expired {
  color: var(--bhc-accent);
}

.bhc-add-course {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bhc-primary);
  color: #fff;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--bhc-primary) 28%, transparent);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.bhc-add-course:hover,
.bhc-add-course:focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.bhc-add-course.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

.bhc-add-course.is-in-cart {
  cursor: default;
  opacity: 1;
}

.bhc-open-course,
.bhc-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bhc-primary);
  color: #fff !important;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.bhc-open-course svg {
  width: 1em;
  height: 1em;
}

.bhc-unavailable {
  color: var(--bhc-muted);
  font-size: 0.7rem;
}

/* Compact phone/tablet cart launcher and slide-in order sheet. */
.bhc-floating-cart {
  position: fixed;
  z-index: 9001;
  right: 12px;
  bottom: 84px;
  left: 12px;
  max-width: 600px;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.bhc-floating-cart.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bhc-floating-cart > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 62px;
  overflow: hidden;
  padding: 0 0 0 15px;
  border: 1px solid rgba(44, 18, 48, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--bhc-text);
  box-shadow: 0 16px 44px rgba(44, 18, 48, 0.18);
  text-align: left;
  cursor: pointer;
}

.bhc-floating-cart__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bhc-primary) 11%, white);
  color: var(--bhc-primary);
}

.bhc-floating-cart__icon b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--bhc-accent);
  color: #fff;
  font-size: 0.65rem;
}

.bhc-floating-cart__copy {
  display: grid;
  min-width: 0;
  padding: 0 10px;
}

.bhc-floating-cart__copy small {
  overflow: hidden;
  color: var(--bhc-muted);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bhc-floating-cart__copy strong {
  color: var(--bhc-accent);
  font-size: 1rem;
}

.bhc-floating-cart__checkout {
  display: grid;
  align-self: stretch;
  place-items: center;
  max-width: 140px;
  padding: 0 16px;
  background: var(--bhc-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.bhc-cart-backdrop {
  position: fixed;
  z-index: 9010;
  inset: 0;
  background: rgba(28, 17, 29, 0.48);
  backdrop-filter: blur(2px);
}

.bhc-cart-sheet {
  position: fixed;
  z-index: 9011;
  right: 0;
  bottom: 72px;
  left: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(68vh, 620px);
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -20px 70px rgba(44, 18, 48, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}

.bhc-cart-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bhc-cart-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee8ef;
}

.bhc-cart-sheet > header > div,
.bhc-cart-sheet__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bhc-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bhc-aqua);
  color: #fff;
}

.bhc-clear-cart,
.bhc-close-cart,
.bhc-cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--bhc-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.bhc-cart-items {
  overflow-y: auto;
  padding: 6px 16px;
}

.bhc-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0eaf0;
}

.bhc-cart-item img {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.bhc-cart-item h3 {
  margin: 0 0 4px;
  color: var(--bhc-text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.bhc-cart-item p {
  margin: 0;
  color: var(--bhc-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.bhc-cart-item__remove {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1px solid #e7dfe7;
  border-radius: 50%;
}

.bhc-cart-sheet__footer {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 70px;
  overflow: hidden;
  margin: 10px 14px 14px;
  border: 1px solid #eee8ef;
  border-radius: 16px;
}

.bhc-cart-sheet__footer > div {
  display: grid;
  align-content: center;
  padding: 8px 14px;
}

.bhc-cart-sheet__footer span {
  color: var(--bhc-muted);
  font-size: 0.66rem;
}

.bhc-cart-sheet__footer strong {
  color: var(--bhc-accent);
  font-size: 1.06rem;
}

.bhc-checkout-button {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  background: var(--bhc-primary);
  color: #fff !important;
  font-size: 0.83rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
}

.bhc-checkout-button.is-disabled {
  pointer-events: none;
  filter: grayscale(0.45);
  opacity: 0.48;
}

/* Wide screens receive a permanent order summary in the third POS column. */
.bhc-desktop-cart {
  display: none;
}

/* Approved phone navigation; hidden when the site has room for desktop nav. */
.bhc-mobile-nav {
  position: fixed;
  z-index: 9000;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 72px;
  height: auto !important;
  margin: 0 !important;
  padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  overflow: visible;
  box-sizing: border-box !important;
  border-top: 1px solid #ece5ec;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -8px 30px rgba(44, 18, 48, 0.06);
  backdrop-filter: blur(16px);
}

.bhc-mobile-nav a {
  display: grid;
  width: 100% !important;
  min-height: 58px;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  margin: 0 !important;
  padding: 3px 1px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--bhc-muted);
  font-size: clamp(0.54rem, 2.3vw, 0.68rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
}

.bhc-mobile-nav a.is-active {
  color: var(--bhc-primary);
}

.bhc-mobile-nav a span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bhc-mobile-nav svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  fill: none !important;
  stroke: currentColor !important;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.bhc-mobile-nav a.is-active svg {
  width: 29px;
  height: 29px;
  padding: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bhc-primary) 11%, white);
  color: var(--bhc-primary);
  transform: translateY(-1px);
}

/* Modern WooCommerce cart and checkout for digital course carts. */
.bhc-course-commerce {
  --bhc-primary: #6c4bff;
  --bhc-accent: #ff655f;
  --bhc-aqua: #42c9c7;
  --bhc-bg: #fffdf8;
  --bhc-text: #2c1230;
  --bhc-muted: #776a78;
  background: var(--bhc-bg);
  color: var(--bhc-text);
}

.bhc-course-commerce .entry-title,
.bhc-course-commerce .wp-block-post-title {
  display: none;
}

.bhc-course-commerce .entry-content,
.bhc-course-commerce .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.bhc-commerce-intro {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 18px;
  padding: 22px 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bhc-primary) 13%, white);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% -15%, color-mix(in srgb, var(--bhc-aqua) 18%, transparent) 0 22%, transparent 23%),
    linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--bhc-primary) 5%, var(--bhc-bg)) 100%);
  box-shadow: 0 18px 55px rgba(44, 18, 48, 0.08);
  font-family: inherit;
}

.bhc-commerce-intro__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bhc-aqua) 13%, white);
  color: color-mix(in srgb, var(--bhc-aqua) 76%, #075c5a);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bhc-commerce-intro h1 {
  margin: 12px 0 6px;
  color: var(--bhc-text);
  font-size: clamp(2rem, 9vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.bhc-commerce-intro > p {
  max-width: 680px;
  margin: 0;
  color: var(--bhc-muted);
  font-size: clamp(0.95rem, 3.5vw, 1.12rem);
}

.bhc-commerce-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.bhc-commerce-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bhc-text);
  font-size: 0.79rem;
  font-weight: 750;
}

.bhc-commerce-trust b {
  display: inline-grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bhc-primary) 10%, white);
  color: var(--bhc-primary);
  font-size: 0.72rem;
}

.bhc-commerce-intro > small {
  display: block;
  margin-top: 15px;
  color: var(--bhc-muted);
  font-size: 0.72rem;
}

.bhc-course-commerce .wp-block-woocommerce-cart,
.bhc-course-commerce .wp-block-woocommerce-checkout,
.bhc-course-commerce .woocommerce-cart,
.bhc-course-commerce .woocommerce-checkout {
  width: min(1180px, calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 70px;
  color: var(--bhc-text);
  font-family: inherit;
}

.bhc-course-commerce .wc-block-components-sidebar-layout {
  gap: 22px;
}

.bhc-course-commerce .wc-block-components-main,
.bhc-course-commerce .wc-block-components-sidebar,
.bhc-course-commerce .woocommerce-cart-form,
.bhc-course-commerce .cart_totals,
.bhc-course-commerce form.checkout > .col2-set,
.bhc-course-commerce #order_review {
  border: 1px solid #ebe4eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 44px rgba(44, 18, 48, 0.07);
}

.bhc-course-commerce .wc-block-components-main,
.bhc-course-commerce .woocommerce-cart-form,
.bhc-course-commerce form.checkout > .col2-set {
  padding: clamp(15px, 3vw, 28px) !important;
}

.bhc-course-commerce .wc-block-components-sidebar,
.bhc-course-commerce .cart_totals,
.bhc-course-commerce #order_review {
  padding: clamp(15px, 2.5vw, 24px) !important;
}

.bhc-course-commerce .wc-block-components-sidebar {
  align-self: start;
}

.bhc-course-commerce .wc-block-components-title,
.bhc-course-commerce .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title,
.bhc-course-commerce .wc-block-checkout__contact-fields .wc-block-components-checkout-step__title,
.bhc-course-commerce .cart_totals h2,
.bhc-course-commerce #order_review_heading {
  color: var(--bhc-text);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.bhc-course-commerce .wc-block-components-checkout-step {
  margin: 0 0 14px;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #eee8ee;
}

.bhc-course-commerce .wc-block-components-checkout-step:last-child {
  border-bottom: 0;
}

.bhc-course-commerce .wc-block-components-text-input input,
.bhc-course-commerce .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.bhc-course-commerce .input-text,
.bhc-course-commerce select {
  min-height: 52px !important;
  border: 1px solid #ded7df !important;
  border-radius: 14px !important;
  outline: 0;
  background: #fff !important;
  color: var(--bhc-text) !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.bhc-course-commerce .wc-block-components-text-input input:focus,
.bhc-course-commerce .input-text:focus,
.bhc-course-commerce select:focus {
  border-color: var(--bhc-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bhc-primary) 13%, transparent) !important;
}

.bhc-course-commerce .wc-block-components-button,
.bhc-course-commerce .button,
.bhc-course-commerce #place_order,
.bhc-course-commerce .checkout-button {
  min-height: 52px;
  border: 0 !important;
  border-radius: 15px !important;
  background: var(--bhc-primary) !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 27px color-mix(in srgb, var(--bhc-primary) 25%, transparent) !important;
}

.bhc-course-commerce .wc-block-components-button:hover,
.bhc-course-commerce .button:hover,
.bhc-course-commerce #place_order:hover,
.bhc-course-commerce .checkout-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.bhc-course-commerce .wc-block-components-product-name,
.bhc-course-commerce .product-name a {
  color: var(--bhc-text) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.bhc-course-commerce .wc-block-cart-item__image img,
.bhc-course-commerce .wc-block-components-order-summary-item__image img,
.bhc-course-commerce .product-thumbnail img {
  overflow: hidden;
  border-radius: 14px;
}

.bhc-course-commerce .wc-block-components-totals-wrapper,
.bhc-course-commerce .shop_table td,
.bhc-course-commerce .shop_table th {
  border-color: #eee8ee !important;
}

.bhc-course-commerce .wc-block-components-totals-coupon__button,
.bhc-course-commerce .wc-block-cart-item__remove-link,
.bhc-course-commerce .woocommerce-remove-coupon,
.bhc-course-commerce .remove {
  color: var(--bhc-primary) !important;
}

.bhc-course-commerce .wc-block-components-notice-banner,
.bhc-course-commerce .woocommerce-error,
.bhc-course-commerce .woocommerce-info,
.bhc-course-commerce .woocommerce-message {
  border: 1px solid color-mix(in srgb, var(--bhc-aqua) 30%, white) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--bhc-aqua) 8%, white) !important;
  color: var(--bhc-text) !important;
}

.bhc-course-commerce .wc-block-components-express-payment__event-buttons > li > div,
.bhc-course-commerce .wc-block-components-express-payment__event-buttons button,
.bhc-course-commerce .wc-block-components-express-payment-continue-rule,
.bhc-course-commerce .wc-block-components-payment-methods,
.bhc-course-commerce .payment_methods {
  border-radius: 16px !important;
}

.bhc-course-commerce .wc-block-mini-cart__button,
.bhc-course-commerce .wc-block-mini-cart__icon,
.bhc-course-commerce .wc-block-cart-link,
.bhc-course-commerce .cart-contents {
  color: var(--bhc-primary) !important;
  fill: currentColor !important;
}

@media (min-width: 700px) {
  .bhc-commerce-intro { padding: 30px 34px; }
  .bhc-commerce-trust { grid-template-columns: repeat(3, max-content); gap: 22px; }
  .bhc-course-commerce .wc-block-components-sidebar { position: sticky; top: 24px; }
}

@media (max-width: 699px) {
  .bhc-commerce-intro { margin-top: 12px; }
  .bhc-course-commerce .wc-block-components-sidebar-layout { display: block; }
  .bhc-course-commerce .wc-block-components-main,
  .bhc-course-commerce .wc-block-components-sidebar { width: 100% !important; }
  .bhc-course-commerce .wc-block-components-sidebar { margin-top: 14px; }
  .bhc-course-commerce .wc-block-cart-items__row { grid-template-columns: 72px minmax(0, 1fr) !important; gap: 12px; }
  .bhc-course-commerce .wc-block-cart-item__total { grid-column: 2; text-align: left; }
}

.bhc-toast {
  position: fixed;
  z-index: 9050;
  top: 20px;
  left: 50%;
  max-width: calc(100vw - 28px);
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--bhc-text);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.bhc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bhc-no-results,
.bhc-empty-state {
  padding: 28px 20px;
  border: 1px dashed #ddd3dd;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  color: var(--bhc-muted);
  text-align: center;
}

.bhc-library {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 0;
}

.bhc-library > header {
  margin-bottom: 20px;
}

.bhc-learning-shell .bhc-library > header {
  padding: 12px 2px 0;
}

.bhc-learning-shell .bhc-empty-state {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.bhc-learning-shell .bhc-empty-state h3,
.bhc-learning-shell .bhc-empty-state p {
  margin: 0;
}

.bhc-library-grid {
  display: grid;
  gap: 14px;
}

.bhc-library-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e9e2e9;
  border-radius: 18px;
  background: #fff;
}

.bhc-library-card > img {
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
}

.bhc-library-card h3 {
  margin: 0 0 5px;
}

.bhc-library-card p {
  margin: 0 0 12px;
  font-size: 0.84rem;
}

.bhc-library-card.is-expired {
  background: #faf8fa;
  filter: saturate(0.8);
}

.bhc-content-lock {
  max-width: 660px;
  margin: 48px auto;
  padding: clamp(28px, 7vw, 52px);
  border: 1px solid #e9e2e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(44, 18, 48, 0.08);
  text-align: center;
}

.bhc-content-lock__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bhc-primary) 10%, white);
  color: var(--bhc-primary);
}

.bhc-content-lock h2 {
  margin: 0 0 10px;
  color: var(--bhc-text);
}

.bhc-content-lock p {
  margin: 0 auto 20px;
  color: var(--bhc-muted);
}

body.bhc-cart-open {
  overflow: hidden;
}

@media (min-width: 600px) {
  .bhc-store {
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    padding-left: max(20px, calc((100vw - 1180px) / 2));
  }

  .bhc-store__header {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
    align-items: end;
    padding-top: 20px;
  }

  .bhc-store__layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }

  .bhc-categories button {
    grid-template-columns: 32px 1fr;
    justify-items: start;
    min-height: 52px;
    padding: 8px 12px;
    font-size: 0.79rem;
    text-align: left;
  }

  .bhc-course-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .bhc-course-card h2 {
    font-size: 1.12rem;
  }

  .bhc-course-card__description {
    font-size: 0.78rem;
  }

  .bhc-cart-sheet {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: min(440px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    border-radius: 20px;
    transform: translateX(110%);
  }

  .bhc-cart-sheet.is-open {
    transform: translateX(0);
  }

  .bhc-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: horizontal category rail and touch-friendly two-column course tiles. */
@media (min-width: 768px) {
  .bhc-store {
    padding: 28px max(24px, calc((100vw - 1680px) / 2)) 100px;
  }

  .bhc-mobile-nav {
    display: none;
  }

  .bhc-store__header {
    padding-bottom: 24px;
  }

  .bhc-store__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .bhc-categories {
    z-index: 20;
    top: 0;
    display: flex;
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 2px 12px;
    background: color-mix(in srgb, var(--bhc-bg) 93%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--bhc-text) 4%, transparent);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
  }

  .bhc-categories::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .bhc-categories button {
    grid-template-columns: 28px auto;
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid #e9e1e9;
    border-radius: 14px;
    background: #fff;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .bhc-categories button::before {
    top: auto;
    right: 12px;
    bottom: -1px;
    left: 12px;
    width: auto;
    height: 3px;
    border-radius: 4px 4px 0 0;
  }

  .bhc-floating-cart {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 390px;
    margin: 0;
  }

  .bhc-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .bhc-course-list__toolbar {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    color: var(--bhc-text);
  }

  .bhc-course-list__toolbar strong {
    font-size: 1.05rem;
  }

  .bhc-course-list__toolbar span {
    color: var(--bhc-muted);
    font-size: 0.78rem;
  }

  .bhc-course-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 100%;
    padding: 14px;
    border-radius: 22px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .bhc-course-card:hover {
    border-color: color-mix(in srgb, var(--bhc-primary) 24%, white);
    box-shadow: 0 16px 38px rgba(44, 18, 48, 0.1);
    transform: translateY(-2px);
  }

  .bhc-course-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 17px;
  }

  .bhc-course-card__body {
    display: flex;
    flex-direction: column;
  }

  .bhc-course-card__description {
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
  }

  .bhc-course-card__footer {
    margin-top: auto;
    padding-top: 9px;
  }

  .bhc-add-course.is-in-cart {
    background: var(--bhc-aqua);
    box-shadow: none;
  }

  .bhc-no-results,
  .bhc-course-list > .bhc-empty-state {
    grid-column: 1 / -1;
  }
}

/* Desktop: fixed category rail beside an auto-fitting POS product grid. */
@media (min-width: 1024px) {
  .bhc-store {
    padding-bottom: 64px;
  }

  .bhc-store__header h1 {
    font-size: clamp(2.35rem, 3vw, 3.5rem);
  }

  .bhc-store__layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }

  .bhc-categories {
    top: 22px;
    display: grid;
    max-height: calc(100vh - 44px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9e2e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(44, 18, 48, 0.06);
    scrollbar-width: thin;
  }

  .bhc-categories button {
    grid-template-columns: 34px minmax(0, 1fr);
    width: 100%;
    min-height: 50px;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .bhc-categories button::before {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: -10px;
    width: 4px;
    height: auto;
    border-radius: 0 4px 4px 0;
  }

  .bhc-course-list {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
}

/* Wide desktop: complete three-column POS with a permanent live order panel. */
@media (min-width: 1280px) {
  .bhc-store {
    padding-bottom: 48px;
  }

  .bhc-store__layout {
    grid-template-columns: 210px minmax(0, 1fr) 340px;
    gap: 22px;
  }

  .bhc-floating-cart,
  .bhc-cart-backdrop,
  .bhc-cart-sheet {
    display: none !important;
  }

  .bhc-desktop-cart {
    position: sticky;
    top: 22px;
    display: grid;
    grid-template-rows: auto minmax(120px, 1fr) auto auto;
    align-self: start;
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border: 1px solid #e8e0e8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(44, 18, 48, 0.09);
  }

  .bhc-desktop-cart > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee8ef;
  }

  .bhc-desktop-cart > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .bhc-desktop-cart > header > div > span:last-child {
    display: grid;
    min-width: 0;
  }

  .bhc-desktop-cart > header small {
    color: var(--bhc-muted);
    font-size: 0.66rem;
  }

  .bhc-desktop-cart > header strong {
    overflow: hidden;
    color: var(--bhc-text);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bhc-desktop-cart .bhc-cart-items {
    min-height: 120px;
    overflow-y: auto;
    padding: 6px 16px;
  }

  .bhc-desktop-cart .bhc-cart-items > .bhc-empty-state {
    display: none;
  }

  .bhc-desktop-cart__empty-hint {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    color: var(--bhc-muted);
    text-align: center;
  }

  .bhc-desktop-cart__empty-hint[hidden] {
    display: none;
  }

  .bhc-desktop-cart__empty-hint > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px dashed color-mix(in srgb, var(--bhc-primary) 30%, white);
    border-radius: 16px;
    color: var(--bhc-primary);
    font-size: 1.4rem;
  }

  .bhc-desktop-cart__empty-hint p {
    max-width: 210px;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .bhc-desktop-cart .bhc-cart-sheet__footer {
    margin-top: 0;
  }

  .bhc-desktop-cart .bhc-cart-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .bhc-desktop-cart .bhc-cart-item img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
}

@media (max-width: 374px) {
  .bhc-store {
    padding-right: 8px;
    padding-left: 8px;
  }

  .bhc-store__layout {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 7px;
  }

  .bhc-course-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 8px;
  }

  .bhc-course-card__description {
    display: none;
  }

  .bhc-floating-cart__checkout {
    max-width: 112px;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bhc-store *,
  .bhc-store *::before,
  .bhc-store *::after,
  .bhc-auth *,
  .bhc-auth *::before,
  .bhc-auth *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
