:root{--brand:#F7B144;--brand-dark:#E39A2B;--brown:#623A1C;--brown-dark:#4A2B14;--ink:#2A2A2A;--ink-soft:#3F3F3F;--sand-light:#FDF4E6;}
/* Chat WhatsApp-style */
.revet-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  font-family: inherit;
}

.revet-chat_toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.revet-chat_toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.revet-chat.is-open .revet-chat_toggle {
  display: none;
}

.revet-chat_panel {
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #ece5dd;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.revet-chat_panel[hidden] {
  display: none !important;
}

.revet-chat_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #075e54;
  color: #fff;
}

.revet-chat_header-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.revet-chat_header-status {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.revet-chat_close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.revet-chat_messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(rgba(236, 229, 221, 0.94), rgba(236, 229, 221, 0.94)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23d9d2cb' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}

.revet-chat_msg {
  display: flex;
  max-width: 88%;
}

.revet-chat_msg--bot {
  align-self: flex-start;
}

.revet-chat_msg--user {
  align-self: flex-end;
}

.revet-chat_bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.revet-chat_msg--bot .revet-chat_bubble {
  background: #fff;
  color: #111;
  border-top-left-radius: 4px;
}

.revet-chat_msg--user .revet-chat_bubble {
  background: #dcf8c6;
  color: #111;
  border-top-right-radius: 4px;
}

.revet-chat_input {
  padding: 10px;
  background: #f0f0f0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.revet-chat_form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.revet-chat_field {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  color: #111;
}

.revet-chat_send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.revet-chat_picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
}

.revet-chat_search {
  border-radius: 12px !important;
}

.revet-chat_options {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 160px;
}

.revet-chat_option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.revet-chat_option:hover {
  background: #f7f7f7;
}

.revet-chat_option-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #075e54;
  font-weight: 600;
}

.revet-chat_option-label {
  font-size: 14px;
  color: #111;
}

@media (max-width: 767px) {
  .revet-chat {
    right: 12px;
    bottom: 12px;
  }

  .revet-chat_panel {
    width: calc(100vw - 24px);
    height: min(70vh, 520px);
  }
}

.product-modal_order {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-modal_order .field,
.product-modal_order textarea {
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.product-modal_order .field::placeholder,
.product-modal_order textarea::placeholder {
  color: #888;
}

.product-modal_order label {
  color: #333;
}

.product-modal_order[hidden] {
  display: none !important;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.order-status,
.form-status {
  font-size: 14px;
  margin-top: 8px;
}

.order-status--success,
.form-status--success {
  color: #2e7d4f;
}

.order-status--error,
.form-status--error {
  color: #c0392b;
}

.order-status--pending,
.form-status--pending {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .product-modal_dialog {
    grid-template-columns: 1fr;
  }
}

/* Chat — bulles d'accroche flottantes à gauche du bouton */
.revet-chat_teasers {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 4px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: max-content;
  max-width: min(260px, calc(100vw - 150px));
  pointer-events: none;
}

.revet-chat_teasers.is-visible {
  display: flex;
}

.revet-chat.is-open .revet-chat_teasers {
  display: none;
}

.revet-chat_teaser {
  pointer-events: auto;
  position: relative;
  padding: 10px 14px;
  border: none;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
}

.revet-chat_teaser.is-in {
  opacity: 1;
  transform: none;
  animation: revetTeaserFloat 3.2s ease-in-out 0.4s infinite;
}

.revet-chat_teaser:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.revet-chat_teaser:last-child::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 8px;
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.revet-chat_teaser-close {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

@keyframes revetTeaserFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .revet-chat_teaser.is-in { animation: none; }
}

