.bp-ai-widget {
  --bp-ai-green: #6366f1;
  --bp-ai-green-dark: #4f46e5;
  --bp-ai-bg: #f1f4f8;
  --bp-ai-surface: #ffffff;
  --bp-ai-line: #c7d2fe;
  --bp-ai-text: #1b261f;
  --bp-ai-muted: #667164;
  --bp-ai-blue: #1f6f8b;
  --bp-ai-red: #b85042;
  --bp-ai-shadow: rgba(30, 27, 75, .2);
  position: fixed;
  right: 22px;
  bottom: var(--bp-ai-bottom, 92px);
  z-index: 99990;
  color: var(--bp-ai-text);
  font-family: Montserrat, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bp-ai-widget *,
.bp-ai-widget *::before,
.bp-ai-widget *::after {
  box-sizing: border-box;
}

.bp-ai-widget button,
.bp-ai-widget input,
.bp-ai-widget textarea,
.bp-ai-widget select {
  font: inherit;
}

.bp-ai-widget__launcher {
  width: 68px;
  height: 68px;
  min-width: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 102, 241, .32);
  border-radius: 999px;
  padding: 6px;
  background: #fff;
  color: var(--bp-ai-text);
  box-shadow: 0 18px 44px rgba(99, 102, 241, .32);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  animation: bpAiLauncherBreath 4.8s ease-in-out infinite;
}

.bp-ai-widget__launcher:hover {
  background: #f8fafc;
  box-shadow: 0 20px 52px rgba(99, 102, 241, .38);
  transform: translateY(-1px);
}

.bp-ai-widget__launcher-icon {
  width: 100%;
  height: 100%;
  min-width: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e7ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.bp-ai-widget__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 44px));
  height: min(640px, calc(100vh - var(--bp-ai-bottom, 92px) - 30px));
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  background: var(--bp-ai-surface);
  box-shadow: 0 24px 70px var(--bp-ai-shadow);
}

.bp-ai-widget.is-open .bp-ai-widget__panel {
  display: grid;
  animation: bpAiPanelIn .22s ease-out both;
}

.bp-ai-widget.is-open .bp-ai-widget__launcher {
  display: none;
}

.bp-ai-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--bp-ai-line);
  background: #f8fafc;
}

.bp-ai-widget__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bp-ai-widget__avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bp-ai-green);
  color: #fff;
}

.bp-ai-widget__avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bp-ai-widget__avatar-img--launcher {
  transform: scale(1.03);
}

.bp-ai-widget__title strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.bp-ai-widget__title span {
  display: block;
  margin-top: 3px;
  color: var(--bp-ai-muted);
  font-size: 12px;
  line-height: 1.3;
}

.bp-ai-widget__close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bp-ai-text);
  cursor: pointer;
}

.bp-ai-widget__messages {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(238, 245, 237, .7), rgba(255, 255, 255, .95));
}

.bp-ai-widget__msg {
  max-width: 92%;
  display: grid;
  gap: 5px;
}

.bp-ai-widget__msg.is-new {
  animation: bpAiMessageInBot .24s ease-out both;
}

.bp-ai-widget__msg--user.is-new {
  animation-name: bpAiMessageInUser;
}

.bp-ai-widget__msg--user {
  align-self: flex-end;
  justify-items: end;
}

.bp-ai-widget__bubble {
  padding: 10px 12px;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(30, 27, 75, .06);
}

.bp-ai-widget__msg--user .bp-ai-widget__bubble {
  border-color: rgba(99, 102, 241, .2);
  background: #e7f2e7;
}

.bp-ai-widget__meta {
  color: var(--bp-ai-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-ai-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 14px;
  color: var(--bp-ai-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: .86;
  transition: color .18s ease, opacity .18s ease;
}

.bp-ai-widget__status[data-status="read"] {
  color: var(--bp-ai-green);
  opacity: 1;
}

.bp-ai-widget__checks {
  display: inline-block;
  min-width: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.bp-ai-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bp-ai-muted);
}

.bp-ai-widget__typing-label {
  white-space: nowrap;
}

.bp-ai-widget__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 12px;
}

.bp-ai-widget__typing-dots i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: var(--bp-ai-green);
  opacity: .32;
  transform: translateY(0);
  animation: bpAiTypingDot 1s ease-in-out infinite;
}

.bp-ai-widget__typing-dots i:nth-child(2) {
  animation-delay: .13s;
}

.bp-ai-widget__typing-dots i:nth-child(3) {
  animation-delay: .26s;
}

.bp-ai-widget__options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 3px;
  animation: bpAiOptionsIn .2s ease-out both;
}

.bp-ai-widget__option {
  min-height: 36px;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--bp-ai-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.bp-ai-widget__option:hover {
  border-color: rgba(99, 102, 241, .55);
}

.bp-ai-widget__option--primary {
  border-color: var(--bp-ai-green);
  background: var(--bp-ai-green);
  color: #fff;
}

.bp-ai-widget__option--primary:hover {
  border-color: var(--bp-ai-green-dark);
  background: var(--bp-ai-green-dark);
}

.bp-ai-widget__option.is-loading,
.bp-ai-widget__option[aria-disabled="true"] {
  pointer-events: none;
  opacity: .72;
  cursor: wait;
}

.bp-ai-widget__option--faq {
  min-height: 32px;
  border-color: rgba(31, 111, 139, .22);
  background: #f6fbfc;
  color: #19566d;
  font-size: 12px;
  font-weight: 800;
}

.bp-ai-widget__option--faq:hover {
  border-color: rgba(31, 111, 139, .5);
  background: #eef7f9;
}

.bp-ai-widget__msg--form {
  max-width: 96%;
}

.bp-ai-widget__quick-order {
  display: grid;
  gap: 9px;
  width: min(330px, 100%);
  padding: 12px;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 27, 75, .06);
}

.bp-ai-widget__quick-order-title {
  color: var(--bp-ai-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.bp-ai-widget__quick-order label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--bp-ai-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.bp-ai-widget__quick-order-input {
  width: 100% !important;
  min-height: 38px !important;
  border: 1px solid var(--bp-ai-line) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
  color: var(--bp-ai-text) !important;
  font-size: 13px !important;
  box-shadow: none !important;
  outline: none !important;
}

.bp-ai-widget__quick-order-textarea {
  min-height: 64px !important;
  resize: vertical;
}

.bp-ai-widget__quick-order-consent {
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  color: var(--bp-ai-text) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.bp-ai-widget__quick-order-consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--bp-ai-green);
}

.bp-ai-widget__quick-order-submit {
  min-height: 40px;
  border: 1px solid var(--bp-ai-green);
  border-radius: 8px;
  background: var(--bp-ai-green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.bp-ai-widget__quick-order-submit:disabled {
  opacity: .72;
  cursor: wait;
}

.bp-ai-widget__quick-order-status {
  min-height: 15px;
  color: var(--bp-ai-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.bp-ai-widget__quick-order-status.is-error {
  color: var(--bp-ai-red);
}

.bp-ai-widget__composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--bp-ai-line);
  background: #fff;
}

.bp-ai-widget__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.bp-ai-widget__input,
.bp-ai-widget__textarea {
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid var(--bp-ai-line) !important;
  border-radius: 8px !important;
  padding: 10px 11px !important;
  background: #f8fafc !important;
  color: var(--bp-ai-text) !important;
  box-shadow: none !important;
  outline: none !important;
}

.bp-ai-widget__input::placeholder,
.bp-ai-widget__textarea::placeholder {
  color: #7d887b !important;
  opacity: 1 !important;
}

.bp-ai-widget__textarea {
  min-height: 72px;
  resize: vertical;
}

.bp-ai-widget__send {
  min-height: 42px;
  border: 1px solid var(--bp-ai-green);
  border-radius: 8px;
  background: var(--bp-ai-green);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.bp-ai-widget__send:disabled {
  opacity: .65;
  cursor: wait;
  animation: bpAiSendPulse 1.1s ease-in-out infinite;
}

.bp-ai-widget__notice {
  display: none;
  padding: 9px 10px;
  border: 1px solid var(--bp-ai-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bp-ai-muted);
  font-size: 12px;
  line-height: 1.4;
}
.bp-ai-widget__notice.is-visible {
  display: block;
}

.bp-ai-widget__fallback {
  color: var(--bp-ai-blue);
  font-weight: 800;
  text-decoration: none;
}

.bp-telegram-widget {
  width: 56px;
  height: 56px;
  right: 28px;
  bottom: 22px;
}

@keyframes bpAiLauncherBreath {
  0%, 100% {
    box-shadow: 0 18px 44px rgba(99, 102, 241, .3);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 22px 56px rgba(99, 102, 241, .42);
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes bpAiPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bpAiMessageInBot {
  from {
    opacity: 0;
    transform: translateX(-8px) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes bpAiMessageInUser {
  from {
    opacity: 0;
    transform: translateX(8px) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes bpAiTypingDot {
  0%, 70%, 100% {
    opacity: .32;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes bpAiOptionsIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bpAiSendPulse {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-ai-widget__launcher,
  .bp-ai-widget.is-open .bp-ai-widget__panel,
  .bp-ai-widget__msg.is-new,
  .bp-ai-widget__options,
  .bp-ai-widget__typing-dots i,
  .bp-ai-widget__send:disabled {
    animation: none;
  }
}

@media (max-width: 520px) {
  .bp-ai-widget {
    left: auto;
    right: 14px;
    bottom: var(--bp-ai-bottom, 130px);
    width: 50px;
  }

  .bp-ai-widget.is-open {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .bp-ai-widget__launcher {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 3px;
  }

  .bp-telegram-widget {
    width: 44px;
    height: 44px;
    right: 17px;
    bottom: 76px;
  }

  .bp-ai-widget__panel {
    left: auto;
    right: 0;
    bottom: 0;
    width: min(390px, calc(100vw - 24px));
    height: min(560px, calc(100dvh - 24px));
    max-height: calc(100vh - 24px);
  }

  .bp-ai-widget__head {
    align-items: center;
    padding: 10px 12px;
  }

  .bp-ai-widget__avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .bp-ai-widget__title strong {
    font-size: 14px;
  }

  .bp-ai-widget__title span {
    font-size: 11px;
  }

  .bp-ai-widget__close {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .bp-ai-widget__messages {
    padding: 10px;
    gap: 8px;
  }

  .bp-ai-widget__bubble {
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.38;
  }

  .bp-ai-widget__options {
    gap: 6px;
  }

  .bp-ai-widget__option {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .bp-ai-widget__composer {
    padding: 9px;
  }

  .bp-ai-widget__input-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .bp-ai-widget__input {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px !important;
  }

  .bp-ai-widget__send {
    min-height: 44px;
  }

}

/* BIOPATRIOT site polish v1.14.3 */
html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product,
html.bp-ai-polish-v1143 .products .product,
html.bp-ai-polish-v1143 li.product {
  --bp-site-card-bg: #24264d;
  --bp-site-card-line: rgba(216, 176, 235, .52);
  --bp-site-card-soft: rgba(255, 255, 255, .08);
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product > .wrap {
  min-height: 100%;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bp-site-card-line);
  border-radius: 8px;
  background: var(--bp-site-card-bg);
  box-shadow: 0 14px 34px rgba(9, 15, 38, .18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product:hover > .wrap {
  border-color: rgba(226, 196, 241, .72);
  box-shadow: 0 18px 42px rgba(9, 15, 38, .24);
  transform: translateY(-1px);
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .image {
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f6f4ef;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .image-inner {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f6f4ef;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .image-inner picture,
html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .image-inner img {
  width: 100%;
  height: 100%;
  display: block;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .image-inner img {
  object-fit: cover;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 236px;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption .categories {
  min-height: 18px;
  letter-spacing: .02em;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption .title {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption .title a {
  line-height: 1.28;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .price-wrap,
html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .product-price {
  min-height: 28px;
}

html.bp-ai-polish-v1143 .bp-site-card__trust {
  max-width: 220px;
  margin: 5px auto 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product a.button,
html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product button,
html.bp-ai-polish-v1143 .products .product a.button,
html.bp-ai-polish-v1143 li.product a.button {
  min-height: 40px;
  border-radius: 999px !important;
  padding-inline: 18px !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}

html.bp-ai-polish-v1143 .bp-site-product-note {
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 8px;
  background: rgba(244, 247, 242, .92);
  color: #273329;
  font-size: 13px;
  line-height: 1.55;
}

html.bp-ai-polish-v1143 .bp-site-product-note strong {
  color: #4f46e5;
}

html.bp-ai-polish-v1143 .bp-site-after-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 8px;
  background: #f7faf5;
  box-shadow: 0 12px 28px rgba(30, 27, 75, .08);
}

html.bp-ai-polish-v1143 .bp-site-after-order__text {
  display: grid;
  gap: 5px;
  color: #223027;
  line-height: 1.45;
}

html.bp-ai-polish-v1143 .bp-site-after-order__text strong {
  color: #4f46e5;
  font-size: 16px;
}

html.bp-ai-polish-v1143 .bp-site-after-order__text span {
  color: #5d685f;
  font-size: 13px;
}

html.bp-ai-polish-v1143 .bp-site-after-order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

html.bp-ai-polish-v1143 .bp-site-after-order__button,
html.bp-ai-polish-v1143 .bp-site-after-order__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

html.bp-ai-polish-v1143 .bp-site-after-order__button {
  border: 1px solid #6366f1;
  background: #6366f1;
  color: #fff;
}

html.bp-ai-polish-v1143 .bp-site-after-order__link {
  border: 1px solid rgba(99, 102, 241, .22);
  background: #fff;
  color: #6366f1;
}

@media (max-width: 767px) {
  html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption {
    min-height: 218px;
  }

  html.bp-ai-polish-v1143 .portfolio-set .portfolio-item.product .caption .title {
    min-height: 46px;
  }

  html.bp-ai-polish-v1143 .bp-site-card__trust {
    max-width: 190px;
    font-size: 9px;
  }

  html.bp-ai-polish-v1143 .bp-site-after-order {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  html.bp-ai-polish-v1143 .bp-site-after-order__actions {
    justify-content: stretch;
  }

  html.bp-ai-polish-v1143 .bp-site-after-order__button,
  html.bp-ai-polish-v1143 .bp-site-after-order__link {
    flex: 1 1 150px;
  }
}



/* BIO PATRIOT ACCENT OVERRIDE */
.bp-ai-widget {
  --bp-ai-green: #6366f1;
  --bp-ai-green-dark: #4f46e5;
  --bp-ai-bg: #f1f4f8;
  --bp-ai-line: #d8e0ea;
  --bp-ai-text: #1b1e26;
  --bp-ai-muted: #646871;
  --bp-ai-shadow: rgba(99, 102, 241, 0.25);
}
.bp-ai-widget__msg--user .bp-ai-widget__bubble {
  border-color: rgba(99, 102, 241, 0.2);
  background: #eef2ff;
}
.bp-ai-widget__launcher-icon {
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}
.bp-ai-widget__launcher {
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 18px 44px rgba(99, 102, 241, 0.32);
}
.bp-ai-widget__launcher:hover {
  box-shadow: 0 20px 52px rgba(99, 102, 241, 0.38);
}
.bp-ai-widget__messages {
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.7), rgba(255, 255, 255, 0.95));
}
@keyframes bpAiLauncherBreath {
  0%, 100% {
    box-shadow: 0 18px 44px rgba(99, 102, 241, 0.3);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 22px 56px rgba(99, 102, 241, 0.42);
    transform: translateY(-1px) scale(1.015);
  }
}
