/* All widget styles are scoped to avoid changing the WordPress theme. */
#rappel-immediat {
  --ri-width: 400px;
  --ri-gap: 24px;
  --ri-radius: 14px;
  position: fixed;
  right: max(var(--ri-gap), env(safe-area-inset-right));
  bottom: max(var(--ri-gap), env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  width: min(var(--ri-width), calc(100vw - 2 * var(--ri-gap)));
  max-width: calc(100vw - 2 * var(--ri-gap));
  color: var(--text-color, #1f2937);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: start;
  isolation: isolate;
  color-scheme: light;
}
#rappel-immediat, #rappel-immediat * { box-sizing: border-box; }
#rappel-immediat [hidden] { display: none !important; }
#rappel-immediat ::selection { background: #ccece7; color: #123b35; }
#rappel-immediat button, #rappel-immediat input { font: inherit; letter-spacing: normal; text-transform: none; }
#rappel-immediat button { appearance: none; margin: 0; cursor: pointer; }
#rappel-immediat button:focus-visible, #rappel-immediat input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#rappel-immediat[data-position="left"] { right: auto; left: max(var(--ri-gap), env(safe-area-inset-left)); flex-direction: row-reverse; }
#rappel-immediat.is-ready:not(.active) { width: auto; }
#rappel-immediat .rappel-immediat__callback-banner {
  display: flex;
  flex: 0 0 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  gap: 14px;
  width: 48px;
  min-height: 180px;
  max-height: min(360px, calc(100dvh - 2 * var(--ri-gap)));
  padding: 20px 12px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: var(--bg-color, #0f766e);
  color: var(--text-color, #ffffff);
  box-shadow: 0 6px 20px -8px rgb(15 23 42 / 25%);
  line-height: 1.4;
}
#rappel-immediat.is-ready:not(.active) .rappel-immediat__callback-banner { border-radius: 10px; }
#rappel-immediat[data-position="left"].active .rappel-immediat__callback-banner { border-radius: 0 10px 10px 0; }
#rappel-immediat .rappel-immediat__banner-label { writing-mode: vertical-rl; transform: rotate(180deg); overflow-wrap: anywhere; min-height: 0; overflow: hidden; font-size: 14px; font-weight: 600; }
#rappel-immediat .rappel-immediat__phone-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; transform: rotate(var(--ri-icon-rotation, 90deg)); }
#rappel-immediat .rappel-immediat__custom-icon { display: block; width: 24px; height: 24px; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: contain; }
#rappel-immediat .rappel-immediat__phone-symbol {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#rappel-immediat .rappel-immediat__container {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  gap: 24px;
  padding: 28px 24px;
  max-height: calc(100vh - 2 * var(--ri-gap));
  max-height: calc(100dvh - 2 * var(--ri-gap));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
  border-radius: var(--ri-radius) var(--ri-radius) var(--ri-radius) 0;
  background: var(--bg-color, #ffffff);
  color: var(--text-color, #1f2937);
  box-shadow: 0 12px 48px -12px rgb(15 23 42 / 26%);
}
#rappel-immediat[data-position="left"] .rappel-immediat__container { border-radius: var(--ri-radius) var(--ri-radius) 0 var(--ri-radius); }
#rappel-immediat .rappel-immediat__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; margin: -8px -12px -4px 0; }
#rappel-immediat .rappel-immediat__close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
#rappel-immediat .rappel-immediat__close:hover { background: rgb(128 128 128 / 12%); }
#rappel-immediat .rappel-immediat__title { margin: 0; color: inherit; font: 650 20px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.02em; overflow-wrap: anywhere; text-transform: none; text-align: start; }
#rappel-immediat .rappel-immediat__content { display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-width: 0; }
#rappel-immediat .rappel-immediat__image { display: block; flex: 0 1 auto; min-width: 0; width: auto; max-width: min(180px, calc(100% - 60px)); height: auto; max-height: 56px; object-fit: contain; object-position: left center; }
#rappel-immediat #rappel-immediat__form { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; margin: 0; }
#rappel-immediat label { display: block; margin: 0; color: inherit; font-size: 14px; line-height: 1.5; font-weight: 600; }
#rappel-immediat input[type="tel"] { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; margin: 0; border: 1px solid #81908e; border-radius: 8px; background: transparent; color: inherit; box-shadow: none; font-size: 16px; line-height: 1.5; caret-color: currentColor; }
#rappel-immediat input::placeholder { color: inherit; opacity: 0.75; }
#rappel-immediat input[aria-invalid="true"] { border-color: #b42318; }
#rappel-immediat .rappel-immediat__help { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: inherit; }
#rappel-immediat .rappel-immediat__button { display: block; width: 100%; min-height: 48px; height: auto; padding: 12px 16px; border: 0; border-radius: 8px; background: var(--bg-color, #0f766e); color: var(--text-color, #ffffff); font-size: 15px; line-height: 1.5; font-weight: 600; text-align: center; white-space: normal; overflow-wrap: anywhere; }
#rappel-immediat .rappel-immediat__button:hover, #rappel-immediat .rappel-immediat__callback-banner:hover { filter: brightness(0.94); }
#rappel-immediat .rappel-immediat__button:disabled { cursor: wait; opacity: 0.65; }
#rappel-immediat .rappel-immediat__closed-text { margin: 0; color: inherit; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
#rappel-immediat .rappel-immediat__form-message { margin: 0; padding: 12px; border-radius: 8px; background: #edf7f2; color: #185c42; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#rappel-immediat .rappel-immediat__form-message.error { background: #fff0ed; color: #9a281d; }
#rappel-immediat.is-ready.active .rappel-immediat__container { animation: ri-panel-in 180ms ease-out; }
@keyframes ri-panel-in { from { opacity: 0.7; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  #rappel-immediat, #rappel-immediat[data-position="left"] { --ri-gap: 12px; flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  #rappel-immediat .rappel-immediat__callback-banner { flex: 0 0 auto; flex-direction: row; gap: 10px; width: auto; max-width: 100%; min-height: 48px; max-height: 100px; overflow: auto; padding: 12px 18px; border-radius: 10px; }
  #rappel-immediat[data-position="left"] .rappel-immediat__callback-banner { align-self: flex-start; border-radius: 10px; }
  #rappel-immediat .rappel-immediat__banner-label { writing-mode: horizontal-tb; transform: none; font-size: 14px; }
  #rappel-immediat .rappel-immediat__container, #rappel-immediat[data-position="left"] .rappel-immediat__container { flex: 0 1 auto; border-radius: var(--ri-radius); padding: 24px 20px; max-height: calc(100vh - 138px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 138px - env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { #rappel-immediat.is-ready.active .rappel-immediat__container { animation: none; } }
@media print { #rappel-immediat { display: none; } }
