/* LUYS 2.36 — AI customer service foundation. Loaded after the page bundle. */
.luys-floating-chat__intro {
  margin: 10px 0 0 !important;
  color: var(--luys-color-text-secondary, #655f5a) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.luys-floating-chat__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 4px;
}

.luys-floating-chat__quick-actions button,
.luys-floating-chat__suggestions button {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(125, 101, 76, .20);
  border-radius: 999px;
  background: #fbf7f3;
  color: #38322d;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.luys-floating-chat__quick-actions button:hover,
.luys-floating-chat__quick-actions button:focus-visible,
.luys-floating-chat__suggestions button:hover,
.luys-floating-chat__suggestions button:focus-visible {
  border-color: rgba(125, 101, 76, .52);
  background: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.luys-floating-chat__quick-actions button:disabled,
.luys-floating-chat__suggestions button:disabled {
  cursor: wait;
  opacity: .45;
}

.luys-floating-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 13px;
}

.luys-floating-chat__suggestions[hidden],
.luys-floating-chat__actions[hidden] {
  display: none !important;
}

.luys-floating-chat__suggestions-label {
  flex: 0 0 100%;
  color: #8a7e73;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.luys-floating-chat__actions[data-luys-chat-response-actions] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 13px;
}

.luys-floating-chat__actions[data-luys-chat-response-actions] .luys-floating-chat__primary,
.luys-floating-chat__actions[data-luys-chat-response-actions] .luys-floating-chat__secondary {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 9px;
}

/* Dedicated customer-service page. */
/* Dedicated customer-service page — LUYS 2.36. */
.luys-customer-service-page {
  overflow: clip;
  background: #fff;
}

.luys-customer-service-hero,
.luys-customer-service-main {
  position: relative;
  isolation: isolate;
}

.luys-customer-service-main {
  z-index: 1;
  background: #fff;
}

.luys-customer-service-hero {
  padding: clamp(44px, 5.5vw, 74px) 0 clamp(34px, 4vw, 54px);
  border-bottom: 1px solid rgba(125, 101, 76, .10);
  background: linear-gradient(180deg, #fbf8f5 0%, #fff 100%);
}

.luys-customer-service-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .62fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.luys-customer-service-hero h1 {
  max-width: 720px;
  margin: 7px 0 16px;
  color: #1a1816;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -.042em;
  line-height: .98;
}

.luys-customer-service-hero__lead {
  max-width: 700px;
  margin: 0;
  color: #655f5a;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.72;
}

.luys-customer-service-hero__promise {
  padding: 23px 25px;
  border: 1px solid rgba(125, 101, 76, .15);
  border-left: 3px solid #9a7b58;
  background: #f7ece7;
}

.luys-customer-service-hero__promise strong {
  display: block;
  margin-bottom: 7px;
  color: #1a1816;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.05;
}

.luys-customer-service-hero__promise span {
  color: #655f5a;
  font-size: 12px;
  line-height: 1.6;
}

.luys-customer-service-main {
  padding: clamp(30px, 4vw, 52px) 0 clamp(72px, 8vw, 116px);
}

.luys-customer-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .58fr);
  gap: clamp(26px, 3.7vw, 50px);
  align-items: start;
}

.luys-customer-service-assistant-card {
  min-width: 0;
  align-self: start;
}

/*
 * Embedded customer service is intentionally NOT given the `.luys-floating-chat`
 * root class. This isolates it from all fixed/floating positioning rules in the
 * global bundle and guarantees that the assistant remains in normal document flow.
 */
.luys-customer-service-chat,
.luys-customer-service-chat * {
  box-sizing: border-box;
}

.luys-customer-service-chat {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: auto !important;
}

.luys-customer-service-chat .luys-floating-chat__panel {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

.luys-customer-service-chat .luys-floating-chat__panel-inner {
  max-height: none !important;
  overflow: visible !important;
  padding: clamp(25px, 3vw, 38px) !important;
  border: 1px solid rgba(125, 101, 76, .16) !important;
  background: #fff !important;
  box-shadow: 0 18px 52px rgba(26, 24, 22, .07) !important;
}

.luys-customer-service-chat .luys-floating-chat__panel h2 {
  max-width: 720px;
  font-size: clamp(34px, 3.6vw, 50px) !important;
}

.luys-customer-service-chat .luys-floating-chat__intro {
  max-width: 740px;
  margin-top: 9px !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
}

.luys-customer-service-chat .luys-floating-chat__quick-actions {
  margin: 17px 0 0;
}

.luys-customer-service-chat .luys-floating-chat__quick-actions button {
  padding: 9px 13px;
  font-size: 11px;
}

.luys-customer-service-chat .luys-floating-chat__messages {
  height: clamp(300px, 39vh, 410px) !important;
  min-height: 300px;
  margin-top: 18px !important;
  padding: 16px !important;
  border-color: rgba(125, 101, 76, .12) !important;
  background: #fbf8f5 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 101, 76, .32) transparent;
}

.luys-customer-service-chat .luys-floating-chat__message {
  max-width: min(84%, 700px) !important;
  padding: 11px 13px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  /* Preserve intentional line breaks from AI replies, but collapse indentation/tabs. */
  white-space: pre-line !important;
}

.luys-customer-service-chat .luys-floating-chat__form {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

.luys-customer-service-chat .luys-floating-chat__input {
  min-height: 52px !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

.luys-customer-service-chat .luys-floating-chat__send {
  min-height: 52px !important;
  padding: 0 21px !important;
}

.luys-customer-service-chat .luys-floating-chat__privacy-note {
  max-width: 760px;
  margin-top: 11px !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.luys-customer-service-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.luys-customer-service-side__card {
  padding: 22px;
  border: 1px solid rgba(125, 101, 76, .15);
  background: #fbf7f3;
}

.luys-customer-service-side__card:last-child {
  background: #f7ece7;
}

.luys-customer-service-side__card h2 {
  margin: 0 0 9px;
  color: #1a1816;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}

.luys-customer-service-side__card p {
  margin: 0;
  color: #655f5a;
  font-size: 12px;
  line-height: 1.62;
}

.luys-customer-service-links {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.luys-customer-service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(125, 101, 76, .13);
  color: #423a34;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.luys-customer-service-links a:last-child {
  border-bottom: 0;
}

.luys-customer-service-links a::after {
  content: "→";
  color: #9a7b58;
}

.luys-customer-service-human {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 101, 76, .14);
}

.luys-customer-service-human a {
  display: flex;
  width: fit-content;
  margin-top: 10px;
  color: #7d654c;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Preserve the right-edge centered floating button established in 2.32. */
.luys-floating-chat:not(.luys-customer-service-chat) {
  top: 50% !important;
  right: clamp(14px, 2vw, 30px) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 1020px) {
  .luys-customer-service-layout {
    grid-template-columns: minmax(0, 1fr) minmax(235px, .46fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .luys-customer-service-hero__grid,
  .luys-customer-service-layout {
    grid-template-columns: 1fr;
  }

  .luys-customer-service-hero__promise {
    max-width: 680px;
  }

  .luys-customer-service-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .luys-customer-service-hero {
    padding: 31px 0 24px;
  }

  .luys-customer-service-hero__grid {
    gap: 22px;
  }

  .luys-customer-service-hero h1 {
    margin-top: 5px;
    font-size: clamp(39px, 11.5vw, 52px);
    line-height: 1;
  }

  .luys-customer-service-hero__lead {
    font-size: 14px;
    line-height: 1.62;
  }

  .luys-customer-service-hero__promise {
    padding: 18px 19px;
  }

  .luys-customer-service-hero__promise strong {
    font-size: 25px;
  }

  .luys-customer-service-main {
    padding: 22px 0 64px;
  }

  .luys-customer-service-side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .luys-customer-service-chat .luys-floating-chat__panel-inner {
    padding: 20px 14px 18px !important;
  }

  .luys-customer-service-chat .luys-floating-chat__panel h2 {
    font-size: clamp(32px, 9.5vw, 40px) !important;
  }

  .luys-customer-service-chat .luys-floating-chat__quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .luys-customer-service-chat .luys-floating-chat__quick-actions button {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 10px;
    text-align: center;
  }

  .luys-customer-service-chat .luys-floating-chat__messages {
    height: min(340px, 43vh) !important;
    min-height: 270px;
    padding: 11px !important;
  }

  .luys-customer-service-chat .luys-floating-chat__message {
    max-width: 92% !important;
    padding: 10px 11px !important;
    font-size: 12px !important;
  }

  .luys-customer-service-chat .luys-floating-chat__form {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .luys-customer-service-chat .luys-floating-chat__send {
    width: 100%;
  }

  .luys-floating-chat__quick-actions {
    gap: 6px;
  }

  .luys-floating-chat__quick-actions button,
  .luys-floating-chat__suggestions button {
    font-size: 10px;
  }

  .luys-floating-chat:not(.luys-customer-service-chat) {
    right: 12px !important;
  }
}

/* LUYS 2.49: customer-service hero follows the collection-page system. */
.luys-customer-service-hero {
  padding: clamp(72px, 8vw, 108px) 0 clamp(76px, 8vw, 112px);
  border-bottom: 1px solid rgba(125, 101, 76, .14);
  background: linear-gradient(135deg, rgba(232, 219, 205, .76), rgba(250, 247, 242, .98));
}

.luys-customer-service-hero__inner {
  display: block;
}

.luys-customer-service-hero h1 {
  max-width: 860px;
  margin-top: 14px;
  font-size: clamp(52px, 6vw, 82px);
}

.luys-customer-service-hero__lead {
  max-width: 790px;
  font-size: 17px;
}

.luys-customer-service-hero__promise {
  max-width: 790px;
  margin-top: 30px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid rgba(125, 101, 76, .28);
  background: transparent;
}

@media (max-width: 700px) {
  .luys-customer-service-hero {
    padding: 46px 0 52px;
  }

  .luys-customer-service-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .luys-customer-service-hero__lead {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .luys-customer-service-chat .luys-floating-chat__quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .luys-customer-service-side__card {
    padding: 19px;
  }
}

/* LUYS 2.46: one verified chat session, stable iOS keyboard and swipe close. */
.has-chat-session .luys-floating-chat__turnstile {
  display: none !important;
}

.luys-floating-chat__export {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.luys-floating-chat__export button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #7d654c;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

@media (max-width: 700px) {
  .luys-floating-chat {
    --luys-chat-swipe-pull: 0px;
  }

  .luys-floating-chat .luys-floating-chat__input,
  .luys-customer-service-chat .luys-floating-chat__input {
    font-size: 16px !important;
  }

  .luys-floating-chat.is-open .luys-floating-chat__panel {
    transform: translate3d(0, calc(var(--luys-chat-swipe-pull) * -1), 0) scale(1);
    will-change: transform;
  }

  .luys-floating-chat.is-overscrolling .luys-floating-chat__panel {
    transition: none;
  }
}
