/* Стили бота «Предложить новость» — заметны на светлом фоне COLOMNA.RU */
.bot-pred-widget{
  --bp-card: rgba(255,255,255,.06);
  --bp-text: #eaf0ff;
  --bp-muted: rgba(234,240,255,.75);
  --bp-line: rgba(234,240,255,.16);
  --bp-accent: #1a4d7a;
  --bp-accent2: #2563eb;
  --bp-danger:#fb7185;
  --bp-ok:#34d399;
  --bp-shadow: 0 30px 80px rgba(0,0,0,.45);
  --bp-fab-bg: #b8d4e8;
  --bp-fab-hover: #9fc5df;
}

.bot-pred-widget *{box-sizing:border-box}

.bot-pred-widget .fab{
  position: fixed !important;
  right: 20px !important;
  bottom: 24px !important;
  z-index: 9999 !important;
  border: 2px solid #000 !important;
  border-radius: 999px !important;
  padding: 14px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.03em !important;
  color: #000 !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform .12s ease, background .2s ease !important;
}
.bot-pred-widget .fab:hover{
  background: #fff !important;
  transform: translateY(-1px) !important;
}
.bot-pred-widget .fab:active{
  transform: translateY(0) !important;
}

.bot-pred-widget .modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
.bot-pred-widget .modal.is-open{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
.bot-pred-widget .modal__overlay{
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.62) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
}
.bot-pred-widget .modal__dialog{
  position: relative !important;
  z-index: 2 !important;
  width: min(760px, 100%) !important;
  height: fit-content !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 12px auto !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
/* Скроллбар при необходимости */
.bot-pred-widget .modal__dialog::-webkit-scrollbar{
  width: 12px !important;
}
.bot-pred-widget .modal__dialog::-webkit-scrollbar-track{
  background: #f0f0f0 !important;
  border-radius: 6px !important;
}
.bot-pred-widget .modal__dialog::-webkit-scrollbar-thumb{
  background: #888 !important;
  border-radius: 6px !important;
}
.bot-pred-widget .modal__dialog::-webkit-scrollbar-thumb:hover{
  background: #555 !important;
}
/* Скроллбар внешнего контейнера модалки */
.bot-pred-widget .modal::-webkit-scrollbar{
  width: 10px !important;
}
.bot-pred-widget .modal::-webkit-scrollbar-track{
  background: transparent !important;
}
.bot-pred-widget .modal::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.3) !important;
  border-radius: 5px !important;
}
.bot-pred-widget .modal__header{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bot-pred-widget .iconBtn{
  appearance: none !important;
  border: 2px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 36px !important;
  font-size: 22px !important;
  cursor: pointer !important;
  transition: transform .08s ease, background .2s ease !important;
}
.bot-pred-widget .iconBtn:hover{
  background: #f0f0f0 !important;
}
.bot-pred-widget .iconBtn:active{
  transform: translateY(1px) !important;
}

.bot-pred-widget .card{
  width: min(760px, 100%) !important;
  border: 2px solid #333 !important;
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.3) !important;
  overflow: hidden !important;
}
/* modal__dialog = card, скролл только при переполнении */
.bot-pred-widget .modal__dialog.card{
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.bot-pred-widget .card__header{
  padding: 24px 24px 8px !important;
  border-bottom: 1px solid #ccc !important;
}

.bot-pred-widget .title{
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  color: #000 !important;
}
.bot-pred-widget .subtitle{
  margin: 10px 0 0 !important;
  color: #444 !important;
  line-height: 1.45 !important;
}

.bot-pred-widget .form{
  padding: 18px 24px 10px !important;
}

.bot-pred-widget .field{
  margin: 14px 0 !important;
}
.bot-pred-widget .label{
  display: block !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #000 !important;
}
.bot-pred-widget .req{
  color: #c00 !important;
}
.bot-pred-widget .hint{
  margin-top: 8px !important;
  color: #666 !important;
  font-size: 12.5px !important;
}
.bot-pred-widget .counter{
  float: right !important;
  color: #666 !important;
}

.bot-pred-widget .input,
.bot-pred-widget .textarea{
  width: 100% !important;
  border-radius: 12px !important;
  border: 2px solid #999 !important;
  background: #fff !important;
  color: #000 !important;
  padding: 12px !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
.bot-pred-widget .input::placeholder,
.bot-pred-widget .textarea::placeholder{
  color: #888 !important;
}
.bot-pred-widget .input:focus,
.bot-pred-widget .textarea:focus{
  border-color: #1a4d7a !important;
  box-shadow: 0 0 0 2px rgba(26,77,122,.3) !important;
  outline: none !important;
}
.bot-pred-widget .form--sending .input,
.bot-pred-widget .form--sending .textarea{
  opacity: .7 !important;
  cursor: not-allowed !important;
}
.bot-pred-widget .form--sending .attachment__remove{
  pointer-events: none !important;
  opacity: .5 !important;
}
.bot-pred-widget .textarea{
  resize: none !important;
  min-height: 100px !important;
  overflow-y: auto !important;
}

/* Композер в стиле чата */
.bot-pred-widget .field--composer .label{
  margin-bottom: 8px !important;
}
.bot-pred-widget .composer{
  border: 2px solid #999 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
.bot-pred-widget .composer:focus-within{
  border-color: #1a4d7a !important;
  box-shadow: 0 0 0 2px rgba(26,77,122,.3) !important;
}
.bot-pred-widget .composer.composer--drag{
  border-color: #1a4d7a !important;
  background: #f0f7ff !important;
}
.bot-pred-widget .composer__attachments{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 10px !important;
  min-height: 0 !important;
  border-bottom: 1px solid #eee !important;
}
.bot-pred-widget .composer__attachments:empty{
  display: none !important;
}
.bot-pred-widget .composer__input-wrap{
  position: relative !important;
  padding-right: 44px !important;
}
.bot-pred-widget .composer__textarea{
  border: none !important;
  border-radius: 0 !important;
  padding: 12px !important;
  min-height: 100px !important;
  max-height: 400px !important;
}
.bot-pred-widget .composer__textarea:focus{
  box-shadow: none !important;
  outline: none !important;
}
.bot-pred-widget .composer__add{
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid #666 !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: border-color .2s, background .2s !important;
}
.bot-pred-widget .composer__add:hover{
  border-color: #1a4d7a !important;
  background: #f0f7ff !important;
}
.bot-pred-widget .composer__add.composer__add--hidden{
  display: none !important;
}
.bot-pred-widget .field--composer .hint{
  margin-top: 8px !important;
}
.bot-pred-widget .attachment{
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.bot-pred-widget .attachment__img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.bot-pred-widget .attachment__remove{
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0,0,0,.6) !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity .15s !important;
}
.bot-pred-widget .attachment:hover .attachment__remove{
  opacity: 1 !important;
}
.bot-pred-widget .attachment__remove:hover{
  background: #c00 !important;
}

.bot-pred-widget .grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}
@media (max-width: 640px){
  .bot-pred-widget .grid{
    grid-template-columns: 1fr !important;
  }
}

.bot-pred-widget .hp{
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bot-pred-widget .consent{
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 2px solid #999 !important;
  background: #f9f9f9 !important;
  margin-top: 16px !important;
  user-select: none !important;
}
.bot-pred-widget .consent input{
  margin-top: 3px !important;
}
.bot-pred-widget .consent span{
  color: #000 !important;
  line-height: 1.35 !important;
}

.bot-pred-widget .actions{
  margin-top: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.bot-pred-widget .btn{
  appearance: none !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #1a4d7a !important;
  cursor: pointer !important;
  transition: transform .08s ease, filter .15s ease !important;
}
.bot-pred-widget .btn:hover{
  filter: brightness(1.1) !important;
}
.bot-pred-widget .btn:active{
  transform: translateY(1px) !important;
}
.bot-pred-widget .btn[disabled]{
  opacity: .6 !important;
  cursor: not-allowed !important;
}

.bot-pred-widget .status{
  color: #333 !important;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
}
.bot-pred-widget .status--ok{
  color: #0a6 !important;
}
.bot-pred-widget .status--err{
  color: #c00 !important;
}

.bot-pred-widget .preview{
  margin-top: 10px !important;
  border: 2px solid #999 !important;
  background: #f9f9f9 !important;
  border-radius: 14px !important;
  padding: 10px !important;
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}
.bot-pred-widget .preview__img{
  width: 86px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid #999 !important;
}
.bot-pred-widget .preview__clear{
  appearance: none !important;
  border: 2px solid #333 !important;
  background: #fff !important;
  color: #000 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
}
.bot-pred-widget .preview__clear:hover{
  background: #f0f0f0 !important;
}

.bot-pred-widget .card__footer{
  padding: 4px 24px 8px !important;
  border-top: 1px solid #ccc !important;
  background: #f5f5f5 !important;
}
.bot-pred-widget .footerNote{
  color: #666 !important;
}

