:root {
	--offset-lateral: 90px;
}

.whatsapp-button {
	right: var(--offset-lateral);
}

.whatsapp-chat {
	right: var(--offset-lateral);
}

.ask-otras {
	background-color: #5633C1 !important;
	color: #fff !important;
	font-weight: 700;
}

.ask-otras .provincia {
	color: #e0d7ff;
	opacity: 1;
}


.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 90px;
  z-index: 2;
  background-image: url("../img/icono-whatsapp.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.provincia {
	font-size: 0.85em;
	opacity: 0.7;
	margin-left: 6px;
}


.accesibilidad-button:hover,
.accesibilidad-button.active,
.whatsapp-button:hover,
.whatsapp-button.active {
  filter: brightness(1.2);
}

.whatsapp-chat {
  background-color: var(--blanco1);
  background-image: url("../img/whatsapp-background.webp");
  background-size: cover;
  border-radius: 20px 20px 0px 30px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
  height: 60vh;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.3s;
  width: 300px;
  z-index: 1;
  position: fixed;
  right: 30px;
  bottom: 100px;
}

.whatsapp-chat.active {
  opacity: 1;
  pointer-events: all;
}

.whatsapp-chat .title {
  background-image: linear-gradient(#36954f, #346f4c);
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: 'f1';
  font-size: 18px;
  padding: 10px 20px;
  text-align: center;
}

.whatsapp-chat .body {
  padding: 20px;
  position: relative;
  overflow-y: scroll;
  overflow-x: hidden;
  height: calc(60vh - 142px);
}

.whatsapp-chat .body h1 {
  text-align: center;
}

.whatsapp-chat .body h1:after {
  width: 100%;
}

.whatsapp-chat .body h2 {
  font-family: 'f1';
  font-size: 18px;
  text-align: left;
}

.whatsapp-chat .body h2:first-child {
  margin-top: 10px;
}

.whatsapp-chat .body hr {
  width: 100%;
  opacity: 0;
}

.whatsapp-chat .body .ask,
.whatsapp-chat .body .question,
.whatsapp-chat .body .ask-bot {
  background-color: #b5d963;
  padding: 10px;
  border-radius: 4px;
  float: left;
  color: #34704c;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: block;
  clear: right;
  margin: 5px;
  position: relative;
  left: 0px;
  transition: left 0.3s;
}

.whatsapp-chat .body .question {
  float: right;
  background-color: rgb(251, 246, 201);
  text-align: right;
  display: inline-block;
  max-width: 70%;
  color: var(--gris1);
}

.whatsapp-chat .body .ask-bot {
  background-color: white;
  max-width: 70%;
  color: var(--gris1);
  text-decoration: none !important;
}

.whatsapp-chat .body .ask:hover {
  filter: brightness(1.2);
}

.whatsapp-chat .body .ask.red {
  background-color: rgb(255 165 165);
}

.whatsapp-chat .body.next .ask {
  left: -600px;
}

.whatsapp-chat .body.in .ask {
  opacity: 0;
  left: 300px;
}

.whatsapp-chat .input-send {
  background-color: var(--blanco2);
  background-position: 95% center;
  background-size: 20px;
  border: none;
  border-radius: 0px;
  bottom: 0px;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  margin-bottom: 0px;
  padding: 10px 40px 10px 30px;
  position: absolute;
  width: calc(100% - 70px);
}

.whatsapp-chat .input-send:focus {
  outline: none;
}

.whatsapp-chat .btn-send {
  background-image: url("../img/send-icon.webp");
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-size: contain;
}

.whatsapp-chat .btn-send:hover {
  background-image: url("../img/send-icon.webp"), url("../img/send-icon.webp");
  cursor: pointer;
}

@media screen and (max-width: 1100px) {
  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-chat {
    left: auto;
    margin: 0 auto;
    position: fixed;
    top: auto;
    bottom: 100px;
    /* width: calc(100vw - 60px); */
    max-width: 300px;
    right: 30px;
  }

  .whatsapp-chat .send {
    width: calc(100% - 70px);
  }

}