/* Kinesioprofi — баннер-уведомление */
#kpro-notice.kpro-notice{
  position:fixed;
  left:50%;
  bottom:24px;
  bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  z-index:99990;
  box-sizing:border-box;
  width:calc(100% - 32px);
  max-width:620px;
  margin:0;
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:16px 52px 16px 16px;
  background:#fff;
  color:#0F1725;
  border:1px solid rgba(15,23,37,.08);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(2,6,23,.14), 0 2px 8px rgba(2,6,23,.05);
  font-family:"Roboto Condensed",Arial,sans-serif;
  text-align:left;
  opacity:0;
  transform:translate(-50%, 28px);
  transition:opacity .5s ease, transform .7s cubic-bezier(.16,1,.3,1);
  will-change:opacity, transform;
}
#kpro-notice.kpro-notice[hidden]{ display:none !important; }
#kpro-notice.kpro-notice.is-visible{ opacity:1; transform:translate(-50%, 0); }
#kpro-notice.kpro-notice.is-hiding{
  opacity:0;
  transform:translate(-50%, 20px);
  transition:opacity .3s ease, transform .35s ease;
}
#kpro-notice *{ box-sizing:border-box; }

/* Иконка */
#kpro-notice .kpro-notice__icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(72,130,180,.10);
  border:1px solid rgba(72,130,180,.18);
}
#kpro-notice .kpro-notice__icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:#4882B4;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Текст */
#kpro-notice .kpro-notice__body{ min-width:0; flex:1; }
#kpro-notice .kpro-notice__title{
  margin:1px 0 4px;
  font-size:17px;
  line-height:1.25;
  font-weight:800;
  color:#0F1725;
  letter-spacing:-0.01em;
}
#kpro-notice .kpro-notice__text,
#kpro-notice .kpro-notice__text p{
  margin:0;
  font-size:15px;
  line-height:1.45;
  font-weight:500;
  color:rgba(15,23,37,.72);
}
#kpro-notice .kpro-notice__text p + p{ margin-top:6px; }
#kpro-notice .kpro-notice__text a{
  color:#4882B4 !important;
  font-weight:700;
  text-decoration:none !important;
  white-space:nowrap;
  border-bottom:1px solid rgba(72,130,180,.3);
  transition:border-color .15s ease, color .15s ease;
}
#kpro-notice .kpro-notice__text a:hover{
  color:#3a6d96 !important;
  border-bottom-color:#3a6d96;
}
#kpro-notice .kpro-notice__text strong{ color:#0F2F5F; font-weight:800; }

/* Крестик — со сбросом стилей темы/Elementor */
#kpro-notice .kpro-notice__close{
  -webkit-appearance:none;
  appearance:none;
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:0 !important;
  border-radius:50%;
  box-shadow:none !important;
  cursor:pointer;
  line-height:1;
  transition:background-color .15s ease;
}
#kpro-notice .kpro-notice__close:hover,
#kpro-notice .kpro-notice__close:focus-visible{
  background:rgba(15,23,37,.06) !important;
  outline:none;
}
#kpro-notice .kpro-notice__close svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:rgba(15,23,37,.55);
  stroke-width:1.8;
  stroke-linecap:round;
}
#kpro-notice .kpro-notice__close:hover svg{ stroke:#0F1725; }

/* Мобильные */
@media (max-width:600px){
  /* На мобильных — сверху, выезжает вниз */
  #kpro-notice.kpro-notice{
    top:12px;
    top:calc(12px + env(safe-area-inset-top, 0px));
    bottom:auto;
    transform:translate(-50%, -28px);
    width:calc(100% - 24px);
    gap:12px;
    padding:14px 44px 14px 14px;
    border-radius:16px;
  }
  #kpro-notice .kpro-notice__icon{ flex-basis:32px; width:32px; height:32px; border-radius:10px; }
  #kpro-notice .kpro-notice__icon svg{ width:17px; height:17px; }
  #kpro-notice .kpro-notice__title{ font-size:15px; margin-top:0; }
  #kpro-notice .kpro-notice__text,
  #kpro-notice .kpro-notice__text p{ font-size:13.5px; line-height:1.42; }
  #kpro-notice .kpro-notice__close{ top:8px; right:8px; }
  #kpro-notice.kpro-notice.is-visible{ transform:translate(-50%, 0); }
  #kpro-notice.kpro-notice.is-hiding{ transform:translate(-50%, -20px); }
  /* Если админ залогинен — не перекрывать панель WordPress */
  body.admin-bar #kpro-notice.kpro-notice{ top:58px; }
}

@media (prefers-reduced-motion:reduce){
  #kpro-notice.kpro-notice,
  #kpro-notice.kpro-notice.is-hiding{
    transition:opacity .2s ease;
    transform:translate(-50%, 0);
  }
}
