/**
 * devly-store — PC builder page (preview.html container)
 */

body.cfix-pc-builder-page,
body.cfix-pc-builder-page main {
  background: #fff;
}

body.cfix-pc-builder-page .static-page,
body.cfix-pc-builder-page .static-page__article,
body.cfix-pc-builder-page .vi-wpb-wrapper,
body.cfix-pc-builder-page .vi-wpb-wrapper .woopb-entry-content {
  background: #fff;
}

body.cfix-pc-builder-page .static-page--pc-builder {
  padding-bottom: 34px;
}

body.cfix-pc-builder-page .pc-builder-hero {
  margin-bottom: 24px;
}

body.cfix-pc-builder-page .static-page--pc-builder .static-page__article.card {
  margin-top: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.cfix-pc-builder-page .static-page__head {
  padding-bottom: 8px;
}

body.cfix-pc-builder-page .static-page__content,
body.cfix-pc-builder-page .static-page__content--pc-builder {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding: 0;
}

body.cfix-pc-builder-page .vi-wpb-wrapper,
body.cfix-pc-builder-page .vi-wpb-wrapper .vi-wpb-single_container,
body.cfix-pc-builder-page .vi-wpb-wrapper .woopb-entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Theme single-product .summary must not affect builder aside (desktop only) */
@media (min-width: 1101px) {
  body.cfix-pc-builder-page #woopb-wrapper aside.summary,
  body.cfix-pc-builder-page #woopb-wrapper .summary.woopb-sidebar-panel {
    min-height: 0 !important;
    order: unset !important;
  }
}

@media (max-width: 1100px) {
  body.cfix-pc-builder-page #woopb-wrapper .builder-layout {
    display: grid !important;
  }

  body.cfix-pc-builder-page #woopb-wrapper #woopb-main {
    order: 1;
  }

  body.cfix-pc-builder-page #woopb-wrapper #woopb-sidebar {
    order: 2;
  }
}

@media (max-width: 720px) {
  body.cfix-pc-builder-page .container.static-page--pc-builder {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    box-sizing: border-box;
  }

  body.cfix-pc-builder-page .pc-builder-hero {
    margin-bottom: 8px;
    min-height: 0;
    padding-inline: 12px;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-art {
    display: none !important;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-text {
    padding: 16px 12px 14px;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-text .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-text h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-text p {
    font-size: 14px;
    line-height: 1.5;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-stats {
    margin-top: 10px;
    gap: 6px;
  }

  body.cfix-pc-builder-page .pc-builder-hero .hero-stat {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.cfix-pc-builder-page .static-page--pc-builder {
    padding-bottom: 20px;
  }

  body.cfix-pc-builder-page .static-page__head {
    padding-inline: 12px;
  }

  body.cfix-pc-builder-page .static-page__title {
    font-size: clamp(22px, 6vw, 28px);
  }

  body.cfix-pc-builder-page .static-page--pc-builder .static-page__article.card {
    margin-inline: 0;
  }

  body.cfix-pc-builder-page .static-page__content--pc-builder,
  body.cfix-pc-builder-page .vi-wpb-wrapper,
  body.cfix-pc-builder-page .vi-wpb-wrapper .vi-wpb-single_container,
  body.cfix-pc-builder-page .vi-wpb-wrapper .woopb-entry-content,
  body.cfix-pc-builder-page #woopb-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
  }

  #woopb-modal.cfix-modal-visible,
  #woopb-modal.cfix-modal-open,
  #woopb-modal.cfix-modal-visible[style],
  #woopb-modal.cfix-modal-open[style] {
    padding: 0 !important;
    align-items: stretch !important;
  }

  #woopb-modal.cfix-modal-visible .woopb-modal-inner,
  #woopb-modal.cfix-modal-open .woopb-modal-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 430px) {
  body.cfix-pc-builder-page .container.static-page--pc-builder {
    padding-inline: 8px;
  }
}

body.cfix-pc-builder-page #woopb-wrapper .trust-list .trust-item {
  border: 0 !important;
  border-bottom: 0 !important;
  border-inline: 0 !important;
  border-inline-end: 0 !important;
}

#woopb-modal:not(.cfix-modal-visible):not(.cfix-modal-open) {
  visibility: hidden;
  pointer-events: none;
}

#woopb-modal.cfix-modal-visible,
#woopb-modal.cfix-modal-open,
#woopb-modal.cfix-modal-visible[style],
#woopb-modal.cfix-modal-open[style] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
  padding: 20px;
  box-sizing: border-box;
}

#woopb-modal.cfix-modal-visible .woopb-modal-inner,
#woopb-modal.cfix-modal-open .woopb-modal-inner {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: min(550px, calc(100vw - 40px)) !important;
  max-width: min(550px, calc(100vw - 40px)) !important;
  margin: auto !important;
  flex-shrink: 0;
  align-self: center;
}

/* Failsafe: initial session overlay must not block pc_builder forever */
#woopb-waiting-screen {
  animation: cfix-waiting-fadeout 0.2s ease 3.5s forwards;
}

@keyframes cfix-waiting-fadeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
  }
}
