#rappel-immediat {
  display: flex;
  align-items: stretch;
  right: -312px;
  top: 175px;
  z-index: 1010;
  width: 350px;
  position: fixed;
  box-sizing: content-box;
  overflow: hidden;
  border-radius: 10px;
  transition: all ease 0.5s;
  background-color: var(--bg-color);
  text-wrap: balance;
}

#rappel-immediat.shown {
  right: 0;
}

#rappel-immediat p.rappel-immediat__closed-text {
  text-align: left;
  margin-inline: 15px;
  line-height: 1.3;
}

#rappel-immediat.active {
  right: 15px;
  box-shadow: 0 0 10px rgba(50, 50, 50, 0.2);
  transition: all ease 0.5s;
}

.rappel-immediat__callback-banner {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  font-size: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease 0s;
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
  box-sizing: border-box;
  user-select: none;
}

.rappel-immediat__callback-banner > p {
  margin: 0;
  padding: 15px 5px;
  writing-mode: vertical-lr;
  rotate: 180deg;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.rappel-immediat__container {
  min-height: 180px;
  box-sizing: border-box;
  padding-block: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all ease 1s;
  color: var(--text-color);
  flex-grow: 1;
  position: relative;
  gap: 20px;
}

.rappel-immediat__title {
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  margin: 0;
  padding: 0;
}

.rappel-immediat__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 10px;
  gap: 10px;
}

.rappel-immediat__image {
  height: auto;
  object-fit: contain;
}

#rappel-immediat__form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

#rappel-immediat label {
  font-size: 0.7rem;
  line-height: 1.3rem;
}

#rappel-immediat input {
  height: 30px;
  border: 1px solid var(--text-color);
  border-radius: 5px;
  color: var(--text-color);
  padding: 0;
  padding-left: 10px;
  margin: 0;
  width: 150px;
  font-size: 1rem;
  background: none;
}

#rappel-immediat input::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

#rappel-immediat button {
  padding: 5px 15px;
  text-transform: uppercase;
  transition: all 0.3s ease-out;
  font-size: 10px;
  line-height: 18px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background-color: var(--bg-color);
  color: var(--text-color);
}

#rappel-immediat button:hover,
#rappel-immediat button:active,
#rappel-immediat button:focus {
  transform: scale(1.05);
}

#rappel-immediat button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.rappel-immediat__form-message {
  padding: 15px;
  border-radius: 15px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translate(-50%, -2%);
  z-index: 1000;
  width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rappel-immediat__form-message.error {
  background: rgb(174, 38, 38);
  color: #fff;
}
