/**
 * Universal Page Builder block style + visibility + animations.
 * Also: button groups, gallery masonry, icon box, downloads, shared card chrome.
 */

.pb-block-style {
  position: relative;
  padding: var(--pb-bs-pad, 0);
  margin: var(--pb-bs-mar, 0);
  background-color: var(--pb-bs-bg, transparent);
  color: var(--pb-bs-fg, inherit);
  border: var(--pb-bs-border, none);
  border-radius: var(--pb-bs-radius, 0);
  max-width: var(--pb-bs-maxw, none);
  min-height: var(--pb-bs-minh, 0);
  font-family: var(--pb-bs-ff, inherit);
  font-size: var(--pb-bs-fs, inherit);
  font-weight: var(--pb-bs-fw, inherit);
  line-height: var(--pb-bs-lh, inherit);
  letter-spacing: var(--pb-bs-ls, inherit);
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.pb-block-style.pb-pos-relative {
  position: relative;
}

.pb-block-style.pb-pos-absolute {
  position: absolute;
  left: var(--pb-bs-left, auto);
  top: var(--pb-bs-top, auto);
  z-index: var(--pb-bs-z, auto);
  width: var(--pb-bs-w, auto);
}

.pb-block-style.pb-pos-sticky {
  position: sticky;
  top: var(--pb-bs-top, 0);
  z-index: var(--pb-bs-z, 2);
  width: var(--pb-bs-w, auto);
}

.pb-block-style:not(.pb-pos-absolute):not(.pb-pos-sticky) {
  width: var(--pb-bs-w, auto);
}

.pb-block-style--has-bg {
  background-image: var(--pb-bs-gradient, none), var(--pb-bs-bg-image, none);
  background-size: var(--pb-bs-bg-size, cover);
  background-position: var(--pb-bs-bg-pos, center);
  background-repeat: no-repeat;
  isolation: isolate;
}
.pb-block-style--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pb-bs-overlay, transparent);
  opacity: 0.45;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.pb-block-style--has-bg > * {
  position: relative;
  z-index: 1;
}

.pb-block-style--shadow {
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
}

.pb-block-style--align-left { text-align: left; }
.pb-block-style--align-center { text-align: center; margin-left: auto; margin-right: auto; }
.pb-block-style--align-right { text-align: right; margin-left: auto; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .pb-align-t-left { text-align: left !important; }
  .pb-align-t-center { text-align: center !important; margin-left: auto; margin-right: auto; }
  .pb-align-t-right { text-align: right !important; margin-left: auto; }
}
@media (max-width: 767.98px) {
  .pb-align-m-left { text-align: left !important; }
  .pb-align-m-center { text-align: center !important; margin-left: auto; margin-right: auto; }
  .pb-align-m-right { text-align: right !important; margin-left: auto; }
}

.pb-hover-lift:hover { transform: translateY(-0.25rem); box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.14); }
.pb-hover-zoom:hover { transform: scale(1.01); }
.pb-hover-fade:hover { opacity: 0.92; }
.pb-hover-custom:hover,
.pb-hover-lift:hover,
.pb-hover-zoom:hover,
.pb-hover-fade:hover {
  background-color: var(--pb-bs-hover-bg, var(--pb-bs-bg, transparent));
  color: var(--pb-bs-hover-fg, var(--pb-bs-fg, inherit));
}
.pb-hover-shadow:hover {
  box-shadow: 0 0.85rem 1.75rem rgba(15, 23, 42, 0.16);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .pb-block-style {
    padding: var(--pb-bs-pad-t, var(--pb-bs-pad, 0));
    margin: var(--pb-bs-mar-t, var(--pb-bs-mar, 0));
    background-color: var(--pb-bs-bg-t, var(--pb-bs-bg, transparent));
    color: var(--pb-bs-fg-t, var(--pb-bs-fg, inherit));
    font-size: var(--pb-bs-fs-t, var(--pb-bs-fs, inherit));
    font-weight: var(--pb-bs-fw-t, var(--pb-bs-fw, inherit));
  }
}
@media (max-width: 767.98px) {
  .pb-block-style {
    padding: var(--pb-bs-pad-m, var(--pb-bs-pad-t, var(--pb-bs-pad, 0)));
    margin: var(--pb-bs-mar-m, var(--pb-bs-mar-t, var(--pb-bs-mar, 0)));
    background-color: var(--pb-bs-bg-m, var(--pb-bs-bg-t, var(--pb-bs-bg, transparent)));
    color: var(--pb-bs-fg-m, var(--pb-bs-fg-t, var(--pb-bs-fg, inherit)));
    font-size: var(--pb-bs-fs-m, var(--pb-bs-fs-t, var(--pb-bs-fs, inherit)));
    font-weight: var(--pb-bs-fw-m, var(--pb-bs-fw-t, var(--pb-bs-fw, inherit)));
  }
}

/* Responsive layout structure */
.pb-layout {
  display: var(--pb-bs-display, block);
  flex-direction: var(--pb-bs-dir, row);
  gap: var(--pb-bs-gap, 0);
}
.pb-layout--flex { display: flex; flex-wrap: wrap; }
.pb-layout--grid { display: grid; }
.pb-layout--block { display: block; }
.pb-layout--none { display: none; }
@media (max-width: 991.98px) {
  .pb-layout {
    display: var(--pb-bs-display-t, var(--pb-bs-display, block));
    flex-direction: var(--pb-bs-dir-t, var(--pb-bs-dir, row));
    gap: var(--pb-bs-gap-t, var(--pb-bs-gap, 0));
  }
  .pb-layout-rev-t { flex-direction: column-reverse; }
}
@media (max-width: 575.98px) {
  .pb-layout {
    display: var(--pb-bs-display-m, var(--pb-bs-display-t, var(--pb-bs-display, block)));
    flex-direction: var(--pb-bs-dir-m, var(--pb-bs-dir-t, var(--pb-bs-dir, row)));
    gap: var(--pb-bs-gap-m, var(--pb-bs-gap-t, var(--pb-bs-gap, 0)));
  }
  .pb-layout-rev-m { flex-direction: column-reverse; }
}

@media (min-width: 992px) {
  .pb-hide-d { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .pb-hide-t { display: none !important; }
}
@media (max-width: 767.98px) {
  .pb-hide-m { display: none !important; }
}

@keyframes pb-anim-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pb-anim-rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}
@keyframes pb-anim-slide {
  from { opacity: 0; transform: translateX(-1rem); }
  to { opacity: 1; transform: none; }
}

.pb-anim-fade { animation: pb-anim-fade 0.55s ease both; }
.pb-anim-rise { animation: pb-anim-rise 0.55s ease both; }
.pb-anim-slide { animation: pb-anim-slide 0.55s ease both; }

@media (prefers-reduced-motion: reduce) {
  .pb-anim-fade,
  .pb-anim-rise,
  .pb-anim-slide,
  .pb-hover-lift,
  .pb-hover-zoom,
  .pb-hover-fade {
    animation: none;
    transition: none;
  }
  .pb-hover-lift:hover,
  .pb-hover-zoom:hover {
    transform: none;
  }
}

/* Button group */
.pb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.pb-buttons--left { justify-content: flex-start; }
.pb-buttons--center { justify-content: center; }
.pb-buttons--right { justify-content: flex-end; }
.pb-buttons .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-buttons .btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .pb-buttons--stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .pb-buttons--stack-mobile .btn {
    width: 100%;
  }
}

/* Gallery masonry */
.pb-gallery-masonry {
  column-count: var(--pb-gallery-cols, 3);
  column-gap: 1rem;
}
.pb-gallery-masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem;
  display: block;
}
.pb-gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.35rem;
}
.pb-gallery-masonry-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
}

@media (max-width: 767.98px) {
  .pb-gallery-masonry { column-count: 2; }
}
@media (max-width: 479.98px) {
  .pb-gallery-masonry { column-count: 1; }
}

/* Shared content card chrome (cards / icon features / tools) */
.pb-shared-card {
  height: 100%;
  border-radius: var(--pb-kit-radius, 0.5rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-shared-card:hover {
  transform: translateY(-2px);
}

/* Icon box */
.pb-icon-box {
  text-align: var(--pb-icon-box-align, center);
}
.pb-icon-box-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--pb-kit-accent, inherit);
}
.pb-icon-box-title {
  margin-bottom: 0.5rem;
}

/* Downloads / file list */
.pb-downloads-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pb-downloads-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.pb-downloads-list a {
  text-decoration: none;
}

/* Product filters */
.pb-product-filters .form-label {
  font-size: 0.875rem;
}

/* Sticky section */
.pb-sticky-section {
  position: sticky;
  top: var(--pb-sticky-top, 0);
  z-index: var(--pb-sticky-z, 20);
  transition: box-shadow 0.2s ease;
}
.pb-sticky-section--shadow {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
.pb-sticky-section--contain {
  overflow: hidden;
  contain: layout paint;
}

/* Offcanvas trigger spacing */
.block-offcanvas .btn { margin: 0.25rem 0; }

/* Markdown */
.pb-markdown {
  line-height: 1.65;
}
.pb-markdown pre {
  background: rgba(15, 23, 42, 0.04);
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  overflow: auto;
}

/* Audio */
.pb-audio audio {
  width: 100%;
  max-width: 36rem;
}

/* Style kit tokens */
:root {
  --pb-kit-radius: 0.5rem;
  --pb-kit-btn-radius: 0.375rem;
  --pb-kit-section-gap: 3rem;
  --pb-kit-accent: inherit;
  --pb-kit-heading-weight: 600;
}
.theme-body .pb-buttons .btn,
.theme-body .block-modal-popup .btn,
.theme-body .block-icon-box .btn {
  border-radius: var(--pb-kit-btn-radius);
}
.theme-body h1, .theme-body h2, .theme-body h3,
.theme-body .block-section-title {
  font-family: var(--pb-section-heading-font, var(--pb-kit-font-heading, inherit));
  font-weight: var(--pb-section-heading-weight, var(--pb-kit-heading-weight));
}

/* Lottie */
.pb-lottie-wrap {
  width: 100%;
  min-height: 120px;
}

/* Image hotspots */
.pb-hotspots {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}
.pb-hotspots-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--pb-kit-radius, 0.5rem);
}
.pb-hotspots-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.pb-hotspots-layer .pb-hotspot-marker {
  pointer-events: auto;
}
/* Hotspot labels/tooltips keep readable line-height even when block style
   sets typography on the wrapper (container uses line-height:0 for the image). */
.pb-hotspot-label,
.pb-hotspot-tooltip {
  line-height: 1.35;
}
/*
 * Marker box is sized only by the trigger (dot or thumbnail). Labels/tooltips
 * are absolutely positioned so they never shift the % coordinate center.
 */
.pb-hotspot-marker {
  position: absolute;
  left: var(--pb-hotspot-x, 50%);
  top: var(--pb-hotspot-y, 50%);
  transform: translate(-50%, -50%);
  display: block;
  text-decoration: none;
  color: var(--pb-bs-fg, inherit);
  z-index: 2;
  line-height: 0;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--pb-bs-ff, inherit);
  font-size: var(--pb-bs-fs, inherit);
  font-weight: var(--pb-bs-fw, inherit);
  letter-spacing: var(--pb-bs-ls, inherit);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pb-hotspot-dot {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  border-radius: 50%;
  background: var(--pb-kit-accent, #0d6efd);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
  animation: pb-hotspot-pulse 2s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  overflow: hidden;
  transition: transform 0.15s ease;
}
/* Image assigned: thumbnail IS the hotspot — no pulse marker / icon chrome */
.pb-hotspot-thumb {
  display: block;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 2px 8px rgba(15, 23, 42, 0.3);
  transition: transform 0.15s ease;
}
.pb-hotspot-marker--has-image {
  cursor: zoom-in;
}
.pb-hotspot-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Existing hover zoom (scale) — same for dots and thumbnails */
.pb-hotspot-marker:hover .pb-hotspot-dot,
.pb-hotspot-marker:focus-visible .pb-hotspot-dot,
.pb-hotspot-marker:hover .pb-hotspot-thumb,
.pb-hotspot-marker:focus-visible .pb-hotspot-thumb {
  animation-play-state: paused;
  transform: scale(1.15);
}
.pb-hotspot-marker:focus-visible {
  outline: 2px solid var(--pb-kit-accent, #0d6efd);
  outline-offset: 4px;
  border-radius: 50%;
}
.pb-hotspot-marker--has-image:focus-visible {
  outline-offset: 3px;
}
.pb-hotspot-label {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1.35;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  pointer-events: none;
}
.pb-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 10rem;
  max-width: 16rem;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}
.pb-hotspot-tooltip-text {
  display: block;
}
.pb-hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.94);
}
/* Existing mouse-over / mouse-out tooltip behavior */
.pb-hotspot-marker:hover .pb-hotspot-tooltip,
.pb-hotspot-marker:focus-visible .pb-hotspot-tooltip,
.pb-hotspot-marker:focus-within .pb-hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@keyframes pb-hotspot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 767.98px) {
  .pb-hotspot-thumb {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
  }
  .pb-hotspot-dot {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-hotspot-dot {
    animation: none;
  }
  .pb-hotspot-dot,
  .pb-hotspot-thumb,
  .pb-hotspot-tooltip {
    transition: none;
  }
}

/* Hotspot editor (admin) — keep in sync with builder-wysiwyg.css */
.pb-hotspot-editor {
  max-width: 100%;
}
.pb-hotspot-editor__stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
  cursor: crosshair;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.375rem;
  background: #f8fafc;
  overflow: hidden;
}
.pb-hotspot-editor__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  user-select: none;
  pointer-events: none;
}
.pb-hotspot-editor__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  min-height: 160px;
  padding: 1.5rem;
  line-height: 1.4;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  cursor: default;
  pointer-events: none;
}
.pb-hotspot-editor-markers {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.pb-hotspot-editor-marker {
  position: absolute;
  left: var(--pb-hotspot-x, 50%);
  top: var(--pb-hotspot-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  border: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}
.pb-hotspot-editor-marker.is-dragging {
  cursor: grabbing;
  z-index: 3;
  opacity: 0.92;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.35));
}
.pb-hotspot-editor-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  line-height: 1;
}
.pb-hotspot-editor-thumb {
  display: block;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(15, 23, 42, 0.28);
  background: transparent;
}
.pb-hotspot-editor-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.repeater-item--flash {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  transition: outline-color 0.3s ease;
}

/* Wishlist toggle on product cards */
.pb-product-card {
  position: relative;
}
.pb-wishlist-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #dc3545;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.pb-wishlist-toggle:hover,
.pb-wishlist-toggle:focus-visible {
  transform: scale(1.08);
  outline: 2px solid #0d6efd;
  outline-offset: 1px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}
.pb-wishlist-toggle:active:not(:disabled) {
  transform: scale(0.92);
}
.pb-wishlist-toggle.is-active {
  background: #dc3545;
  color: #fff;
}
.pb-wishlist-toggle.is-active i {
  animation: pb-wishlist-pop 0.35s ease;
}
.pb-wishlist-toggle.is-loading {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}
.pb-wishlist-toggle.is-loading i {
  animation: pb-wishlist-spin 0.7s linear infinite;
}
.pb-wishlist-toggle.is-error {
  animation: pb-wishlist-shake 0.45s ease;
}
.pb-wishlist-toggle:disabled {
  cursor: wait;
}
.pb-wishlist-toggle--gallery {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.15rem;
}
.pb-wishlist-toggle--thumb {
  top: 0.35rem;
  right: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.9rem;
}
@keyframes pb-wishlist-pop {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes pb-wishlist-spin {
  to { transform: rotate(360deg); }
}
@keyframes pb-wishlist-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .pb-wishlist-toggle,
  .pb-wishlist-toggle.is-active i,
  .pb-wishlist-toggle.is-loading i,
  .pb-wishlist-toggle.is-error {
    animation: none;
    transition: none;
  }
  .pb-wishlist-toggle:hover,
  .pb-wishlist-toggle:focus-visible,
  .pb-wishlist-toggle:active:not(:disabled) {
    transform: none;
  }
}

/* Nav menu nested children */
.pb-nav-menu-item.has-children {
  position: relative;
}
.pb-nav-menu-sub {
  margin: 0.35rem 0 0.35rem 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(15, 23, 42, 0.08);
}
.pb-nav-menu--horizontal > .pb-nav-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-start;
}
.pb-nav-menu--horizontal .pb-nav-menu-item.has-children > .pb-nav-menu-sub {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 12rem;
  margin: 0.25rem 0 0;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.35rem;
  z-index: 5;
}
.pb-nav-menu--pills .pb-nav-menu-link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
}

/* Bento grid */
.pb-bento-grid {
  display: grid;
  grid-template-columns: repeat(var(--pb-bento-cols, 4), 1fr);
  gap: var(--pb-bento-gap, 1rem);
}
.pb-bento-grid--equal {
  grid-auto-rows: 1fr;
}
.pb-bento-cell {
  min-height: var(--pb-bento-min-height, 8rem);
  border-radius: var(--pb-kit-radius, 0.5rem);
  background: rgba(15, 23, 42, 0.03);
  padding: 0.75rem;
}
.pb-bento-grid--equal .pb-bento-cell {
  height: 100%;
}
.pb-bento-cell--span-1 { grid-column: span 1; }
.pb-bento-cell--span-2 { grid-column: span 2; }
.pb-bento-cell--span-3 { grid-column: span 3; }
.pb-bento-cell--span-4 { grid-column: span 4; }
@media (max-width: 767.98px) {
  .pb-bento-grid { grid-template-columns: 1fr; }
  .pb-bento-cell--span-1,
  .pb-bento-cell--span-2,
  .pb-bento-cell--span-3,
  .pb-bento-cell--span-4 { grid-column: span 1; }
}

/* Flip box */
.pb-flip-box {
  perspective: 1000px;
  max-width: 24rem;
  margin-inline: auto;
}
.pb-flip-box-inner {
  position: relative;
  min-height: 14rem;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.pb-flip-box:hover .pb-flip-box-inner,
.pb-flip-box:focus-within .pb-flip-box-inner {
  transform: rotateY(180deg);
}
.pb-flip-box--vertical:hover .pb-flip-box-inner,
.pb-flip-box--vertical:focus-within .pb-flip-box-inner {
  transform: rotateX(180deg);
}
.pb-flip-box-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--pb-kit-radius, 0.5rem);
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pb-flip-box-back {
  transform: rotateY(180deg);
}
.pb-flip-box--vertical .pb-flip-box-back {
  transform: rotateX(180deg);
}
.pb-flip-box-media img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 0.35rem;
}

/* Org chart */
:root {
  --pb-org-line: rgba(15, 23, 42, 0.2);
}
.pb-org-tree,
.pb-org-children {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
  list-style: none;
}
.pb-org-tree {
  padding-top: 0.5rem;
}
.pb-org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.pb-org-children > .pb-org-node {
  padding-top: 2rem;
  /* vertical stub connecting this card up to the horizontal sibling bar */
  background: linear-gradient(var(--pb-org-line), var(--pb-org-line)) no-repeat center top / 2px 2rem;
}
.pb-org-children > .pb-org-node:only-child {
  background: linear-gradient(var(--pb-org-line), var(--pb-org-line)) no-repeat center top / 2px 2rem;
}
/* horizontal bar joining siblings, split so it meets exactly between each pair */
.pb-org-children > .pb-org-node::before,
.pb-org-children > .pb-org-node::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: 50%;
  height: 2px;
  background: var(--pb-org-line);
}
.pb-org-children > .pb-org-node::before { left: 0; }
.pb-org-children > .pb-org-node::after { right: 0; }
.pb-org-children > .pb-org-node:first-child::before,
.pb-org-children > .pb-org-node:last-child::after,
.pb-org-children > .pb-org-node:only-child::before,
.pb-org-children > .pb-org-node:only-child::after {
  background: transparent;
}
/* trunk line from a parent card down to its children row */
.pb-org-node > .pb-org-children {
  position: relative;
  margin-top: 1.5rem;
}
.pb-org-node > .pb-org-children::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--pb-org-line);
}
.pb-org-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pb-kit-radius, 0.5rem);
  padding: 0.85rem 1.1rem;
  min-width: 9rem;
  max-width: 14rem;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
}
.pb-org-photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.35rem;
}
.pb-org-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pb-kit-primary, #0d6efd);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.pb-org-department {
  color: #64748b;
}
.pb-org-email {
  color: var(--pb-kit-primary, #0d6efd);
  text-decoration: none;
  word-break: break-all;
}
.pb-org-email:hover {
  text-decoration: underline;
}

/* Roadmap */
.pb-roadmap {
  position: relative;
  padding-left: 1.5rem;
}
.pb-roadmap-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
}
.pb-roadmap-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background: rgba(15, 23, 42, 0.12);
}
.pb-roadmap-marker {
  flex-shrink: 0;
  width: 1rem;
  padding-top: 0.25rem;
}
.pb-roadmap-dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #94a3b8;
}
.pb-roadmap-item--active .pb-roadmap-dot {
  background: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
}
.pb-roadmap-item--done .pb-roadmap-dot { background: #198754; }
.pb-roadmap-badge--planned { background: #e2e8f0; color: #334155; }
.pb-roadmap-badge--active { background: #cfe2ff; color: #084298; }
.pb-roadmap-badge--done { background: #d1e7dd; color: #0f5132; }
.pb-roadmap-date {
  margin-left: auto;
  white-space: nowrap;
}
.pb-roadmap-body {
  flex: 1;
  min-width: 0;
}
.pb-roadmap-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  color: var(--pb-kit-primary, #0d6efd);
  text-decoration: none;
  font-weight: 500;
}
.pb-roadmap-link:hover {
  text-decoration: underline;
}
.pb-roadmap-item--active .pb-roadmap-title { color: #0d6efd; }

.pb-roadmap-badge--delayed { background: #fff3cd; color: #664d03; }
.pb-roadmap-item--delayed .pb-roadmap-dot { background: #ffc107; }

/* Empty block preview (WYSIWYG) */
.pb-block-empty-preview {
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(15, 23, 42, 0.02);
  text-align: center;
}
.pb-block-empty-preview__msg {
  font-size: 0.9rem;
}

/* Logo grid column override via --pb-logo-cols */
.logo-grid[style*="--pb-logo-cols"],
.block-logo-grid--cols .logo-grid {
  grid-template-columns: repeat(var(--pb-logo-cols, 4), minmax(0, 1fr));
}
@media (max-width: 575.98px) {
  .logo-grid[style*="--pb-logo-cols"],
  .block-logo-grid--cols .logo-grid {
    grid-template-columns: repeat(min(2, var(--pb-logo-cols, 2)), minmax(0, 1fr));
  }
}

.logo-grid-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.block-cards--icon-grid .content-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Consent placeholders */
.pb-consent-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--pb-kit-radius, 0.5rem);
}

/* Brand showcase */
.pb-brand-grid {
  display: grid;
  grid-template-columns: repeat(var(--pb-brand-cols, 4), 1fr);
  gap: 1rem;
  align-items: center;
}
.pb-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--pb-kit-radius, 0.5rem);
  background: rgba(15, 23, 42, 0.03);
  min-height: 5rem;
  text-decoration: none;
}
.pb-brand-link img {
  max-width: 100%;
  max-height: 3rem;
  object-fit: contain;
}
