/*
    Description: AI chat CSS — refined
    Author: better-web
    Base: 22px = 1rem
*/
#footer.active {
  display: none;
}
.bw-msg strong {
  color: #1b81cc;
  font-weight: 600;
}
.user-chat-label {
  text-align: right;
  font-size: 0.56rem;
  margin-bottom: -1rem;
  margin-top: 0.7rem;
  font-weight: 600;
  color: #64748b;
}
.bw-msg-label {
    display: block;
    font-size: 0.545rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.182rem;
    text-align: right;
}
.bw-msg-bubble-user {
    background: #3b82f6;
    color: #fff;
    padding: 0.545rem 0.727rem;
    border-radius: 0.727rem 0.727rem 0.182rem 0.727rem;
    font-size: 0.682rem;
    line-height: 1.5;
}
.bw-msg-fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: bwFadeInUp 0.5s ease forwards;
}
@keyframes bwFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bw-thinking {
  padding: 0.5rem 0 !important;
}
.bw-thinking-dots {
  display: flex;
  gap: 0.227rem;
}
.bw-thinking-dots::before {
  content: "";
  position: absolute;
  left: -1.636rem;
  top: -0.464rem;
  width: 1.091rem;
  height: 1.091rem;
  background: url("/wp-content/themes/better-web/images/logo/kotisivubotti.svg") no-repeat center;
  background-size: contain;
}
.bw-thinking-dots span {
  width: 0.318rem;
  height: 0.318rem;
  border-radius: 50%;
  background: var(--trial-button);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.bw-thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.bw-thinking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.bw-ai-container {
  width: 100%;
  margin-bottom: 0.182rem;
}
.home #top-element {
  overflow: unset !important;
}
.bw-ai-page {
  width: 100%;
  margin: 0 auto;
}
#step-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#bw-chat-window {
  width: 100%;
  max-width: 50rem;
}
.bw-step.bw-step-chat.active #bw-chat-window {
  padding-bottom: 8.65rem;
  position: relative;
  max-width: 50rem;
}
.bw-stepper {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  height: 1.4rem;
  display: none;
  max-width: 39.091rem;
  margin: 0 auto -1.4rem;
  border: 0.045rem solid #eee;
  display: none !important;
}
#bw-stepper.ai-active {
  display: flex;
}
.bw-stepper-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 23.636rem;
  margin: 0 auto;
  gap: 0.364rem;
}
.bw-stepper-mobile-label {
  display: none;
}
.bw-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.bw-stepper-line {
  flex: 1;
  width: 0.364rem;
  height: 0.045rem;
  background: #e5e5e5;
  margin: 0 0.3rem;
  transition: background 0.3s;
}
.bw-stepper-step.active .bw-stepper-dot {
  background: var(--trial-button, var(--trial-button));
  transform: scale(1.15);
  box-shadow: 0 0.091rem 0.364rem rgba(108, 92, 231, 0.3);
}
.bw-stepper-dot {
  width: 0.909rem;
  height: 0.909rem;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  display: none;
}
.bw-stepper-dot .bw-check-icon {
  display: none;
  width: 0.636rem;
  height: 0.636rem;
  color: #fff;
}
.bw-stepper-step.active .bw-dot-num {
  color: #fff;
}
.bw-stepper-dot .bw-dot-num {
  font-size: 0.4rem;
  font-weight: 600;
  color: #999;
}
.bw-stepper-step.active .bw-stepper-label {
  color: #4682c2;
  font-weight: 600;
}
.bw-stepper-label {
  font-size: 0.46rem;
  color: #aaa;
  font-weight: 400;
  white-space: nowrap;
}
.bw-chat-window {
  transition: box-shadow 0.3s;
}
.bw-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#bw-messages {
  background-color: #fff;
  padding: 2rem;
  border: 0.045rem solid #eee;
  border-radius: 0.545rem;
  margin-bottom: 1rem;
}
.bw-msg {
  padding: 0 1rem;
  border-radius: 0.636rem;
  line-height: 1.8;
  font-size: 16px;
  white-space: pre-wrap;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}
.bw-msg-user {
  background: #f6f5f4;
  color: #010101;
  align-self: flex-end;
  border-top-right-radius: 0.091rem;
  max-width: 22.545rem;
  padding: 0.545rem 0.818rem !important;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  border: 0.045rem solid #eee;
}
.bw-msg-bot {
  position: relative;
  padding-left: 1.182rem;
}
.bw-msg-bot p {
  color: #444;
  line-height: 1.65;
  margin-bottom: 0;
}
.bw-msg-bot::before {
  content: "";
  position: absolute;
  left: -0.273rem;
  top: -0.1rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("/wp-content/themes/better-web/images/logo/kotisivubotti.svg") no-repeat center;
    background-size: auto;
  background-size: contain;
}
.bw-progress-step.active .bw-step-icon::before,
.bw-progress-step.done .bw-step-icon::before {
  display: none;
}
.bw-msg.bw-msg-bot p:first-of-type {
  margin-top: 0;
}
.bw-msg.bw-msg-bot.bw-thinking {
  padding-left: 1.364rem !important;
}
.bw-msg.bw-msg-bot.bw-thinking::before {
  top: 0.818rem;
  content: unset;
}
.bw-msg.bw-msg-bot.bw-thinking .bw-thinking-dots {
  transform: translateY(0.091rem);
}
.bw-chat-input-area {
  background: #fff;
  border-radius: 0.727rem;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
  border: 0.045rem solid #edece8;
  border-radius: 0.818rem;
  box-shadow: 0 0.045rem 0.136rem rgba(0, 0, 0, 0.04);
}
.bw-chat-input-area:focus-within {
  border-color: #e4e3e3;
  box-shadow: 0 0.045rem 0.182rem rgba(0, 0, 0, 0.08);
}
.bw-chat-input-area.active {
  position: fixed;
  bottom: 1.455rem;
  border-radius: 0.545rem;
  max-width: inherit;
  width: calc(100% - 3rem);
  box-shadow: 0 1px 0 rgba(16,18,24,.04), 0 24px 60px -20px rgba(16,18,24,.18), 0 8px 20px -12px rgba(16,18,24,.08);
}
.bw-chat-input-area textarea {
  width: 100%;
  padding: 0.636rem 0.909rem 0.364rem;
  border: none;
  resize: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  color: #474753;
  background: transparent;
  line-height: 1.55;
  overflow: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.bw-chat-input-area.active textarea {
  font-size: 16px;
}
.bw-chat-input-area textarea::placeholder {
  color: #bbb;
  transition: color 0.2s;
}
.bw-input-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.273rem 0.727rem 0.545rem;
  gap: 0.6rem;
}
.bw-teaser-counter {
  font-size: 0.5rem;
  color: #bbb;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bw-btn-send {
  background: var(--trial-button);
  color: #fff;
  border: none;
  border-radius: 0.455rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.614rem;
  padding: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.bw-send-text {
  display: flex;
  gap: 0.4rem;
}
.bw-chat-input-area.active .bw-send-text {
  gap: 0.12rem;
}
.bw-send-text svg {
  width: 0.7rem;
  height: 0.7rem;
}
.bw-btn-send:hover {
  text-decoration: underline;
}
.bw-btn-send {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.bw-chat-input-area.active .bw-btn-send {
  opacity: 1;
}
.bw-btn-send.bw-send-active {
  opacity: 1;
}

.bw-btn-send:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.bw-msg-form {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.bw-form-intro {
  margin: 0 0 0.3rem;
  font-size: 0.682rem;
  color: #1a1a1a;
  font-weight: 500;
}
.bw-form-desc {
  margin: 0 0 1.2rem;
  font-size: 0.614rem;
  color: #888;
  line-height: 1.55;
  font-weight: 400;
}
.bw-inline-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bw-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bw-form-group label {
  font-size: 0.591rem;
  font-weight: 600;
  color: #555;
}
.bw-form-group input {
  width: 100%;
  padding: 0.5rem 0.636rem;
  border: 0.045rem solid #e5e5e5;
  border-radius: 0.455rem;
  font-family: inherit;
  font-size: 0.636rem;
  outline: none;
  color: #1a1a1a;
  background: #fff;
  transition: all 0.2s;
  max-width: 15.727rem;
}
.bw-form-group input:focus {
  border-color: #c5c0f0;
  box-shadow: 0 0 0 0.136rem rgba(108, 92, 231, 0.08);
}
.bw-form-group input::placeholder {
  color: #ccc;
}
.bw-form-group input.error {
  border-color: #ef4444;
}
.bw-form-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.409rem 0.727rem;
  background: var(--trial-button);
  color: #fff;
  border: none;
  border-radius: 0.455rem;
  font-family: inherit;
  font-size: 0.614rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 5.909rem;
}
.bw-form-btn:hover {
  background: #5a4bd1;
}
#bw-skip-container:empty {
  display: none;
}
.bw-skip-btn {
  border-radius: 0.909rem;
  padding: 0.318rem 0.636rem;
  font-family: inherit;
  font-size: 0.545rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #5e5e5e;
  border: 0.045rem solid #eee;
  margin-left: 1rem;
}
.bw-skip-btn:hover {
  text-decoration: underline;
}
.bw-confirm-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.364rem;
  max-width: 82%;
  justify-content: center;
  margin: 0.8rem auto;
  width: 100%;
  align-items: center;
}
.bw-confirm-btn {
  padding: 0.5rem 0.727rem;
  border-radius: 0.455rem;
  font-family: inherit;
  font-size: 0.614rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  max-width: 16.455rem;
  width: 100%;
}
.bw-confirm-yes {
  background: var(--trial-button);
  color: #fff;
}
.bw-confirm-yes:hover {
  text-decoration: underline;
}
.bw-confirm-edit {
  color: #555;
  background-color: transparent;
}
.bw-confirm-edit:hover {
  text-decoration: underline;
}
.bw-msg.bw-msg-bot.bw-msg-summary {
  padding: 0;
}
.bw-msg.bw-msg-bot.bw-msg-summary::before {
  content: unset !important;
}
.bw-summary-card {
  background: #f6f5f4;
  padding: 1.273rem 1.091rem 1.091rem;
  margin-top: 0;
  border: 0.045rem solid #eee;
}
.bw-summary-title {
  font-size: 0.727rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  padding-bottom: 0.636rem;
  display: block;
  gap: 0;
}
.bw-summary-title::before {
  content: none;
}
.bw-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.727rem;
  padding: 0.409rem 0.636rem;
  margin: 0 0 0.182rem;
  background: #fff;
  border-radius: 0.455rem;
  line-height: 1.45;
  transition: background 0.15s ease;
}
.bw-summary-item:last-child {
  margin-bottom: 0;
}
.bw-summary-label {
  font-size: 0.568rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.02em;
  text-transform: none;
  min-width: 4.545rem;
  padding-top: 0;
}
.bw-summary-value {
  font-size: 0.614rem;
  font-weight: 400;
  color: #1a1a1a;
  text-align: right;
  line-height: 1.45;
}
.bw-progress {
  background: #f6f5f4 !important;
  border: 0.045rem solid #eee !important;
  border-radius: 0 !important;
  padding: 1.273rem 1.091rem 1.091rem !important;
  box-shadow: none;
}
#bw-progress::before {
  content: none !important;
}
.bw-progress-title {
  font-size: 0.727rem;
  font-weight: 700;
  color: #1a1a1a !important;
  line-height: 1.3;
  margin: 0 0 0.273rem 0;
  display: block;
  gap: 0;
}
.bw-progress-title::before {
  content: none;
}
.bw-progress-wait {
  font-size: 0.591rem;
  color: #999;
  margin: 0 0 0.727rem 0;
}
.bw-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0.182rem;
  margin: 0.909rem 0;
}
.bw-progress-step {
  display: flex;
  align-items: center;
  gap: 0.545rem;
  padding: 0.455rem 0.636rem;
  background: #fff;
  border-radius: 0.455rem;
  font-size: inherit;
  color: inherit;
  transition: background 0.15s ease;
}
.bw-progress-step.active {
  color: inherit;
  font-weight: inherit;
}
.bw-progress-step.done {
  color: inherit;
}
.bw-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0.318rem;
}
.bw-step-icon::before {
  content: '';
  width: 0.273rem;
  height: 0.273rem;
  background: #d1d5db;
  border-radius: 50%;
}
.bw-step-icon svg {
  width: 0.72rem;
  height: 0.72rem;
}
.bw-progress-step.done .bw-step-icon {
  background: #0CA95D;
}
.bw-progress-step.done .bw-step-icon svg circle {
  fill: transparent;
}
.bw-progress-step.done .bw-step-icon svg path {
  stroke: #fff;
  stroke-width: 2;
}
.bw-step-text {
  font-size: 0.614rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.01em;
  text-transform: none;
  min-width: 0;
  padding-top: 0;
}
.bw-progress-step::after {
  font-size: 0.5rem;
  font-weight: 600;
  color: #2b3551;
  margin-left: auto;
  opacity: 0.35;
}
.bw-progress-step:nth-child(1)::after { content: '01'; }
.bw-progress-step:nth-child(2)::after { content: '02'; }
.bw-progress-step:nth-child(3)::after { content: '03'; }
.bw-progress-step:nth-child(4)::after { content: '04'; }
.bw-progress-step:nth-child(5)::after { content: '05'; }
.bw-spinner {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: bw-spin 0.8s linear infinite;
  vertical-align: middle;
  border: 0.091rem solid #e5e5e5;
  border-top-color: #0CA95D;
}
/* ── Progress-boksin kiertävä border ── */
.bw-progress-wrap {
  position: relative;
  padding: 1.5px;
  background: conic-gradient(from var(--bw-angle), transparent 0%, transparent 55%, rgba(12,169,93,0.3) 70%, rgba(12,169,93,0.7) 80%, #0CA95D 85%, rgba(12,169,93,0.7) 90%, rgba(12,169,93,0.3) 95%, transparent 100%);
  animation: bw-rotate-border 3.5s linear infinite;
}
@property --bw-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes bw-rotate-border {
  to { --bw-angle: 360deg; }
}
/* Step-valmistumisvälähdys */
.bw-progress-step.just-done {
  animation: bw-flash-done 0.7s ease-out forwards;
}
@keyframes bw-flash-done {
  0%   { background: #dcfce7; }
  100% { background: #fff; }
}

/* Check-ikonin pop-in */
.bw-check-pop svg {
  animation: bw-pop-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes bw-pop-in {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-done-text {
  font-size: 0.636rem;
  color: #666;
  line-height: 1.6;
  margin: 0.909rem 0 0.727rem !important;
}
.bw-done-btn-wrap {
  display: flex;
  justify-content: stretch;
  margin: 2rem 0 1rem;
}
.bw-done-btn {
  width: 100%;
  padding: 0.636rem 0.909rem;
  background-color: var(--trial-button);
  color: #fff;
  border: none;
  border-radius: 0.545rem;
  font-family: inherit;
  font-size: 0.682rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: unset;
}
.bw-done-btn:hover {
  opacity: 1;
  text-decoration: underline;
}
#bw-go-register {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.682rem;
  max-width: unset;
  padding: 0.636rem 0.909rem;
  border-radius: 0.545rem;
  background-color: #374151;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.091rem;
}
#bw-go-register img {
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}
#bw-go-register:hover img {
  transform: translateX(0.136rem);
}
.bw-tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.818rem;
  height: 0.818rem;
  padding: 0 0.227rem;
  border-radius: 0.409rem;
  background: #f6f5f4;
  font-size: 0.455rem;
  font-weight: 600;
  color: #787671;
  line-height: 1;
  display: none;
}
.bw-tag.active .bw-tag-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.bw-tag-dropdown {
  position: relative;
}
.bw-tag-dropdown .bw-tag .bw-tag-chevron {
  width: 0.591rem;
  height: 0.591rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.bw-tag-dropdown.open .bw-tag .bw-tag-chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}
.bw-tag-dropdown.open .bw-tag {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.bw-tag-dropdown.open-up .bw-tag-menu {
  bottom: 100%;
  top: auto;
  border-radius: 0.545rem 0.545rem 0 0;
  border-bottom: none;
  border-top: 0.045rem solid #edece8;
}
.bw-tag-dropdown.open-up .bw-tag {
  border-radius: 0 0 0.455rem 0.455rem;
  border-bottom-left-radius: 0.455rem;
  border-bottom-right-radius: 0.455rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.bw-tag-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 14.545rem;
  background: #fff;
  border: 0.045rem solid #edece8;
  border-top: none;
  border-radius: 0 0 0.545rem 0.545rem;
  padding: 0.182rem 0;
  z-index: 100;
  display: none;
  box-shadow: 0 0.364rem 1.091rem rgba(0, 0, 0, 0.08);
  animation: bw-dropIn 0.15s ease;
  max-height: 11rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.bw-tag-menu::-webkit-scrollbar-track {
  background: transparent;
}
.bw-tag-menu::-webkit-scrollbar-thumb {
  background: #ddd;
}
.bw-tag-menu::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
.bw-tag-dropdown.open .bw-tag-menu {
  display: block;
}
@keyframes bw-dropIn {
  from { opacity: 0; transform: translateY(-0.182rem); }
  to { opacity: 1; transform: translateY(0); }
}
.bw-tag-menu-item {
  padding: 0.409rem 0.727rem;
  font-size: 0.545rem;
  color: #333;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
  text-align: left;
}
.bw-tag-menu-item:hover {
  background: #f5f5f5;
  color: #111;
}
.bw-tag-menu-item.selected {
  background: #f0f4ff;
  color: #3366FF;
  font-weight: 500;
}
.bw-tag-close {
  width: 0.591rem;
  height: 0.591rem;
  flex-shrink: 0;
  opacity: 0.6;
  cursor: pointer;
}
.bw-tag-close:hover {
  opacity: 1;
}
.bw-quick-tags {
  max-width: 51rem;
  margin: 1.4rem auto 0;
  text-align: center;
}
.bw-quick-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.364rem;
  justify-content: center;
  text-align: center;
}
.bw-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #555;
  font-size: 0.52rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  border: 0.045rem solid #edece8;
  border-radius: 0.455rem;
  padding: 0.39rem 0.436rem 0.39rem 0.736rem;
  transition: all 0.2s ease;
}
.bw-tag-dropdown .bw-tag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #34343d;
  color: #fff;
  border-radius: 0.455rem;
  font-size: 0.52rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 0.536rem;
  z-index: 1;
  cursor: pointer;
}
.bw-tag-dropdown .bw-tag-overlay svg {
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  opacity: 0.6;
}
.bw-tag-dropdown .bw-tag-overlay:hover svg {
  opacity: 1;
}
.bw-tag.active {
  background: #34343d;
  color: #fff;
  border-color: #34343d;
}
.bw-step-summary {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 0.727rem;
  padding: 1.5rem;
  border: 0.045rem solid #eee;
}
.bw-summary-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.bw-btn-primary {
  flex: 1;
  padding: 0.545rem 0.909rem;
  background: var(--trial-button);
  color: #fff;
  border: none;
  border-radius: 0.455rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.682rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.bw-btn-primary:hover {
  background: #5a4bd1;
  transform: translateY(-0.045rem);
  box-shadow: 0 0.182rem 0.545rem rgba(108, 92, 231, 0.3);
}
.bw-btn-secondary {
  padding: 0.545rem 0.909rem;
  background: #fff;
  color: #555;
  border: 0.045rem solid #e5e5e5;
  border-radius: 0.455rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.682rem;
  transition: all 0.2s;
}
.bw-btn-secondary:hover {
  background: #f5f5f5;
}
@media (max-width: 27.273rem) {
  .bw-summary-actions {
    flex-direction: column;
  }
  .bw-stepper-label {
    display: none;
  }
  .bw-stepper-mobile-label {
    display: block;
    text-align: center;
    font-size: 0.568rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 0.4rem;
  }
  .bw-stepper-line {
    margin-bottom: 0;
  }
  .bw-stepper-dot {
    width: 0.909rem;
    height: 0.909rem;
  }
  .bw-stepper-dot .bw-dot-num {
    font-size: 0.6rem;
  }
  #bw-messages {
    padding: 0 1rem 1.5rem;
  }
  .bw-summary-card {
    padding: 1rem 0.818rem 0.909rem;
  }
  .bw-progress {
    padding: 1rem 0.818rem 0.909rem !important;
  }
  .bw-summary-item {
    flex-direction: column;
    gap: 0.091rem;
    padding: 0.455rem 0.545rem;
  }
  .bw-summary-value {
    text-align: left;
  }
  .bw-msg-user {
    max-width: 85%;
  }
}
@media only screen and (max-width: 1280px) {
  .bw-btn-send,
  .bw-btn-send:hover,
  .bw-btn-send:active,
  .bw-btn-send:focus {
    text-decoration: none !important;
  }
}
@media only screen and (max-width: 900px) {
  .bw-step.bw-step-chat.active #bw-chat-window {
    max-width: 100%;
  }
  .bw-chat-input-area.active {
    width: calc(100% - 2.4rem);
  }
}
@media only screen and (max-width: 600px) {
  .bw-chat-input-area textarea, .bw-chat-input-area.active {
    font-size: 16px;
  }
  .bw-chat-input-area.active::placeholder {
    font-size: 16px;
  }
  #bw-input::placeholder {
    font-size: 13px;
  }
  #bw-input:focus::placeholder {
    font-size: 16px;
  }
  .bw-chat-input-area.active #bw-input::placeholder {
    font-size: 16px;
  }
}
@media only screen and (max-width: 480px) {
#bw-stepper.ai-active {
  display: none !important;
}
.bw-chat-input-area textarea {
  min-height: 70px !important;
}
.bw-chat-input-area.active .bw-chat-input-area textarea {
  min-height: auto !important;
}
.bw-step.bw-step-chat.active #bw-chat-window {
  padding-bottom: 9rem;
}
@keyframes bw-input-flash {
  0% { background-color: #f0f4ff; }
  100% { background-color: #fff; }
}
#bw-input-area.bw-input-flash {
  animation: bw-input-flash 0.8s ease;
}
}