:root {
  --blue: #185875;
  --yellow: #00b34b;
  --dark-bg: #2a2a2a;
  --text-light: #d1d1d1;
  --text-dark: #000000;
  --accent-green: #00b34b;
  --animation-duration: 0.5s;
  --transition-ease: ease-out;
  --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --font-family-base: "Noto Sans", sans-serif;
  --font-size-base: clamp(14px, 2vw, 16px);
  --line-height-base: 1.5;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
}



a {
  color: #37815a;
  text-decoration: none;
  transition: color var(--animation-duration) var(--transition-ease);
}

a:hover {
  color: var(--accent-green);
}

/* Utility Classes */
.blue { color: var(--blue); }
.yellow { color: var(--yellow); }
.telegai { margin: 3% 0; }
.animated {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 2s forwards;
}
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animations */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floating {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); box-shadow: var(--shadow-hover); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes mercuryTypingAnimation {
  0% { transform: translateY(0); background-color: #15d334; }
  28% { transform: translateY(-4px); background-color: #4eda67; }
  44% { transform: translateY(0); background-color: #89ea98; }
}



.wg28-chat-what-write{contain:content; overflow-anchor:auto;}


/* ===== THINKING LINE (как в ChatGPT) ===== */

/* === WG28 thinking line: не блокируем клики под полосой === */
.wg28-think-card{ pointer-events: none; }
.wg28-think-skip{ pointer-events: auto; }
.wg28-think-skip svg rect { transition: filter .15s ease }
.wg28-think-skip:hover svg rect { filter: brightness(1.15); }


.wg28-chat-window .wg28-think-card{
  position: sticky;            /* прилипает к верху окна чата */
  top: 0;
  z-index: 5;
  background: rgba(20,21,22,.92);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 12px;
}

.wg28-think-line{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #aeb4ba;              /* приглушённый текст */
}

.wg28-think-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10a37f;         /* зелёный как у ChatGPT */
  box-shadow: 0 0 0 0 rgba(16,163,127,.6);
  animation: wg28-pulse 1.2s infinite;
  flex: 0 0 auto;
}

@keyframes wg28-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(16,163,127,.6); }
  100% { box-shadow: 0 0 0 10px rgba(16,163,127,0); }
}

.wg28-think-text{
  flex: 1 1 auto;
  min-width: 0;
  color: #d7dbe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* кнопка “Пропустить” */
.wg28-think-skip{
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #9aa0a6;
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wg28-think-skip:focus-visible{
  outline: 2px solid rgba(255,255,255,.14);
  outline-offset: 2px;
}
.wg28-think-skip .arrow{
  display: inline-block;
  transform: translateX(0);
  transition: transform .18s ease;
}
.wg28-think-skip:hover .arrow{ transform: translateX(2px); }

/* плавная смена текста шага */
.fade-enter{ opacity: .5; transform: translateY(2px); }
.fade-enter-active{ opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease; }

/* ===== Плавающая кнопка “Отправить” для выбранных (FAB) ===== */
.wg28-send-fab{
  position: fixed;
    right: 25% !important;
    bottom: 20% !important;               /* точное значение JS обновляет с учётом safe-area */
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #10a37f;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  cursor: pointer;
}
.wg28-send-fab__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

/* на малых экранах чуть крупнее область клика */
@media (max-width: 768px){
  .wg28-think-line{ font-size: 15px; }
  .wg28-send-fab{ right: 12px; padding: 12px 16px; }
}




/* skeletons */
        .tg-skeleton{position:relative;overflow:hidden;background:#1e1f22;border:1px solid #2a2b31;border-radius:12px;padding:12px;margin:8px 0}
        .tg-skel-line{height:14px;border-radius:6px;background:linear-gradient(90deg,#2a2b31,#3a3b42,#2a2b31);background-size:200% 100%;animation:tgShimmer 1.2s linear infinite}
        .tg-skel-line+.tg-skel-line{margin-top:8px}
        @keyframes tgShimmer{0%{background-position:0 0}100%{background-position:-200% 0}}

        .ai-img-shell{position:relative; overflow:hidden; border-radius:12px; background:#1e1f22; border:1px solid #2a2b31}
        .ai-img-shell .ai-img-skeleton{
          position:absolute; inset:0;
          background:linear-gradient(90deg, rgba(42,43,49,.35) 0%, rgba(58,59,66,.85) 50%, rgba(42,43,49,.35) 100%);
          background-size:200% 100%;
          animation:aiSkel 1.1s linear infinite;
        }
        .ai-img-shell img{display:block; width:100%; height:auto; opacity:0; transition:opacity .24s ease;}
        @keyframes aiSkel{0%{background-position:0 0}100%{background-position:-200% 0}}


/* Stylish Product List */
/* Дизайн 2: Кристальные карточки (UX оптимизированный) */
.product-list.design-2 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 1rem auto;
}

.product-list.design-2 li {
    background: linear-gradient(135deg, 
        rgba(30, 30, 40, 0.95) 0%,
        rgba(45, 45, 60, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Градиентная рамка */
.product-list.design-2 li::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 234, 0.2), 
        rgba(157, 0, 255, 0.2));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Кристальные бейджи */
.product-list.design-2 .icon-badge.crystal-badge {
    background: linear-gradient(135deg, 
        rgba(0, 255, 234, 0.15), 
        rgba(157, 0, 255, 0.15));
    border-radius: 16px;
    padding: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.product-list.design-2 .icon-badge.crystal-badge .icon {
    font-size: 1.6rem;
    display: block;
    min-width: 24px;
    text-align: center;
}

/* Текст контент */
.product-list.design-2 .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

.text-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-list.design-2 .text {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-list.design-2 .value {
    color: #00ffea;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Прогресс-бар */
.product-list.design-2 .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.product-list.design-2 .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #00ffea, 
        #9d00ff);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Статистика */
.stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.stat {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-list.design-2 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 0.8rem;
    }
    
    .product-list.design-2 li {
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    .content-wrapper {
        gap: 1rem;
        align-items: center;
    }
    
    .product-list.design-2 .icon-badge.crystal-badge {
        padding: 0.8rem;
        border-radius: 14px;
    }
    
    .product-list.design-2 .icon-badge.crystal-badge .icon {
        font-size: 1.4rem;
    }
    
    .product-list.design-2 .text {
        font-size: 0.9rem;
    }
    
    .product-list.design-2 .value {
        font-size: 1rem;
    }
    
    .product-list.design-2 .progress-bar {
        height: 5px;
    }
    
    .stat {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-list.design-2 {
        gap: 0.8rem;
        margin: 0.8rem;
    }
    
    .product-list.design-2 li {
        padding: 1.2rem;
    }
    
    .product-list.design-2 .text {
        font-size: 0.9rem;
    }
    
    .product-list.design-2 .value {
        font-size: 1rem;
    }
}
/* -----------------------------------------------------------------------------
   AI Table — чистые ховеры, липкая шапка, горизонтальный скролл
----------------------------------------------------------------------------- */
/* Обёртка для «chatgpt-подобного» скролла (опционально, если сможешь добавить в HTML) */
.table-container {
  margin: 1rem 0;
  background: #1a1a1a;
  border: 1px solid #323232;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #00b34b 20%, 
    #00b34b 50%, 
    #00b34b 80%, 
    transparent 100%);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.table-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.techno-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.techno-table th {
  background: #232323;
  padding: 1.3rem 1rem;
  position: relative;
  text-align: left;
}

.techno-table th span:first-child {
  color: #00b34b;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.th-line {
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #00b34b;
  border-radius: 1px;
}

.techno-table tr {
  transition: all 0.3s ease;
  position: relative;
}

.techno-table tr:hover {
  background: rgba(0, 179, 75, 0.05);
}

.techno-table tr:hover::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #00b34b;
}

.techno-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #323232;
  color: #afafaf;
  font-weight: 500;
  position: relative;
}

.primary-cell {
  background: #232323;
  color: #00b34b;
  font-weight: 600;
}

.cell-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cell-glow {
  width: 6px;
  height: 6px;
  background: #00b34b;
  border-radius: 50%;
  box-shadow: 0 0 8px #00b34b;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.techno-table tr:hover .cell-glow {
  opacity: 1;
}

.tech-badge {
  background: rgba(0, 179, 75, 0.1);
  color: #00b34b;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 179, 75, 0.3);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  
    display: block;
    width: 150%;
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 179, 75, 0.2), 
    transparent);
  transition: left 0.5s ease;
}

.techno-table tr:hover .tech-badge::before {
  left: 100%;
}

.tech-scroll-bar {
  height: 3px;
  background: #323232;
  position: relative;
  overflow: hidden;
}

.scroll-progress {
  height: 100%;
  background: #00b34b;
  width: 30%;
  border-radius: 2px;
  animation: progress 2s ease-in-out infinite alternate;
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Адаптивность */
@media (max-width: 768px) {
  .table-container {
    margin: 0.5rem;
    border-radius: 8px;
    width: 108%;
    left: -6%;
  }
  
  .techno-table th {
    padding: 1rem 0.8rem;
  }
  
  .techno-table th span:first-child {
    font-size: 0.8rem;
  }
  
  .techno-table td {
    padding: 1rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .th-line {
    left: 0.8rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px) {
  .techno-table th {
    padding: 0.8rem 0.6rem;
  }
  
  .techno-table td {
    padding: 0.8rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .tech-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .th-line {
    left: 0.6rem;
    right: 0.6rem;
  }
}


/* Typing Container */
.typing-container {
  background: var(--accent-green);
  color: var(--text-dark);
  padding: 1rem;
  font-size: 1em;
  line-height: 1.5;
  white-space: break-spaces;
  overflow: hidden;
  display: inline-block;
  border-radius: var(--border-radius);
}

.cursor {
  border-right: 2px solid var(--text-dark);
  animation: blink 0.75s step-end infinite;
}

#typed-text1 { font-weight: 600; }

/* Photo Options */
.photo-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem;
}

.photo-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s var(--transition-ease);
}

.photo-button:hover { background-color: #218838; }

/* Details Button */
button.details-btn {
  background: transparent;
  border: 1px solid #585858;
  color: var(--accent-green);
  padding: 0.5rem 1rem;
  cursor: zoom-in;
  font-size: 0.875em;
  border-radius: var(--border-radius);
  transition: all var(--animation-duration) var(--transition-ease);
  position: relative;
}

button.details-btn:hover {
  background: var(--accent-green);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

/* Other Elements */
span.aiprice { color: var(--accent-green); }
span.zvezd {
  font-weight: bold;
  background: #1b1b1b;
  color: #bababa;
  padding: 0.25rem 0.5rem;
  border-left: 1px solid var(--accent-green);
}

.wg28_answer_title.quizai {
  display: flex;
  font-size: 0.8em;
  margin-top: 0;
  color: #02ad5e;
}

.wg28_personal_text {
  font-size: 0.75em;
  color: #2e2e2e;
}

/* Chat Container */
.wg28-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 110vh;
    background: transparent;
}



.wg28-chat-status-spec { width: 100%; }

.wg28-chat-typing-status {
  display: flex;
  width: 100%;
  font-size: 0.875em;
}

.wg28-chat-bubble {
  display: flex;
  align-items: center;
  color: var(--accent-green);
  font-weight: bold;
  background: #1d1d1d;
  border-radius: var(--border-radius);
}

.wg28-chat-typing {
  display: flex;
  align-items: flex-end;
  height: 12px;
  margin-left: 4px;
}

.wg28-chat-typing-text { font-weight: bold; }

.wg28-chat-typing .wg28-chat-dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #000;
  border-radius: 50%;
  height: 5px;
  margin-right: 4px;
  width: 5px;
}

.wg28-chat-typing .wg28-chat-dot:nth-child(1) { animation-delay: 200ms; }
.wg28-chat-typing .wg28-chat-dot:nth-child(2) { animation-delay: 300ms; }
.wg28-chat-typing .wg28-chat-dot:nth-child(3) { animation-delay: 400ms; }

.wg28-chat-status-container { display: flex; width: 45%; }

.wg28-chat-image {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.wg28-chat-image img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.wg28-chat-ball-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1bc355;
  margin: 0 0.5rem;
}

.wg28-chat-name {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

.wg28-chat-fullname { display: flex; align-items: center; }

.wg28-chat-online { display: flex; align-items: center; }

/* Chat Window */
.wg28-chat-window {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
    padding-top: 10%;
  position: relative;
}


 
.wg28-chat-window::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}

.wg28-chat-window::-webkit-scrollbar-thumb { background-color: var(--accent-green); }
.wg28-chat-window::-webkit-scrollbar-track { background-color: #363636; }

.wg28-row-message {
  width: 100%;
  margin-bottom: 2rem;
}



.wg28-row-message[role='buttons'] {
  background-color: #212121;
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.wg28-chat-message {
  display: flex;
  flex-direction: column;
  line-height: var(--line-height-base);
}

.wg28-chat-message .wg28-chat-who-write {
  display: none
}

.wg28-chat-message .wg28-chat-what-write {
  font-weight: 500;
  color: #a2a2a2;
  font-size: 1.2em;
  white-space: normal;
  text-wrap: pretty;
}

/* Send Message */
.wg28-chat-send-message {
    height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    background: #19191a;
    padding: 0.5rem;
    z-index: 10;
}

.wg28-chat-send-message #wg28-input-message {
  flex: 1;
  font-size: var(--font-size-base);
  padding: 0.75rem;
  border: none;
  outline: none;
  color: white;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.wg28-chat-send-message #wg28-send-message {
  width: 20%;
  background-color: var(--accent-green);
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: background-color var(--animation-duration) var(--transition-ease);
}

.wg28-chat-send-message #wg28-send-message:hover {
  background-color: darken(var(--accent-green), 10%);
}


/* === FAB "Отправить" для селектов ======================================= */
.wg28-send-fab{
  position: fixed;
  right: 40%;
  bottom: 12px;              /* будет сдвигаться с учётом safe-area из JS */
  z-index: 2147483640;       /* поверх контента чата */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: none;
  border-radius: 999px;
  background: #16a34a;       /* зелёная */
  color: #fff;
  font: 600 14px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, opacity .15s ease;
}
.wg28-send-fab:hover{ box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.wg28-send-fab:active{ transform: translateY(1px) scale(.98); }
.wg28-send-fab__badge{
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(2px);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
@media (max-width: 768px){
  .wg28-chat {
    height: 100vh;
}
  .wg28-send-fab{ right: 12px; padding: 14px 16px; }
}

/* (опционально) фикс корзины на десктопе */
.cart-fixed-desktop{
  position: fixed !important;
  top: 14px !important;
  right: 18px !important;
  z-index: 15 !important;
}



/* Back Button */
.wg28-chat-back-button {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #27292c;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--border-radius);
}

.wg28-chat-icon-back {
  width: 23px;
  height: 23px;
  margin-right: 0.5rem;
}

.wg28-chat-icon-back svg { color: #bebebe; }

/* -----------------------------------------------------------------------------
   Fast Requests — улучшили визуал + добавили «чекбокс» для select
----------------------------------------------------------------------------- */


/* новое: полноценный вид для select-fast-request с встроенным чекбоксом */
.select-fast-request.quizai{
  position:relative; display:inline-flex; align-items:center; gap:.6rem;
  padding:.55rem .9rem;
  border:1px solid #3a3f44;
  background: transparent;
  color:#eaecef;
  font-weight: 700; font-size: clamp(12px, 1.9vw, 14px);
  user-select:none; -webkit-tap-highlight-color:transparent;
  cursor: pointer;
  border-radius: 15%;
  z-index: 99999;
}
.select-fast-request.quizai input[type="checkbox"]{
  position:absolute; inset:0; opacity:0; pointer-events:none;
}
.select-fast-request.quizai::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-green);
    border-radius: 6px;
    display: inline-block;
    flex: 0 0 10px;
}
.select-fast-request.quizai.request-button-active,
.select-fast-request.quizai:has(input:checked){
  background: rgba(0,179,75,.15);
  border-color: rgba(0,179,75,.6);
  color:#fff;
  box-shadow: 0 0 0 2px rgba(0,179,75,.2) inset;
}
.select-fast-request.quizai.request-button-active::before,
.select-fast-request.quizai:has(input:checked)::before{
  background: var(--accent-green);
  border-color: var(--accent-green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="white"><path d="M7.5 13.1 4.4 10l-1.4 1.4 4.5 4.5L17 6.9l-1.4-1.4z"/></svg>') center/14px 14px no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="white"><path d="M7.5 13.1 4.4 10l-1.4 1.4 4.5 4.5L17 6.9l-1.4-1.4z"/></svg>') center/14px 14px no-repeat;
}

/* --- Контейнер ЛИД Формы --- */
        #leadForm.conversion-card {
            /* Палитра: #1f1f1f (фон), #00b254 (акцент) */
            background: transparent;
            border-radius: 18px;
            padding: 30px;
            color: #ffffff;
            /* Начальная тень */
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
            border: 1px solid #272727; 
            position: relative;
            overflow: hidden;
            max-width: 650px;
            width: 100%;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        /* Инновация: Контейнер светится при фокусе на любом элементе внутри */
        #leadForm.conversion-card:focus-within {
            box-shadow: 0 0 0 3px #00b254, 0 15px 30px rgba(0, 0, 0, 0.5); /* Зеленый "неоновый" ободок */
            border-color: #00b254;
        }

        /* --- Заголовки --- */
        #leadForm h2 {
            font-size: 26px;
            font-weight: 800;
            margin: 0 0 8px;
            color: #00b254; 
            line-height: 1.2;
        }
        #leadForm p {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.75);
            margin-bottom: 25px;
        }

        /* --- FLEX-КОНТЕЙНЕР ДЛЯ INLINE-СТРУКТУРЫ --- */
        .input-group {
            display: flex;
            gap: 12px;
            align-items: stretch; 
            width: 100%;
        }

        /* --- Инпут --- */
        #leadForm input.add-phone.quizai {
            flex-grow: 1; 
            box-sizing: border-box;
            padding: 18px 20px;
            background: #272727; 
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: #fff;
            font-size: 16px;
            outline: none;
            margin-bottom: 0; 
            transition: all 0.3s ease;
        }
        #leadForm input.add-phone.quizai:focus {
            border-color: #00b254;
            background: #2c2c2c;
        }

        /* --- Кнопка "Flowing Energy" --- */
        #leadForm button.send-phone.quizai {
    flex-shrink: 0;
    width: min-content;
    min-width: 200px;
    border: none;
    padding: 5px;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px -5px rgba(0, 178, 84, 0.5);
    transition: transform 0.15s ease;
    background: linear-gradient(90deg, #00b254 0%, #36d281 50%, #00b254 100%);
    background-size: 50% auto;
    animation: flow-energy 5s linear infinite;
}

        /* Анимация: Движение градиента слева направо */
        @keyframes flow-energy {
            to {
                background-position: -250% center;
            }
        }

        #leadForm button.send-phone.quizai:active {
            transform: scale(0.98);
            box-shadow: 0 4px 10px rgba(0, 178, 84, 0.3);
        }

        /* --- Адаптивность: Переход на вертикальный стек на мобильных --- */
        @media (max-width: 650px) {
            #leadForm.conversion-card {
                padding: 25px 15px;
            }

            .input-group {
                flex-direction: column; 
                gap: 10px;
            }
            
            #leadForm input.add-phone.quizai,
            #leadForm button.send-phone.quizai {
                width: 100%;
                min-width: auto;
                padding: 18px;
            }
        }

/* Cart Styles */
 

.wg28-chat-status .cart-outer {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  width: 90px;
  transition: opacity 0.35s cubic-bezier(0.12, 0.75, 0.4, 1);
}

.wg28-chat-status .cart-menu-wrap {
  position: relative;
  height: 100%;
  cursor: pointer;
}

.wg28-chat-status .cart-menu {
  position: absolute;
  top: 0.25rem;
  right: -1.5rem;
  background-color: #fff;
  border-radius: 100px;
  height: 45px;
  width: 45px;
  padding: 0.75rem 0 0 0.75rem;
  box-shadow: var(--shadow-soft);
}

.wg28-chat-status .cart-contents {
  position: relative;
  display: inline-block;
  color: #999;
  transition: color 0.3s;
}

.wg28-chat-status .cart-icon-wrap {
  display: inline-block;
}

.wg28-chat-status .fa-heart {
  font-size: 1.5em;
  color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: -0.25rem;
}

.wg28-chat-status .cart-wrap {
  position: relative;
  float: right;
  font-size: 0.7em;
  top: -0.875rem;
  right: -0.9375rem;
  margin-right: 1.5625rem;
}

.wg28-chat-status .cart-wrap span {
  background-color: #00b154;
  color: #fff;
  font: bold 0.7em Arial;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  display: inline-block;
  margin-left: 0.25rem;
  animation: bounce_in_animation 0.6s ease-in-out 0.12s normal both;
}

@keyframes bounce_in_animation {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}





#gentext h1, #gentext ul {
  opacity: 0.8;
  transition: opacity var(--animation-duration) var(--transition-ease);
  white-space: normal;
}
 

 
#gentext h1 {
  line-height: 48px;
    padding-bottom: 20px;
      text-transform: uppercase;
}

#gentext.fade-in p, #gentext.fade-in h1, #gentext.fade-in ul {
  opacity: 1;
}

/* Quiz Container */
.wg28_container-quiz {
  width: 100%;
  margin: 0 auto;
  color: var(--text-light);
  min-height: 100vh;
}

/* Media Queries - Mobile First */
@media (max-width: 568px) {
    .product-list .text {
    font-size: 90%;
}
  :root {
    --font-size-base: clamp(12px, 3vw, 14px);
  }
.wg28-chat-send-message {
  width: 100%;
}
  .aitable {
    width: 110%;
    margin: 1rem 0 0 -5%;
  }

  .aitable td {
    font-size: 0.7em;
    line-height: 1.2;
    padding: 0.5rem;
  }

  .aitable td:first-child { padding: 0; }


 

 }



  /* На мобильных — справа в строке статуса, как было */
@media (max-width: 1023px){
  .product-list .text {
    font-size: 90%;
}
 
}

@media (max-width: 768px) {
  .input-group {
    display: grid

}
  .product-list .text {
    padding-top: 20px;
    font-size: 80%;
}


  .inai-wrapper {
    flex-direction: column;
    height: auto;
  }

  .inai-block { height: 50vh; }

  .aligment-next-button {
    height: 58%;
    top: 10%;
  }

  .typing-container {
    line-height: 1.4;
    font-size: 0.8em;
  }

  .wg28_container-quiz {
    width: 100%;
    margin: 0;
  } 


 


  .wg28-chat-typing-status { margin-bottom: 10%; }

  button.details-btn { font-size: 0.8em; }

  .fast-requests.quizai { margin-top: 3rem; }

 .text-content {
    width: 100%;
    font-size: 115%;
}

  .wg28-chat-message .wg28-chat-what-write {
    line-height: 1.8;
    font-size: 1.4em;
  }

  .fast-buttons.quizai { flex-wrap: wrap; }

  .wg28-chat-message { margin-bottom: 1.875rem; }

  .wg28_answer_title.quizai {
    font-size: 0.65em;
  }

  .wg28-chat-send-message {

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .wg28_desc-row {
    display: block;
    font-size: 0.8em;
    margin-top: -1.875rem;
  }

  .checklist {
    display: flex;
    flex-direction: column;
    background: #b9b9b9;
    padding: 0.625rem;
    width: 100%;
    margin: 0.9375rem 0.625rem 0.625rem 0;
  }

  .wg28-chat-window { padding-bottom: 2.5rem; }
}

@media (max-width: 800px) {
  .aitable td:nth-child(3), .aitable th:nth-child(3) { display: none; }
  .aitable td:hover { background-image: none; }
}

@media (min-width: 1200px) {
  button.details-btn { font-size: 1em; }




  .checklist {
    display: block;
    background: #b9b9b9;
    padding: 0.625rem;
    width: 100%;
    margin: 0.9375rem 0.625rem 0.625rem 0;
  }

  .wg28-chat-message .wg28-chat-what-write p { font-size: 1.15em; }

  .wg28-chat-window { padding-bottom: 2.5rem; }
}