/* ASE Custom Chatbot - Clean UI CSS
   Includes v2.8+ product/brand/form UI and launcher hint card style */

:root {
  --ase-dark: #111827;
  --ase-dark-2: #26364f;
  --ase-gold: #D17E00;
  --ase-bg: #f8fafc;
  --ase-border: #e5e7eb;
  --ase-text: #111827;
  --ase-muted: #64748b;
  --ase-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  --ase-radius: 22px;
}

.ase-hidden { display: none !important; }

/* Launcher button */
.ase-launcher {
    position: fixed;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #ffffff;
    background-size: 30px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .28);
    cursor: pointer;
    z-index: 999999;
    overflow: hidden;
    display: block !important;
}

.ase-launcher::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 184, 28, .38) 0%, rgba(255, 184, 28, 0) 65%);
  animation: aseLauncherPulse 2s ease-in-out infinite;
}

@keyframes aseLauncherPulse {
  0%, 100% { transform: scale(.9); opacity: .35; }
  50% { transform: scale(1.08); opacity: .75; }
}

/* Launcher hint like screenshot */
.ase-launcher-hint {
    position: fixed;
    right: 94px;
    bottom: 46px;
    width: 285px;
    max-width: calc(100vw - 130px);
    min-height: 60px;
    background: #fff;
    color: #747474;
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 46px;
    padding: 10px 15px 10px 58px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -.2px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    z-index: 999998;
    opacity: 0;
    transform: translateX(16px) scale(0.98);
    pointer-events: auto;
    white-space: normal;
}

.ase-launcher-hint::before {
    content: "AI";
    position: absolute;
    left: 10px;
    top: 11px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.3px;
}


.ase-launcher-hint .dots { display: none !important; }

.ase-launcher-hint.is-visible {
  animation: aseHintIn .35s ease forwards, aseHintFloat 2.6s ease-in-out 1s infinite;
}

@keyframes aseHintIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

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

/* Chat wrapper */
.ase-chatbot {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 390px;
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: var(--ase-radius);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  box-shadow: var(--ase-shadow);
  z-index: 1000000;
  overflow: hidden;
  transition: width .18s ease, height .18s ease, right .18s ease, bottom .18s ease, border-radius .18s ease;
}

.ase-chat-header {
  min-height: 54px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--ase-dark), var(--ase-dark-2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ase-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 650;
  letter-spacing: .2px;
}

.ase-chat-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .16);
}

.ase-chat-actions { display: flex; gap: 6px; }
.ase-chat-actions button,
.ase-chat-header .ase-close {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12) !important;
  border-radius: 10px !important;
  cursor: pointer;
  line-height: 1;
  padding: 7px 9px;
}

.ase-banner {
  background: #fee2e2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  padding: 8px 12px;
  font-size: 13px;
}

.ase-chat-body {
  height: 500px;
  max-height: 68vh;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  scroll-behavior: smooth;
}

.ase-chat-body::-webkit-scrollbar { width: 7px; }
.ase-chat-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.ase-chat-input {
  position: relative;
  display: flex;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #eef2f7;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .04);
}

.ase-chat-input input {
  width: 100%;
  height: 46px;
  padding: 0 88px 0 15px;
  border: 1px solid var(--ase-border);
  border-radius: 999px;
  outline: none;
  background: #fff !important;
  color: #333 !important;
  box-shadow: none;
}

.ase-chat-input .send-btn {
    position: absolute;
    right: 20px;
    top: 17px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--ase-gold);
    color: var(--ase-dark);
    font-weight: 600;
    cursor: pointer;
}

.ase-chat-input .send-btn:hover { background: #f0a900; }

/* Messages */
.ase-msg { display: flex; margin: 0 0 10px; animation: aseFadeUp .25s ease both; }
.ase-msg.user { justify-content: flex-end; }
.ase-msg.bot { justify-content: flex-start; }

@keyframes aseFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ase-bubble {
    max-width: 100%;
    padding: 25px 20px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
}

.ase-msg.bot .ase-bubble {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.ase-msg.user .ase-bubble {
  background: var(--ase-dark);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 8px 20px;
}

.ase-bubble strong {
    display: block;
    color: var(--ase-dark);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ase-bubble p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}
.ase-bubble p:last-child { margin-bottom: 0; }

.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;
  animation: aseBounce 1s infinite ease-in-out;
}
.ase-typing span:nth-child(2) { animation-delay: .15s; }
.ase-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aseBounce {
  0%, 80%, 100% { transform: scale(.8); opacity: .6; }
  40% { transform: scale(1); opacity: 1; }
}

/* Welcome and quick actions */
.ase-welcome-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.ase-welcome-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--ase-gold);
  display: grid;
  place-items: center;
  font-size: 23px;
}

.ase-welcome-card p { margin: 0; color: #475569; line-height: 1.45; }

.ase-quick-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.ase-quick-actions button,
.ase-cat-chip,
.ase-brand-chip,
.ase-load-more,
.ase-mini-back {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.ase-chat-actions .ase-reset {
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.12) !important;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
}
.ase-quick-actions button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 184, 28, .38);
    background: linear-gradient(135deg, #fff7df, #fff);
    color: var(--ase-dark);
    border-radius: 16px;
    padding: 12px 40px 12px 14px;
    text-align: left;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
    font-size: 14px;
}
a.ase-action-btn {
    display: inline-block;
    margin: 5px 5px;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 10px;
    background: #c67800;
    color: #fff;
}
.ase-quick-actions button::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d28c00;
  font-size: 20px;
}

.ase-quick-actions button:hover,
.ase-cat-chip:hover,
.ase-brand-chip:hover,
.ase-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

/* Categories and brands */
.ase-browse-head strong { color: var(--ase-dark); font-size: 14px; }
.ase-browse-cats {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}



.ase-cat-chip:hover,
.ase-brand-chip:hover { border-color: var(--ase-gold); }

.ase-cat-chip span,
.ase-brand-chip span {
  float: right;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
  color: #374151;
}



.ase-brand-panel > strong { font-size: 16px; color: var(--ase-dark); display: block; margin-bottom: 4px; }
.ase-brand-panel p { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.ase-brand-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }

.ase-mini-back {
  border: 0;
  background: var(--ase-dark);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ase-mini-back:hover { background: var(--ase-gold); color: var(--ase-dark); }

/* Product cards */
.ase-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}

.ase-products-head strong { color: var(--ase-dark); font-size: 16px; }
.ase-products-head span { font-size: 12px; color: #6b7280; background: #f3f4f6; border-radius: 999px; padding: 4px 9px; }

.ase-grid.ase-product-grid,
.ase-product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ase-product-card {
  width: auto !important;
  overflow: hidden;
  border: 1px solid var(--ase-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ase-product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.ase-card-media { display: block; overflow: hidden; background: #f6f7f9; }
.ase-card-media img { width: 100% !important; height: 118px !important; object-fit: contain; border: 0 !important; border-radius: 0 !important; transition: transform .35s ease; }
.ase-product-card:hover .ase-card-media img { transform: scale(1.05); }

.ase-product-placeholder {
  height: 118px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  font-weight: 800;
  color: #94a3b8;
}

.ase-card-content { padding: 10px; }
.ase-product-title {
    display: block;
    color: var(--ase-dark) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin-bottom: 10px;
}
.ase-card-content p { display: none !important; }

.ase-product-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 9px;
    justify-content: center;
}
.ase-product-actions a, .ase-product-actions button {
    border: 0;
    border-radius: 999px;
    background: rgba(198, 120, 0, .29);
    color: var(--ase-dark) !important;
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    padding: 4px 9px;
    cursor: pointer;
}
.ase-product-actions button.secondary { background: var(--ase-dark); color: #fff !important; }
.ase-chat-input input::placeholder {
    font-size: 11px;
    color: #666;
}
.ase-load-area { text-align: center; margin: 14px 0; }
.ase-load-more {
    width: auto;
    border: 1px solid var(--ase-dark);
    background: var(--ase-dark);
    color: #fff;
    border-radius: 999px;
    padding: 9px 29px;
    font-weight: 600;
    font-size: 12px;
}
.ase-load-more:hover { background: var(--ase-gold); color: var(--ase-dark); border-color: var(--ase-gold); }

/* Support, enquiry and Forminator */
.ase-support-card, .ase-inline-form, .ase-sales-panel, .ase-no-match, .ase-suggest-box {
    margin-top: 14px;
    padding: 14px 0px;
    /* border: 1px solid var(--ase-border); */
    border-radius: 18px;
    background: #f8fafc;
    /* box-shadow: 0 8px 24px rgba(15, 23, 42, .04); */
}

.ase-inline-form > strong,
.ase-support-card > strong { display: block; color: var(--ase-dark); margin-bottom: 4px; }
.ase-inline-form small { display: block; color: var(--ase-muted); margin-bottom: 10px; }
.ase-sales-panel .contact-btn { display: none !important; }
.details-contacts div:has(a[href^="tel:"]),
.details-contacts div:first-child:not(:has(a)) { display: none !important; }

.ase-form-slot { margin-top: 10px; }
.ase-inline-form .forminator-ui,
.ase-inline-form form.forminator-custom-form,
.ase-inline-form div.forminator-custom-form,
.ase-inline-form .forminator-custom-form {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  height: auto !important;
  overflow: visible !important;
}

.ase-inline-form .forminator-edit-module { display: none !important; }
.ase-inline-form .forminator-row { margin-bottom: 10px !important; }
.ase-inline-form .forminator-field { margin-bottom: 8px !important; }
.ase-inline-form .forminator-input,
.ase-inline-form .forminator-textarea,
.ase-inline-form .forminator-select2 + .select2-container .select2-selection {
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.ase-inline-form .forminator-button-submit { width: 100% !important; border-radius: 999px !important; background: var(--ase-dark) !important; color: #fff !important; padding: 11px 16px !important; }

.ase-form-submit-status { margin: 0 0 10px; padding: 9px 11px; border-radius: 12px; font-size: 13px; line-height: 1.35; display: none; }
.ase-form-submit-status.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ase-form-submit-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.ase-inline-form .forminator-response-message:empty,
.ase-inline-form .forminator-error-message:empty,
.ase-inline-form .forminator-success-message:empty,
.ase-inline-form .ase-empty-forminator-response {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}
.ase-inline-form .forminator-response-message:not(:empty) { display: block !important; }

/* Inactivity nudge */
.ase-nudge .ase-bubble { border: 1px solid rgba(0, 0, 0, .04); font-size: 14px; padding: 15px; background: rgba(255, 184, 28, .05); margin-bottom: 20px; }
.ase-nudge-actions,
.ase-feedback { margin-top: 8px; display: flex; gap: 8px; }
.ase-nudge-actions button,
.ase-send-feedback { padding: 8px 10px; border: 0; border-radius: 8px; cursor: pointer; }
.ase-feedback input { flex: 1; padding: 8px 10px; border: 1px solid var(--ase-border); border-radius: 8px; }
.ase-send-feedback { color: #fff; background: var(--ase-dark); }

/* Enlarged */
.ase-chatbot.ase-enlarged { width: min(920px, 96vw); height: min(70vh, 660px); display: flex; flex-direction: column; }
.ase-chatbot.ase-enlarged .ase-chat-body { height: auto; flex: 1; max-height: none; }
.ase-chatbot.ase-enlarged .ase-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Mobile */
@media (max-width: 520px) {
  .ase-chat-body { height: 70vh; max-height: 70vh; }
  .ase-product-grid,
  .ase-grid.ase-product-grid,
  .ase-chatbot.ase-enlarged .ase-product-grid { grid-template-columns: 1fr !important; }
  .ase-chatbot.ase-enlarged { right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; }
.ase-launcher {
    right: 12px;
    bottom: 10px;
}
.ase-launcher-hint {
    right: 55px;
    bottom: 80px;
    width: 267px;
    max-width: calc(100vw - 36px);
    min-height: 69px;
    border-radius: 34px;
    padding: 14px 20px 14px 66px;
    font-size: 14px;
}
.ase-launcher-hint::before {
    left: 22px;
    top: 16px;
    width: 34px;
    height: 34px;
    font-size: 11px;
}
  .ase-launcher-hint::after { right: 20px; top: 17px; font-size: 22px; }
}

@media (max-width: 360px) {
  .ase-launcher-hint { font-size: 15px; padding-left: 72px; }
}

/* ===== ASE AI Assistant v3.0 UI ===== */
:root{--ase-ai-a:#D17E00;--ase-ai-b:#2A1900;--ase-ai-soft:#f5f2ff;--ase-ai-line:#dde3ee}
.ase-chatbot{width:408px;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(30,41,59,.28)}
.ase-chat-header{min-height:86px;padding:16px 18px;background:linear-gradient(125deg,var(--ase-ai-a),var(--ase-ai-b));align-items:flex-start}
.ase-chat-brand{display:flex;gap:12px;align-items:center}.ase-ai-mark{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:23px;color:#fff;border:1px solid rgba(255,255,255,.2)}
.ase-chat-title{font-size:17px;font-weight:750;display:block}.ase-chat-title:before{display:none}
.ase-chat-brand small {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    margin-top: 2px;
    line-height: normal;
}
.ase-chat-actions button,.ase-chat-header .ase-close{background:transparent!important;font-size:17px;padding:7px;color:#fff}
.ase-chat-actions button:hover{background:rgba(255,255,255,.14)!important}
.ase-chat-body{height:470px;max-height:64vh;padding:0;background:#fff}
.ase-msg.bot:first-child{margin:0}.ase-msg.bot:first-child .ase-bubble{border:0;border-radius:0;box-shadow:none;width:100%;padding:0}
.ase-ai-home{background:#fff}
.ase-ai-search-wrap {
    padding: 18px 14px 12px;
    border-bottom: 1px solid var(--ase-ai-line);
    margin-bottom: 10px;
}
.ase-ai-search {
    height: 38px;
    border: 1px solid #cfd7e4;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    color: #738096;
    background: #fbfcfe;
}
.ase-ai-search span {
    font-size: 23px;
    color: #666;
}
  
.ase-ai-search em {
    font-style: normal;
    font-size: 12px;
    color: #666;
}

.ase-ai-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 14px;border-bottom:1px solid var(--ase-ai-line)}
.ase-ai-tabs button{border:1px solid #d5dce7;background:#fff;color:#172033;border-radius:999px;padding:8px 13px;font-size:13px;cursor:pointer}
.ase-ai-tabs button.active,.ase-ai-tabs button:hover{
  background:linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b));color:#fff;
  border-color: #d17e00;
  box-shadow:0 6px 14px rgba(89,45,221,.25)
}
.ase-ai-hero {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 24px;
}

.ase-ai-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ase-ai-soft);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--ase-ai-a);
    margin-bottom: 8px;
}

.ase-ai-hero strong{font-size:16px;color:#4a5870}
.ase-ai-hero p {
    font-size: 12px;
    color: #7b879a;
    margin: 0px;
    line-height: normal;
}
.ase-ai-prompts{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:16px}
.ase-ai-prompts button{border:1px solid #dbe2ec;background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;color:#344054;cursor:pointer}
.ase-ai-prompts button:hover{border-color:var(--ase-ai-a);color:var(--ase-ai-a)}
.ase-chat-input{padding:12px 14px;background:#fff}
.ase-chat-input input {
    height: 38px;
    border-radius: 13px;
    padding: 0 76px 0 14px;
    font-size: 13px;
}
div.ase-knowledge-sources a.ase-knowledge-source {
    margin: 2px;
    display: inline-block;
    font-size: 11px !important;
    border: 1px solid #eee;
    padding: 7px 10px;
}
div.ase-knowledge-sources a.ase-knowledge-source span {
    font-size: 13px;
}
div.ase-knowledge-sources a.ase-knowledge-source small {
    font-size: 11px;
    display: block;
    color: #c67800;
}
.ase-chat-input .send-btn {
    top: 18px;
    right: 20px;
    height: 27px;
    background: linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b));
    color: #fff;
    font-size: 13px;
}
.ase-chat-footer {
    text-align: center;
    border-top: 1px solid #eef1f5;
    padding: 5px 10px;
    font-size: 9px;
    color: #8792a5;
    background: #fff;
    line-height: normal;
}
.ase-chat-footer strong{color:var(--ase-ai-a)}
.ase-msg{padding:0 14px}.ase-msg.user{padding-top:10px}.ase-msg.bot:not(:first-child){padding-top:10px}
.ase-msg.user .ase-bubble{background:linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b))}
.ase-msg.bot .ase-bubble{max-width:100%}
.ase-quick-actions{grid-template-columns:1fr 1fr}.ase-quick-actions button{border-color:#dbe2ec;background:#fff}
.ase-browse-cats{display:grid!important;grid-template-columns:1fr 1fr}.ase-cat-chip,.ase-brand-chip{max-width:none;width:100%}
.ase-product-actions a,.ase-product-actions button{background:#eef2ff}
.ase-product-actions button.secondary{background:linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b))}
.ase-load-more,.ase-mini-back{background:linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b));border:0}
@media(max-width:520px){
.ase-chatbot {
    right: 8px;
    bottom: 15px;
    width: calc(100vw - 16px);
    border-radius: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.ase-chat-body{max-height:none;height:auto;flex:1}.ase-ai-hero{min-height:220px}
.ase-chat-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}

}


/* ===== ASE AI Assistant v3.1.2 visual refinements ===== */
.ase-cat-chip, .ase-brand-chip {
    max-width: none;
    width: auto;
}

.ase-browse-head {
  margin-bottom: 14px;
}

.ase-browse-head strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #172033;
}

.ase-browse-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 0 !important;
}

.ase-cat-chip, .ase-brand-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    /* min-height: 45px; */
    padding: 6px 28px 6px 12px;
    border: 1px solid #dfe5ef;
    border-radius: 15px;
    background: linear-gradient(180deg,#fff,#fbfcff);
    color: #172033;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    box-shadow: 0 5px 14px rgba(31,41,55,.055);
}

.ase-cat-chip::after, .ase-brand-chip::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 45%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    font-weight: 500;
}

.ase-cat-chip:hover,
.ase-brand-chip:hover,
.ase-cat-chip:focus-visible,
.ase-brand-chip:focus-visible {
  transform: translateY(-1px);
  border-color: #D17E00;
  background: #faf8ff;
  box-shadow: 0 9px 22px rgba(80,54,180,.13);
  outline: none;
}

.ase-cat-chip span, .ase-brand-chip span {
    float: none;
    flex: 0 0 auto;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
    padding: 4px 5px;
    background: #f1f3f8;
    color: #596579;
    font-size: 10px;
    line-height: 1;
    border-radius: 999px;
}

.ase-cat-chip span + * ,
.ase-brand-chip span + * { margin-left: 0; }

.ase-brand-panel {
    padding: 8px;
    /* border: 1px solid #e3e7f0; */
    border-radius: 18px;
    background: #fff;
    /* box-shadow: 0 8px 24px rgba(31,41,55,.07); */
}

.ase-brand-panel > strong {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 680;
    margin-bottom: 5px;
}

.ase-brand-panel p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #718096;
}

.ase-brand-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
}


.ase-ai-tabs {
  align-items: center;
  gap: 7px;
  padding: 0 14px 13px;
}

.ase-ai-tabs button {
    min-height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 14px;
    font-weight: 550;
    line-height: 1;
    font-size: 12px;
}
.ase-action-btn,
a.ase-action-btn,
.ase-support-actions .ase-action-btn {
  margin: 4px 4px 4px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,var(--ase-ai-a),var(--ase-ai-b));
  color: #fff !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(72,52,190,.18);
}

.ase-mini-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(72,52,190,.16);
}

.ase-inline-form,
.ase-support-card,
.ase-no-match,
.ase-suggest-box {
  border-color: #e1e6ef;
  background: #fff;
}

.ase-chat-input .send-btn {
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 420px) {
  .ase-browse-cats {
    grid-template-columns: 1fr !important;
  }
  .ase-cat-chip,
  .ase-brand-chip {
    min-height: 48px;
  }
}

/* v3.1.3 configurable example prompts */
.ase-context-prompts {
  width: 100%;
  padding: 4px 0 2px;
}
.ase-context-prompts > small {
  display: block;
  margin-bottom: 8px;
  color: var(--ase-muted);
  font-size: 12px;
  font-weight: 700;
}
.ase-context-prompts .ase-ai-prompts {
  justify-content: flex-start;
}
.ase-context-prompts .ase-ai-prompts button {
  text-align: left;
}


/* v3.3.0 reusable appearance variables */
:root{--ase-header-bg:#111827;--ase-header-text:#fff;--ase-chat-bg:#f8fafc;--ase-bot-bubble:#fff;--ase-user-bubble:#111827;--ase-button-bg:#d17e00;--ase-button-hover:#f0a900;--ase-button-text:#fff;--ase-search-bg:#fff;--ase-search-text:#333;--ase-launcher-bg:#fff;--ase-launcher-icon:#111827;--ase-chat-width:390px;--ase-chat-height:500px;--ase-font-size:14px;--ase-launcher-bottom:25px;--ase-launcher-side:25px}
.ase-launcher{right:var(--ase-launcher-side);bottom:var(--ase-launcher-bottom);background-color:var(--ase-launcher-bg);color:var(--ase-launcher-icon)}
.ase-launcher-glyph{display:grid;place-items:center;width:100%;height:100%;font-size:22px;color:var(--ase-launcher-icon)}
.ase-launcher[style*="background-image"] .ase-launcher-glyph{display:none}
.ase-chatbot{width:var(--ase-chat-width);font-size:var(--ase-font-size)}
.ase-chat-header{background:linear-gradient(135deg,var(--ase-header-bg),var(--ase-dark-2));color:var(--ase-header-text)}
.ase-chat-title,.ase-chat-actions button,.ase-chat-header .ase-close{color:var(--ase-header-text)}
.ase-chat-body{height:var(--ase-chat-height);background:var(--ase-chat-bg)}
.ase-msg.bot .ase-bubble{background:var(--ase-bot-bubble);border-color:var(--ase-border)}
.ase-msg.user .ase-bubble{background:var(--ase-user-bubble);color:var(--ase-button-text)}
.ase-chat-input{background:var(--ase-search-bg);border-color:var(--ase-border)}
.ase-chat-input input{background:var(--ase-search-bg)!important;color:var(--ase-search-text)!important;border-color:var(--ase-border)}
.ase-chat-input .send-btn,.ase-action-btn,.ase-load-more{background:var(--ase-button-bg)!important;color:var(--ase-button-text)!important}
.ase-chat-input .send-btn:hover,.ase-action-btn:hover,.ase-load-more:hover{background:var(--ase-button-hover)!important}
.ase-header-logo{width:38px;height:38px;object-fit:contain;border-radius:8px}
/* Keep the launcher, hint, and chatbot aligned to the same spacing controls. */
.ase-chatbot{right:var(--ase-launcher-side);bottom:calc(var(--ase-launcher-bottom) + 67px)}
.ase-launcher-hint{right:calc(var(--ase-launcher-side) + 69px);bottom:calc(var(--ase-launcher-bottom) + 21px)}
.ase-launcher-left .ase-launcher{left:var(--ase-launcher-side);right:auto}
.ase-launcher-left .ase-chatbot{left:var(--ase-launcher-side);right:auto}
.ase-launcher-left .ase-launcher-hint{left:calc(var(--ase-launcher-side) + 69px);right:auto}
.ase-chatbot.ase-opening[data-animation="fade-up"]{animation:aseOpenFadeUp .35s ease both}.ase-chatbot.ase-opening[data-animation="scale"]{animation:aseOpenScale .3s ease both}.ase-chatbot.ase-opening[data-animation="slide"]{animation:aseOpenSlide .35s ease both}
@keyframes aseOpenFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes aseOpenScale{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes aseOpenSlide{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
@media(max-width:600px){.ase-chatbot{width:calc(100vw - 24px);left:12px!important;right:12px!important}.ase-launcher-hint{display:none}}

/* ===== v3.3.2 viewport-height responsive fix ===== */
/* Keep the complete chatbot inside the visible screen on short and medium-height devices. */
.ase-chatbot {
  max-height: calc(100dvh - var(--ase-launcher-bottom) - 82px);
  display: flex;
  flex-direction: column;
}

.ase-chat-header,
.ase-chat-input,
.ase-chat-footer {
  flex: 0 0 auto;
}

.ase-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Short desktop, laptop and landscape tablet screens. */
@media (min-width: 601px) and (max-height: 900px) {
  .ase-chatbot {
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
    height: auto;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - 12px);
  }
}

@media (min-width: 601px) and (max-height: 650px) {
  .ase-chat-header {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ase-ai-search-wrap {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .ase-ai-tabs {
    padding-bottom: 9px;
  }

  .ase-ai-hero {
    min-height: 160px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Mobile screens: use the full usable viewport and safe-area insets. */
@media (max-width: 600px) {
  .ase-chatbot {
    top: max(8px, env(safe-area-inset-top));
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px !important;
    width: auto;
    height: auto;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    overflow: hidden;
  }

  .ase-chat-body {
    height: auto;
    max-height: none;
  }
}

/* Fallback for browsers that do not support dynamic viewport units. */
@supports not (height: 100dvh) {
  .ase-chatbot {
    max-height: calc(100vh - var(--ase-launcher-bottom) - 82px);
  }

  @media (min-width: 601px) and (max-height: 900px) {
    .ase-chatbot {
      max-height: calc(100vh - 24px);
    }
  }

  @media (max-width: 600px) {
    .ase-chatbot {
      max-height: calc(100vh - 16px);
    }
  }
}

/* v3.4.0 website knowledge answers */
.ase-knowledge-answer {
  padding: 14px;
  border: 1px solid var(--ase-border);
  border-radius: 16px;
  background: var(--ase-bot-bubble);
}
.ase-knowledge-answer > strong { display:block; margin-bottom:8px; color:var(--ase-dark); }
.ase-knowledge-summary p { margin:0 0 10px; line-height:1.55; color:#475569; }
.ase-knowledge-summary b { color:var(--ase-dark); }
.ase-knowledge-note { padding:10px 12px; border-radius:12px; background:rgba(209,126,0,.08); }
.ase-knowledge-sources { display:grid; gap:8px; margin-top:12px; }
.ase-knowledge-sources > strong { font-size:13px; color:var(--ase-dark); }
.ase-knowledge-source {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border:1px solid var(--ase-border); border-radius:12px;
  background:#fff; color:var(--ase-dark)!important; text-decoration:none!important;
}
.ase-knowledge-source:hover { border-color:var(--ase-button-bg); transform:translateY(-1px); }
.ase-knowledge-source span { font-size:12px; font-weight:650; line-height:1.35; }
.ase-knowledge-source small { flex:0 0 auto; font-size:10px; color:var(--ase-muted); }
