/* Background Remover — bgremove-module.css v1.0 */
.bgr-app { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.bgr-wrap { max-width: 1024px; margin: 0 auto; padding: 0 16px 40px; }
@media (max-width: 640px) { .bgr-wrap { padding: 0 14px 32px; } }

.bgr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 0 14px; }
.bgr-header h1 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.bgr-header p  { font-size: 0.88rem; color: #475569; margin: 0; line-height: 1.55; }
.bgr-privacy-badge { flex-shrink: 0; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
@media (max-width: 640px) { .bgr-header { flex-direction: column; } }

.bgr-honest-note { font-size: 0.78rem; color: #1e3a5f; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.5; }

#bgremove_fileInput { display: none; }
.bgr-upload-zone { border: 2.5px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.bgr-upload-zone.dragover, .bgr-upload-zone:hover { border-color: #2563a8; background: #eff6ff; }
.bgr-upload-icon { font-size: 3rem; margin-bottom: 10px; }
.bgr-upload-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.bgr-upload-sub { font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; }
.bgr-upload-btn { display: inline-block; background: #2563a8; color: #fff; font-size: 0.9rem; font-weight: 700; padding: 10px 26px; border-radius: 8px; cursor: pointer; transition: background .15s; margin-bottom: 10px; }
.bgr-upload-btn:hover { background: #1d4ed8; }
.bgr-upload-hint { font-size: 0.78rem; color: #94a3b8; margin-top: 8px; line-height: 1.6; }

.bgr-panel { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 20px; margin-top: 18px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.bgr-canvas-wrap {
  display: flex; justify-content: center; align-items: center; margin-bottom: 16px; border-radius: 10px; overflow: hidden;
  background-image: linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
.bgr-canvas { max-width: 100%; height: auto; display: block; cursor: crosshair; touch-action: none; }

.bgr-tools { display: flex; flex-direction: column; gap: 12px; }
.bgr-tool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bgr-tool-btn, .bgr-action-btn {
  flex: 1; min-width: 120px; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; color: #334155; cursor: pointer; transition: background .12s, border-color .12s;
}
.bgr-tool-btn:hover, .bgr-action-btn:hover { background: #eff6ff; border-color: #2563a8; }
.bgr-tool-btn.active { background: #2563a8; border-color: #2563a8; color: #fff; }

.bgr-hint { font-size: 0.76rem; color: #94a3b8; line-height: 1.5; }
.bgr-status { font-size: 0.82rem; color: #64748b; margin-top: 12px; text-align: center; }
.bgr-status-ok { color: #15803d; } .bgr-status-warn { color: #d97706; } .bgr-status-error { color: #dc2626; }

.bgr-download-section { margin-top: 24px; }
.bgr-download-inner { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.bgr-download-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 14px; }
.bgr-contact-title { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px; }
.bgr-contact-form { margin-bottom: 18px; }
.bgr-download-btn { width: 100%; padding: 14px; background: #15803d; color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: inherit; transition: background .15s; }
.bgr-download-btn:hover { background: #166534; }
.bgr-download-note { font-size: 0.75rem; color: #94a3b8; text-align: center; margin-top: 8px; }

#bgremove .cg-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin-top: 8px; }
#bgremove .engage-section { margin: 24px 0; }
@media (max-width: 640px) {
  #bgremove .engage-section { margin: 20px 0; }
  #bgremove .bgr-contact-form .g2 { grid-template-columns: 1fr; }
  #bgremove .bgr-panel .g2 { grid-template-columns: 1fr; }
}
