.cdww-root,
.cdww-root * {
  box-sizing: border-box;
}

.cdww-root {
  --cdww-yellow: #fbbb00;
  --cdww-yellow-hover: #e2aa00;
  --cdww-dark: #20262b;
  --cdww-text: #4c565d;
  --cdww-border: #e2e6e8;
  --cdww-white: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  position: relative;
  z-index: 2147482000;
}

.cdww-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-height: 58px;
  border: 1px solid var(--cdww-yellow);
  border-radius: 999px;
  background: var(--cdww-yellow);
  color: var(--cdww-dark);
  padding: 10px 20px 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(32, 38, 43, .22);
  cursor: pointer;
  z-index: 2147482002;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cdww-fab:hover {
  transform: translateY(-3px);
  background: var(--cdww-yellow-hover);
  box-shadow: 0 15px 34px rgba(32, 38, 43, .27);
}

.cdww-wa-icon {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  padding: 7px;
}

.cdww-wa-icon svg,
.cdww-submit-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cdww-fab-text {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.cdww-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100vh - 115px);
  overflow: auto;
  background: var(--cdww-white);
  color: var(--cdww-dark);
  border: 1px solid var(--cdww-border);
  border-top: 4px solid var(--cdww-yellow);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 22px 55px rgba(20, 28, 33, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 2147482001;
}

.cdww-panel.cdww-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cdww-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.cdww-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  color: var(--cdww-yellow-hover);
  margin-bottom: 6px;
}

.cdww-header h3 {
  margin: 0 0 7px;
  font-size: 25px;
  line-height: 1.15;
  color: var(--cdww-dark);
}

.cdww-header p {
  margin: 0;
  color: var(--cdww-text);
  font-size: 16px;
  line-height: 1.45;
}

.cdww-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: var(--cdww-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.cdww-close:hover {
  background: #e5e8ea;
  transform: rotate(5deg);
}

.cdww-field {
  display: block;
  margin-bottom: 15px;
}

.cdww-field > span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--cdww-dark);
}

.cdww-field input,
.cdww-field textarea {
  width: 100%;
  border: 1px solid #d7dce0;
  border-radius: 9px;
  background: #fff;
  color: var(--cdww-dark);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.cdww-field input {
  height: 48px;
  padding: 0 13px;
}

.cdww-field textarea {
  padding: 12px 13px;
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.cdww-field input:focus,
.cdww-field textarea:focus {
  border-color: var(--cdww-yellow);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(251, 187, 0, .15);
}

.cdww-submit {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--cdww-yellow);
  border-radius: 9px;
  background: var(--cdww-yellow);
  color: var(--cdww-dark);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  margin-top: 5px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.cdww-submit:hover {
  transform: translateY(-2px);
  background: var(--cdww-yellow-hover);
  box-shadow: 0 10px 22px rgba(32, 38, 43, .16);
}

.cdww-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.cdww-submit-icon {
  width: 23px;
  height: 23px;
  display: block;
  color: #178844;
}

.cdww-error {
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  background: #fff0f0;
  border: 1px solid #ffcaca;
  color: #931b1b;
}

.cdww-hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .cdww-fab {
    right: 14px;
    bottom: 14px;
  }

  .cdww-panel {
    right: 14px;
    bottom: 84px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 105px);
    padding: 19px;
  }
}

@media (max-width: 390px) {
  .cdww-fab {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 10px;
    border-radius: 50%;
    justify-content: center;
  }

  .cdww-fab-text {
    display: none;
  }

  .cdww-wa-icon {
    width: 38px;
    height: 38px;
  }
}
