/* TYHY_AMANDA_CLEAN_BUTTON_CSS_START */
#tyhy-amanda-clean,
#tyhy-amanda-clean *{
  box-sizing:border-box;
  border-radius:0!important;
}

#tyhy-amanda-clean{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9200;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#17231c;
}

/* Desktop launcher */
.tyhy-amanda-clean__button{
  width:258px;
  min-height:68px;
  border:1px solid rgba(196,158,88,.58);
  background:
    linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#173326,#2b5a42);
  color:#fff;
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  align-items:center;
  padding:6px 14px 6px 6px;
  cursor:pointer;
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}

.tyhy-amanda-clean__button:hover{
  transform:translateY(-2px);
}

.tyhy-amanda-clean__avatar{
  width:56px;
  height:56px;
  object-fit:cover;
  object-position:center 8%;
  border:1px solid rgba(236,211,151,.9);
}

.tyhy-amanda-clean__kicker{
  display:block;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:rgba(255,244,218,.72);
}

.tyhy-amanda-clean__name{
  display:block;
  margin-top:5px;
  font-size:22px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.045em;
}

.tyhy-amanda-clean__desc{
  display:block;
  margin-top:5px;
  font-size:12px;
  line-height:1.15;
  font-weight:650;
  color:rgba(255,255,255,.82);
}

/* Panel */
.tyhy-amanda-clean__panel{
  display:none;
  position:absolute;
  right:0;
  bottom:82px;
  width:min(420px,calc(100vw - 28px));
  height:min(610px,calc(100vh - 112px));
  overflow:hidden;
  border:1px solid rgba(23,51,38,.18);
  background:linear-gradient(180deg,#fff8ec,#efe0c3);
  box-shadow:0 34px 100px rgba(0,0,0,.30);
}

#tyhy-amanda-clean.is-open .tyhy-amanda-clean__panel{
  display:flex;
  flex-direction:column;
}

.tyhy-amanda-clean__head{
  position:relative;
  padding:13px 46px 13px 15px;
  min-height:0;
  background:
    linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#173326,#2b5a42);
  color:#fff;
  border-bottom:1px solid rgba(196,158,88,.42);
}

.tyhy-amanda-clean__title{
  margin:0;
  font-size:25px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.05em;
}

.tyhy-amanda-clean__subtitle{
  margin-top:7px;
  font-size:13px;
  line-height:1.35;
  color:rgba(255,255,255,.80);
}

.tyhy-amanda-clean__close{
  position:absolute;
  top:9px;
  right:9px;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.tyhy-amanda-clean__messages{
  flex:1;
  overflow:auto;
  padding:15px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tyhy-amanda-clean__msg{
  max-width:90%;
  padding:12px 14px;
  font-size:14.5px;
  line-height:1.52;
  white-space:pre-wrap;
  border:1px solid rgba(23,51,38,.12);
}

.tyhy-amanda-clean__msg--bot{
  align-self:flex-start;
  background:rgba(255,255,255,.88);
  border-left:3px solid #c49e58;
}

.tyhy-amanda-clean__msg--user{
  align-self:flex-end;
  color:#fff;
  background:linear-gradient(135deg,#173326,#2b5a42);
  border-color:rgba(255,255,255,.16);
}

.tyhy-amanda-clean__typing{
  align-self:flex-start;
  width:68px;
  padding:13px 14px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(23,51,38,.12);
  border-left:3px solid #c49e58;
  display:flex;
  gap:5px;
}

.tyhy-amanda-clean__typing span{
  width:6px;
  height:6px;
  background:#c49e58;
  opacity:.35;
  animation:tyhyAmandaCleanBlink 1.35s infinite;
}

.tyhy-amanda-clean__typing span:nth-child(2){animation-delay:.2s}
.tyhy-amanda-clean__typing span:nth-child(3){animation-delay:.4s}

@keyframes tyhyAmandaCleanBlink{
  0%,100%{opacity:.25;transform:translateY(0)}
  50%{opacity:1;transform:translateY(-2px)}
}

.tyhy-amanda-clean__form{
  display:grid;
  grid-template-columns:1fr 82px;
  gap:8px;
  padding:12px;
  background:rgba(255,255,255,.66);
  border-top:1px solid rgba(23,51,38,.11);
}

.tyhy-amanda-clean__input{
  min-height:45px;
  border:1px solid rgba(23,51,38,.18);
  background:#fff;
  color:#17231c;
  padding:0 13px;
  font-size:14.5px;
  outline:none;
  font-family:inherit;
}

.tyhy-amanda-clean__input:focus{
  border-color:#c49e58;
  box-shadow:0 0 0 3px rgba(196,158,88,.15);
}

.tyhy-amanda-clean__send{
  border:0;
  background:linear-gradient(135deg,#173326,#2b5a42);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  font-family:inherit;
}

.tyhy-amanda-clean__foot{
  padding:0 13px 12px;
  background:rgba(255,255,255,.66);
  color:rgba(23,35,28,.56);
  font-size:11px;
  line-height:1.35;
}

/* Mobile: real button, not ugly image bubble */
@media(max-width:768px){
  #tyhy-amanda-clean{
    left:12px;
    right:auto;
    bottom:86px;
    z-index:9200;
  }

  .tyhy-amanda-clean__button{
    width:auto;
    min-width:106px;
    height:44px;
    min-height:44px;
    padding:0 15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    box-shadow:0 12px 34px rgba(0,0,0,.22);
  }

  .tyhy-amanda-clean__avatar,
  .tyhy-amanda-clean__kicker,
  .tyhy-amanda-clean__desc{
    display:none!important;
  }

  .tyhy-amanda-clean__name{
    margin:0;
    font-size:15px;
    line-height:1;
    letter-spacing:0;
    font-weight:900;
  }

  .tyhy-amanda-clean__name:before{
    content:"Kysy ";
    font-weight:700;
    opacity:.86;
  }

  .tyhy-amanda-clean__panel{
    left:0;
    right:auto;
    bottom:58px;
    width:calc(100vw - 24px);
    max-width:calc(100vw - 24px);
    height:min(590px,calc(100vh - 158px));
  }

  .tyhy-amanda-clean__head{
    padding:12px 44px 12px 13px;
  }

  .tyhy-amanda-clean__title{
    font-size:22px;
  }

  .tyhy-amanda-clean__subtitle{
    font-size:12.5px;
    line-height:1.3;
  }

  .tyhy-amanda-clean__messages{
    padding:12px;
  }

  .tyhy-amanda-clean__msg{
    font-size:14px;
    max-width:92%;
  }

  .tyhy-amanda-clean__form{
    grid-template-columns:1fr 76px;
    padding:10px;
  }
}
/* TYHY_AMANDA_CLEAN_BUTTON_CSS_END */


/* AMANDA_REAL_PHOTO_MOBILE_FIX_START */
.tyhy-amanda-clean,
.tyhy-amanda-clean * {
  box-sizing: border-box !important;
}

.tyhy-amanda-clean {
  position: fixed !important;
  right: 18px !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  z-index: 999999 !important;
  pointer-events: none !important;
}

.tyhy-amanda-clean__button,
.tyhy-amanda-clean__panel {
  pointer-events: auto !important;
}

.tyhy-amanda-clean__avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 17px !important;
  object-fit: cover !important;
  object-position: center 24% !important;
  display: block !important;
  background: #111827 !important;
  border: 1px solid rgba(247, 223, 145, .50) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .24), 0 0 18px rgba(216, 180, 95, .18) !important;
}

.tyhy-amanda-clean__panel {
  position: fixed !important;
  right: 18px !important;
  bottom: 92px !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 122px) !important;
  overflow: hidden !important;
}

.tyhy-amanda-clean:not(.amanda-open-fixed) .tyhy-amanda-clean__panel {
  display: none !important;
}

.tyhy-amanda-clean.amanda-open-fixed .tyhy-amanda-clean__panel {
  display: flex !important;
  flex-direction: column !important;
}

.tyhy-amanda-clean__head {
  flex: 0 0 auto !important;
}

.tyhy-amanda-clean__messages {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.tyhy-amanda-clean__form,
.tyhy-amanda-clean__foot {
  flex: 0 0 auto !important;
}

body.tyhy-amanda-modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 760px) {
  .tyhy-amanda-clean {
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  .tyhy-amanda-clean__button {
    max-width: calc(100vw - 24px) !important;
  }

  .tyhy-amanda-clean__avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 16px !important;
  }

  .tyhy-amanda-clean__panel {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: min(86dvh, calc(100dvh - 18px)) !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 24px !important;
  }

  .tyhy-amanda-clean__messages {
    padding-bottom: 10px !important;
  }

  .tyhy-amanda-clean__form {
    position: relative !important;
    bottom: auto !important;
    background: inherit !important;
  }

  .tyhy-amanda-clean__foot {
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
}
/* AMANDA_REAL_PHOTO_MOBILE_FIX_END */

