/* Всплывашка «Нашли, что искали?» (inc/feedback.php, макет Figma 184:2). Стоит над круглой кнопкой WhatsApp (.ptv-wa). */
.ptvfb {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 1000;
  box-sizing: border-box; width: 360px; max-width: calc(100vw - 32px); padding: 20px 22px 22px;
  background: #fff; color: #1e1e1e; border: 1px solid #e7e3dc; border-radius: 14px;
  box-shadow: 0 14px 36px -6px rgba(30, 38, 38, .14), 0 1px 3px rgba(30, 38, 38, .06);
  font: 400 15px/1.45 'Scada', 'Open Sans', Arial, sans-serif; text-align: left;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.ptvfb.is-in { opacity: 1; transform: none; }
.ptvfb *, .ptvfb *::before, .ptvfb *::after { box-sizing: border-box; }
.ptvfb [hidden] { display: none !important; }
.ptvfb form { margin: 0; }

.ptvfb__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: transparent; color: #857a70; cursor: pointer; }
.ptvfb__x:hover { background: #f2eee6; color: #1e1e1e; }
.ptvfb__x svg { width: 16px; height: 16px; }

.ptvfb__t { margin: 0 34px 0 0; padding: 0; font: 700 22px/1.2 'Scada', Arial, sans-serif; color: #1e1e1e; letter-spacing: 0; text-transform: none; }
.ptvfb__p { margin: 12px 0 0; color: #857a70; font-size: 15px; line-height: 1.45; }
.ptvfb__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ptvfb__row--end { justify-content: flex-end; }

.ptvfb__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; margin: 0;
  border: 1px solid #d9d3c8; border-radius: 999px; background: #fff; color: #2f4344;
  font: 700 15px/1.2 'Scada', Arial, sans-serif; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.ptvfb__btn:hover { border-color: #2f4344; }
.ptvfb__btn--solid { border-color: #2f4344; background: #2f4344; color: #fff; }
.ptvfb__btn--solid:hover { background: #204547; border-color: #204547; }
.ptvfb__btn--wa { margin-top: 14px; border-color: #25d366; background: #25d366; color: #0b2416; }
.ptvfb__btn--wa:hover { border-color: #1fbe5b; background: #1fbe5b; color: #0b2416; }
.ptvfb__btn--wa svg { width: 18px; height: 18px; }
.ptvfb__btn[disabled] { opacity: .6; cursor: progress; }

.ptvfb__f { display: block; margin: 14px 0 0; }
.ptvfb__f > span { display: block; margin: 0 0 6px; font: 700 13px/1.35 'Scada', Arial, sans-serif; color: #1e1e1e; }
.ptvfb__f > span i { font-style: normal; font-weight: 400; color: #857a70; }
.ptvfb__f input, .ptvfb__f textarea {
  display: block; width: 100%; margin: 0; padding: 11px 14px; border: 1px solid #e7e3dc; border-radius: 8px;
  background: #f6f5f2; color: #1e1e1e; font: 400 15px/1.45 'Scada', Arial, sans-serif; outline: none; resize: none; box-shadow: none;
}
.ptvfb__f textarea { height: 84px; }
.ptvfb__f input::placeholder, .ptvfb__f textarea::placeholder { color: #857a70; opacity: 1; }
.ptvfb__f input:focus, .ptvfb__f textarea:focus { border-color: #2f4344; background: #fff; }
.ptvfb__hint { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #857a70; }
.ptvfb__ok-box { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: #6e655b; cursor: pointer; }
.ptvfb__ok-box input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2f4344; }
.ptvfb__ok-box a { color: #2e7d5f; }
.ptvfb__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ptvfb__err { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: #b32d2e; }

.ptvfb__done { display: flex; align-items: flex-start; gap: 10px; margin-right: 34px; }
.ptvfb__ok { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 999px; background: #1e8a5f; color: #fff; }
.ptvfb__ok svg { width: 15px; height: 15px; }
.ptvfb__done .ptvfb__t { margin: 0; font-size: 20px; }

.ptvfb-bd { position: fixed; inset: 0; z-index: 999; background: rgba(30, 30, 30, .35); opacity: 0; transition: opacity .3s; }
.ptvfb-bd.is-in { opacity: 1; }

/* телефон: тонкая полоска над кнопкой WhatsApp; поля — листом снизу */
@media (max-width: 639px) {
  .ptvfb { left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 18px 18px 20px; }
  .ptvfb.is-sheet { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ptvfb.is-bar { display: flex; align-items: center; gap: 4px; padding: 6px 4px 6px 12px; }
  .ptvfb.is-bar .ptvfb__x { position: static; flex: none; }
  .ptvfb__barq { flex: 1 1 auto; min-width: 0; font: 700 14px/1.3 'Scada', Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ptvfb.is-bar .ptvfb__btn { flex: none; min-height: 36px; padding: 0 11px; font-size: 14px; white-space: nowrap; }
  .ptvfb__f input, .ptvfb__f textarea { font-size: 16px; }   /* iOS не увеличивает страницу */
  .ptvfb__t { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ptvfb, .ptvfb-bd { transition: none; } }
@media print { .ptvfb, .ptvfb-bd { display: none; } }
