/* The native Slide-in mounts on body; the Elementor surface opts the page into A1. */
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in {
  font-family: Roboto, Arial, sans-serif;
  color: #1e1e1e;

  & #pe-chat-tab {
    display: flex;
    right: 0;
    top: 44%;
    transform: none;
    padding: 15px 20px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 7px 0 0 7px;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    font: 700 16px/1.2 Roboto, Arial, sans-serif;
  }
  & #pe-chat-tab[aria-expanded="true"] { visibility: hidden; }
  & #pe-chat-bubble, & #pe-chat-preview { display: none !important; }
  & #pe-chat-shade { display: block; background: transparent; }
  & #pe-chat-shade.pe-open { visibility: visible; opacity: 1; }
  & #pe-chat-panel {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 100%);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-left: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 10px 50px #0003;
    visibility: hidden;
    transform: translateX(101%);
    transition: transform .25s ease-out, visibility 0s .25s;
  }
  & #pe-chat-panel.pe-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
    animation: none;
  }
  & .pe-header {
    padding: max(20px, env(safe-area-inset-top)) 24px 12px;
    gap: 6px;
    align-items: flex-start;
    background: #fff;
    color: #1e1e1e;
  }
  & .pe-header-brand { align-items: flex-start; flex-direction: column; gap: 5px; }
  & .pe-brand-logo { width: 75px; height: auto; flex: none; border-radius: 0; filter: none; }
  & .pe-header-main { gap: 0; }
  & .pe-header-main h3, & .pe-chat-intro { display: none; }
  & .pe-header-identity { color: #595959; }
  & .pe-header .pe-ai-badge {
    border: 0;
    background: transparent;
    color: #595959;
    padding: 0;
    font: 400 14px/1.4 Roboto, Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
  }
  & .pe-header .pe-ai-info, & .pe-header .pe-new-conversation, & .pe-header .pe-close {
    color: #333;
    background: #f6f6f6;
    border: 0;
    border-radius: 50%;
  }
  & .pe-header .pe-close, & .pe-header .pe-new-conversation { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  & .pe-header .pe-close { font-size: 24px; min-height: 40px; line-height: 1; }
  & .pe-new-conversation span:last-child:not(.pe-new-conversation-icon) { display: none; }
  & .pe-header-contact { border-color: #ddd; }
  & .pe-header-contact a { color: #555; }
  & #pe-chat-area { overscroll-behavior: contain; }
  & #pe-chat-log { min-height: 0; padding: 12px 24px; }
  & #pe-chat-log:empty { flex: 0 0 0; padding: 0; }
  & #pe-chat-starters {
    display: flex;
    flex-flow: column;
    flex: none;
    align-items: stretch;
    margin-top: auto;
    gap: 0;
    padding: 0 24px;
  }
  & #pe-chat-starters:empty, & #pe-chat-area:has(.pe-msg) #pe-chat-starters { display: none; }
  & #pe-chat-starters .pe-starter {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #1e1e1e;
    text-align: left;
    font: 400 16px/1.4 Roboto, Arial, sans-serif;
  }
  & #pe-chat-starters .pe-starter:hover, & #pe-chat-starters .pe-starter:focus-visible { background-color: #f6f6f6; }
  & .pe-starter::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    background: center/contain no-repeat;
  }
  & .pe-starter:nth-child(1)::before { background-image: url("bike.svg"); }
  & .pe-starter:nth-child(2)::before { background-image: url("ice.svg"); }
  & .pe-starter:nth-child(3)::before { background-image: url("branding.svg"); }
  & .pe-starter:nth-child(4)::before { background-image: url("price.svg"); }
  & .pe-msg-bot { background: transparent; color: #1e1e1e; }
  & .pe-msg-user { background: #f1f1f1; color: #1e1e1e; border-radius: 14px; }
  & #pe-chat-composer {
    --a1-bottom: max(22px, env(safe-area-inset-bottom));
    position: relative;
    background: #fff;
    padding: 16px 22px var(--a1-bottom);
    border: 0;
  }
  & #pe-chat-composer textarea {
    min-width: 0;
    min-height: 92px;
    box-sizing: border-box;
    padding: 12px 54px 12px 14px;
    font-size: 16px;
    border: 1px solid #d4d4d4;
    border-radius: 14px;
    background: #f6f6f6;
    color: #222;
  }
  & #pe-chat-composer textarea:focus { outline: 2px solid #1e1e1e; outline-offset: 1px; box-shadow: none; }
  & #pe-chat-composer .pe-send {
    position: absolute;
    bottom: calc(var(--a1-bottom) + 8px);
    right: 30px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #d6004b url("send.svg") center/22px 22px no-repeat;
    color: transparent;
    font-size: 0;
  }
  & #pe-chat-composer .pe-send:hover { background-color: #961137; }
  & :is(button, a):focus-visible { outline: 2px solid #1e1e1e; outline-offset: 2px; }
  @media (max-width: 560px) {
    & #pe-chat-tab { top: 32%; }
    & #pe-chat-panel { width: 100%; }
  }
  @media (max-height: 450px) {
    & .pe-header { padding-top: 6px; padding-bottom: 4px; }
    & #pe-chat-composer { padding-top: 4px; --a1-bottom: max(6px, env(safe-area-inset-bottom)); }
    & #pe-chat-composer textarea { min-height: 60px; }
  }
}

body:has(.pe-a1-surface) #pe-widget-root #pe-chat-log a.pe-calendar-action {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  width: 26px;
  height: 17px;
  padding: 0;
  margin: 0;
  vertical-align: -3px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #8aa8a6;
  color: #174e4b;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
body:has(.pe-a1-surface) #pe-widget-root #pe-chat-log a.pe-calendar-action::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  background: currentColor;
  mask: var(--pe-calendar-icon) center / contain no-repeat;
}
body:has(.pe-a1-surface) #pe-widget-root #pe-chat-log a.pe-calendar-action:hover,
body:has(.pe-a1-surface) #pe-widget-root #pe-chat-log a.pe-calendar-action:focus-visible {
  background: #174e4b;
  color: #fff;
}
.pe-calendar-add { --pe-calendar-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6m10-6v6M3%2010h18m-9%202v7m-3.5-3.5h7%22%2F%3E%3C%2Fsvg%3E"); }
.pe-calendar-google { --pe-calendar-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M21%2010.4h-8.8v3.5h5.1c-.7%202.4-2.6%203.8-5.1%203.8a5.8%205.8%200%201%201%200-11.6c1.5%200%202.7.5%203.7%201.5l2.7-2.7a9.7%209.7%200%201%200-6.4%2016.9c5.8%200%209.7-4.1%208.8-11.4z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E"); }
.pe-calendar-outlook { --pe-calendar-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M10%206h12v13H10m1-12%205%205%206-5%22%2F%3E%3Cpath%20fill%3D%22black%22%20stroke%3D%22none%22%20fill-rule%3D%22evenodd%22%20d%3D%22M1%204h13v17H1z%20M7.5%208a3.5%204.5%200%201%200%20.01%200z%20M7.5%2010a1.7%202.5%200%201%201-.01%200z%22%2F%3E%3C%2Fsvg%3E"); }
