.dmwfb-widget,
.dmwfb-widget * {
  box-sizing: border-box;
}

.dmwfb-widget {
  font-family: inherit;
}

.dmwfb-panel[hidden] {
  display: none !important;
}

.dmwfb-bubble {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #25D366 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
  z-index: 99999 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.dmwfb-bubble:hover,
.dmwfb-bubble:focus-visible {
  background: #1ebe5d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26) !important;
}

.dmwfb-bubble:focus-visible,
.dmwfb-close:focus-visible,
.dmwfb-submit:focus-visible,
.dmwfb-input:focus,
.dmwfb-select:focus,
.dmwfb-textarea:focus {
  outline: 3px solid rgba(37, 211, 102, 0.32);
  outline-offset: 2px;
}

.dmwfb-bubble-icon {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  margin: 0 !important;
}

.dmwfb-panel {
  position: fixed !important;
  right: 24px !important;
  bottom: 104px !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 128px) !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22) !important;
  z-index: 99998 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dmwfb-widget.open .dmwfb-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dmwfb-panel-content {
  padding: 22px !important;
}

.dmwfb-title {
  margin: 0 34px 8px 0 !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.dmwfb-intro {
  margin: 0 0 18px !important;
  color: #3d3d3d !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.dmwfb-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #f3f5f4 !important;
  color: #111111 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 24px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.dmwfb-close:hover {
  background: #e7ece9;
}

.dmwfb-form {
  display: grid !important;
  gap: 13px !important;
  margin: 0 !important;
}

.dmwfb-field {
  display: grid !important;
  gap: 6px !important;
}

.dmwfb-label {
  display: block !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.dmwfb-input,
.dmwfb-select,
.dmwfb-textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #d8dfdc !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  padding: 11px 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dmwfb-input:focus,
.dmwfb-select:focus,
.dmwfb-textarea:focus {
  border-color: #25D366;
}

.dmwfb-textarea {
  min-height: 82px !important;
  resize: vertical !important;
}

.dmwfb-note {
  margin: 0 !important;
  color: #616161 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.dmwfb-submit {
  width: 100% !important;
  border: none !important;
  border-radius: 6px !important;
  background: #25D366 !important;
  color: #111111 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 13px 16px !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dmwfb-submit:hover,
.dmwfb-submit:focus-visible {
  background: #1ebe5d;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .dmwfb-bubble {
    right: 18px !important;
    bottom: 18px !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
  }

  .dmwfb-bubble-icon {
    width: 29px !important;
    height: 29px !important;
  }

  .dmwfb-panel {
    right: 16px !important;
    bottom: 92px !important;
    width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 116px) !important;
  }

  .dmwfb-panel-content {
    padding: 20px !important;
  }

  .dmwfb-title {
    font-size: 18px !important;
  }
}
