/**
 * Cfix PC Builder — 1:1 from preview.html
 */

.vi-wpb-ajax-layout-1 .woopb-entry-content {
  background: #fff;
}

#woopb-wrapper.woopb-cfix-layout {
  --yellow: #f7c400;
  --yellow-dark: #e0ad00;
  --black: #151515;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f6f7f9;
  --card: #ffffff;
  --soft: #f9fafb;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  display: block !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 42px 32px 60px !important;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.4;
  font-size: 16px;
  box-sizing: border-box;
}

#woopb-wrapper.woopb-cfix-layout *,
#woopb-wrapper.woopb-cfix-layout *::before,
#woopb-wrapper.woopb-cfix-layout *::after {
  box-sizing: border-box;
}

#woopb-wrapper.woopb-cfix-layout .help-card a {
  color: #a97900;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

/* Icons — monochrome black (no colored WP emoji SVGs) */
#woopb-wrapper.woopb-cfix-layout img.emoji {
  filter: brightness(0) !important;
}

#woopb-wrapper.woopb-cfix-layout .ui-icon,
#woopb-wrapper.woopb-cfix-layout .settings-icon,
#woopb-wrapper.woopb-cfix-layout .trust-icon,
#woopb-wrapper.woopb-cfix-layout .component-icon,
#woopb-wrapper.woopb-cfix-layout .woopb-component-icon-fallback,
#woopb-wrapper.woopb-cfix-layout .cfix-sidebar-icon,
#woopb-wrapper.woopb-cfix-layout .quick-action > span,
#woopb-wrapper.woopb-cfix-layout .primary-btn > span,
#woopb-wrapper.woopb-cfix-layout .arrow,
#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .woopb-icon,
#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .woopb-icon::before,
#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .woopb-icon-svg::before {
  color: #111 !important;
  font-variant-emoji: text;
}

#woopb-wrapper.woopb-cfix-layout .cfix-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 800;
  line-height: 1;
  font-size: 0;
}

#woopb-wrapper.woopb-cfix-layout .cfix-sidebar-icon::before {
  font-size: 22px;
  color: #111;
  line-height: 1;
}

#woopb-wrapper.woopb-cfix-layout .settings-icon.cfix-sidebar-icon::before,
#woopb-wrapper.woopb-cfix-layout .trust-icon.cfix-sidebar-icon::before {
  font-size: 20px;
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-cart::before {
  content: "\229E";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-reset::before {
  content: "\21BB";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-share::before {
  content: "\26D3";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-pdf::before {
  content: "\25A4";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-settings::before {
  content: "\2699";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-help::before {
  content: "\266A";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-secure::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-warranty::before {
  content: "\2713";
}

#woopb-wrapper.woopb-cfix-layout .cfix-icon-info::before {
  content: "\24D8";
}

#woopb-wrapper.woopb-cfix-layout .note .cfix-icon-info::before {
  font-size: 15px;
  font-weight: 700;
}
#woopb-wrapper.woopb-cfix-layout .builder-layout {
  display: grid !important;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
  direction: ltr;
}
#woopb-wrapper.woopb-cfix-layout .summary,
#woopb-wrapper.woopb-cfix-layout .builder {
  direction: rtl;
  height: auto;
  min-height: 0;
  margin: 0;
}
#woopb-wrapper.woopb-cfix-layout .summary {
  position: sticky;
  top: 42px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px 24px 14px;
}
#woopb-wrapper.woopb-cfix-layout .summary-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
#woopb-wrapper.woopb-cfix-layout .summary-title h2 {
  margin: 0;
  font-size: 22px;
  color: #111827;
}
#woopb-wrapper.woopb-cfix-layout .settings-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  font-size: 20px;
}
#woopb-wrapper.woopb-cfix-layout .summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
#woopb-wrapper.woopb-cfix-layout .progress {
  height: 10px;
  background: #edf0f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
#woopb-wrapper.woopb-cfix-layout .progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--yellow);
  border-radius: inherit;
}
#woopb-wrapper.woopb-cfix-layout .total-box {
  text-align: center;
  padding: 20px 0 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
#woopb-wrapper.woopb-cfix-layout .total-box small {
  color: var(--muted);
  font-size: 14px;
}
#woopb-wrapper.woopb-cfix-layout .total-price {
  font-size: 42px;
  font-weight: 900;
  margin-top: 8px;
  color: #111827;
  letter-spacing: -1px;
  direction: ltr;
}

#woopb-wrapper.woopb-cfix-layout .total-price .woocommerce-Price-amount {
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

#woopb-wrapper.woopb-cfix-layout .total-price .woocommerce-Price-amount bdi {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

#woopb-wrapper.woopb-cfix-layout .total-price .woocommerce-Price-currencySymbol {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
#woopb-wrapper.woopb-cfix-layout .primary-btn {
  width: 100%;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffd735, var(--yellow));
  color: #111;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 22px rgba(247, 196, 0, 0.32);
  transition: 0.2s;
}
#woopb-wrapper.woopb-cfix-layout .primary-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffdf55, var(--yellow-dark));
}
#woopb-wrapper.woopb-cfix-layout .quick-actions,
#woopb-wrapper.woopb-cfix-layout .quick-actions.woopb-tool-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 22px;
  width: 100%;
}

#woopb-wrapper.woopb-cfix-layout .quick-actions .quick-action,
#woopb-wrapper.woopb-cfix-layout .quick-actions .woopb-button {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  display: flex !important;
  box-sizing: border-box;
}
#woopb-wrapper.woopb-cfix-layout .quick-action {
  min-height: 78px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #111827;
  transition: 0.2s;
  font-size: 13px;
}
#woopb-wrapper.woopb-cfix-layout .quick-action:hover {
  border-color: var(--yellow);
  background: #fffdf2;
}
#woopb-wrapper.woopb-cfix-layout .primary-btn .cfix-sidebar-icon::before {
  font-size: 20px;
}

#woopb-wrapper.woopb-cfix-layout .quick-action .cfix-sidebar-icon::before {
  font-size: 22px;
}
#woopb-wrapper.woopb-cfix-layout .help-card {
  border: 1px solid #f1d98b;
  background: linear-gradient(135deg, #fff9e4, #ffffff);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
#woopb-wrapper.woopb-cfix-layout .help-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
#woopb-wrapper.woopb-cfix-layout .help-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
#woopb-wrapper.woopb-cfix-layout .help-card a {
  color: #a97900;
  font-weight: 800;
  font-size: 14px;
}
#woopb-wrapper.woopb-cfix-layout .trust-list {
  display: grid;
  gap: 16px;
  justify-items: center;
}
#woopb-wrapper.woopb-cfix-layout .trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border: 0 !important;
  border-bottom: 0 !important;
  border-top: 0 !important;
  border-inline: 0 !important;
  border-inline-end: 0 !important;
  border-inline-start: 0 !important;
  min-height: 0;
  justify-content: center;
  width: 100%;
  text-align: center;
}
#woopb-wrapper.woopb-cfix-layout .trust-item:last-child {
  padding-bottom: 0;
  border-bottom: 0 !important;
}
#woopb-wrapper.woopb-cfix-layout .trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}
#woopb-wrapper.woopb-cfix-layout .trust-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
#woopb-wrapper.woopb-cfix-layout .trust-item small {
  color: var(--muted);
  line-height: 1.5;
}
#woopb-wrapper.woopb-cfix-layout .builder {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}
#woopb-wrapper.woopb-cfix-layout .section {
  margin-bottom: 22px;
}
#woopb-wrapper.woopb-cfix-layout .section:last-child {
  margin-bottom: 0;
}
#woopb-wrapper.woopb-cfix-layout .section-header {
  height: 52px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}
#woopb-wrapper.woopb-cfix-layout .section-header small {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
}
#woopb-wrapper.woopb-cfix-layout .components {
  display: grid;
  gap: 9px;
}
#woopb-wrapper.woopb-cfix-layout .component-row.woopb-product-empty {
  grid-template-columns: 260px 1fr 62px;
}

#woopb-wrapper.woopb-cfix-layout .component-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 260px 1fr 62px 34px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  transition: 0.2s;
}
#woopb-wrapper.woopb-cfix-layout .component-row:hover {
  border-color: #d8c15a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
#woopb-wrapper.woopb-cfix-layout .component-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}
#woopb-wrapper.woopb-cfix-layout .component-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #111;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

#woopb-wrapper.woopb-cfix-layout .component-icon .woopb-component-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: none;
  filter: brightness(0);
}

#woopb-wrapper.woopb-cfix-layout .component-icon.has-image .woopb-component-icon-img {
  display: block;
}

#woopb-wrapper.woopb-cfix-layout .component-icon .woopb-component-icon-fallback {
  line-height: 1;
}

#woopb-wrapper.woopb-cfix-layout .component-icon.has-image .woopb-component-icon-fallback {
  display: none;
}

/* Selected product photo (not a monochrome category glyph) — show in color, fill the tile */
#woopb-wrapper.woopb-cfix-layout .component-icon.has-product-image {
  background: #fff;
}
#woopb-wrapper.woopb-cfix-layout .component-icon.has-product-image .woopb-component-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}
#woopb-wrapper.woopb-cfix-layout .selected-box {
  min-height: 48px;
  border: 1px dashed #d7dce3;
  background: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}
#woopb-wrapper.woopb-cfix-layout .selected-box strong {
  display: block;
  color: #374151;
  font-size: 14px;
  margin-bottom: 2px;
}
#woopb-wrapper.woopb-cfix-layout .add-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--yellow) !important;
  background-color: var(--yellow) !important;
  color: #111 !important;
  box-shadow: 0 8px 18px rgba(247, 196, 0, 0.32);
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  line-height: 1;
  flex: 0 0 auto;
}

#woopb-wrapper.woopb-cfix-layout .add-btn::before {
  content: none !important;
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout .add-btn::after {
  content: "+";
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

#woopb-wrapper.woopb-cfix-layout .add-btn:hover,
#woopb-wrapper.woopb-cfix-layout .add-btn:focus,
#woopb-wrapper.woopb-cfix-layout .add-btn:active {
  background: var(--yellow) !important;
  background-color: var(--yellow) !important;
  transform: scale(1.04);
}
#woopb-wrapper.woopb-cfix-layout .arrow {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111;
  transition: 0.2s;
}
#woopb-wrapper.woopb-cfix-layout .component-row:hover .arrow {
  background: #f3f4f6;
}
#woopb-wrapper.woopb-cfix-layout .chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7d7;
  color: #8a6700;
  font-size: 12px;
  font-weight: 800;
  margin-right: 8px;
}
#woopb-wrapper.woopb-cfix-layout .note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#woopb-wrapper.woopb-cfix-layout .note .ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
#woopb-wrapper.woopb-cfix-layout .note .note-text {
  line-height: 1.4;
}
@media (max-width: 1100px) {
  #woopb-wrapper.woopb-cfix-layout .builder-layout {
    grid-template-columns: minmax(0, 1fr);
    direction: rtl;
    width: 100%;
    min-width: 0;
  }
  #woopb-wrapper.woopb-cfix-layout #woopb-main {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #woopb-wrapper.woopb-cfix-layout #woopb-sidebar {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #woopb-wrapper.woopb-cfix-layout .summary {
    position: static;
  }
  #woopb-wrapper.woopb-cfix-layout .component-row {
    grid-template-columns: minmax(0, 1fr) 52px 44px;
  }
  #woopb-wrapper.woopb-cfix-layout .component-row.woopb-product-empty {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
  #woopb-wrapper.woopb-cfix-layout .component-name {
    grid-column: 1 / -1;
    white-space: normal;
    word-break: break-word;
  }
}
@media (max-width: 760px) {
  #woopb-wrapper.woopb-cfix-layout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 0 28px !important;
    font-size: 15px;
  }
  #woopb-wrapper.woopb-cfix-layout .builder-layout {
    gap: 10px;
  }
  #woopb-wrapper.woopb-cfix-layout .summary,
  #woopb-wrapper.woopb-cfix-layout .builder,
  #woopb-wrapper.woopb-cfix-layout #woopb-main,
  #woopb-wrapper.woopb-cfix-layout #woopb-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  #woopb-wrapper.woopb-cfix-layout .summary,
  #woopb-wrapper.woopb-cfix-layout .builder {
    border-radius: 0;
    padding: 14px 12px;
  }
  #woopb-wrapper.woopb-cfix-layout .summary {
    padding-bottom: 12px;
  }
  #woopb-wrapper.woopb-cfix-layout .summary-title {
    margin-bottom: 16px;
  }
  #woopb-wrapper.woopb-cfix-layout .summary-title h2 {
    font-size: 19px;
  }
  #woopb-wrapper.woopb-cfix-layout .progress {
    margin-bottom: 20px;
  }
  #woopb-wrapper.woopb-cfix-layout .total-box {
    padding: 16px 0 18px;
    margin-bottom: 16px;
  }
  #woopb-wrapper.woopb-cfix-layout .total-price {
    font-size: clamp(28px, 8vw, 36px);
  }
  #woopb-wrapper.woopb-cfix-layout .total-price .woocommerce-Price-currencySymbol {
    font-size: 22px;
  }
  #woopb-wrapper.woopb-cfix-layout .primary-btn {
    min-height: 52px;
    height: auto;
    padding: 14px 16px;
    font-size: 16px;
  }
  #woopb-wrapper.woopb-cfix-layout .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 16px;
  }
  #woopb-wrapper.woopb-cfix-layout .quick-action {
    min-height: 72px;
    font-size: 12px;
    padding: 8px 4px;
  }
  #woopb-wrapper.woopb-cfix-layout .quick-action span {
    font-size: 17px;
  }
  #woopb-wrapper.woopb-cfix-layout .help-card {
    padding: 14px;
    margin-bottom: 14px;
  }
  #woopb-wrapper.woopb-cfix-layout .trust-list {
    gap: 12px;
  }
  #woopb-wrapper.woopb-cfix-layout .trust-item {
    padding: 8px 0;
  }
  #woopb-wrapper.woopb-cfix-layout .section-header {
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
  }
  #woopb-wrapper.woopb-cfix-layout .section-header span,
  #woopb-wrapper.woopb-cfix-layout .section-header small {
    display: block;
    width: 100%;
    text-align: center;
  }
  #woopb-wrapper.woopb-cfix-layout .section-header small {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }
  #woopb-wrapper.woopb-cfix-layout .section-header .cfix-ai-builder-trigger {
    display: none !important;
  }
  #woopb-wrapper.woopb-cfix-layout .section,
  #woopb-wrapper.woopb-cfix-layout .cfix-section,
  #woopb-wrapper.woopb-cfix-layout .components,
  #woopb-wrapper.woopb-cfix-layout .cfix-ai-main-banner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #woopb-wrapper.woopb-cfix-layout .component-row {
    grid-template-columns: minmax(0, 1fr) 52px 44px;
    gap: 10px;
    padding: 12px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #woopb-wrapper.woopb-cfix-layout .component-row.woopb-product-empty {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
  #woopb-wrapper.woopb-cfix-layout .component-row:hover {
    transform: none;
    box-shadow: none;
  }
  #woopb-wrapper.woopb-cfix-layout .component-name {
    grid-column: 1 / -1;
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
    gap: 10px;
  }
  #woopb-wrapper.woopb-cfix-layout .component-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  #woopb-wrapper.woopb-cfix-layout .selected-box {
    justify-content: flex-start;
    padding: 10px 12px;
    min-height: 52px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    text-align: right;
    box-sizing: border-box;
  }
  #woopb-wrapper.woopb-cfix-layout .add-btn,
  #woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn,
  #woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
  }
  #woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    align-self: center;
    justify-self: end;
  }
  #woopb-wrapper.woopb-cfix-layout .arrow {
    display: none;
  }
  #woopb-wrapper.woopb-cfix-layout .note {
    padding: 12px;
    font-size: 13px;
  }
}
@media (max-width: 430px) {
  #woopb-wrapper.woopb-cfix-layout {
    padding-bottom: 20px !important;
  }
  #woopb-wrapper.woopb-cfix-layout .summary,
  #woopb-wrapper.woopb-cfix-layout .builder {
    padding: 12px 10px;
  }
  #woopb-wrapper.woopb-cfix-layout .quick-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  #woopb-wrapper.woopb-cfix-layout .quick-actions .quick-action:nth-child(3) {
    grid-column: 1 / -1;
  }
}
/* Builder main — preview component rows */
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-step,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-products {
  display: contents;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-step-footer {
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-meta {
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-empty .selected-box {
  cursor: pointer;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product:not(.woopb-product-empty) .selected-box {
  cursor: pointer;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn.woopb-button,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn.woopb-button-primary {
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  border: 0 !important;
  margin: 0;
  mask: none !important;
  -webkit-mask: none !important;
  min-width: 48px;
  min-height: 48px;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  background: var(--yellow) !important;
  background-color: var(--yellow) !important;
  color: #111 !important;
  box-shadow: 0 8px 18px rgba(247, 196, 0, 0.32) !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn:not(.woopb-loading),
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn:not(.woopb-loading):hover,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn:not(.woopb-loading):focus,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn:not(.woopb-loading),
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn:not(.woopb-loading):hover,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn:not(.woopb-loading):focus {
  background: var(--yellow) !important;
  background-color: var(--yellow) !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn.woopb-loading,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn.woopb-loading {
  background: var(--yellow) !important;
  background-color: var(--yellow) !important;
  opacity: 0.85;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-load-step.add-btn:not(.woopb-button-text)::before,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-edit.add-btn::before {
  content: none !important;
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 10px;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  background-image: none !important;
  background-color: #df0000 !important;
  mask: url("../images/trash-icon.svg") no-repeat center / 18px 22px;
  -webkit-mask: url("../images/trash-icon.svg") no-repeat center / 18px 22px;
  transition: transform 0.2s, opacity 0.2s;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove::before,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove::after {
  content: none !important;
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove:not(.woopb-loading),
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove:not(.woopb-loading):hover,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove:not(.woopb-loading):focus,
#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove:not(.woopb-loading):active {
  background-color: #df0000 !important;
  mask: url("../images/trash-icon.svg") no-repeat center / 18px 22px;
  -webkit-mask: url("../images/trash-icon.svg") no-repeat center / 18px 22px;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove:not(.woopb-loading):hover {
  transform: scale(1.08);
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-remove.woopb-loading {
  opacity: 0.6;
  background-color: #df0000 !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-depend-notice {
  display: none;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main .woopb-product-title-wrapper .woopb-product-title {
  font-weight: 700;
  color: #111827;
}

/* WooCommerce Product Builder — sidebar + legacy overrides */
#woopb-wrapper.woopb-cfix-layout #woopb-sidebar {
  width: auto !important;
  min-width: 0 !important;
  flex: none !important;
  max-width: none !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-main {
  flex: none !important;
  flex-basis: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1100px) {
  #woopb-wrapper.woopb-cfix-layout #woopb-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .woopb-button:not(:last-child) {
  margin-bottom: 0 !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .woopb-added-products-value {
  float: none !important;
}

#woopb-wrapper.woopb-cfix-layout .woopb-added-products-label {
  display: none !important;
}

#woopb-wrapper.woopb-cfix-layout .woopb-added-products-value {
  float: none !important;
}

#woopb-wrapper.woopb-cfix-layout .woopb-tool-buttons:not(.quick-actions) {
  display: contents !important;
}

#woopb-wrapper.woopb-cfix-layout #woopb-sidebar .quick-actions .woopb-button {
  margin: 0 !important;
  height: auto !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
}

#woopb-wrapper.woopb-cfix-layout .primary-btn.woopb-button,
#woopb-wrapper.woopb-cfix-layout .woopb-add-products-to-cart {
  border: 0 !important;
  background: linear-gradient(180deg, #ffd735, var(--yellow)) !important;
}

/* Modal visibility — patched by cfix-modal.js + theme inline fix */
#woopb-modal:not(.cfix-modal-visible):not(.cfix-modal-open) {
  visibility: hidden;
  pointer-events: none;
}

body.cfix-pc-builder-page #woopb-modal.cfix-modal-visible,
body.cfix-pc-builder-page #woopb-modal.cfix-modal-visible[style] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* ---- Product selection modal (matches builder design) ---- */
body.cfix-pc-builder-page #woopb-modal {
  --yellow: #f7c400;
  --yellow-dark: #e0ad00;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --soft: #f9fafb;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  position: fixed !important;
  inset: 0 !important;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.4;
  background-color: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(4px);
  padding: 20px;
  box-sizing: border-box;
}

body.cfix-pc-builder-page #woopb-modal *,
body.cfix-pc-builder-page #woopb-modal *::before,
body.cfix-pc-builder-page #woopb-modal *::after {
  box-sizing: border-box;
}

body.cfix-pc-builder-page #woopb-modal .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;
  min-height: min(500px, calc(100vh - 56px));
  max-height: calc(100vh - 40px);
  margin: auto !important;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  padding: 20px 22px 16px;
  overflow: hidden;
}

body.cfix-pc-builder-page.woopb-has-sidebar #woopb-modal .woopb-modal-inner,
.woopb-has-sidebar body.cfix-pc-builder-page #woopb-modal .woopb-modal-inner {
  width: min(550px, calc(100vw - 40px)) !important;
  max-width: min(550px, calc(100vw - 40px)) !important;
  gap: 20px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-left {
  display: none !important;
}

body.cfix-pc-builder-page.woopb-has-sidebar #woopb-modal .woopb-modal-left {
  display: block !important;
  width: 240px;
  min-width: 240px;
  padding: 4px 0 4px 4px;
  padding-inline-end: 16px;
  border-inline-end: 1px solid var(--border);
  scrollbar-width: thin;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-left .widget-title.woocommerce-product-builder-title {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-left ul.menu > li + li,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-left .widget > ul > li + li {
  border-top-color: var(--border);
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-left ul li {
  padding: 8px 0;
  font-size: 14px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-left ul li a {
  color: var(--text);
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-top {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-title {
  margin: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  direction: rtl;
}

body.cfix-pc-builder-page #woopb-modal .woopb-close-modal {
  position: static !important;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.2s;
}

body.cfix-pc-builder-page #woopb-modal .woopb-close-modal:hover {
  opacity: 0.55;
  background: transparent !important;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-end: auto;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-back,
body.cfix-pc-builder-page #woopb-modal .cfix-modal-skip {
  flex-shrink: 0;
  min-height: 38px;
  border: 0;
  background: linear-gradient(180deg, #ffd735, var(--yellow));
  color: #151515;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(247, 196, 0, 0.28);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-back:hover:not(:disabled),
body.cfix-pc-builder-page #woopb-modal .cfix-modal-skip:hover {
  background: linear-gradient(180deg, #ffdf55, var(--yellow-dark));
  transform: translateY(-1px);
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-back:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-toolbar,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  padding: 0 0 14px !important;
  margin: 0 0 0 !important;
  border-bottom: 1px solid #dfe3e8;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  direction: rtl;
}

body.cfix-pc-builder-page #woopb-modal .cfix-modal-sort-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

body.cfix-pc-builder-page #woopb-modal .woopb-search,
body.cfix-pc-builder-page #woopb-modal .woopb-sort,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-header select {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  background: #fff !important;
  height: 40px !important;
  min-height: 40px;
  padding: 0 12px !important;
  margin: 0 !important;
  font-size: 14px;
  color: var(--text);
  box-shadow: none;
}

body.cfix-pc-builder-page #woopb-modal .woopb-search {
  flex: 1 1 auto;
  min-width: 0;
}

body.cfix-pc-builder-page #woopb-modal .woopb-sort,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-header select {
  flex: 0 0 180px;
  min-width: 140px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-body {
  flex: 1;
  min-height: 360px;
  overflow-y: auto;
  padding: 0;
  margin-top: 0;
  scrollbar-width: thin;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-products {
  display: block;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product {
  display: grid !important;
  direction: rtl;
  grid-template-columns: 40px 52px 1fr !important;
  grid-template-areas: "action image details" !important;
  align-items: center !important;
  gap: 0 14px !important;
  padding: 12px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #eceef1 !important;
  background: #fff !important;
  min-height: 58px;
  transition: background-color 0.15s;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product:nth-child(even) {
  background: #f8f9fb !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product:hover {
  background: #f1f4f8 !important;
  transform: none !important;
  box-shadow: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-left {
  grid-area: image !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  flex: 0 0 52px !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  background: #fff;
  overflow: hidden;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery--with-images {
  padding: 4px !important;
  overflow: hidden !important;
  max-height: 64px !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery__wrapper,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery__image {
  width: 100% !important;
  max-width: 56px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  margin: 0 !important;
  position: relative !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery__wrapper img:not(.zoomImg),
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image .woocommerce-product-gallery__image img:not(.zoomImg) {
  width: 100% !important;
  max-width: 48px !important;
  height: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
  position: static !important;
  margin: 0 auto !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-image img.zoomImg {
  display: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-right {
  display: contents !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-wrap-title-and-price {
  grid-area: details !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  direction: rtl;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-wrap-title-and-price .woopb-product-title {
  display: block !important;
  flex: 1 1 auto !important;
  order: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #111827 !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-wrap-title-and-price .woopb-product-title a,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-wrap-title-and-price .woopb-product-title div {
  display: inline !important;
  color: inherit !important;
  text-decoration: none;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-short-description,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woocommerce-product-details__short-description {
  display: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-products .woocommerce-product-builder-title,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-products h3,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-products .woopb-brand-title {
  margin: 14px 8px 8px !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  color: #111827;
  border: 0 !important;
  background: transparent !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-right .woopb-modal-product .woopb-product-wrap-title-and-price .woopb-product-price {
  display: flex !important;
  flex: 0 0 auto !important;
  order: 1 !important;
  width: auto !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  align-items: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap !important;
  float: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-product-wrap-title-and-price .stock {
  flex: 0 0 auto;
  order: 2;
  margin: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 999px;
  white-space: nowrap;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-product-wrap-title-and-price .stock.in-stock {
  color: #166534;
  background: #ecfdf3;
}

body.cfix-pc-builder-page #woopb-modal .woopb-product-wrap-title-and-price .stock.out-of-stock,
body.cfix-pc-builder-page #woopb-modal .woopb-product-wrap-title-and-price .stock.on-backorder {
  color: #991b1b;
  background: #fef2f2;
}

/* Legacy placement before the form — hide if still rendered */
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product > p.stock {
  display: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-price .woocommerce-Price-amount,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woopb-product-price .woocommerce-Price-amount bdi {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  direction: rtl !important;
  unicode-bidi: plaintext;
  gap: 4px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product form.cart,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product form.variations_form,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .woocommerce-product-builder-simple-add-to-cart,
body.cfix-pc-builder-page #woopb-modal .woopb-modal-product form.variations_form .single_variation_wrap .woocommerce-product-builder-variation-add-to-cart {
  grid-area: action !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product .quantity {
  display: none !important;
}

body.cfix-pc-builder-page #woopb-modal .woopb-add-to-list-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

body.cfix-pc-builder-page #woopb-modal .woopb-add-to-list-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background-color: #f28c28;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.cfix-pc-builder-page #woopb-modal .woopb-add-to-list-btn:hover::before {
  background-color: #e07b1a;
}

body.cfix-pc-builder-page #woopb-modal .woopb-add-to-list-btn.woopb-button-deactivated {
  opacity: 0.35;
  cursor: not-allowed;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-product form.variations_form table.variations tbody tr td select {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 8px 10px !important;
  font-size: 13px;
}

body.cfix-pc-builder-page #woopb-modal .woopb-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  direction: ltr;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

body.cfix-pc-builder-page #woopb-modal .woopb-step-pagination {
  gap: 8px !important;
  margin-inline-start: auto;
}

body.cfix-pc-builder-page #woopb-modal .woopb-page-item {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: #fff;
  color: #111827;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

body.cfix-pc-builder-page #woopb-modal .woopb-page-item:hover {
  border-color: #d8c15a;
  background: #fffdf2;
}

body.cfix-pc-builder-page #woopb-modal .woopb-page-item.woopb-active-page {
  background: linear-gradient(180deg, #ffd735, var(--yellow)) !important;
  border-color: var(--yellow) !important;
  color: #111 !important;
}

body.cfix-pc-builder-page #woopb-modal ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.cfix-pc-builder-page #woopb-modal ::-webkit-scrollbar-track {
  background: transparent;
}

body.cfix-pc-builder-page #woopb-modal ::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

body.cfix-pc-builder-page #woopb-modal > .woopb-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  pointer-events: none;
}

body.cfix-pc-builder-page #woopb-modal > .woopb-loading::after {
  border-color: #d1d5db transparent;
}

@media (max-width: 860px) {
  body.cfix-pc-builder-page #woopb-modal {
    padding: 12px 10px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-inner {
    flex-direction: column;
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-left {
    width: 100%;
    min-width: 0;
    max-height: 180px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
    padding-inline-end: 0;
    padding-bottom: 12px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-product {
    grid-template-columns: 36px 48px 1fr !important;
    grid-template-areas: "action image details" !important;
  }

  body.cfix-pc-builder-page #woopb-modal .cfix-modal-toolbar,
  body.cfix-pc-builder-page #woopb-modal .woopb-modal-header {
    flex-wrap: wrap;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-sort,
  body.cfix-pc-builder-page #woopb-modal .woopb-modal-header select {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.cfix-pc-builder-page #woopb-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    padding: 12px;
    gap: 12px;
  }

  body.cfix-pc-builder-page.woopb-has-sidebar #woopb-modal .woopb-modal-left {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 140px;
    padding: 8px 0 12px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-mobile-filters-control {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-mobile-filters-control::before {
    content: "סינון";
    font-family: Arial, "Helvetica Neue", sans-serif;
  }

  body.cfix-pc-builder-page #woopb-modal .cfix-modal-toolbar,
  body.cfix-pc-builder-page #woopb-modal .woopb-modal-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-search {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 44px;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-close-modal {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-body {
    min-height: 0;
    flex: 1;
    overflow: auto;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-modal-product {
    grid-template-columns: 40px 52px 1fr !important;
    padding: 10px 8px !important;
  }

  body.cfix-pc-builder-page #woopb-modal .woopb-add-to-list-btn {
    min-width: 40px;
    min-height: 40px;
  }
}

/* Override plugin ajax.css (1180px) on modal width */
#woopb-modal .woopb-modal-inner {
  width: min(550px, calc(100vw - 40px)) !important;
  max-width: min(550px, calc(100vw - 40px)) !important;
}

/* ===== Cfix in-modal attribute filter ===== */
body.cfix-pc-builder-page #woopb-modal.cfix-has-attr-filter .woopb-modal-inner,
#woopb-modal.cfix-has-attr-filter .woopb-modal-inner {
  width: min(860px, calc(100vw - 40px)) !important;
  max-width: min(860px, calc(100vw - 40px)) !important;
  gap: 18px;
}

body.cfix-pc-builder-page #woopb-modal.cfix-has-attr-filter .woopb-modal-left {
  display: block !important;
  width: 268px;
  min-width: 268px;
  padding: 0;
  border-inline-end: 0;
  overflow: auto;
}

#woopb-modal .cfix-attr-filter.filter-sidebar {
  direction: rtl;
  position: static;
  top: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

#woopb-modal .cfix-attr-filter .filter-head {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line, #ececf0);
  background: #fff;
}

#woopb-modal .cfix-attr-filter .filter-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

#woopb-modal .cfix-attr-filter .clear {
  border: 0;
  background: transparent;
  color: #777d86;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

#woopb-modal .cfix-attr-filter .clear:hover {
  color: #111;
}

#woopb-modal .cfix-attr-filter .filter-group {
  padding: 18px;
  border-bottom: 1px solid #f0f1f4;
}

#woopb-modal .cfix-attr-filter .filter-group:last-child {
  border-bottom: 0;
}

#woopb-modal .cfix-attr-filter .filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 900;
  color: #222832;
}

#woopb-modal .cfix-attr-filter .filter-title span {
  color: #9aa0aa;
  font-size: 18px;
}

#woopb-modal .cfix-attr-filter .checks {
  display: grid;
  gap: 10px;
}

#woopb-modal .cfix-attr-filter .check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3f4650;
  font-size: 14px;
  cursor: pointer;
}

#woopb-modal .cfix-attr-filter .check input {
  accent-color: var(--yellow, #f7c400);
  width: 16px;
  height: 16px;
}

.cfix-attr-filter__empty {
  margin: 0;
  padding: 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #6b7280;
}

#woopb-modal .cfix-filter-toggle {
  display: none;
}

@media (max-width: 768px) {
  body.cfix-pc-builder-page #woopb-modal.cfix-has-attr-filter .woopb-modal-inner,
  #woopb-modal.cfix-has-attr-filter .woopb-modal-inner {
    width: min(550px, calc(100vw - 24px)) !important;
    max-width: min(550px, calc(100vw - 24px)) !important;
  }

  body.cfix-pc-builder-page #woopb-modal.cfix-has-attr-filter .woopb-modal-left {
    display: none !important;
  }

  #woopb-modal.cfix-has-attr-filter .cfix-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 0 12px;
    min-height: 40px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  body.cfix-pc-builder-page #woopb-modal.cfix-attr-filter-open .woopb-modal-left {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
  }

  body.cfix-pc-builder-page #woopb-modal.cfix-attr-filter-open .woopb-modal-left .cfix-attr-filter {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(340px, 92vw);
    background: #fff;
    padding: 0;
    overflow: auto;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.16);
    border-radius: 0;
  }

  #woopb-modal.cfix-attr-filter-open .cfix-attr-filter .filter-head {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  #woopb-modal.cfix-attr-filter-open .cfix-filter-close {
    display: grid;
  }
}
