.twwe-root {
  --twwe-brand: #25D366;
  --twwe-offset-x: 20px;
  --twwe-offset-y: 20px;
  --twwe-logo-size: 56px;
  --twwe-z-index: 99997;
  --twwe-modal-z-index: 99998;
  font-family: inherit;
}

.twwe-root * {
  box-sizing: border-box;
}

.twwe-open {
  position: fixed;
  z-index: var(--twwe-z-index, 99997);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: var(--twwe-logo-size, 56px);
  border: 0;
  border-radius: 999px;
  padding: 4px 18px 4px 4px;
  background: var(--twwe-brand);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.twwe-open:hover,
.twwe-open:focus {
  filter: brightness(0.96);
  outline: 3px solid rgba(37, 211, 102, 0.25);
  outline-offset: 3px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.twwe-open:active {
  transform: scale(0.98);
}

.twwe-position-above-ask-techweb .twwe-open,
.twwe-position-bottom-right .twwe-open {
  right: var(--twwe-offset-x, 28px);
  bottom: var(--twwe-offset-y, 112px);
}

.twwe-position-bottom-right .twwe-open {
  right: var(--twwe-offset-x, 20px);
  bottom: var(--twwe-offset-y, 20px);
}

.twwe-position-bottom-left .twwe-open {
  left: var(--twwe-offset-x, 20px);
  bottom: var(--twwe-offset-y, 20px);
}

.twwe-position-top-right .twwe-open {
  right: var(--twwe-offset-x, 20px);
  top: var(--twwe-offset-y, 20px);
}

.twwe-position-top-left .twwe-open {
  left: var(--twwe-offset-x, 20px);
  top: var(--twwe-offset-y, 20px);
}

.twwe-position-middle-right .twwe-open {
  right: var(--twwe-offset-x, 20px);
  top: 50%;
  transform: translateY(calc(-50% + var(--twwe-offset-y, 0px)));
}

.twwe-position-middle-left .twwe-open {
  left: var(--twwe-offset-x, 20px);
  top: 50%;
  transform: translateY(calc(-50% + var(--twwe-offset-y, 0px)));
}

.twwe-position-middle-right .twwe-open:active,
.twwe-position-middle-left .twwe-open:active {
  transform: translateY(calc(-50% + var(--twwe-offset-y, 0px))) scale(0.98);
}

.twwe-icon {
  display: inline-grid;
  place-items: center;
  width: var(--twwe-logo-size, 56px);
  height: var(--twwe-logo-size, 56px);
  border-radius: 50%;
  flex: 0 0 auto;
}

.twwe-icon svg {
  display: block;
  width: 64%;
  height: 64%;
  fill: currentColor;
}

.twwe-open-label {
  white-space: nowrap;
}

.twwe-style-icon-only .twwe-open {
  width: var(--twwe-logo-size, 58px);
  height: var(--twwe-logo-size, 58px);
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  gap: 0;
  background: #25D366;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.twwe-style-icon-only .twwe-icon {
  width: 100%;
  height: 100%;
}

.twwe-style-icon-only .twwe-icon svg {
  width: 62%;
  height: 62%;
}

.twwe-style-icon-only .twwe-open-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.twwe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--twwe-modal-z-index, 99998);
}

.twwe-modal.is-open {
  display: block;
}

.twwe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.58);
}

.twwe-dialog,
.twwe-inline-card {
  background: #fff;
  color: #111827;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.twwe-dialog {
  position: relative;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  margin: 18px auto;
  padding: 30px 26px 26px;
}

.twwe-inline-card {
  width: 100%;
  max-width: 760px;
  margin: 24px auto;
  padding: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.twwe-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #4b5563 !important;
  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.twwe-close span {
  display: block;
  width: auto;
  height: auto;
  line-height: 1;
  transform: none;
  pointer-events: none;
}

.twwe-close:hover,
.twwe-close:focus {
  background: transparent !important;
  background-image: none !important;
  color: #111827 !important;
  outline: 1px solid rgba(17, 24, 39, 0.18);
  outline-offset: 2px;
}

.twwe-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 44px 14px;
}

.twwe-brand-header img {
  display: block;
  width: 70px;
  max-width: 70px;
  height: auto;
  border: 0;
  box-shadow: none;
}

.twwe-form h2 {
  margin: 0 44px 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.16;
  color: #111827;
  text-align: center;
}

.twwe-intro {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.twwe-skip-wrap {
  margin: 0 0 20px;
}

.twwe-direct-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: #25D366;
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
}

.twwe-direct-whatsapp:hover,
.twwe-direct-whatsapp:focus {
  filter: brightness(0.97);
  outline: 3px solid rgba(37, 211, 102, 0.2);
  outline-offset: 3px;
}

.twwe-direct-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.twwe-direct-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.twwe-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
}

.twwe-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.twwe-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #fff;
  padding: 0 10px;
}

.twwe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.twwe-form label {
  display: block;
  margin: 0 0 14px;
}

.twwe-form label span {
  display: block;
  margin: 0 0 7px;
  font-weight: 650;
  font-size: 14px;
  color: #1f2937;
}

.twwe-form input,
.twwe-form select,
.twwe-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 12px 13px;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.twwe-field-service {
  grid-column: 1 / -1;
  min-width: 0;
}

.twwe-field-service span {
  white-space: normal;
}

.twwe-form .twwe-field-service select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  min-height: 52px;
  height: auto;
  padding: 12px 44px 12px 13px;
  line-height: 1.35;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  appearance: auto;
  -webkit-appearance: menulist;
}

.twwe-form input:focus,
.twwe-form select:focus,
.twwe-form textarea:focus {
  border-color: var(--twwe-brand);
  outline: 3px solid rgba(37, 211, 102, 0.18);
}

.twwe-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.twwe-consent input {
  width: auto;
  margin-top: 3px;
}

.twwe-consent span {
  margin: 0 !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

.twwe-honeypot {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.twwe-submit,
.twwe-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--twwe-brand);
  color: #fff !important;
  font-weight: 750;
  font-size: 16px;
  text-decoration: none !important;
  cursor: pointer;
}

.twwe-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.twwe-response {
  display: none;
  margin: 14px 0;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.45;
}

.twwe-response.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.twwe-response.is-success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.twwe-whatsapp-link {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .twwe-mobile-icon-only .twwe-open,
  .twwe-style-icon-only .twwe-open {
    padding: 0;
    width: var(--twwe-logo-size, 56px);
    height: var(--twwe-logo-size, 56px);
    min-height: 0;
    border-radius: 50%;
  }

  .twwe-mobile-icon-only .twwe-open-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .twwe-position-above-ask-techweb .twwe-open,
  .twwe-position-bottom-right .twwe-open,
  .twwe-position-top-right .twwe-open,
  .twwe-position-middle-right .twwe-open {
    right: max(14px, var(--twwe-offset-x, 20px));
  }

  .twwe-position-bottom-left .twwe-open,
  .twwe-position-top-left .twwe-open,
  .twwe-position-middle-left .twwe-open {
    left: max(14px, var(--twwe-offset-x, 20px));
  }

  .twwe-position-above-ask-techweb .twwe-open {
    bottom: max(96px, var(--twwe-offset-y, 112px));
  }

  .twwe-position-bottom-right .twwe-open,
  .twwe-position-bottom-left .twwe-open {
    bottom: max(14px, var(--twwe-offset-y, 20px));
  }

  .twwe-position-top-right .twwe-open,
  .twwe-position-top-left .twwe-open {
    top: max(14px, var(--twwe-offset-y, 20px));
  }

  .twwe-dialog,
  .twwe-inline-card {
    padding: 22px;
    border-radius: 18px;
  }

  .twwe-dialog {
    padding-top: 32px;
  }

  .twwe-close {
    top: 10px;
    right: 12px;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    font-size: 30px !important;
  }

  .twwe-brand-header {
    margin: 0 38px 12px;
  }

  .twwe-brand-header img {
    width: 62px;
    max-width: 62px;
  }

  .twwe-form h2 {
    margin-left: 38px;
    margin-right: 38px;
  }

  .twwe-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
