:root {
  --backgroundMessageYou: #eeffde;
  --backgroundMessageForYou: #fff;
  --backgroundBody: #4a8e3a8c;
}

.phone {
  border-radius: 20px;
  overflow: hidden;
  justify-content: space-between;
  background: #99ba92;
  width: 275px;
  height: 580px;
  padding: 30px 0 10px 0;
  border: 1px solid #dedede;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone > .topHeader {
  width: 100%;
  height: 30px;
  position: absolute;
  left: 0;
  top: 0;
  background: #416482;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 4px;
  gap: 5px;
  font-size: x-small;
  box-sizing: border-box;
}

#sendMessage {
  border: none;
  outline: none;
  box-sizing: border-box;
  background-color: transparent;
}

.phone p,
.dayIs {
  font-size: small;
}

.phone p {
  min-width: 60px;
  margin: auto;
  padding: 0.3125rem 0.5rem 0.1rem;
  position: relative;
  background: var(--backgroundMessageYou);
  border-radius: 5px 0 5px 5px;
  float: right;
}

.phone p > span {
  font-size: 11px;
  float: right;
  color: rgba(104, 108, 114, 0.75);
}

.forYou p {
  background: var(--backgroundMessageForYou);
  border-radius: 0 5px 5px 5px;
  float: left;
  color: #000;
}

.phone p::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  border: 7px solid var(--backgroundBody);
  border-left: 5px solid var(--backgroundMessageYou);
  border-top: 7px solid var(--backgroundMessageYou);
  left: 100%;
  border-radius: 0 7px 150% 0;
}

.contactTidy {
  width: 100%;
  display: flex;
  gap: 7px;
  padding: 8px 16px;
  align-items: center;
  box-sizing: border-box;
  background: #517da2;
}

.contactTidy button {
  background: none;
  border: none;
  color: #eeeeee;
}

.contactTidy div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: rgba(238, 238, 238, 0.7333333333);
}

.contactTidy div h2,
.contactTidy div h3 {
  margin: 0;
}

.contactTidy div h2 {
  font-size: medium;
}

.contactTidy div h3 {
  font-size: x-small;
}

.contactTidy img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
}

.forYou p::after {
  border-left: 7px solid var(--backgroundBody);
  border-right: 5px solid var(--backgroundMessageForYou);
  border-top: 7px solid var(--backgroundMessageForYou);
  left: 0;
  transform: translateX(-100%);
  border-radius: 7px 0 0 150%;
}

.phone > section {
  width: 100%;
  height: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f1f2f6;
}

.dayIs {
  background: rgba(74, 142, 58, 0.5490196078);
  width: fit-content;
  padding: 0px 8px;
  border-radius: 8px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
}

.noNewTidy p::after {
  content: none;
}

#messagesTidy div {
  margin-top: 15px;
  word-break: break-word;
}

.tg_btn {
  flex: 1;
  border-radius: 4px;
  padding: 8px 4px;
  font-size: 12px;
  background: #e5e6ea;
}