.ws-feature-expandable-item {
  position: relative;
  min-inline-size: 0;
  min-block-size: inherit;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  border-radius: inherit;

  --ws-feature-expandable-item-fit: cover;
  --ws-feature-expandable-item-position: center;
  --ws-feature-expandable-item-content-max: 560px;
  --ws-feature-expandable-item-overlay-opacity: .68;
  --ws-feature-expandable-item-bg-color: transparent;
  --ws-feature-expandable-item-bg-gradient: none;
}

.ws-feature-expandable-item[hidden],
.ws-feature-expandable-item.is-hidden {
  display: none !important;
}

.ws-feature-expandable-item.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.ws-feature-expandable-item__inner {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: inherit;
  overflow: hidden;
  border-radius: inherit;
  background:
    var(--ws-feature-expandable-item-bg-gradient),
    var(--ws-feature-expandable-item-bg-color);
}

.ws-feature-expandable-item__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ws-feature-expandable-item__media img,
.ws-feature-expandable-item__media video,
.ws-feature-expandable-item__media iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: var(--ws-feature-expandable-item-fit);
  object-position: var(--ws-feature-expandable-item-position);
  border: 0;
}

.ws-feature-expandable-item__media img,
.ws-feature-expandable-item__media video {
  transform: scale(1.06);
  transition:
    transform var(--ws-feature-expandable-duration, 720ms)
    var(--ws-feature-expandable-easing, cubic-bezier(.22, 1, .36, 1));
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__media img,
.ws-feature-expandable-item.is-active .ws-feature-expandable-item__media video {
  transform: scale(1);
}

.ws-feature-expandable-item__svg-preview,
.ws-feature-expandable-item__lottie-preview {
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 100%;
  padding: var(--wp--style--block-gap, 2rem);
}

.ws-feature-expandable-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--ws-feature-expandable-item-overlay-opacity);
}

.ws-feature-expandable-item--overlay-none .ws-feature-expandable-item__overlay {
  display: none;
}

.ws-feature-expandable-item--overlay-dark .ws-feature-expandable-item__overlay {
  background: CanvasText;
}

.ws-feature-expandable-item--overlay-light .ws-feature-expandable-item__overlay {
  background: Canvas;
}

.ws-feature-expandable-item--overlay-gradient .ws-feature-expandable-item__overlay {
  background:
    linear-gradient(
      to top,
      color-mix(in srgb, CanvasText 72%, transparent),
      color-mix(in srgb, CanvasText 22%, transparent),
      transparent
    );
}

.ws-feature-expandable-item--overlay-glass .ws-feature-expandable-item__overlay {
  background: color-mix(in srgb, Canvas 20%, transparent);
  backdrop-filter: blur(18px);
}

.ws-feature-expandable-item--overlay-mesh .ws-feature-expandable-item__overlay {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, currentColor 24%, transparent), transparent 36%),
    radial-gradient(circle at 80% 40%, color-mix(in srgb, currentColor 14%, transparent), transparent 42%);
}

.ws-feature-expandable-item__content {
  position: relative;
  z-index: 4;
  display: flex;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: inherit;
  padding: clamp(1.25rem, 3vw, 3rem);
  color: inherit;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__content {
  align-items: center;
  justify-content: center;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__content-inner {
  display: grid;
  align-content: center;
  gap: var(--wp--style--block-gap, 1rem);
}

.ws-feature-expandable-item__content-inner {
  inline-size: 100%;
  max-inline-size: min(100%, var(--ws-feature-expandable-item-content-max));
}

.ws-feature-expandable-item--content-top-left .ws-feature-expandable-item__content {
  align-items: flex-start;
  justify-content: flex-start;
}

.ws-feature-expandable-item--content-top-center .ws-feature-expandable-item__content {
  align-items: flex-start;
  justify-content: center;
}

.ws-feature-expandable-item--content-top-right .ws-feature-expandable-item__content {
  align-items: flex-start;
  justify-content: flex-end;
}

.ws-feature-expandable-item--content-center-left .ws-feature-expandable-item__content {
  align-items: center;
  justify-content: flex-start;
}

.ws-feature-expandable-item--content-center .ws-feature-expandable-item__content {
  align-items: center;
  justify-content: center;
}

.ws-feature-expandable-item--content-center-right .ws-feature-expandable-item__content {
  align-items: center;
  justify-content: flex-end;
}

.ws-feature-expandable-item--content-bottom-left .ws-feature-expandable-item__content {
  align-items: flex-end;
  justify-content: flex-start;
}

.ws-feature-expandable-item--content-bottom-center .ws-feature-expandable-item__content {
  align-items: flex-end;
  justify-content: center;
}

.ws-feature-expandable-item--content-bottom-right .ws-feature-expandable-item__content {
  align-items: flex-end;
  justify-content: flex-end;
}

.ws-feature-expandable-item__header,
.ws-feature-expandable-item__details {
  max-inline-size: min(100%, var(--ws-feature-expandable-item-content-max));
}

.ws-feature-expandable-item__header {
  display: grid;
  gap: var(--wp--style--block-gap, .75rem);
}

.ws-feature-expandable-item--align-left {
  text-align: left;
}

.ws-feature-expandable-item--align-center {
  text-align: center;
}

.ws-feature-expandable-item--align-right {
  text-align: right;
}

.ws-feature-expandable-item--align-center .ws-feature-expandable-item__content-inner,
.ws-feature-expandable-item--align-center .ws-feature-expandable-item__header,
.ws-feature-expandable-item--align-center .ws-feature-expandable-item__details {
  margin-inline: auto;
}

.ws-feature-expandable-item--align-right .ws-feature-expandable-item__content-inner,
.ws-feature-expandable-item--align-right .ws-feature-expandable-item__header,
.ws-feature-expandable-item--align-right .ws-feature-expandable-item__details {
  margin-inline-start: auto;
}

.ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: .34rem .7rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, Canvas 20%, transparent);
  backdrop-filter: blur(12px);
  font-size: .74rem;
  font-weight: inherit;
  line-height: 1;
}

.ws-feature-expandable-item__icon {
  display: inline-grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, Canvas 22%, transparent);
  backdrop-filter: blur(12px);
  font-size: 1.35rem;
}

.ws-feature-expandable-item__title {
  margin: 0;
  max-inline-size: 12ch;
  font-size: clamp(2rem, 4.4vw, 5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.ws-feature-expandable-item__description {
  margin: 0;
  max-inline-size: 62ch;
  opacity: .82;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.ws-feature-expandable-item__details {
  display: grid;
  gap: var(--wp--style--block-gap, 1rem);
  margin-block-start: var(--wp--style--block-gap, 1rem);
  transform-origin: bottom left;
  transition:
    opacity var(--ws-feature-expandable-duration, 720ms)
      var(--ws-feature-expandable-easing, cubic-bezier(.22, 1, .36, 1)),
    transform var(--ws-feature-expandable-duration, 720ms)
      var(--ws-feature-expandable-easing, cubic-bezier(.22, 1, .36, 1));
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__description,
.ws-feature-expandable-item.is-active .ws-feature-expandable-item__details {
  opacity: 1;
  transform: none;
}

.ws-feature-expandable-item__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--wp--style--block-gap, .75rem);
}

.ws-feature-expandable-item__stat {
  padding: .85rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: inherit;
  background: color-mix(in srgb, Canvas 14%, transparent);
  backdrop-filter: blur(12px);
}

.ws-feature-expandable-item__stat-value {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.ws-feature-expandable-item__stat-label {
  display: block;
  margin-block-start: .35rem;
  opacity: .72;
  font-size: .85rem;
}

.ws-feature-expandable-item__products {
  display: grid;
  gap: var(--wp--style--block-gap, .75rem);
}

.ws-feature-expandable-item__products-title {
  display: block;
  font-weight: inherit;
}

.ws-feature-expandable-item__products-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-feature-expandable-item__product {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.ws-feature-expandable-item__product::before {
  content: "";
  inline-size: 1.1rem;
  block-size: 1.1rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: .8;
}

.ws-feature-expandable-item__product a {
  color: inherit;
  text-decoration: inherit;
}

.ws-feature-expandable-item__testimonial {
  margin: 0;
  padding: 1rem;
  border-inline-start: 3px solid currentColor;
  border-radius: inherit;
  background: color-mix(in srgb, Canvas 14%, transparent);
  backdrop-filter: blur(12px);
}

.ws-feature-expandable-item__testimonial p {
  margin: 0;
}

.ws-feature-expandable-item__testimonial cite {
  display: block;
  margin-block-start: .75rem;
  opacity: .72;
  font-style: normal;
}

.ws-feature-expandable-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--style--block-gap, .75rem);
  margin-block-start: var(--wp--style--block-gap, 1rem);
}

.ws-feature-expandable-item__button {
  color: inherit;
  text-decoration: inherit;
}

.ws-feature-expandable-item__innerblocks {
  color: inherit;
}

.ws-feature-expandable-item__innerblocks > *:first-child {
  margin-block-start: 0;
}

.ws-feature-expandable-item__innerblocks > *:last-child {
  margin-block-end: 0;
}

.ws-feature-expandable-item--state-new .ws-feature-expandable-item__badge::before {
  content: "NEW ";
}

.ws-feature-expandable-item--state-beta .ws-feature-expandable-item__badge::before {
  content: "BETA ";
}

.ws-feature-expandable-item--state-pro .ws-feature-expandable-item__badge::before {
  content: "PRO ";
}

.ws-feature-expandable-item--state-coming-soon .ws-feature-expandable-item__badge::before {
  content: "SOON ";
}

.ws-feature-expandable-item--state-locked .ws-feature-expandable-item__badge::before {
  content: "🔒 ";
}

.ws-feature-expandable-item--mask-none .ws-feature-expandable-item__media {
  clip-path: none;
}

.ws-feature-expandable-item--mask-diagonal .ws-feature-expandable-item__media {
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.ws-feature-expandable-item--mask-steps .ws-feature-expandable-item__media {
  clip-path: polygon(0 0, 100% 0, 100% 74%, 82% 74%, 82% 88%, 64% 88%, 64% 100%, 0 100%);
}

.ws-feature-expandable-item--mask-diamond .ws-feature-expandable-item__media {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.ws-feature-expandable.has-tilt .ws-feature-expandable-item.is-tilting {
  transform:
    perspective(1000px)
    rotateX(var(--ws-item-rotate-x, 0deg))
    rotateY(var(--ws-item-rotate-y, 0deg))
    scale(1);
}

.ws-feature-expandable.has-spotlight .ws-feature-expandable-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--ws-spotlight-x, 50%) var(--ws-spotlight-y, 50%),
      color-mix(in srgb, Canvas 24%, transparent),
      transparent 34%
    );
  opacity: 0;
  transition: opacity 260ms ease;
}

.ws-feature-expandable.has-spotlight .ws-feature-expandable-item:hover::after {
  opacity: 1;
}

.ws-feature-expandable-item-editor {
  min-block-size: 360px;
}

.ws-feature-expandable-item-editor__media-control {
  display: grid;
  gap: .5rem;
  margin-block-end: 1rem;
}


@media (max-width: 768px) {
  .ws-feature-expandable-item__actions {
    flex-direction: column;
  }

  .ws-feature-expandable-item__button {
    inline-size: 100%;
  }

  .ws-feature-expandable-item__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-feature-expandable-item,
  .ws-feature-expandable-item *,
  .ws-feature-expandable-item::before,
  .ws-feature-expandable-item::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}



/* Card mode cleanup */
@media (max-width: 900px) {
  .ws-feature-expandable-item__content-inner {
    display: grid;
    gap: .65rem;
    max-inline-size: 100%;
  }

  .ws-feature-expandable-item__trigger {
    display: grid;
    gap: .45rem;
  }

  .ws-feature-expandable-item__button {
    width: fit-content;
  }
}

/* =========================================
   REMOVE ALL CONTENT BACKGROUNDS
========================================= */

.ws-feature-expandable-item__content,
.ws-feature-expandable-item__content-inner,
.ws-feature-expandable-item__header,
.ws-feature-expandable-item__details,
.ws-feature-expandable-item__trigger {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* =========================================
   CLEAN TRIGGER
========================================= */

.ws-feature-expandable-item__trigger {
  all: unset;
  display: grid;
  gap: .75rem;
  cursor: pointer;
  inline-size: 100%;
  position: relative;
  z-index: 5;
}

.ws-feature-expandable-item__cover-link {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.ws-feature-expandable-item__content {
  pointer-events: none;
}

.ws-feature-expandable-item__content a,
.ws-feature-expandable-item__trigger {
  pointer-events: auto;
}

.ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item__badge,
.ws-feature-expandable-item__icon,
.ws-feature-expandable-item__trigger {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.ws-feature-expandable-item__icon {
  inline-size: auto;
  block-size: auto;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.ws-feature-expandable-item__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}