.cx-widget.cx-theme-relax-light {
  color: #202020;
  background-color: #fdfdfd;
  scrollbar-face-color: #cccccc;
}
.cx-widget.cx-theme-relax-light .cx-theme {
  background-color: #fdfdfd;
  color: #202020;
  border-color: #dae1e8 !important;
}
.cx-widget.cx-theme-relax-light .cx-overlay {
  background-color: #fdfdfd;
}
.cx-widget.cx-theme-relax-light * {
  border-color: #dae1e8;
}

.cx-widget.cx-theme-relax-light a {
  color: #006f34;
  text-decoration: underline;
}
.cx-widget.cx-theme-relax-light a:hover {
  color: #00491f;
}
.cx-widget.cx-theme-relax-light .cx-icon-alert-circle {
  color: #f53131;
}
.cx-widget.cx-theme-relax-light .cx-form-control.cx-error {
  border-color: #f53131;
}
.cx-widget.cx-theme-relax-light .cx-form-control::placeholder {
  color: #727272 !important;
  font-size: 16px !important;
}
.cx-widget.cx-theme-relax-light .cx-form-control:-moz-placeholder {
  color: #727272;
}
.cx-widget.cx-theme-relax-light .cx-form-control::-moz-placeholder {
  color: #727272;
}
.cx-widget.cx-theme-relax-light .cx-form-control:-ms-input-placeholder {
  color: #727272;
}
.cx-widget.cx-theme-relax-light .cx-form-control::-webkit-input-placeholder {
  color: #727272;
}

.cx-widget.cx-theme-relax-light .cx-btn.cx-disabled {
  background: #cccccc;
}
.cx-widget.cx-theme-relax-light .cx-ac-dropdown-menu {
  background: #fdfdfd;
  border-color: #dae1e8 !important;
}
.cx-widget.cx-theme-relax-light .cx-ac-suggestion:hover,
.cx-widget.cx-theme-relax-light .cx-ac-suggestion.cx-active {
  background-color: #00491f;
  color: #fdfdfd;
}
.cx-widget.cx-theme-relax-light ::-webkit-scrollbar-thumb {
  background: #939399;
}
.cx-widget.cx-theme-relax-light .cx-smokescreen {
  background-color: #fdfdfd;
  opacity: 0.7;
}
.cx-widget.cx-theme-relax-light .cx-dialog-container .cx-dialog {
  background-color: #fdfdfd;
  border-color: #dae1e8 !important;
}
.cx-widget.cx-theme-relax-light .cx-theme-background {
  background-color: #fdfdfd;
}
.cx-widget.cx-theme-relax-light .cx-theme-border {
  border: 1px solid #dae1e8 !important;
}
.cx-widget.cx-theme-relax-light .cx-theme-text {
  color: #444a52;
}
.cx-widget.cx-theme-relax-light .cx-theme-icon-interactive1 svg .cx-svg-icon-tone1 {
  fill: #5081e1;
}
.cx-widget.cx-theme-relax-light .cx-theme-icon-positive svg .cx-svg-icon-tone1 {
  fill: #34a84f;
}
.cx-widget.cx-theme-relax-light .cx-theme-icon-negative svg .cx-svg-icon-tone1 {
  fill: #f53131;
}
.cx-widget.cx-theme-relax-light .cx-theme-icon-warning svg .cx-svg-icon-tone1 {
  fill: #d47f2f;
}
.cx-widget.cx-theme-relax-light .cx-warning {
  color: #f53131 !important;
}
.cx-widget.cx-theme-relax-light .cx-warning .cx-icon svg * {
  fill: #f53131 !important;
}
.cx-widget.cx-theme-relax-light .cx-countdown {
  color: #444a52;
}
.cx-widget.cx-theme-relax-light .cx-countdown .cx-icon svg * {
  fill: #444a52;
}
.cx-widget.cx-theme-relax-light .cx-loading-screen .cx-loading-icon svg g g,
.cx-widget.cx-theme-relax-light .cx-loading-container .cx-loading-icon svg g g {
  stroke: #2b74ff;
}
.cx-widget.cx-theme-relax-light .cx-loading-screen .cx-loading-icon svg g:first-child g,
.cx-widget.cx-theme-relax-light .cx-loading-container .cx-loading-icon svg g:first-child g {
  stroke: #72799d;
}
/* //////////////////// EDITED CLASS LIST /////////////////////// */
/* ////////////////////////////////////////////////////////////// */
.cx-widget.cx-webchat {
  font-family: 'Roboto';
  width: 388px;
  max-height: 486px;
}

/* Classi inerenti ai messaggi bot */
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-bot.cx-Bot .cx-bubble {
  width: 256px;
  background-color: #e4ebf4;
  padding: 6px 16px !important;
  border-radius: 10px !important;
  color: #202020 !important;
  display: inline-block;
}

.cx-webchat div.cx-input-container .cx-message-input {
  font-size: 16px !important;
}
.cx-webchat
  .cx-transcript
  .cx-message-group
  > .cx-message.cx-participant.cx-bot.cx-them:first-child
  .cx-avatar-wrapper {
  display: none !important;
}
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-bot:last-child .cx-bubble {
  margin: 0;
}
.cx-webchat
  .cx-transcript
  .cx-message-group
  > .cx-message.cx-participant.cx-bot:last-child
  .cx-bubble
  > .cx-message-text {
  color: #202020;
  font-size: 16px;
}

.cx-webchat
  .cx-transcript
  .cx-message-group
  > .cx-message.cx-participant.cx-bot:last-child
  .cx-bubble
  > .cx-time {
  color: #202020 !important;
  margin: 0;
}
/* Classi inerenti ai messaggi dell'operatore */
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-agent {
  outline: none;
  margin-bottom: 14px !important;
  min-height: 42px;
}

.cx-webchat .cx-transcript > .cx-agent-typing {
  display: none;
}

.cx-widget.cx-theme-relax-light .cx-agent > .cx-bubble {
  width: 256px;
  background-color: #e4ebf4;
  color: #202020;
}

.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-agent:last-child .cx-bubble {
  border-radius: 10px !important;
  border-bottom-left-radius: 0px !important;
  display: inline-block !important;
}

.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-agent:first-child .cx-bubble {
  border-radius: 10px !important;
  border-bottom-left-radius: 0px !important;
}
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-agent .cx-bubble {
  border-radius: 10px !important;
  border-bottom-left-radius: 0px !important;
  margin: 0 !important;
}

.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-agent:first-child .cx-name {
  display: none !important;
}

.cx-webchat .cx-transcript .cx-message.cx-agent .cx-time {
  text-align: end;
  /* color: #ffffff; */
}

/* testo contenuto nelle box messaggi */
/* .cx-webchat .cx-transcript .cx-message.cx-agent .cx-message-text {
  color: #ffffff;
} */
.cx-webchat .cx-transcript .cx-message.cx-agent .cx-avatar {
  display: none;
}
/* Classi box messaggi utente */
/* ------------------------------------ */
.cx-widget.cx-theme-relax-light .cx-you > .cx-bubble {
  background-color: #e4ebf4;
  width: 205px;
  min-height: 42px;
}
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-you {
  margin-bottom: 14px !important;
  display: flex;
  width: 100%;
  flex-direction: row-reverse;
}
/* Nasconde il nome dell'utente nella chat */
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-you:first-child .cx-name,
.cx-webchat
  .cx-transcript
  .cx-message-group
  > .cx-message.cx-participant.cx-them:first-child
  .cx-avatar-wrapper {
  display: none !important;
}
/* Nasconde icona accanto alle box dei messaggi inviati */
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant:first-child .cx-bubble-arrow svg {
  display: none;
}
.cx-webchat .cx-transcript .cx-message-group .cx-message.cx-system {
  display: none !important;
}
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-you {
  outline: none;
  min-height: 42px;
}
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant .cx-bubble,
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-you:first-child .cx-bubble,
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant:last-child .cx-bubble,
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant:last-child .cx-bubble,
.cx-webchat .cx-transcript .cx-message-group > .cx-message.cx-participant.cx-you:last-child .cx-bubble {
  border-radius: 10px !important;
  border-bottom-right-radius: 0px !important;
  padding: 12px 16px !important;
  padding-bottom: 8px !important;
  height: 100%;
}
/* Orario nella box messaggi */
.cx-webchat .cx-transcript .cx-message .cx-time {
  text-align: end;
  color: #202020;
  line-height: 0.92em;
  margin-bottom: 0px !important;
}

/* testo contenuto nelle box messaggi */
.cx-webchat .cx-transcript .cx-message .cx-message-text {
  color: #202020;
}

.cx-widget.cx-theme-relax-light .cx-send.cx-icon svg * {
  fill: #202020 !important;
}
.cx-widget.cx-theme-relax-light .cx-footer .cx-powered-by {
  display: none;
}

.cx-widget .cx-webchat {
  border-radius: 50px;
  background-color: #f0f0f0;
  border-radius: 20px !important;
}
/* classi titlebar */
/* -------------- */
.cx-common-container .cx-titlebar {
  background-color: #006f34 !important;
  height: 53px;
  border-radius: 20px 20px 0px 0px;
  padding: 14px 16px !important;
  display: flex;
  border: 3px solid white !important;
}
.cx-widget.cx-theme-relax-light .cx-titlebar .cx-title {
  color: #fdfdfd !important;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
}
.cx-widget.cx-theme-relax-light .cx-titlebar .cx-title:before {
  display: inline;
  content: url('./icon-cloud-sms-assistenza.svg');
  margin-right: 12px;
  margin-top: 8px;
}
/* Icona di chiusura "X" */
.cx-widget.cx-theme-relax-light .cx-buttons-window-control .cx-svg-icon-tone1 {
  fill: #fdfdfd;
}
.cx-widget.cx-theme-relax-light .cx-buttons-window-control svg {
  width: 8px;
  height: 8px;
}
/* Iona "-" minimizza chat */
.cx-widget.cx-theme-relax-light .cx-input-icon-overlay .cx-svg-icon-tone1 {
  fill: #fdfdfd;
}
.cx-widget.cx-theme-relax-light .cx-input-icon-overlay svg {
  width: 8px;
  height: 8px;
}

.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-minimize:focus,
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-maximize:focus,
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-close:focus {
  border: 0px solid transparent !important;
}
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-close svg,
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-minimize svg,
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-button-maximize svg {
  width: 14px;
  height: 14px;
  margin-top: 7px;
}

/* Icona  nuvoletta chat a sinistra titlebar*/
.cx-common-container .cx-titlebar > .cx-icon {
  display: none;
}
.cx-widget.cx-theme-relax-light .cx-svg-icon-tone1 {
  fill: #fdfdfd;
}

/* classi input */
/* ------------ */
/* Struttura generale degli input */
.cx-widget.cx-theme-relax-light .cx-form-control {
  background-color: #444a52;
  color: #fdfdfd;
  color: #222;
  font-size: 16px;
  background-color: white;
  border: 1px solid #727272;
  border-radius: 2px;
  height: 40px;
  line-height: 1;
  max-width: 350px;
  margin-bottom: 25px;
  transition: border 0.3s ease-in-out;
}

.cx-widget.cx-theme-relax-light .cx-form-control + p.error {
  visibility: hidden;
  margin-top: -25px;
  margin-left: 5px;
  color: #ff3333;
  font-size: smaller;
}
.cx-widget.cx-theme-relax-light .cx-form-control.cx-error + p.error {
  visibility: visible;
}

/* Classi per input checkbox */
.cx-webchat input[type='checkbox'] {
  padding: 8px !important;
  border-radius: 5px !important;
  outline: none !important;
}
.cx-widget input[type='checkbox'].cx-form-control {
  margin-bottom: 20px !important;
  border: solid 1px #d4d7d9 !important;
}
.cx-widget.cx-theme-relax-light input[type='checkbox'].cx-form-control:not(.cx-error):focus {
  border: 1px solid #006f34 !important;
}

.cx-webchat input[type='checkbox']:checked {
  background: #00491f !important;
}
.cx-widget input[type='checkbox'].cx-form-control:focus {
  border-color: transparent !important;
}

/* Bottone "Annulla" form inizia chat */
.cx-widget.cx-theme-relax-light .cx-form .cx-btn-default {
  display: none;
}
/* Bottone inizia chat */
.cx-widget.cx-theme-relax-light .cx-form .cx-btn-primary {
  width: fit-content;
}
.cx-widget.cx-theme-relax-light .cx-btn-primary {
  color: #fdfdfd;
  outline: none;
  border-color: #006f34 !important;
  background: #006f34;
  height: 51px;
  font-size: 14px;
  border-radius: 30px;
  box-shadow: 0px 3px 10px #0000001a;
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
  /* text-transform: uppercase; */
  /*   background: -moz-linear-gradient(top, #5081e1 0%, #4375d6 100%);
    background: -webkit-linear-gradient(top, #5081e1 0%, #4375d6 100%);
    background: linear-gradient(to bottom, #5081e1 0%, #4375d6 100%); */
  /* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@bg_color_4',endColorstr='@bg_color_5',GradientType=0); */
}
.cx-widget.cx-theme-relax-light .cx-btn-primary:hover {
  /* color: #fdfdfd; */
  /* outline: none; */
  border-color: #00491f !important;
  background: #00491f;
}

/* Bottone Nega chiusura chat */
.cx-widget.cx-theme-relax-light .cx-btn-default {
  background-color: #fdfdfd !important;
  color: #006f34 !important;
  border: 3px solid #006f34 !important;
  height: 46px !important;
  font-size: 14px;
  border-radius: 30px;
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.cx-widget.cx-theme-relax-light .cx-btn-default:hover {
  color: #fdfdfd !important;
  outline: none;
  border-color: #00491f !important;
  background: #00491f !important;
}
.cx-widget.cx-theme-relax-light .cx-button-group button.cx-close-cancel:focus {
  border: 0px solid transparent !important;
}

.cx-widget.cx-theme-relax .cx-btn:focus,
.cx-widget.cx-theme-relax .cx-button-group button:focus {
  border-color: transparent !important;
}
.cx-widget.cx-theme-relax-light .cx-buttons-window-control .cx-icon {
  outline: none;
}

.cx-body .cx-form-wrapper {
  height: 380px !important;
  overflow: hidden !important;
}

/* Finestra di conferma chiusura chat al click su "X" */
.cx-webchat .cx-alert > .cx-wrapper {
  height: 380px;
  border-width: 0px !important;
  margin: 10px !important;
  border-radius: 17px;
}
.cx-webchat .cx-alert > .cx-wrapper > #cx_chat_confirm_close {
  padding-top: 80px !important;
  text-align: center;
  font-weight: 600;
  color: #222222;
  margin-bottom: 28px;
}
.cx-webchat .cx-alert > .cx-wrapper > #cx_chat_confirm_close:before {
  text-align: center;
  display: block;
  content: url('./icon-alert-chat.svg');
  margin-bottom: 10px;
}
.cx-webchat .cx-alert > .cx-wrapper > #cx_chat_end_question {
  padding-top: 80px !important;
  text-align: center;
  font-weight: 600;
  color: #222222;
  /* margin-bottom: 28px; */
}
.cx-webchat .cx-alert > .cx-wrapper > #cx_chat_end_question:before {
  text-align: center;
  display: block;
  content: url('./icon-alert-chat.svg');
  margin-bottom: 10px;
}
.cx-widget.cx-theme-relax-light .cx-smokescreen {
  opacity: 0;
}

.cx-webchat .cx-alert > .cx-wrapper .cx-buttons-binary {
  /* margin: 0 15px; */
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.cx-webchat .cx-alert > .cx-wrapper .cx-buttons-binary button {
  width: 148px;
  height: 51px;
  padding: 0px;
}
/* css input  */
.cx-widget.cx-theme-relax-light input:focus,
.cx-widget.cx-theme-relax-light textarea:focus,
.cx-widget.cx-theme-relax-light .cx-form-control:not(.cx-error):focus {
  border: 1px solid #006f34 !important;
}

.cx-widget.cx-theme-relax-light input:hover,
.cx-widget.cx-theme-relax-light .cx-form-control:not(.cx-error):hover {
  border: 1px solid #006f34;
}
/* INPUT TEXT AREA CHAT STARTED */
.cx-webchat div.cx-input-container {
  border-width: 0px !important;
  border-style: none !important;
  padding: 5px 10px !important;
}

.cx-input-container .cx-textarea-cell {
  border-radius: 10px;
  padding: 10px !important;
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cx-input-container .cx-textarea-cell:focus {
  border: 1px solid #006f34;
}

.cx-input-container .cx-textarea-cell textarea#cx_input:focus {
  border: 0px solid transparent !important;
}
.cx-input-container .cx-textarea-cell textarea:hover {
  border: 0px solid transparent;
}

.cx-webchat .cx-send {
  padding-top: 6px;
  margin-right: 10px;
}
.cx-webchat .cx-send svg {
  height: 22px;
  width: 22px;
}

.cx-form-inputs {
  background-color: #ffffff;
  border-radius: 17px !important;
  padding: 13px;
  height: 292px;
  overflow: auto;

  /* margin-bottom: 10px; */
}
.cx-form-inputs .input-container-custom {
  display: flex;
  flex-direction: column;
  gap: 43px;
}
.cx-webchat .cx-form {
  padding: 0px !important;
}

.cx-footer {
  display: none !important;
}

.thankYouContainer {
  border-radius: 17px;
  display: flex;
  font-family: 'Montserrat';
  background-color: #ffffff;
  /* margin: 10px; */
  flex-direction: column;
  justify-content: center;
  height: 380px !important;
  align-items: center;
  text-align: center;
  gap: 4px;
  font-size: 16px;
}

.thankYouContainer .title {
  font-weight: 600;
}

.cx-container {
  background-color: #f0f0f0 !important;
  height: 380px !important;
  padding: 0 !important;
  border-radius: 17px !important;
}

.cx-body {
  background-color: #ffffff;
  border-radius: 17px;
  /* height: fit-content; */
  height: 380px;
  margin: 10px;
}
/* .cx-transcript {
  background-color: #ffffff;
  border-radius: 17px;
  margin: 10px 10px 0px 10px;
}

.cx-input-container {
  background-color: #ffffff;
  border-radius: 17px;
  padding: 0px 0px 0px 10px;
} */

.cx-input-container .cx-textarea-cell {
  padding: 5px;
  border-radius: 17px;
  min-height: 40px;
  height: 100%;
}
.cx-input-container .cx-textarea-cell .cx-send {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.cx-message-input {
  margin-bottom: 0 !important;
  font-size: 16px;
  /* height: 100% !important; */
}

.cx-widget.cx-desktop .cx-input-focus {
  box-shadow: none !important;
}

.cx-webchat .cx-alert {
  position: relative !important;
}

#chat_descrizione {
  padding: 4px 16px !important;
}

.cx-widget label {
  color: #202020 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.cx-webchat .cx-form .cx-button-group {
  padding: 10px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
