/* Floating launcher with soft pulse */
button.ase-browse-back {
    color: #333;
    font-size: 12px;
    background: #eeeeee30 !important;
}
.details-contacts {
    background: #dddddd3d;
    padding: 15px;
    border-radius: 15px;
    margin: 0 -15px;
    font-size: 14px;
}
.ase-browse-crumbs {
    padding: 0px !important;
    margin: 0px !important;
    font-size: 14px;
    color: #333;
}
.details-contacts a {
    text-decoration: none;
}
.ase-browse .crumbs a {
    color: #333;
    text-decoration: none;
    margin-right: 6px;
}
.ase-greet {
    border: 1px solid #dddddd4f;
    padding: 20px;
    border-radius: 10px;
    background: #eeeeee40;
    font-size: 14px;
}
.ase-browse-subcats span.chip {
   display: inline-block;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    margin: 6px 6px 0 0;
    cursor: pointer;
    user-select: none;
}
.ase-card a{
	 -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 0.4s; 
}
.ase-card a:hover {
    transform: translateY(5px);
    display: block;
}
.ase-greet small {
    font-size: 12px;
    padding: 10px 0 5px;
    display: block;
}
.ase-greet .details-contacts {
    margin-top: 15px !important;
    text-decoration: none !important;
    font-size: 14px;
    background: transparent;
    padding: 5px 15px 0;
}
.ase-greet .details-contacts a {
    text-decoration: none;
    /* font-size: 14px; */
}
.welcome-board-login button.ase-start-btn {
    height: 40px;
    padding: 0px;
    color: #000;
}
.welcome-board {
    padding: 15px 20px;
    box-shadow: 0px 5px 10px -5px #00000026;
    border-radius: 15px;
}
.welcome-board-login {
    width: 100%;
    padding: 15px 1px;
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
}
.welcome-board-login label {
    width: 100%;
}
.welcome-board-login input {
    height: 45px;
    border: 1px solid #ccc;
    background: transparent !important;
    width: 100%;
    border-radius: 10px;
}
.welcome-board-login label {
    width: 100%;
}
.ase-msg.bot {
    margin-bottom: 10px;
}
.ase-browse-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    font-size: 14px;
}
.ase-browse .chip {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    margin: 6px 6px 0 0;
    cursor: pointer;
    user-select: none;
}
.ase-browse-actions .contact a.contact-btn, a.contact-btn {
    background: #ffb81c;
    color: #000;
    padding: 8px 14px;
    display: inline-block;
    border-radius: 10px;
    margin-top: 5px;
}
.ase-browse-prods .grid {
    display: flex;
    flex-wrap: wrap;
}
.ase-browse .contact strong {
    margin: 0 0 5px;
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.contact-details>div {
    margin: 0px 0px 7px;
}
.ase-browse-actions .contact {
    padding: 15px 20px 10px;
    margin-top: 15px;
    background: #dddddd3d;
    margin: 20px -12px -10px;
    border-radius: 10px;
}
.ase-browse-actions .contact a {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    text-decoration: none;
}
.ase-browse-actions .contact div {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}
.ase-browse-prods .grid .card>div {
    margin: 0px !important;
}
.ase-browse-prods .card a {
    color: #333;
    font-size: 12px;
    line-height: normal;
}
.ase-browse-prods .grid .card {
    width: auto;
    padding: 10px;
    max-width: 124px;
}
.ase-launcher {
    position: fixed;
    right: 31px;
    bottom: 105px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    cursor: pointer;
    z-index: 9999;
    background-size: 29px !important;
    background-repeat: no-repeat;
	  will-change: transform, opacity;
}
.ase-grid {
    display: flex !important;
    flex-wrap: wrap;
}
.ase-card {
    width: 47%;
}
.ase-card a div {
    font-size: 12px;
    color: #000;
    font-weight: 400 !important;
}
.ase-bubble>p {
    font-size: 15px;
    padding: 10px 0;
}
.ase-launcher::before {
  content: "";
  position: absolute;
  inset: -6px;                  /* halo around the icon */
  border-radius: 50%;
  pointer-events: none;
  animation: aseLauncherPulse 2s ease-in-out infinite;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, rgba(37,99,235,0) 60%);
  opacity: .7;
}
@keyframes aseLauncherPulse {
  0%   { transform: scale(.9); opacity: .3; }
  50%  { transform: scale(1.07); opacity: .7; }
  100% { transform: scale(.9); opacity: .3; }
}
.ase-launcher::after{ animation-delay: .6s; }
@keyframes ase-pulse{ 0%{ transform: scale(1); opacity: .7; } 70%,100%{ transform: scale(1.5); opacity: 0; } }
.ase-launcher.ase-hidden{ display:none; }

/* Chat */
.ase-hidden { display:none !important; }

.ase-chatbot {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 340px;
  max-width: calc(100vw - 24px);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.16);
  z-index: 10000;
	 overflow: hidden;
 transition: width .18s ease, height .18s ease, right .18s ease, bottom .18s ease, border-radius .18s ease;
}

.ase-chat-header {
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.ase-chat-title { font-weight: 600; }
.ase-chat-header .ase-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

/* Validation banner at top */
.ase-banner {
  background: #fee2e2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  padding: 8px 12px;
  font-size: 13px;
}

.ase-prechat { padding: 12px; background: #f9fafb; }
.ase-prechat-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}
.ase-prechat h4 { margin: 6px 0 8px; }
.ase-prechat input{ width:100%; padding:8px 10px; border:1px solid #e5e7eb; border-radius:8px; }
.ase-start-btn{ width:100%; padding:10px 12px; border:0; border-radius:10px; background:#2563eb; color:#fff; cursor:pointer; }

.ase-chat-body {
    height: 360px;
    overflow-y: auto;
    padding: 10px 20px;
    background: #fff;
}

.ase-chat-input {
    display: flex;
    gap: 0px;
    padding: 0px 15px 15px;
    border-top: 0px;
    background: transparent;
    position: relative;
    /* box-shadow: 0px -2px 10px 0px #00000033; */
}
.ase-chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    background: #fff !important;
    height: 45px;
    box-shadow: 0px -3px 10px 0px #00000024;
    color: #333 !important;
}
.ase-chat-input .send-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 5px;
    border-radius: 30px;
}
.ase-chat-input .send-btn:hover { background: #1d4ed8; }

.ase-msg {
    display: flex;
    margin: 0px 0 8px;
}
.ase-msg.user { justify-content: flex-end; }
.ase-msg.bot  { justify-content: flex-start; }

.ase-bubble {
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.35;
    background: transparent;
    border: 0px;
    font-size: 15px;
}
.ase-bubble strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #ffb81c;
    width: 100%;
}
.ase-msg.user .ase-bubble { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.ase-bot-bubble { background:#fff; }

.ase-typing { display: inline-flex; gap: 6px; align-items: center; margin: 6px 8px; }
.ase-typing span { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; display: inline-block; animation: ase-bounce 1s infinite ease-in-out; }
.ase-typing span:nth-child(2){ animation-delay: .15s; }
.ase-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes ase-bounce { 0%, 80%, 100% { transform: scale(0.8); opacity: .6; } 40% { transform: scale(1); opacity: 1; } }

/* Inactivity nudge + feedback */
.ase-nudge .ase-bubble {
    border: 1px solid #0000000a;
    font-size: 14px;
    padding: 15px 15px;
    background: #ffb81c0a;
    margin-bottom: 20px;
}
.ase-nudge-actions { margin-top:8px; display:flex; gap:8px; }
.ase-nudge-actions button {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #0000000a;
    cursor: pointer;
    color: #333;
}
.ase-feedback { margin-top:8px; display:flex; gap:8px; }
.ase-feedback input { flex:1; padding:8px 10px; border:1px solid #e5e7eb; border-radius:8px; }
.ase-send-feedback { padding:8px 10px; border:0; color:#fff; background:#2563eb; border-radius:8px; cursor:pointer; }


.ase-chatbot .ase-chat-body { max-height: 60vh; overflow:auto; }


/* Enlarged layout */
.ase-chatbot.ase-enlarged {
  width: min(900px, 96vw);
  height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
}
.ase-chatbot.ase-enlarged .ase-chat-body { flex: 1; max-height: none; }
.ase-chatbot.ase-enlarged .ase-prechat { flex: 1; overflow:auto; }

/* Optional: full screen on small screens when enlarged */
@media (max-width: 640px){
  .ase-chatbot.ase-enlarged {
    right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0;
  }
}

/* Header actions (enlarge/close) */
.ase-chat-actions { display:flex; gap:6px; }
.ase-chat-actions .ase-enlarge, .ase-chat-actions .ase-close {
    border: 0px;
    /* background: #fff; */
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}



/* ===== Launcher hint (animated pill) ===== */
.ase-launcher-hint {
    position: fixed;
    right: 96px;
    bottom: 123px;
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    z-index: 1000000;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px) scale(.98);
    pointer-events: none;
}

.ase-launcher-hint::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transform: rotate(-45deg);
}

.ase-launcher-hint.is-visible {
  animation: aseHintIn .45s ease forwards, aseHintPulse 2.4s ease-in-out 1s infinite;
}
@keyframes aseHintIn { to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes aseHintPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
  50%     { box-shadow: 0 10px 28px rgba(0,0,0,.14); }
}

/* typing dots */
.ase-launcher-hint .dots { display:inline-flex; gap:2px; margin-left:6px; vertical-align:middle; }
.ase-launcher-hint .dots i { width:4px; height:4px; border-radius:50%; background:#9ca3af; display:inline-block; opacity:.4; animation: aseDot 1.2s infinite; }
.ase-launcher-hint .dots i:nth-child(2){ animation-delay:.15s }
.ase-launcher-hint .dots i:nth-child(3){ animation-delay:.3s }
@keyframes aseDot { 0%,100%{ transform:translateY(0); opacity:.4 } 50%{ transform:translateY(-2px); opacity:1 } }

/* RTL support */
[dir="rtl"] .ase-launcher-hint { left: 84px; right: auto; }
[dir="rtl"] .ase-launcher-hint::after { left: -6px; right: auto; transform: rotate(135deg); }

/* small screens */
@media (max-width: 420px){
  .ase-launcher-hint { right: 70px; max-width: 58vw; overflow: hidden; text-overflow: ellipsis; }
}
