/* Scoped to this plugin: no global Elementor/theme styles are changed. */
.anp-widget {
  --anp-accent: #488d2a;
  --anp-ink: #17201b;
  --anp-muted: #65706b;
  --anp-border: #dce5de;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(23px, 5.5%, 34px);
  background: #ffffff;
  border: 1px solid #e7ece8;
  border-radius: 20px;
  box-shadow: 0 14px 45px rgba(17, 32, 22, .075);
  color: var(--anp-ink);
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}
.anp-widget *, .anp-widget *::before, .anp-widget *::after { box-sizing: border-box; }
.anp-widget [hidden] { display: none !important; }
.anp-widget button, .anp-widget input { font: inherit; }
.anp-widget button { cursor: pointer; }
.anp-widget button:focus-visible, .anp-widget a:focus-visible,
.anp-widget input:focus-visible, .anp-widget label:focus-visible {
  outline: 3px solid #95c2e8;
  outline-offset: 3px;
}
.anp-intro { margin-bottom: 20px; }
.anp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--anp-accent);
  text-transform: uppercase;
  letter-spacing: .11em;
}
.anp-kicker-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.anp-widget h3.anp-heading {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.033em;
  line-height: 1.14;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--anp-ink);
}
.anp-widget p.anp-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--anp-muted);
}
.anp-dropzone {
  position: relative;
  overflow: hidden;
  border: 1.5px dashed #b9d0bd;
  border-radius: 13px;
  background: #f7faf7;
  transition: background .18s, border-color .18s;
}
.anp-dropzone:hover, .anp-dropzone.is-dragover { background: #edf6ef; border-color: var(--anp-accent); }
.anp-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  left: 0;
  top: 0;
}
.anp-upload-label {
  min-height: 182px;
  padding: 23px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}
.anp-upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e0e9e0;
  background: #fff;
  border-radius: 13px;
  margin: 0 0 9px;
  color: var(--anp-accent);
}
.anp-upload-icon svg { width: 23px; height: 23px; }
.anp-drop-title { font-size: 15px; font-weight: 750; color: var(--anp-ink); }
.anp-drop-subtitle { font-size: 12px; color: var(--anp-muted); margin-top: 2px; }
.anp-drop-types { font-size: 11px; color: #89938d; margin-top: 10px; }
.anp-dropzone.is-selected .anp-upload-label { display: none; }
/* Selected-photo state uses an explicit three-column grid. Elementor / theme
   typography can otherwise shrink its text column to one character wide. */
.anp-widget .anp-dropzone { width: 100%; min-width: 0; }
.anp-widget .anp-selected:not([hidden]) {
  display: grid !important;
  grid-template-columns: 91px minmax(0, 1fr) max-content !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 104px !important;
  padding: 13px !important;
  text-align: left;
}
.anp-widget .anp-selected-image {
  display: block;
  grid-column: 1;
  height: 78px !important;
  width: 91px !important;
  max-width: 100%;
  border-radius: 9px;
  object-fit: cover;
  background: #e4e9e5;
  flex: none;
}
.anp-widget .anp-selected-meta {
  grid-column: 2;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  flex: none !important;
  text-align: left;
}
.anp-widget .anp-selected-meta .anp-filename,
.anp-widget .anp-selected-meta .anp-selection-status {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
}
.anp-widget .anp-selected-meta .anp-filename {
  font-size: 12px;
  font-weight: 750;
  color: var(--anp-ink);
}
.anp-widget .anp-selected-meta .anp-selection-status {
  font-size: 11px;
  margin-top: 4px;
  color: var(--anp-muted);
}
.anp-widget button.anp-change, .anp-widget button.anp-reset {
  border: none;
  box-shadow: none;
  padding: 7px 4px;
  background: transparent;
  color: var(--anp-accent);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
}
.anp-widget .anp-selected button.anp-change {
  grid-column: 3;
  width: auto !important;
  min-width: max-content;
  justify-self: end;
  margin: 0 !important;
  flex: none !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}
.anp-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.anp-scheme-wrap { margin-top: 14px; }
.anp-scheme-label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 750; color: var(--anp-ink); }
.anp-scheme { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--anp-border); border-radius: 11px; background: #fff; color: var(--anp-ink); font-size: 14px; box-shadow: none; }
.anp-scheme-note { margin: 7px 1px 0; font-size: 11px; line-height: 1.55; color: var(--anp-muted); }
.anp-widget button.anp-submit {
  width: 100%;
  min-height: 49px;
  margin: 13px 0 0;
  padding: 11px 15px;
  border: none;
  border-radius: 11px;
  background: var(--anp-accent);
  box-shadow: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  transition: opacity .18s, transform .18s;
}
.anp-widget button.anp-submit svg { width: 18px; height: 18px; }
.anp-widget button.anp-submit:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.06); }
.anp-widget button.anp-submit:disabled { opacity: .49; cursor: not-allowed; }
.anp-widget .anp-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  background: #fff2ed;
  color: #923516;
  border: 1px solid #f7d9c8;
  border-radius: 9px;
}
.anp-progress { margin-top: 4px; padding: 28px 10px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.anp-progress-heading { display: block; font-size: 14px; font-weight: 750; }
.anp-progress-detail { display: block; color: var(--anp-muted); font-size: 12px; margin-top: 4px; }
.anp-spinner { width: 32px; height: 32px; border: 3px solid #e3ebe3; border-top-color: var(--anp-accent); border-radius: 50%; flex-shrink: 0; animation: anp-spin .9s linear infinite; }
@keyframes anp-spin { to { transform: rotate(360deg); } }
.anp-widget.is-generating .anp-form, .anp-widget.is-done .anp-form { display: none; }
.anp-result { margin-top: 16px; }
.anp-result-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.anp-result-header strong { font-size: 13px; }
.anp-result-pill { font-size: 10px; letter-spacing: .08em; font-weight: 800; color: var(--anp-accent); }
.anp-compare { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: #dfe8e7; isolation: isolate; user-select: none; touch-action: pan-y; }
.anp-compare > img { position: absolute; width: 100%; height: 100%; inset: 0; display: block; object-fit: cover; object-position: center; max-width: none; pointer-events: none; }
.anp-compare .anp-before { clip-path: inset(0 calc(100% - var(--anp-split)) 0 0); z-index: 1; }
.anp-compare-label { position: absolute; z-index: 3; top: 12px; padding: 6px 8px; font-size: 9px; letter-spacing: .09em; font-weight: 800; line-height: 1; background: rgba(9, 17, 16, .66); color: #ffffff; border-radius: 5px; pointer-events: none; }
.anp-label-before { left: 11px; }
.anp-label-after { right: 11px; }
.anp-compare-line { position: absolute; left: var(--anp-split); transform: translateX(-50%); z-index: 4; top: 0; bottom: 0; width: 2px; background: #ffffff; box-shadow: 0 0 6px #0004; pointer-events: none; }
.anp-compare-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 10px #0005; color: #1d2521; font-size: 22px; font-weight: 700; }
.anp-compare-range { position: absolute; z-index: 5; display: block; inset: 0; margin: 0 !important; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent !important; opacity: .001; appearance: none; -webkit-appearance: none; cursor: ew-resize; }
.anp-compare-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 40px; }
.anp-compare-range::-moz-range-thumb { width: 28px; height: 40px; border: 0; background: transparent; }
.anp-result-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.anp-widget a.anp-download { text-decoration: none; display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 9px; padding: 10px 14px; background: var(--anp-accent); color: #fff; font-size: 12px; font-weight: 800; }
.anp-widget a.anp-download:hover { filter: brightness(1.08); color: #fff; }
.anp-widget p.anp-disclaimer { margin: 14px 0 0; color: var(--anp-muted); font-size: 11px; }
.anp-widget p.anp-footer-note { font-size: 10px; line-height: 1.6; color: #939d96; text-align: center; margin: 15px 0 0; }
@media (max-width: 420px) {
  .anp-widget { border-radius: 16px; padding: 22px 18px; }
  .anp-widget h3.anp-heading { font-size: 24px; }
  .anp-widget .anp-selected:not([hidden]) {
    grid-template-columns: 72px minmax(0, 1fr) max-content !important;
    column-gap: 8px !important;
    min-height: 86px !important;
    padding: 10px !important;
  }
  .anp-widget .anp-selected-image { height: 65px !important; width: 72px !important; }
  .anp-widget .anp-selected-meta .anp-selection-status { font-size: 10px; }
  .anp-scheme { min-height: 44px; font-size: 13px; }
  .anp-widget .anp-selected button.anp-change { font-size: 11px; }
  .anp-compare-label { top: 8px; font-size: 8px; }
}
@media (max-width: 330px) {
  .anp-widget .anp-selected:not([hidden]) {
    grid-template-columns: 56px minmax(0, 1fr) max-content !important;
    column-gap: 6px !important;
  }
  .anp-widget .anp-selected-image { width: 56px !important; height: 54px !important; }
  .anp-widget .anp-selected-meta .anp-selection-status { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .anp-widget .anp-spinner { animation-duration: 2.5s; }
  .anp-widget * { transition-duration: .01ms !important; }
}
/* Give keyboard users a visible focus state on the visually hidden file input. */
.anp-dropzone:focus-within { border-color: var(--anp-accent); outline: 2px solid #99c3a4; outline-offset: 2px; }
