/* 312 FAQ I: the WhatsApp chat widget in dark mode, brand red. Copy of the 311 css with the dark palette, a marker headline and a diagonal bottom edge. Session 101. */
/* 311 FAQ H: orange light-mode chat widget (messaging-app style FAQ). Session 101.
   Brand orange #c2410c (white text 5.2:1), bubbles: lead = light orange on the RIGHT, owner = white on the LEFT with his photo. */
.c-wad { direction: rtl; font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; letter-spacing: 0; overflow: clip; background: #fff; color: #14202f; }
.c-wad :where(h2, p) { margin: 0; padding: 0; }
.c-wad__sec { position: relative; display: flex; flex-direction: column; align-items: center; padding: 56px 16px calc(40px + clamp(40px, 7vw, 96px)); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(40px, 7vw, 96px))); background: radial-gradient(60% 40% at 88% 0%, rgba(220, 38, 38, .22), transparent 72%), radial-gradient(55% 40% at 6% 100%, rgba(220, 38, 38, .16), transparent 72%), #0f0f12; text-align: center; }
.c-wad__h { font-size: clamp(28px, 7.4vw, 36px); line-height: 1.18; text-wrap: balance; color: #fff; }
.c-wad__thin { display: block; font-weight: 300; }
.c-wad__key { position: relative; isolation: isolate; display: inline-block; margin-top: 4px; padding: 0 10px; font-weight: 900; color: #fff; }
.c-wad__key::after { content: ""; position: absolute; z-index: -1; inset-inline: -4px; bottom: 5px; height: .46em; border-radius: 5px; background: #dc2626; }
/* the widget */
.c-wad__phone { box-sizing: border-box; display: flex; flex-direction: column; width: min(480px, 100%); margin-top: 36px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 30px; background: #17181c; box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4); text-align: start; }
.c-wad__top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(135deg, #b91c1c, #7f1d1d); color: #fff; }
.c-wad__av { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #fca5a5; box-sizing: border-box; }
.c-wad__av img { position: absolute; max-width: none; width: 287.5%; height: auto; left: -14.3%; top: -89.3%; }
.c-wad__av--s { width: 36px; height: 36px; border-width: 2px; }
.c-wad__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-wad__name { font-size: 19px; font-weight: 800; line-height: 1.2; }
.c-wad__status { font-size: 15px; font-weight: 500; line-height: 1.2; color: #ffe7d6; }
.c-wad__status.is-typing { color: #fff; font-weight: 700; }
.c-wad__log { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-height: 140px; max-height: 300px; padding: 12px 12px 14px; overflow-y: auto; overscroll-behavior: contain; background: #1c1d22 url(../assets/chat-doodle-red-dark.svg) center top / 360px 360px repeat; }
.c-wad__day { align-self: center; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; color: #d4d4d8; }
.c-wad__row { display: flex; align-items: flex-end; gap: 8px; animation: wadPop .28s ease-out both; }
.c-wad__row--out { justify-content: flex-start; }
.c-wad__row--in { justify-content: flex-end; }
.c-wad__b { box-sizing: border-box; max-width: min(82%, 640px); padding: 10px 14px 8px; box-shadow: 0 1px 2px rgba(60, 25, 5, .18); }
.c-wad__b--in { border-radius: 18px 18px 18px 4px; background: #2a2b31; }
.c-wad__b--out { border-radius: 18px 18px 4px 18px; background: #7f1d1d; }
.c-wad__b p { font-size: 17px; line-height: 1.5; color: #f4f4f5; }
.c-wad__b--out p { color: #fff; }
.c-wad__meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 2px; font-size: 13px; line-height: 1; color: #a1a1aa; }
.c-wad__ticks { display: block; width: 18px; height: 18px; background: #71717a; -webkit-mask: url(../assets/icons/ph-checks-bold.svg) center / contain no-repeat; mask: url(../assets/icons/ph-checks-bold.svg) center / contain no-repeat; transition: background .3s; }
.c-wad__b--out.is-read .c-wad__ticks { background: #38bdf8; }
.c-wad__dots { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 4px; }
.c-wad__dots i { width: 8px; height: 8px; border-radius: 50%; background: #a1a1aa; animation: wadDot 1.1s infinite ease-in-out both; }
.c-wad__dots i:nth-child(2) { animation-delay: .16s; }
.c-wad__dots i:nth-child(3) { animation-delay: .32s; }
@keyframes wadDot { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-6px); opacity: 1; } }
@keyframes wadPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
/* dock with the quick replies */
.c-wad__dock { padding: 14px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); background: #17181c; }
.c-wad__hint { margin-bottom: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #d4d4d8; text-align: center; }
.c-wad__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.c-wad__chip { min-height: 44px; padding: 9px 18px; border: 2px solid #ef4444; border-radius: 999px; background: transparent; color: #fecaca; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .2s, transform .2s, opacity .2s; }
.c-wad__chip:hover { background: rgba(239, 68, 68, .18); }
.c-wad__chip:active { transform: scale(.97); }
.c-wad__chip:focus-visible, .c-wad__reset:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.c-wad__chip.is-gone { opacity: 0; transform: scale(.8); }
.c-wad__chips.is-busy .c-wad__chip { opacity: .5; cursor: progress; }
.c-wad__reset { min-height: 44px; padding: 9px 22px; border: 0; border-radius: 999px; background: #b91c1c; color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .c-wad__row { animation: none; } .c-wad__dots i { animation: none; opacity: .8; } }
@media (min-width: 900px) {
  .c-wad__sec { padding: 104px 32px calc(72px + clamp(40px, 7vw, 96px)); }
  .c-wad__h { font-size: clamp(38px, 3.3vw, 52px); }
  .c-wad__phone { width: min(680px, 100%); margin-top: 52px; border-radius: 36px; }
  .c-wad__top { gap: 16px; padding: 18px 24px; }
  .c-wad__av { width: 56px; height: 56px; }
  .c-wad__av--s { width: 40px; height: 40px; }
  .c-wad__name { font-size: 21px; }
  .c-wad__status { font-size: 16px; }
  .c-wad__log { gap: 12px; min-height: 150px; max-height: 330px; padding: 16px 20px 18px; }
  .c-wad__b { padding: 12px 18px 9px; }
  .c-wad__b p { font-size: 19px; }
  .c-wad__dock { padding: 18px 20px 20px; }
  .c-wad__hint { font-size: 16px; margin-bottom: 12px; }
  .c-wad__chip { padding: 10px 22px; font-size: 18px; }
}
@media (min-width: 1100px) { .c-wad__phone { width: min(1000px, 100%); } .c-wad__log { max-height: 340px; padding-inline: 28px; } .c-wad__dock { padding: 20px 28px 24px; } .c-wad__chip { padding: 11px 26px; } }
@media (min-width: 700px) and (max-width: 899px) { .c-wad__phone { width: min(600px, 100%); } }
