/* service.css */
/* =========================================================
   VEIGHTLESS SERVICE ENGINE
   Ort: 03_MODULES/3.11_SERVICE_ENGINE/service.css
   ========================================================= */

#vx-service-slot{
  z-index: 197;
  width: var(--vx-nav-width);
  max-width: none;
  pointer-events: none;
}

#vx-service-slot .vx-service{
  position: relative;
  pointer-events: auto;

  --vx-service-bg: #CBC1B5;
  --vx-service-bg-deep: #B8AA99;
  --vx-service-surface: rgba(241, 238, 227, 0.56);
  --vx-service-surface-strong: rgba(241, 238, 227, 0.84);
  --vx-service-border: rgba(87, 82, 75, 0.14);
  --vx-service-border-strong: rgba(87, 82, 75, 0.22);
  --vx-service-ink: #57524B;
  --vx-service-ink-soft: #8C8477;
  --vx-service-white-brown: #F1EEE3;

  --vx-service-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    0 40px 100px rgba(0, 0, 0, 0.20);

  --vx-service-card-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.06);

  --vx-service-radius: 20px;
  --vx-service-radius-md: 14px;
  --vx-service-radius-sm: 10px;
}

/* ---------------------------------------------------------
   TOGGLE
   --------------------------------------------------------- */

#vx-service-slot .vx-service__toggle{
  width: var(--vx-nav-width);
  min-width: var(--vx-nav-width);
  min-height: var(--h-service, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vx-btn-gap, 12px);
  padding: 0 18px;
  border-radius: var(--r-service, 999px);
  border: 1px solid var(--vx-btn-border);
  background: var(--vx-btn-bg);
  color: var(--vx-btn-ink);
  box-shadow: var(--vx-btn-shadow);
  letter-spacing: var(--ls-btn, 0.08em);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

#vx-service-slot .vx-service__toggle:hover{
  transform: translateY(-1px);
  background: var(--vx-btn-bg-hover);
  border-color: color-mix(in srgb, var(--vx-btn-border), white 8%);
  box-shadow: var(--vx-btn-shadow-hover);
}

#vx-service-slot .vx-service__toggle:active{
  transform: translateY(0);
}

#vx-service-slot .vx-service__toggle[aria-expanded="true"]{
  background: var(--vx-btn-bg-active);
  border-color: color-mix(in srgb, var(--vx-btn-border), white 12%);
  box-shadow: var(--vx-btn-shadow-active);
}

#vx-service-slot .vx-service__toggle:focus-visible{
  outline: var(--focus, 2px solid color-mix(in srgb, var(--c-primary), white 6%));
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   OVERLAY / PANEL
   --------------------------------------------------------- */

#vx-service-slot .vx-service__overlay{
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(17, 16, 15, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#vx-service-slot .vx-service__panel{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 199;

  width: min(1120px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);

  overflow: hidden;
  border-radius: var(--vx-service-radius);
  border: 1px solid var(--vx-service-border);
  background: linear-gradient(180deg, #F9F8F4 0%, #F3F0E8 100%);
  box-shadow: var(--vx-service-shadow);
}

#vx-service-slot .vx-service__panel,
#vx-service-slot .vx-service__messages,
#vx-service-slot .vx-service__nav{
  overscroll-behavior: contain;
}

#vx-service-slot .vx-service__shell{
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ---------------------------------------------------------
   HEAD
   --------------------------------------------------------- */

#vx-service-slot .vx-service__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--vx-service-border);
}

#vx-service-slot .vx-service__headcopy{
  min-width: 0;
}

#vx-service-slot .vx-service__status{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--vx-service-ink-soft);
  margin: 0;
}

#vx-service-slot .vx-service__title{
  display: none;
}

#vx-service-slot .vx-service__close{
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--vx-service-border);
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

#vx-service-slot .vx-service__close::before{
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 28px;
  color: var(--vx-service-ink);
}

#vx-service-slot .vx-service__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.18);
  border-color: var(--vx-service-border-strong);
}

#vx-service-slot .vx-service__mobileBar{
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 12px;
}

#vx-service-slot .vx-service__overview{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 156px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--vx-service-border);
  background: rgba(255,255,255,0.42);
  color: var(--vx-service-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#vx-service-slot .vx-service__overview:hover{
  background: rgba(255,255,255,0.62);
  border-color: var(--vx-service-border-strong);
  transform: translateY(-1px);
}

#vx-service-slot .vx-service__overviewState{
  display: none;
}

#vx-service-slot .vx-service__close--mobile{
  display: none;
}

/* ---------------------------------------------------------
   BODY GRID
   --------------------------------------------------------- */

#vx-service-slot .vx-service__body{
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
  height: 100%;
  padding: 18px 20px 20px;
}

/* ---------------------------------------------------------
   NAV / ACCORDION
   --------------------------------------------------------- */

#vx-service-slot .vx-service__nav{
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  border-right: 1px solid color-mix(in srgb, var(--vx-service-border), transparent 8%);
}

#vx-service-slot .vx-service__nav::-webkit-scrollbar{
  width: 10px;
}

#vx-service-slot .vx-service__nav::-webkit-scrollbar-thumb{
  background: rgba(87, 82, 75, 0.20);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#vx-service-slot .vx-service__accordion{
  background: rgba(241, 238, 227, 0.26);
  border: 1px solid transparent;
  border-radius: 20px;
  margin-bottom: 10px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.28);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#vx-service-slot .vx-service__accordion.is-open{
  background: rgba(241, 238, 227, 0.42);
  border-color: var(--vx-service-border);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

#vx-service-slot .vx-service__persona{
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--vx-service-ink);
  text-align: left;
  cursor: pointer;
}

#vx-service-slot .vx-service__persona:hover{
  background: rgba(255,255,255,0.10);
  border-radius: 20px;
}

#vx-service-slot .vx-service__personaAvatar{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vx-service-border), transparent 10%);
  background: rgba(255,255,255,0.20);
  box-shadow: var(--vx-service-card-shadow);
}

#vx-service-slot .vx-service__personaAvatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#vx-service-slot .vx-service__personaMeta{
  min-width: 0;
}

#vx-service-slot .vx-service__personaName{
  display: block;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--vx-service-ink);
  margin-bottom: 4px;
}

#vx-service-slot .vx-service__personaRole{
  display: block;
  font-size: 12px;
  line-height: 1.25;
  color: var(--vx-service-ink-soft);
  letter-spacing: 0.02em;
}

#vx-service-slot .vx-service__personaCaret{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 22px;
  line-height: 1;
  color: var(--vx-service-ink-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}

#vx-service-slot .vx-service__accordion.is-open .vx-service__personaCaret{
  transform: rotate(45deg);
  color: var(--vx-service-ink);
}

#vx-service-slot .vx-service__topics{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 14px 14px 14px;
}

#vx-service-slot .vx-service__topics--dense{
  gap: 5px;
}

#vx-service-slot .vx-service__topicLink{
  display: block;
  min-height: 24px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(87, 82, 75, 0.10);
  background: rgba(255,255,255,0.30);
  color: var(--vx-service-ink);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

#vx-service-slot .vx-service__topicLink:hover{
  background: rgba(255,255,255,0.52);
  border-color: rgba(87, 82, 75, 0.18);
  transform: translateY(-1px);
}

#vx-service-slot .vx-service__topicLink:focus-visible{
  outline: 2px solid rgba(87,82,75,0.18);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   MAIN
   --------------------------------------------------------- */

#vx-service-slot .vx-service__main{
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
}

#vx-service-slot .vx-service__answerSection,
#vx-service-slot .vx-service__questionSection{
  border-radius: 999px;
  min-width: 0;
  border: 0;
}

#vx-service-slot .vx-service__answerSection{
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--vx-service-radius-md);
  border: 0;
  background: rgba(241, 238, 227, 0.28);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

#vx-service-slot .vx-service__msg--assistant{
  padding: 0 12px;
}

#vx-service-slot .vx-service__questionSection{
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

#vx-service-slot .vx-service__questionSection:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

#vx-service-slot .vx-service__questionSection:focus-within{
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.10),
    0 0 0 2px rgba(87, 82, 75, 0.04);
}

#vx-service-slot .vx-service__answerLabel,
#vx-service-slot .vx-service__questionLabel{
  display: none;
}

/* ---------------------------------------------------------
   MESSAGES
   --------------------------------------------------------- */

#vx-service-slot .vx-service__messages{
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow: auto;
  padding: 12px 16px 12px 16px;
  scroll-behavior: smooth;
}

#vx-service-slot .vx-service__messages:empty{
  min-height: 0;
}

#vx-service-slot .vx-service__messages::-webkit-scrollbar{
  width: 12px;
}

#vx-service-slot .vx-service__messages::-webkit-scrollbar-thumb{
  background: rgba(87, 82, 75, 0.24);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

#vx-service-slot .vx-service__messages:empty::before{
  content: attr(data-placeholder);
  display: block;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--vx-service-ink-soft);
}

#vx-service-slot .vx-service__empty{
  min-height: 100%;
  border-radius: inherit;
  background: transparent;
}

#vx-service-slot .vx-service__msg{
  border-radius: 18px;
  margin-bottom: 12px;
}

#vx-service-slot .vx-service__msg:last-child{
  margin-bottom: 0;
}

#vx-service-slot .vx-service__msg--user{
  padding: 12px 14px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(87, 82, 75, 0.10);
  color: var(--vx-service-ink);
  font-size: 15px;
  line-height: 1.55;
}

#vx-service-slot .vx-service__msgHead{
  margin-bottom: 10px;
}

#vx-service-slot .vx-service__msgName{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--vx-service-ink-soft);
  margin-bottom: 4px;
}

#vx-service-slot .vx-service__msgRole{
  font-size: 14px;
  color: var(--vx-service-ink-soft);
}

#vx-service-slot .vx-service__msgAnswer{
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.55;
  color: var(--vx-service-ink);
}

#vx-service-slot .vx-service__msgFollow{
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--vx-service-ink);
}

#vx-service-slot .vx-service__msgCta{
  margin-top: 18px;
}

#vx-service-slot .vx-service__msgBtn{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(87,82,75,0.14);
  background: rgba(255,255,255,0.42);
  color: var(--vx-service-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

#vx-service-slot .vx-service__msgBtn:hover{
  background: rgba(255,255,255,0.62);
  border-color: rgba(87,82,75,0.18);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   INPUT
   --------------------------------------------------------- */

#vx-service-slot .vx-service__input{
  width: 100%;
  min-height: 22px;
  max-height: 96px;
  resize: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 9px 12px 5px;
  color: var(--vx-service-ink);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  box-shadow: none;
}

#vx-service-slot .vx-service__input::placeholder{
  color: var(--vx-service-ink-soft);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 1;
  font-size: 12px;
  line-height: 20px;
}

#vx-service-slot .vx-service__input:focus{
  outline: none;
  border: 0;
  box-shadow: none;
}

#vx-service-slot .vx-service__sr{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
   
@media (max-width: 980px){

  #vx-service-slot .vx-service__panel{
    inset: 0;
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    left: 0;
    top: 0;
    transform: none;
    border-radius: 0;
  }

  #vx-service-slot .vx-service__shell{
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #vx-service-slot .vx-service__head{
    padding: 16px 16px 18px;
    flex: 0 0 auto;
  }

  #vx-service-slot .vx-service__close--desktop{
    display: none;
  }

  #vx-service-slot .vx-service__close--mobile{
    display: inline-flex;
  }

  #vx-service-slot .vx-service__mobileBar{
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 14px 5px;
    flex: 0 0 auto;
  }

  #vx-service-slot .vx-service__body{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px 14px;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    overflow-x: visible;
	overflow-y: hidden;
  }

  #vx-service-slot .vx-service__nav{
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border-right: 0;
    border-bottom: 0;
	padding-top: 10px;
    padding-right: 0;
    padding-bottom: 0;
  }

  #vx-service-slot .vx-service__main{
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #vx-service-slot .vx-service__answerSection{
    display: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    overflow: hidden;
  }

  #vx-service-slot .vx-service__questionSection{
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

  #vx-service-slot .vx-service.vx-service--compact .vx-service__mobileBar{
    display: flex;
  }

  #vx-service-slot .vx-service.vx-service--compact .vx-service__nav{
    display: none;
  }

  #vx-service-slot .vx-service.vx-service--compact .vx-service__main{
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #vx-service-slot .vx-service.vx-service--compact .vx-service__answerSection{
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  max-height: 40vh;
}

#vx-service-slot .vx-service.vx-service--compact .vx-service__messages:has(.vx-service__empty){
  display: none;
}

  #vx-service-slot .vx-service__messages{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 0 2px;
  }

  #vx-service-slot .vx-service__input,
  #vx-service-slot .vx-service__send{
    min-height: 28px;
  }

  #vx-service-slot .vx-service__msgAnswer{
    font-size: 15px;
  }

  #vx-service-slot .vx-service__msg--assistant{
    padding: 0 8px;
    background: transparent;
    border: 0;
  }

  #vx-service-slot .vx-service__msg--user{
    padding: 6px 6px;
    background: rgba(255,255,255,0.32);
    border: 1px solid rgba(87, 82, 75, 0.08);
  }
}