body.pgsa-admin-preview .pghv2-product-config-card.is-admin-preview{
  background:linear-gradient(180deg,rgba(6,18,34,.98),rgba(4,12,24,.99));
  padding:14px;
}

body.pgsa-admin-preview .pghv2-product-config-card.is-admin-preview .pghv2-product-config-head{
  align-items:flex-start;
  gap:14px;
  padding:8px 6px 12px;
}

body.pgsa-admin-preview .pghv2-product-config-card.is-admin-preview .pghv2-product-config-head h2{
  font-size:18px;
  line-height:1.15;
  margin:0;
}

body.pgsa-admin-preview .pghv2-product-config-card.is-admin-preview .pghv2-product-config-head p{
  margin:4px 0 0;
  color:#8fa8ca;
  font-size:12px;
  line-height:1.45;
}

body.pgsa-admin-preview .pghv2-product-config-card.is-admin-preview #pgfc-config-reset{
  min-height:38px;
  padding:0 14px;
  font-size:11px;
  letter-spacing:.08em;
  border-radius:12px;
}

body.pgsa-admin-preview .pgfc-preview-section{
  border:1px solid rgba(75,117,180,.16);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(8,19,35,.97),rgba(5,13,26,.99));
  overflow:hidden;
}

body.pgsa-admin-preview .pgfc-preview-section + .pgfc-preview-section{
  margin-top:12px;
}

body.pgsa-admin-preview .pgfc-preview-section-head{
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.012);
}

body.pgsa-admin-preview .pgfc-preview-section-head h3{
  margin:0;
  font-size:15px;
  line-height:1.2;
  color:#fff;
  font-weight:800;
}

body.pgsa-admin-preview .pgfc-preview-section-head p{
  margin:3px 0 0;
  font-size:11px;
  line-height:1.4;
  color:#8ea8ca;
}

body.pgsa-admin-preview .pgfc-preview-section-body{
  display:grid;
  gap:0;
}

body.pgsa-admin-preview .pgfc-preview-row{
  display:grid;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.045);
}

body.pgsa-admin-preview .pgfc-preview-section-body > .pgfc-preview-row:first-child{
  border-top:none;
}

body.pgsa-admin-preview .pgfc-preview-row--2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

body.pgsa-admin-preview .pgfc-preview-row--3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

body.pgsa-admin-preview .pgfc-preview-row--4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

body.pgsa-admin-preview .pgfc-preview-row--full{
  grid-template-columns:minmax(0,1fr);
}

body.pgsa-admin-preview .pgfc-preview-field{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.01));
  padding:10px 12px;
  color:#e7f0fc;
}

body.pgsa-admin-preview .pgfc-preview-field.is-on{
  border-color:rgba(84,137,255,.32);
  box-shadow:0 0 0 1px rgba(84,137,255,.14) inset;
}

body.pgsa-admin-preview .pgfc-preview-field-head,
body.pgsa-admin-preview .pgfc-preview-field-head--compact{
  display:grid;
  gap:4px;
  margin-bottom:8px;
}

body.pgsa-admin-preview .pgfc-preview-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

body.pgsa-admin-preview .pgfc-preview-label{
  font-size:13px;
  line-height:1.25;
  color:#fff;
  font-weight:700;
}

body.pgsa-admin-preview .pgfc-preview-note,
body.pgsa-admin-preview .pgfc-preview-note--compact,
body.pgsa-admin-preview .pgfc-preview-detail-note{
  font-size:11px;
  line-height:1.35;
  color:#8fa8ca;
}

body.pgsa-admin-preview .pgfc-preview-inline-price{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(84,98,255,.12);
  border:1px solid rgba(126,140,255,.22);
  color:#c4cdfb;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}

body.pgsa-admin-preview .pgfc-preview-toggle-input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

body.pgsa-admin-preview .pgfc-preview-control,
body.pgsa-admin-preview .pgfc-preview-control--compact,
body.pgsa-admin-preview .pgfc-preview-detail-controls{
  display:grid;
  gap:8px;
}

body.pgsa-admin-preview .pgfc-preview-segment{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

body.pgsa-admin-preview .pgfc-preview-segment-btn,
body.pgsa-admin-preview .pgfc-preview-chip,
body.pgsa-admin-preview .pgfc-preview-synthetic-select{
  appearance:none;
}

body.pgsa-admin-preview .pgfc-preview-segment-btn,
body.pgsa-admin-preview .pgfc-preview-chip{
  border:1px solid rgba(255,255,255,.12);
  background:#0d1728;
  color:#dce8f7;
  border-radius:10px;
  padding:8px 10px;
  min-height:36px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  transition:.16s ease;
}

body.pgsa-admin-preview .pgfc-preview-segment-btn:hover,
body.pgsa-admin-preview .pgfc-preview-chip:hover{
  border-color:rgba(84,137,255,.38);
  background:rgba(84,137,255,.14);
  color:#fff;
}

body.pgsa-admin-preview .pgfc-preview-segment-btn.is-active{
  border-color:rgba(84,137,255,.42);
  background:rgba(84,137,255,.16);
  color:#fff;
}

body.pgsa-admin-preview .pgfc-preview-choice-wrap{
  margin-top:8px;
}

body.pgsa-admin-preview .pgfc-preview-choice-list,
body.pgsa-admin-preview .pgfc-preview-choice-list--compact{
  max-height:130px;
  margin-top:0 !important;
  padding:8px !important;
  background:#0d1728;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
}

body.pgsa-admin-preview .pgfc-preview-move-grid,
body.pgsa-admin-preview .pgfc-preview-move-grid--compact{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

body.pgsa-admin-preview .pgfc-preview-move-cell,
body.pgsa-admin-preview .pgfc-preview-move-cell--compact{
  display:grid;
  gap:5px;
  min-width:0;
}

body.pgsa-admin-preview .pgfc-preview-move-cell > span{
  color:#d8e6fb;
  font-size:11px;
  font-weight:700;
}

body.pgsa-admin-preview .pgfc-preview-preset-wrap{
  display:grid;
  gap:8px;
  margin-bottom:10px;
}

body.pgsa-admin-preview .pgfc-preview-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

body.pgsa-admin-preview .pgfc-preview-chip-row > span{
  color:#93a7c6;
  font-size:11px;
  font-weight:700;
  min-width:62px;
}

body.pgsa-admin-preview .pgfc-preview-field select,
body.pgsa-admin-preview .pgfc-preview-field input[type='text'],
body.pgsa-admin-preview .pgfc-preview-field input[type='number'],
body.pgsa-admin-preview .pgfc-preview-field textarea,
body.pgsa-admin-preview .pgfc-preview-field .select2-selection,
body.pgsa-admin-preview .pgfc-preview-field .select2-container--default .select2-selection--single,
body.pgsa-admin-preview .pgfc-preview-field .select2-selection--multiple,
body.pgsa-admin-preview .pgfc-preview-synthetic-select{
  width:100%;
  min-height:40px;
  border-radius:10px !important;
  background:#0d1728 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  padding:8px 10px;
  font-size:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

body.pgsa-admin-preview .pgfc-preview-field textarea{
  min-height:88px;
}

body.pgsa-admin-preview .pgfc-preview-field .select2-container{
  width:100% !important;
}

body.pgsa-admin-preview .pgfc-preview-field .select2-container--default .select2-selection__rendered{
  line-height:38px !important;
  color:#fff !important;
  padding-left:10px !important;
  padding-right:28px !important;
  font-size:12px;
}

body.pgsa-admin-preview .pgfc-preview-field .select2-container--default .select2-selection__arrow{
  height:38px !important;
  right:6px !important;
}

body.pgsa-admin-preview .pgfc-preview-field .hideinput{
  display:none;
}

body.pgsa-admin-preview .pgfc-preview-advanced{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.012);
  overflow:hidden;
}

body.pgsa-admin-preview .pgfc-preview-advanced > summary{
  list-style:none;
  cursor:pointer;
  padding:10px 12px;
  font-size:12px;
  font-weight:700;
  color:#dfe9fb;
  position:relative;
}

body.pgsa-admin-preview .pgfc-preview-advanced > summary::-webkit-details-marker{
  display:none;
}

body.pgsa-admin-preview .pgfc-preview-advanced > summary::after{
  content:'▾';
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#8ea8ca;
  font-size:12px;
}

body.pgsa-admin-preview .pgfc-preview-advanced[open] > summary::after{
  transform:translateY(-50%) rotate(180deg);
}

body.pgsa-admin-preview .pgfc-preview-advanced-body{
  padding:0 12px 12px;
}

body.pgsa-admin-preview .pgfc-preview-field--stats .pghv2-ev-builder{
  margin-top:0;
}

body.pgsa-admin-preview .pghv2-ev-builder{
  display:grid;
  gap:18px;
  padding:14px 14px 16px;
  border:1px solid rgba(62,103,171,.34);
  border-radius:26px;
  background:radial-gradient(circle at top center, rgba(16,43,94,.52), rgba(4,14,30,.98) 68%);
  box-shadow:0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.pgsa-admin-preview .pghv2-ev-builder-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:0 6px 10px;
  border-bottom:1px solid rgba(255,255,255,.1);
}

body.pgsa-admin-preview .pghv2-ev-builder-top h4{
  margin:0;
  color:#f4f8ff;
  font-size:22px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.02em;
}

body.pgsa-admin-preview .pghv2-ev-total-left{
  color:#aebed7;
  font-size:18px;
  line-height:1;
  white-space:nowrap;
}

body.pgsa-admin-preview .pghv2-ev-total-left strong,
body.pgsa-admin-preview .pghv2-stat-footer strong{
  color:#fff;
  font-weight:800;
}

body.pgsa-admin-preview .pghv2-stat-builder{
  display:grid;
  gap:12px;
  padding:18px 18px 14px;
  border:1px solid rgba(148,177,233,.12);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(20,39,76,.62), rgba(11,24,46,.86));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

body.pgsa-admin-preview .pghv2-stat-builder-head,
body.pgsa-admin-preview .pghv2-stat-row{
  display:grid;
  grid-template-columns:120px 140px 1fr 92px;
  gap:14px;
  align-items:center;
}

body.pgsa-admin-preview .pghv2-stat-builder-head{
  padding:0 14px 4px;
  color:#b4c4de;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.pgsa-admin-preview .pghv2-stat-builder-head > span:nth-child(1){
  justify-self:start;
}

body.pgsa-admin-preview .pghv2-stat-builder-head > span:nth-child(2){
  justify-self:center;
}

body.pgsa-admin-preview .pghv2-stat-builder-head > span:nth-child(3){
  justify-self:start;
}

body.pgsa-admin-preview .pghv2-stat-builder-head > span:nth-child(4){
  justify-self:center;
}

body.pgsa-admin-preview .pghv2-stat-row{
  padding:16px 14px;
  border-top:1px solid rgba(255,255,255,.08);
}

body.pgsa-admin-preview .pghv2-stat-row:first-of-type{
  border-top:none;
}

body.pgsa-admin-preview .pghv2-stat-row.is-active{
  background:linear-gradient(90deg, rgba(35,71,132,.18), rgba(35,71,132,0));
  border-radius:16px;
}

body.pgsa-admin-preview .pghv2-stat-label{
  font-weight:800;
  color:#ffffff;
  font-size:20px;
  line-height:1.1;
}

body.pgsa-admin-preview .pghv2-stat-input,
body.pgsa-admin-preview .pghv2-stat-slider-wrap{
  min-width:0;
}

body.pgsa-admin-preview .pghv2-stat-input input{
  width:100%;
  min-height:46px;
  border-radius:12px !important;
  background:#102141 !important;
  border:1px solid rgba(171,194,235,.22) !important;
  color:#ffffff !important;
  padding:8px 12px;
  font-size:18px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

body.pgsa-admin-preview .pghv2-stat-input input[type='number']{
  text-align:center;
}

body.pgsa-admin-preview .pghv2-stat-slider-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr);
}

body.pgsa-admin-preview .pghv2-stat-slider input[type='range']{
  width:100%;
  height:12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(57,146,255,.95), rgba(57,146,255,.95)) 0/50% 100% no-repeat, rgba(140,165,210,.18);
  appearance:none;
  -webkit-appearance:none;
  outline:none;
  border:none;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35);
}

body.pgsa-admin-preview .pghv2-stat-slider input[type='range']::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:24px;
  height:24px;
  border-radius:50%;
  border:2px solid rgba(220,231,255,.82);
  background:linear-gradient(180deg,#687b9d,#42567a);
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  cursor:pointer;
}

body.pgsa-admin-preview .pghv2-stat-slider input[type='range']::-moz-range-thumb{
  width:24px;
  height:24px;
  border-radius:50%;
  border:2px solid rgba(220,231,255,.82);
  background:linear-gradient(180deg,#687b9d,#42567a);
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  cursor:pointer;
}

body.pgsa-admin-preview .pghv2-stat-slider input[type='range']::-moz-range-track{
  height:12px;
  border-radius:999px;
  background:rgba(140,165,210,.18);
}

body.pgsa-admin-preview .pghv2-stat-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 10px;
  color:#b7c6dd;
  font-size:18px;
  line-height:1;
}

body.pgsa-admin-preview .pghv2-ev-reset{
  appearance:none;
  border:1px solid rgba(171,194,235,.2);
  background:linear-gradient(180deg, rgba(27,50,93,.92), rgba(18,35,67,.98));
  color:#d9e7ff;
  border-radius:12px;
  min-height:48px;
  padding:0 22px;
  font-size:17px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.05);
}

body.pgsa-admin-preview .pghv2-ev-reset:hover{
  border-color:rgba(87,145,255,.42);
  background:linear-gradient(180deg, rgba(34,63,116,.98), rgba(20,40,76,.98));
}

@media (max-width: 1200px){
  body.pgsa-admin-preview .pghv2-stat-builder-head,
  body.pgsa-admin-preview .pghv2-stat-row{
    grid-template-columns:102px 108px 1fr 78px;
    gap:10px;
  }

  body.pgsa-admin-preview .pghv2-stat-label{
    font-size:17px;
  }

  body.pgsa-admin-preview .pghv2-stat-input input{
    min-height:42px;
    font-size:16px;
  }
}

@media (max-width: 820px){
  body.pgsa-admin-preview .pghv2-ev-builder{
    gap:14px;
    padding:12px;
    border-radius:22px;
  }

  body.pgsa-admin-preview .pghv2-ev-builder-top{
    padding:0 2px 8px;
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  body.pgsa-admin-preview .pghv2-ev-builder-top h4{
    font-size:19px;
  }

  body.pgsa-admin-preview .pghv2-ev-total-left,
  body.pgsa-admin-preview .pghv2-stat-footer{
    font-size:16px;
  }

  body.pgsa-admin-preview .pghv2-stat-builder{
    padding:14px 12px 12px;
    border-radius:18px;
    gap:10px;
  }

  body.pgsa-admin-preview .pghv2-stat-builder-head,
  body.pgsa-admin-preview .pghv2-stat-row{
    grid-template-columns:84px 84px 1fr 72px;
    gap:8px;
  }

  body.pgsa-admin-preview .pghv2-stat-builder-head{
    padding:0 8px 2px;
    font-size:10px;
  }

  body.pgsa-admin-preview .pghv2-stat-row{
    padding:12px 8px;
  }

  body.pgsa-admin-preview .pghv2-stat-label{
    font-size:15px;
  }

  body.pgsa-admin-preview .pghv2-stat-input input{
    min-height:40px;
    padding:6px 8px;
    font-size:15px;
  }

  body.pgsa-admin-preview .pghv2-stat-slider input[type='range']::-webkit-slider-thumb{
    width:20px;
    height:20px;
  }

  body.pgsa-admin-preview .pghv2-stat-slider input[type='range']::-moz-range-thumb{
    width:20px;
    height:20px;
  }

  body.pgsa-admin-preview .pghv2-stat-footer{
    flex-direction:column;
    align-items:flex-start;
    padding:0 2px;
  }

  body.pgsa-admin-preview .pghv2-ev-reset{
    min-height:44px;
    padding:0 18px;
    font-size:15px;
  }
}

@media (max-width: 560px){
  body.pgsa-admin-preview .pghv2-stat-builder-head{
    display:none;
  }

  body.pgsa-admin-preview .pghv2-stat-row{
    grid-template-columns:72px 78px 1fr 62px;
    align-items:center;
  }

  body.pgsa-admin-preview .pghv2-stat-label{
    font-size:14px;
  }

  body.pgsa-admin-preview .pghv2-stat-input input{
    min-height:36px;
    font-size:14px;
  }

  body.pgsa-admin-preview .pghv2-stat-slider input[type='range']{
    height:10px;
  }
}

body.pgsa-admin-preview .pgfc-preview-field--remaining{
  padding:10px 12px;
}

@media (max-width: 1200px){
  body.pgsa-admin-preview .pgfc-preview-row--3,
  body.pgsa-admin-preview .pgfc-preview-row--4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.pgsa-admin-preview .pgfc-preview-move-grid--compact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 820px){
  body.pgsa-admin-preview .pgfc-preview-row--2,
  body.pgsa-admin-preview .pgfc-preview-row--3,
  body.pgsa-admin-preview .pgfc-preview-row--4{
    grid-template-columns:minmax(0,1fr);
  }

  body.pgsa-admin-preview .pgfc-preview-move-grid--compact,
  body.pgsa-admin-preview .pghv2-stat-builder-head,
  body.pgsa-admin-preview .pghv2-stat-row{
    grid-template-columns:minmax(0,1fr);
  }
}


body.pgsa-admin-preview .pghv2-ev-builder h4,
body.pgsa-admin-preview .pghv2-ev-total-left,
body.pgsa-admin-preview .pghv2-stat-label,
body.pgsa-admin-preview .pghv2-stat-footer,
body.pgsa-admin-preview .pghv2-ev-reset,
body.pgsa-admin-preview .pghv2-stat-input input,
body.pgsa-admin-preview .pghv2-stat-input select,
body.pgsa-admin-preview .pghv2-stat-input button{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.pgsa-admin-preview .pghv2-stat-input-ev,
body.pgsa-admin-preview .pghv2-stat-input-iv{
  display:flex;
  align-items:center;
  justify-content:center;
}

body.pgsa-admin-preview .pghv2-stat-input-ev input,
body.pgsa-admin-preview .pghv2-stat-input-iv input{
  margin:0 auto;
}

/* Fix4 preview polish */
body.pgsa-admin-preview .pghv2-product-page,
body.pgsa-admin-preview .pghv2-product-page *,
body.pgsa-admin-preview .pghv2-product-summary-card,
body.pgsa-admin-preview .pghv2-product-config-card,
body.pgsa-admin-preview .pghv2-product-details-card,
body.pgsa-admin-preview .pghv2-product-sidebar-card,
body.pgsa-admin-preview .pghv2-product-support-card{
  font-family:Arial,Helvetica,sans-serif;
}

body.pgsa-admin-preview .pgfc-preview-inline-price{
  padding:4px 9px;
  background:rgba(84,98,255,.18);
  border-color:rgba(126,140,255,.34);
  color:#e6ebff;
  font-size:11px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

body.pgsa-admin-preview .pgfc-preview-moves-detail{
  display:grid;
  gap:10px;
}

body.pgsa-admin-preview .pgfc-preview-moves-detail #custom_move_set_text_fields,
body.pgsa-admin-preview .pgfc-preview-moves-detail{
  overflow:visible;
}

body.pgsa-admin-preview .pgfc-preview-moves-detail br{
  display:none;
}

body.pgsa-admin-preview .pgfc-preview-moves-detail > input[type='text'],
body.pgsa-admin-preview .pgfc-preview-moves-detail > select.pg-move-select{
  margin-top:8px;
}

body.pgsa-admin-preview .pgfc-preview-moves-detail .select2-container,
body.pgsa-admin-preview .pgfc-preview-moves-detail select.pg-move-select,
body.pgsa-admin-preview .pgfc-preview-moves-detail input[type='text']{
  width:100% !important;
}

body.pgsa-admin-preview .pgfc-preview-moves-detail #move_choice_set,
body.pgsa-admin-preview .pgfc-preview-moves-detail .pgfc-preview-choice-list,
body.pgsa-admin-preview .pgfc-preview-moves-detail .pgfc-preview-choice-wrap,
body.pgsa-admin-preview .pgfc-preview-field,
body.pgsa-admin-preview .pgfc-preview-section,
body.pgsa-admin-preview .pgfc-preview-section-body,
body.pgsa-admin-preview .pgfc-preview-row{
  overflow:visible;
}

body.pgsa-admin-preview .pgfc-preview-advanced{
  margin-top:0;
}

body.pgsa-admin-preview .pghv2-product-config-sections,
body.pgsa-admin-preview .pgfc-preview-section-body{
  gap:0;
}

body.pgsa-admin-preview .pgfc-preview-unmapped-hidden,
body.pgsa-admin-preview .pgfc-preview-field--remaining{
  display:none !important;
}

/* Fix5.1 hardening: current admin preview path */
body.pgsa-admin-preview .pghv2-product-page,
body.pgsa-admin-preview .pghv2-product-page *,
body.pgsa-admin-preview .pghv2-product-summary-card,
body.pgsa-admin-preview .pghv2-product-config-card,
body.pgsa-admin-preview .pghv2-product-details-card,
body.pgsa-admin-preview .pghv2-product-sidebar-card{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.pgsa-admin-preview #pgfc-raw-product-fields.pgfc-preview-raw-hidden{
  position:absolute !important;
  left:-99999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.pgsa-admin-preview .pgfc-preview-unmapped-hidden,
body.pgsa-admin-preview .pgfc-preview-field--remaining{
  display:none !important;
}

body.pgsa-admin-preview .pgfc-preview-inline-price{
  background:rgba(76, 132, 255, .18) !important;
  border:1px solid rgba(94, 154, 255, .45) !important;
  color:#d9ebff !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  padding:4px 9px !important;
  min-width:unset !important;
}

body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot{
  margin:4px 0 10px !important;
}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot img{
  max-width:240px !important;
}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-price-wrap{
  margin-top:0 !important;
}
body.pgsa-admin-preview .pghv2-product-summary-copy{
  margin-bottom:8px !important;
}

body.pgsa-admin-preview .pghv2-details-accordion:not([open]) .pghv2-details-body{
  display:none !important;
}

body.pgsa-admin-preview .pgfc-preview-section-head h3,
body.pgsa-admin-preview .pgfc-preview-label,
body.pgsa-admin-preview .pghv2-ev-builder h4,
body.pgsa-admin-preview .pghv2-stat-label,
body.pgsa-admin-preview .pghv2-stat-builder-head span{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}


body.pgsa-admin-preview .pghv2-product-page,
body.pgsa-admin-preview .pghv2-product-page *,
body.pgsa-admin-preview .pghv2-product-summary-card,
body.pgsa-admin-preview .pghv2-product-config-card,
body.pgsa-admin-preview .pghv2-product-details-card,
body.pgsa-admin-preview .pghv2-product-sidebar-card,
body.pgsa-admin-preview .pghv2-product-support-card{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}
body.pgsa-admin-preview .pghv2-product-rating .star-rating,
body.pgsa-admin-preview .pghv2-product-rating .star-rating::before,
body.pgsa-admin-preview .pghv2-product-rating .star-rating span::before,
body.pgsa-admin-preview .woocommerce .star-rating,
body.pgsa-admin-preview .woocommerce .star-rating::before,
body.pgsa-admin-preview .woocommerce .star-rating span::before{
  font-family: star !important;
}
body.pgsa-admin-preview .pghv2-product-summary-copy{margin-bottom:6px !important;}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot{margin:0 0 8px !important;}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot img{max-width:210px !important;}
body.pgsa-admin-preview .pgfc-preview-section-head h3{font-size:var(--pgfc-preview-heading-size,32px) !important;line-height:1.1 !important;letter-spacing:-0.02em !important;color:#f4f8ff !important;}
body.pgsa-admin-preview .pgfc-preview-section-head p{font-size:var(--pgfc-preview-subheading-size,14px) !important;line-height:1.45 !important;color:#c5d3e8 !important;}
body.pgsa-admin-preview .pgfc-preview-inline-price{
  background:linear-gradient(180deg, rgba(68,137,255,.34), rgba(37,92,216,.34)) !important;
  border:1px solid rgba(118,173,255,.78) !important;
  color:#ffffff !important;
  font-size:12px !important;
  font-weight:900 !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 18px rgba(16,40,92,.22) !important;
}
body.pgsa-admin-preview .pgfc-preview-segment-btn{position:relative;}
body.pgsa-admin-preview .pgfc-preview-segment-btn[data-value='1']::after{
  content: attr(data-price);
}
body.pgsa-admin-preview .pgfc-preview-moves-detail,
body.pgsa-admin-preview #custom_move_set_text_fields,
body.pgsa-admin-preview #held_item_pack_fields,
body.pgsa-admin-preview #custom_held_item_text_field{display:block !important;visibility:visible !important;opacity:1 !important;}
body.pgsa-admin-preview #move_choice_set,
body.pgsa-admin-preview #held_item_choice_set,
body.pgsa-admin-preview #held_item_pack_choice_set,
body.pgsa-admin-preview #held_item_pack_summary,
body.pgsa-admin-preview #held_item_pack_notice{display:block !important;visibility:visible !important;opacity:1 !important;}


/* Fix8 preview product polish */
body.pgsa-admin-preview .pghv2-product-page, body.pgsa-admin-preview .pghv2-product-page *{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;}
body.pgsa-admin-preview .pghv2-product-trustpilot{margin:0 0 6px !important;}
body.pgsa-admin-preview .pghv2-product-summary-copy{margin-bottom:4px !important;}
body.pgsa-admin-preview .pghv2-product-trustpilot img{max-width:300px !important;width:100%;height:auto;}
body.pgsa-admin-preview .pghv2-product-price-wrap{margin:2px 0 16px !important;}
body.pgsa-admin-preview .pgfc-preview-segment-btn.is-active{background:linear-gradient(180deg,#3765ff,#2749c8) !important;border-color:#8fb1ff !important;color:#fff !important;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 10px 24px rgba(33,72,170,.35) !important;}
body.pgsa-admin-preview .pgfc-preview-segment-btn{font-weight:var(--pgfc-button-weight,700) !important;}
body.pgsa-admin-preview .pgfc-preview-inline-price,.pghv2-product-page .pgfc-preview-inline-price{font-weight:var(--pgfc-pip-weight,800) !important;}
body.pgsa-admin-preview .pgfc-preview-section-head h3,body.pgsa-admin-preview .pgfc-preview-label{font-weight:var(--pgfc-heading-weight,800) !important;}
body.pgsa-admin-preview .pgfc-preview-moves-detail{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px !important;}
body.pgsa-admin-preview .pgfc-preview-moves-detail > label, body.pgsa-admin-preview .pgfc-preview-moves-detail > .form-row{display:flex;flex-direction:column;gap:6px;min-width:0;}
body.pgsa-admin-preview .pgfc-preview-moves-detail select.pg-move-select, body.pgsa-admin-preview .pgfc-preview-moves-detail input[type='text']{min-height:42px !important;}
@media (max-width: 980px){body.pgsa-admin-preview .pgfc-preview-moves-detail{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width: 640px){body.pgsa-admin-preview .pgfc-preview-moves-detail{grid-template-columns:minmax(0,1fr) !important;}}


/* Fix8 preview dropdown overflow hardening */
body.pgsa-admin-preview .pgfc-preview-section,
body.pgsa-admin-preview .pgfc-preview-section-body,
body.pgsa-admin-preview .pgfc-preview-row,
body.pgsa-admin-preview .pgfc-preview-field,
body.pgsa-admin-preview .pgfc-preview-detail-wrap,
body.pgsa-admin-preview .pgfc-preview-detail-node,
body.pgsa-admin-preview .pgfc-preview-control,
body.pgsa-admin-preview .pgfc-preview-moves-detail,
body.pgsa-admin-preview #custom_held_item_text_field,
body.pgsa-admin-preview #held_item_pack_fields,
body.pgsa-admin-preview #held_item_choice_set,
body.pgsa-admin-preview #held_item_pack_choice_set,
body.pgsa-admin-preview .pg-combobox-wrap,
body.pgsa-admin-preview .pg-combobox-list{
  overflow:visible !important;
}

body.pgsa-admin-preview .pg-combobox-wrap{position:relative !important;z-index:50 !important;}
body.pgsa-admin-preview .pg-combobox-list{z-index:999999 !important;}


body.pgsa-admin-preview .pgfc-preview-moves-detail{display:block !important;}
body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid,
body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid--compact{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px !important;}
@media (max-width: 980px){body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid,body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width: 640px){body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid,body.pgsa-admin-preview .pgfc-preview-moves-detail > .pgfc-preview-move-grid--compact{grid-template-columns:minmax(0,1fr) !important;}}


/* Fix9 preview selection clarity and held-item polish */
@keyframes pgfcPreviewPulse{
  0%{transform:translateY(0) scale(1);}
  35%{transform:translateY(-1px) scale(1.015);}
  100%{transform:translateY(0) scale(1);}
}
body.pgsa-admin-preview .pgfc-preview-row{align-items:stretch;}
body.pgsa-admin-preview .pgfc-preview-row > .pgfc-preview-field{height:100%;}
body.pgsa-admin-preview .pgfc-preview-field{
  display:grid;
  align-content:start;
  gap:10px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
body.pgsa-admin-preview .pgfc-preview-field.is-on{
  border-color:#76a6ff !important;
  background:linear-gradient(180deg,rgba(48,93,214,.22),rgba(12,23,42,.72)) !important;
  box-shadow:0 0 0 1px rgba(126,166,255,.22) inset,0 14px 28px rgba(16,34,78,.26) !important;
}
body.pgsa-admin-preview .pgfc-preview-field.is-flash{animation:pgfcPreviewPulse .42s ease;}
body.pgsa-admin-preview .pgfc-preview-field-head,
body.pgsa-admin-preview .pgfc-preview-field-head--compact{
  min-height:40px;
  align-content:start;
}
body.pgsa-admin-preview .pgfc-preview-segment-btn{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease !important;
}
body.pgsa-admin-preview .pgfc-preview-segment-btn.is-active{
  transform:translateY(-1px);
}
body.pgsa-admin-preview .pgfc-preview-segment-btn.is-active[data-value='1']::before{
  content:'✓';
  margin-right:6px;
}
body.pgsa-admin-preview .pgfc-preview-segment-btn[data-value='1']::after{
  content:none !important;
}
body.pgsa-admin-preview .pg-helditem-combobox + .pg-helditem-combobox,
body.pgsa-admin-preview .pg-helditempack-combobox + .pg-helditempack-combobox{
  display:none !important;
}
body.pgsa-admin-preview .pghv2-product-summary-copy{margin-bottom:10px !important;}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot{margin:0 0 12px !important;}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-trustpilot img{
  max-width:min(100%, 420px) !important;
  width:100%;
  height:auto;
  object-fit:contain;
}
body.pgsa-admin-preview .pghv2-product-summary-card .pghv2-product-price-wrap{margin-top:0 !important;}

/* Fix11 preview dropdown visibility and clearer select affordance */
body.pgsa-admin-preview .pgfc-preview-field select,
body.pgsa-admin-preview .pgfc-preview-synthetic-select,
body.pgsa-admin-preview .pgfc-preview-moves-detail select.pg-move-select{
  appearance:none !important;
  -webkit-appearance:none !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238fb7ff' d='M1.41.59 6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 12px center !important;
  background-size:12px 8px !important;
  padding-right:36px !important;
}
body.pgsa-admin-preview .pg-combobox-wrap::after{
  content:'▾';
  position:absolute;
  right:12px;
  top:14px;
  color:#8fb7ff;
  font-size:11px;
  line-height:1;
  pointer-events:none;
}
body.pgsa-admin-preview .pg-combobox-input{
  min-height:42px !important;
  padding:10px 36px 10px 12px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:#0d1728 !important;
  color:#eef5ff !important;
}
body.pgsa-admin-preview .pg-combobox-input::placeholder{color:#8fa6c8 !important;opacity:1 !important;}
body.pgsa-admin-preview .pg-combobox-list{
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:#081425 !important;
  box-shadow:0 20px 34px rgba(0,0,0,.34) !important;
}
body.pgsa-admin-preview .pg-combobox-option{padding:10px 12px !important;color:#e6f0ff !important;}
body.pgsa-admin-preview .pg-combobox-option:hover,
body.pgsa-admin-preview .pg-combobox-option.is-active{background:rgba(61,150,255,.16) !important;color:#ffffff !important;}
body.pgsa-admin-preview .pg-combobox-group{padding:8px 12px !important;background:rgba(255,255,255,.04) !important;color:#cfe0ff !important;font-weight:700 !important;}
body.pgsa-admin-preview .pg-combobox-empty{padding:10px 12px !important;color:#8fa6c8 !important;}
body.pgsa-admin-preview #held_item_pack_choice_set{display:grid !important;gap:10px !important;}
body.pgsa-admin-preview #pgItemPackSelected{border-top:1px solid rgba(255,255,255,.08) !important;padding-top:12px !important;}
body.pgsa-admin-preview .pg-itempack-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);}
body.pgsa-admin-preview .pg-itempack-row:last-child{border-bottom:none;}
body.pgsa-admin-preview .pg-itempack-row > div:first-child{color:#eef5ff;}
body.pgsa-admin-preview .pg-itempack-row input[type='number']{width:76px !important;min-height:36px !important;text-align:center;}
body.pgsa-admin-preview .pg-itempack-row .button{min-height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#13213a;color:#eef5ff;padding:0 10px;}

/* FIX(hide-plugin-extras-copy-v2): hide stray bold "Nature:/Language:/Gender:" text that the plugin echoes
   as a direct <b> child inside preview fields. Also hide the "Are you SURE..." ball warning. */
.pgfc-preview-field > b,
.pgfc-preview-field .pgfc-preview-control > b,
.pgfc-preview-control--compact > b { display: none !important; }
.poke-ball-warning { display: none !important; }

/* FIX(held-item-duplicate-combobox): hide the redundant pack-style combobox that leaks into the Held Item
   field. The real Held Item control is the first .pg-combobox-input. The second "Search held items..."
   input is a misrendered pack combobox. */
.pgfc-preview-field[data-auto-kind="held_item"] .pg-helditempack-combobox { display: none !important; }
.pgfc-preview-field[data-auto-kind="held_item"] #held_item_pack_choice_set { display: none !important; }

/* FIX(ability-hide-checkbox): the ability field uses the select as opt-in. Hide the raw plugin checkbox
   and its label/note inside the preview ability card. */
.pgfc-preview-field[data-auto-kind="ability"] input[type="checkbox"],
.pgfc-preview-field[data-auto-kind="ability"] .woocommerce-input-wrapper { display: none !important; }
.pgfc-preview-field[data-auto-kind="ability"] br { display: none !important; }
