:root{
  --fw-accent: #ffc107;
  --fw-bg: #ffffff;
  --fw-text: #111827;
  --fw-shadow: 0 10px 30px rgba(18,24,40,0.12);
}

#feedback-widget { font-family: Inter, system-ui, Arial, sans-serif; }

/* круглaя кнопка в правом нижнем углу */
#fw-button{
  position: fixed;
  right: 30px;
  bottom: 280px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  padding: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  background: linear-gradient(180deg,#fff,#f4f7ff);
  cursor: pointer;
  z-index: 9999;
  transition: transform .18s ease, box-shadow .18s ease;
}
#fw-button:hover{ transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
#fw-button img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block }

/* Модал */
#fw-modal{ position: fixed; right:30px; bottom:280px; display:none; z-index:99990; }
#fw-modal.open{ display:flex; }
.fw-backdrop{ display:none; }

/* карточка */
.fw-card{
  position:relative;
  width:270px;
  max-width:320px;
  background:var(--fw-bg);
  border-radius:16px;
  padding:18px;
  box-shadow: var(--fw-shadow);
  transform:translateY(12px) scale(.98);
  opacity:0;
  transition: transform .3s cubic-bezier(.2,.9,.2,1), opacity .3s;
  z-index:2;
}
#fw-modal.open .fw-card{ transform:translateY(0) scale(1); opacity:1; }

/* закрытие плавно */
#fw-modal.closing .fw-card{ transform:translateY(12px) scale(.98); opacity:0; }
#fw-modal.closing .fw-backdrop{ opacity:0; }

/* header - изменено: фотография справа */
.fw-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-right: 20px; /* пространство для фотографии */
}

.fw-title{
  font-weight: 600;
  color: var(--fw-text);
  font-size: 18px;
  margin: 0;
  align-items: center;
}

.fw-op-photo{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16,24,40,0.08);
  order: 2; /* перемещаем фото вправо */
}

/* form */
.fw-label{ font-size:12px; color:#667085; margin-bottom:6px; display:block; }
#fw-phone{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  outline:none;
  font-size:15px;
  box-sizing:border-box;
  transition: box-shadow .15s, border-color .15s;
  margin-bottom:12px;
}
#fw-phone:focus{ box-shadow: 0 6px 18px rgba(255,193,7,0.14); border-color:#ffc107; }

.fw-submit{
  width:100%;
  padding:11px;
  border-radius:10px;
  border: none;
  color:white;
  font-weight:600;
  background:var(--fw-accent); color:#111;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(108,118,255,0.12);
  transition: transform .12s;
}
.fw-submit:active{ transform: translateY(1px); }

.fw-close{
  position:absolute;
  right:8px;
  top:6px;
  background:transparent;
  border:none;
  font-size:22px;
  color:#9aa3b2;
  cursor:pointer;
  z-index: 3; /* крестик поверх фото */
}

/* адаптив */
@media (max-width:420px){
  .fw-card{ width:92%; padding:14px; border-radius:12px; }
  #fw-button{ width:64px; height:64px; right:10px; bottom:280px; }
  .fw-op-photo{ width:40px; height:40px; }
/* Модал */
#fw-modal{ position: fixed; right:-23px; bottom:280px; display:none; z-index:99990; }
#fw-modal.open{ display:flex; }
.fw-backdrop{ display:none; }
}