/* ======================================================
   p2s- namespaced styles. All rules are scoped inside
   #p2s-root so this can be dropped into any WordPress
   theme (Custom HTML block / widget) without leaking
   into, or being overridden by, theme styles.
====================================================== */
#p2s-root, #p2s-root * { box-sizing: border-box; }
#p2s-root {
  all: initial;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2027;
  background: #f6f7f9;
  padding: 32px 16px 48px;
  line-height: 1.5;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 14px;
}
#p2s-root *{ font-family: inherit; }
#p2s-root h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #12151b;
  letter-spacing: -0.02em;
}
#p2s-root .p2s-sub {
  font-size: 15px;
  color: #5a6270;
  margin: 0 0 24px;
}
#p2s-root .p2s-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
#p2s-root .p2s-badge {
  background: #eef2ff;
  color: #3b4ce0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
#p2s-root .p2s-card {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
#p2s-root .p2s-drop {
  border: 2px dashed #c7cbd4;
  border-radius: 12px;
  padding: 34px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: #fbfbfc;
}
#p2s-root .p2s-drop:hover, #p2s-root .p2s-drop.p2s-drag {
  border-color: #3b4ce0;
  background: #f2f4ff;
}
#p2s-root .p2s-drop svg { display:block; margin: 0 auto 10px; }
#p2s-root .p2s-drop-title { font-weight: 700; font-size: 15.5px; color: #22262f; margin-bottom: 4px; }
#p2s-root .p2s-drop-sub { font-size: 13px; color: #7a808c; }
#p2s-root input[type="file"] { display: none; }
#p2s-root .p2s-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
#p2s-root .p2s-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #454b56;
  margin-bottom: 6px;
}
#p2s-root .p2s-field .p2s-val { font-weight: 600; color: #3b4ce0; }
#p2s-root input[type="range"] {
  width: 100%;
  accent-color: #3b4ce0;
}
#p2s-root .p2s-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
#p2s-root button {
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, opacity .15s ease;
}
#p2s-root button:active { transform: translateY(1px); }
#p2s-root button:disabled { opacity: .45; cursor: not-allowed; }
#p2s-root .p2s-btn-primary { background: #3b4ce0; color: #fff; }
#p2s-root .p2s-btn-primary:hover:not(:disabled) { background: #2f3ec4; }
#p2s-root .p2s-btn-secondary { background: #eef0f4; color: #22262f; }
#p2s-root .p2s-btn-secondary:hover:not(:disabled) { background: #e2e5ec; }
#p2s-root .p2s-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
#p2s-root .p2s-preview-box {
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}
#p2s-root .p2s-preview-box .p2s-label {
  background: rgba(255,255,255,.92);
  font-size: 11.5px;
  font-weight: 700;
  color: #454b56;
  padding: 6px 10px;
  border-bottom: 1px solid #e6e8ec;
}
#p2s-root .p2s-preview-box .p2s-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 10px;
}
#p2s-root .p2s-preview-box img, #p2s-root .p2s-preview-box svg { max-width: 100%; max-height: 320px; }
#p2s-root .p2s-status { font-size: 13px; color: #5a6270; margin-top: 10px; min-height: 18px; }
#p2s-root .p2s-stats { font-size: 12.5px; color: #7a808c; margin-top: 6px; }
#p2s-root .p2s-faq h3 { font-size: 15px; margin: 0 0 4px; color:#22262f; }
#p2s-root .p2s-faq p { font-size: 13.5px; color: #5a6270; margin: 0 0 16px; }
#p2s-root .p2s-footer-note { font-size: 12px; color: #9aa0aa; text-align: center; margin-top: 22px; }
@media (max-width: 640px) {
  #p2s-root .p2s-preview-grid { grid-template-columns: 1fr; }
}
