
/* ============================================================
   YAWIS · People Success
   Isolated styles: does not change the existing landing page.
   ============================================================ */

#yawis-people-root,
#yawis-people-root * {
  box-sizing: border-box;
}

#yawis-people-root {
  --yp-navy: #0B2545;
  --yp-blue: #196680;
  --yp-aqua: #27C3C8;
  --yp-muted: #64748B;
  --yp-border: #E5EBF0;
  --yp-soft: #F8FAFC;
  --yp-icon-bg: #C1EEF1;
  --yp-green: #25D366;
  --yp-white: #FFFFFF;
  font-family: "Poppins", sans-serif;
}

.yawis-people-widget {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 99999;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.yawis-people-panel {
  width: 386px;
  max-width: calc(100vw - 32px);
  background: var(--yp-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(11, 37, 69, .22), 0 4px 14px rgba(11, 37, 69, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.965);
  transform-origin: right bottom;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
  pointer-events: none;
}

.yawis-people-widget.is-open .yawis-people-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.yawis-people-header {
  height: 122px;
  padding: 16px 20px 0 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: linear-gradient(100deg, #196680 0%, #22BEBF 100%);
}

.yawis-people-hero-bot {
  width: 112px;
  height: 112px;
  object-fit: contain;
  object-position: bottom;
  flex: 0 0 auto;
  margin-right: 6px;
}

.yawis-people-header-copy {
  color: white;
  padding-bottom: 24px;
  min-width: 0;
}

.yawis-people-header-copy h3 {
  margin: 0 0 3px 0;
  padding: 0;
  width: auto;
  color: white !important;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.yawis-people-header-copy p {
  margin: 0;
  color: rgba(255,255,255,.92) !important;
  font-size: 14px;
  line-height: 1.35;
}

.yawis-people-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  color: white;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  padding: 0;
}

.yawis-people-close:hover {
  transform: scale(1.07);
  background: rgba(255,255,255,.38);
}

.yawis-people-body {
  padding: 36px 20px 62px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
}

.yawis-people-card {
  width: 100%;
  min-height: 88px;
  border: 1.5px solid var(--yp-border);
  border-radius: 16px;
  background: white;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  color: inherit;
  font: inherit;
}

.yawis-people-card:hover {
  transform: translateY(-2px);
  border-color: #C7DDE4;
  box-shadow: 0 8px 22px rgba(25,102,128,.10);
  background: #FCFEFF;
}

.yawis-people-card:focus {
  outline: none;
}
.yawis-people-card:focus-visible {
  outline: 3px solid rgba(34,190,191,.28);
  outline-offset: 2px;
}

.yawis-people-iconbox {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--yp-icon-bg);
  display: grid;
  place-items: center;
  flex: 0 0 46px;
}

.yawis-people-iconbox img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.yawis-people-card-copy {
  min-width: 0;
  flex: 1;
}

.yawis-people-card-title {
  color: var(--yp-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.yawis-people-card-desc {
  color: var(--yp-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

.yawis-people-arrow {
  color: #94A3B8;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.yawis-people-footer {
  min-height: 64px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--yp-border);
  background: var(--yp-soft);
}

.yawis-people-footer img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 32px;
}

.yawis-people-footer span {
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
}

.yawis-people-footer strong {
  color: var(--yp-green);
  font-weight: 700;
}

.yawis-people-trigger {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.yawis-people-trigger-label {
  background: white;
  color: var(--yp-navy);
  border: 1.5px solid #57B9DC;
  border-radius: 999px;
  padding: 12px 21px;
  box-shadow: 0 8px 24px rgba(11,37,69,.14);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.yawis-people-trigger:hover .yawis-people-trigger-label {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11,37,69,.18);
}

.yawis-people-trigger-orb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.yawis-people-trigger-robot {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition: opacity .2s ease, transform .22s ease;
  filter: drop-shadow(0 6px 12px rgba(25,102,128,.24));
  animation: yawisPeopleFloat 3.4s ease-in-out infinite;
}

.yawis-people-trigger-x {
  position: absolute;
  inset: 0;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(145deg,#22BEBF,#196680);
  color: white;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 500;
  opacity: 0;
  transform: scale(.72) rotate(-16deg);
  transition: opacity .2s ease, transform .22s ease;
  box-shadow: 0 10px 26px rgba(25,102,128,.28);
}

.yawis-people-widget.is-open .yawis-people-trigger-robot {
  opacity: 0;
  transform: scale(.72);
  animation: none;
}

.yawis-people-widget.is-open .yawis-people-trigger-x {
  opacity: 1;
  transform: scale(1) rotate(0);
}

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

/* Mobile / tablet */
@media (max-width: 767px) {
  .yawis-people-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
    gap: 10px;
  }

  .yawis-people-panel {
    width: min(386px, calc(100vw - 24px));
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .yawis-people-header {
    height: 108px;
    padding: 12px 16px 0;
  }

  .yawis-people-hero-bot {
    width: 96px;
    height: 96px;
  }

  .yawis-people-header-copy {
    padding-bottom: 20px;
  }

  .yawis-people-header-copy h3 {
    font-size: 20px;
  }

  .yawis-people-header-copy p {
    font-size: 13px;
  }

  .yawis-people-body {
    padding: 24px 14px 40px;
    gap: 10px;
  }

  .yawis-people-card {
    min-height: 80px;
    padding: 12px;
    gap: 12px;
  }

  .yawis-people-iconbox {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .yawis-people-card-title {
    font-size: 14px;
  }

  .yawis-people-card-desc {
    font-size: 12px;
  }

  .yawis-people-footer {
    padding: 12px 14px;
    min-height: 58px;
  }

  .yawis-people-footer span {
    font-size: 12px;
  }

  .yawis-people-trigger-orb,
  .yawis-people-trigger-robot,
  .yawis-people-trigger-x {
    width: 72px;
    height: 72px;
  }

  .yawis-people-trigger-orb {
    flex-basis: 72px;
  }

  .yawis-people-trigger-label {
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media (max-width: 360px), (max-height: 640px) {
  .yawis-people-panel {
    max-height: calc(100dvh - 92px);
  }

  .yawis-people-header {
    height: 96px;
  }

  .yawis-people-hero-bot {
    width: 84px;
    height: 84px;
  }

  .yawis-people-body {
    padding: 18px 12px 24px;
  }

  .yawis-people-card {
    min-height: 70px;
    padding: 10px;
  }

  .yawis-people-trigger-label {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yawis-people-panel,
  .yawis-people-card,
  .yawis-people-trigger-robot,
  .yawis-people-trigger-x,
  .yawis-people-trigger-label {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================================
   PEOPLE SUCCESS — FIGMA FINAL
   Same YAWIS component structure/behavior; People Success skin.
   ============================================================ */

.yawis-people-panel {
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: 24px;
}

.yawis-people-header {
  min-height: 120px;
  padding: 24px 24px 0 24px;
  background: linear-gradient(110deg, #196680 0%, #22B8BD 100%);
}

.yawis-people-header-bot {
  width: 116px;
  height: 116px;
  object-fit: contain;
  object-position: bottom;
  align-self: flex-end;
}

.yawis-people-header-copy {
  padding-bottom: 22px;
  min-width: 0;
}

.yawis-people-header-copy h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.yawis-people-header-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.yawis-people-body {
  padding: 36px 20px 56px;
  gap: 10px;
  background: #fff;
}

.yawis-people-card {
  min-height: 88px;
  padding: 14px;
  gap: 14px;
  border: 1.5px solid #E8ECF0;
  border-radius: 16px;
  align-items: center;
}

.yawis-people-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
}

.yawis-people-card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.yawis-people-card-title {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.yawis-people-card-desc {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.yawis-people-arrow {
  flex: 0 0 auto;
  margin-left: 4px;
}

.yawis-people-footer {
  min-height: 64px;
  padding: 16px 20px;
}

@media (max-width: 767px) {
  .yawis-people-widget {
    right: 12px;
    bottom: 14px;
  }

  .yawis-people-panel {
    width: min(380px, calc(100vw - 24px));
    max-height: calc(100dvh - 108px);
  }

  .yawis-people-header {
    min-height: 112px;
    padding: 18px 18px 0;
  }

  .yawis-people-header-bot {
    width: 108px;
    height: 108px;
  }

  .yawis-people-header-copy {
    padding-bottom: 18px;
  }

  .yawis-people-header-copy h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .yawis-people-body {
    padding: 26px 14px 36px;
    gap: 10px;
  }

  .yawis-people-card {
    min-height: 78px;
    padding: 12px;
    gap: 12px;
  }

  .yawis-people-footer {
    padding: 14px;
  }
}

@media (max-width: 360px), (max-height: 640px) {
  .yawis-people-panel {
    max-height: calc(100dvh - 92px);
  }

  .yawis-people-header {
    min-height: 96px;
    padding: 12px 14px 0;
  }

  .yawis-people-header-bot {
    width: 92px;
    height: 92px;
  }

  .yawis-people-header-copy {
    padding-bottom: 14px;
  }

  .yawis-people-header-copy h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .yawis-people-body {
    padding: 18px 12px 24px;
    gap: 8px;
  }

  .yawis-people-card {
    min-height: 70px;
    padding: 10px 12px;
  }

  .yawis-people-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .yawis-people-footer {
    min-height: 56px;
    padding: 12px;
  }
}


/* ============================================================
   YAWIS People Success v3 — correct icons + typography breathing
   Only affects the chatbot component.
   ============================================================ */

.yawis-people-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.yawis-people-title-row h3 {
  margin: 0 !important;
  white-space: nowrap;
}

.yawis-people-title-icon {
  width: 22px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.yawis-people-header-copy {
  padding-left: 2px;
}

.yawis-people-header-copy p {
  margin-top: 5px !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

.yawis-people-card {
  padding: 16px 14px !important;
  gap: 14px !important;
}

.yawis-people-card-copy {
  gap: 5px !important;
  padding-right: 4px;
}

.yawis-people-card-title {
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

.yawis-people-card-desc {
  letter-spacing: 0 !important;
  line-height: 1.55 !important;
}

.yawis-people-footer span {
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

@media (max-width: 767px) {
  .yawis-people-title-row {
    gap: 6px;
  }

  .yawis-people-title-icon {
    width: 20px;
    height: 26px;
  }

  .yawis-people-card {
    padding: 14px 12px !important;
  }

  .yawis-people-card-copy {
    gap: 4px !important;
  }
}

/* ============================================================
   YAWIS People Success v5 — compact laptop sizing aligned with
   approved YAWI v11. Open panel is smaller; launcher keeps the
   slightly larger approved closed-state proportion.
   ============================================================ */
@media (min-width: 521px) {
  #yawis-people-root .yawis-people-widget {
    right: 22px;
    bottom: 18px;
    gap: 12px;
  }

  #yawis-people-root .yawis-people-panel {
    width: 350px;
    max-width: calc(100vw - 28px);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(11,37,69,.16), 0 4px 12px rgba(11,37,69,.07);
  }

  #yawis-people-root .yawis-people-header {
    height: 104px;
    min-height: 104px;
    padding: 14px 18px 0;
  }

  #yawis-people-root .yawis-people-hero-bot {
    width: 96px;
    height: 94px;
    margin-right: 4px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 3px 5px rgba(11,37,69,.07));
  }

  #yawis-people-root .yawis-people-header-copy {
    padding-left: 2px;
    padding-bottom: 13px;
  }

  #yawis-people-root .yawis-people-header-copy h3 {
    font-size: 19px !important;
    line-height: 24px !important;
  }

  #yawis-people-root .yawis-people-header-copy p {
    margin-top: 1px !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  #yawis-people-root .yawis-people-title-icon {
    width: 19px;
    height: 24px;
  }

  #yawis-people-root .yawis-people-close {
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  #yawis-people-root .yawis-people-body {
    padding: 24px 20px 20px;
    gap: 8px;
  }

  #yawis-people-root .yawis-people-card {
    min-height: 62px;
    padding: 9px 11px !important;
    gap: 11px !important;
    border-radius: 14px;
  }

  #yawis-people-root .yawis-people-iconbox {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  #yawis-people-root .yawis-people-iconbox img {
    width: 22px;
    height: 22px;
  }

  #yawis-people-root .yawis-people-card-copy {
    gap: 2px !important;
    padding-right: 2px;
  }

  #yawis-people-root .yawis-people-card-title {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 19px !important;
  }

  #yawis-people-root .yawis-people-card-desc {
    font-size: 11px;
    line-height: 15px !important;
  }

  #yawis-people-root .yawis-people-arrow {
    font-size: 19px;
  }

  #yawis-people-root .yawis-people-footer {
    min-height: 52px;
    padding: 11px 16px;
    gap: 8px;
  }

  #yawis-people-root .yawis-people-footer img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  #yawis-people-root .yawis-people-footer span {
    font-size: 11.5px;
    line-height: 16px !important;
  }

  /* Approved YAWI v11 closed-state size. */
  #yawis-people-root .yawis-people-trigger-label {
    font-size: 13px;
    padding: 10px 17px;
    box-shadow: 0 5px 16px rgba(11,37,69,.11);
  }

  #yawis-people-root .yawis-people-trigger-orb,
  #yawis-people-root .yawis-people-trigger-robot,
  #yawis-people-root .yawis-people-trigger-x {
    width: 61px !important;
    height: 61px !important;
    min-width: 61px !important;
    min-height: 61px !important;
  }

  #yawis-people-root .yawis-people-trigger-orb {
    flex: 0 0 61px !important;
  }

  #yawis-people-root .yawis-people-trigger-robot {
    object-fit: contain !important;
  }
}

@media (min-width: 521px) and (max-height: 780px) {
  #yawis-people-root .yawis-people-panel { width: 338px; }
  #yawis-people-root .yawis-people-header { height: 94px; min-height: 94px; padding-top: 10px; }
  #yawis-people-root .yawis-people-hero-bot { width: 88px; height: 86px; }
  #yawis-people-root .yawis-people-header-copy { padding-bottom: 10px; }
  #yawis-people-root .yawis-people-header-copy h3 { font-size: 18px !important; line-height: 23px !important; }
  #yawis-people-root .yawis-people-header-copy p { font-size: 10.5px !important; line-height: 15px !important; }
  #yawis-people-root .yawis-people-body { padding: 19px 18px 16px; gap: 8px; }
  #yawis-people-root .yawis-people-card { min-height: 58px; padding: 8px 10px !important; }
  #yawis-people-root .yawis-people-iconbox { width: 38px; height: 38px; flex-basis: 38px; }
  #yawis-people-root .yawis-people-footer { min-height: 48px; padding: 9px 14px; }
  #yawis-people-root .yawis-people-trigger-label { font-size: 12.5px; padding: 10px 16px; }
  #yawis-people-root .yawis-people-trigger-orb,
  #yawis-people-root .yawis-people-trigger-robot,
  #yawis-people-root .yawis-people-trigger-x {
    width: 57px !important;
    height: 57px !important;
    min-width: 57px !important;
    min-height: 57px !important;
  }
  #yawis-people-root .yawis-people-trigger-orb { flex-basis: 57px !important; }
}
