.hc-widget {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #1e2a36;
}

.hc-widget__card {
  border: 1px solid #d5dde6;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
  box-sizing: border-box;
}

.hc-widget__head {
  margin: 0 0 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hc-widget__card--collapsed .hc-widget__head {
  margin-bottom: 0;
}

.hc-widget__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: #10233b;
}

.hc-widget__collapse-btn {
  border: 1px solid #9fb6cc;
  border-radius: 6px;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #204a70;
  background: #f3f8fd;
  cursor: pointer;
  white-space: nowrap;
}

.hc-widget__collapse-btn:hover {
  background: #eaf3fd;
}

.hc-widget__section {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  margin: 0 0 12px 0;
  padding: 10px 12px;
}

.hc-widget__section-title {
  padding: 0 6px;
  font-weight: 700;
  color: #17375b;
}

.hc-widget__field {
  margin: 0 0 10px 0;
}

.hc-widget__label {
  display: block;
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.hc-widget__required {
  color: #b32a2a;
}

.hc-widget__help-btn {
  border: 1px solid #9fb6cc;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  color: #20476f;
  background: #f5f9ff;
}

.hc-widget__tooltip {
  margin: 4px 0 0 0;
  padding: 8px;
  border: 1px solid #d2dfec;
  border-radius: 6px;
  background: #f8fbff;
  font-size: 13px;
  line-height: 1.4;
  color: #304b69;
}

.hc-widget__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c8d4df;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.3;
  background: #fff;
}

.hc-widget__input:focus {
  border-color: #4f85be;
  box-shadow: 0 0 0 2px rgba(79, 133, 190, 0.14);
  outline: none;
}

.hc-widget__input--textarea {
  min-height: 84px;
  resize: vertical;
}

.hc-widget__actions {
  margin-top: 10px;
}

.hc-widget__btn {
  border: 1px solid #2f6ca8;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #204a70;
  background: #f0f7ff;
}

.hc-widget__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hc-widget__btn--primary {
  border-color: #1b5a96;
  color: #ffffff;
  background: #1f6cb2;
}

.hc-widget__required-hint {
  margin-top: 8px;
  color: #9a2c2c;
  font-size: 13px;
}

.hc-widget__disclaimer {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e4d7b0;
  background: #fff9e9;
  font-size: 13px;
  line-height: 1.45;
}

.hc-widget__status {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #b8d5f2;
  border-radius: 6px;
  background: #f0f7ff;
  color: #29517a;
}

.hc-widget__status--error {
  border-color: #e0b6b6;
  background: #fff1f1;
  color: #9b2f2f;
}

.hc-widget__status--ok {
  border-color: #b9dfc2;
  background: #effbf2;
  color: #25643a;
}

.hc-widget__result-card {
  margin-top: 14px;
  border-top: 1px solid #dbe3ed;
  padding-top: 14px;
}

.hc-widget__result-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #123256;
}

.hc-widget__warning-list {
  margin: 0 0 12px 18px;
  color: #8a2b2b;
  line-height: 1.4;
}

.hc-widget__table-wrap {
  overflow-x: auto;
}

.hc-widget__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hc-widget__table th,
.hc-widget__table td {
  border: 1px solid #d9e2eb;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  min-width: 110px;
}

.hc-widget__table th {
  background: #f3f8fd;
  color: #173b61;
}

.hc-widget__table td:not(:first-child),
.hc-widget__table th:not(:first-child) {
  text-align: right;
}

.hc-widget__winner-text {
  margin: 12px 0 8px 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.hc-widget__small-diff {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e3d3a7;
  background: #fff9e8;
  color: #715720;
  font-size: 13px;
}

.hc-widget__scenario-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  background: #f9fbfe;
}

.hc-widget__scenario-note-title {
  font-weight: 700;
  margin: 0 0 6px 0;
}

.hc-widget__cta {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d3e1ef;
  border-radius: 8px;
  background: #f7fbff;
}

.hc-widget__result-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hc-widget__noscript {
  border: 1px solid #e1c0c0;
  border-radius: 6px;
  background: #fff2f2;
  color: #8f2f2f;
  padding: 10px;
}

@media (max-width: 767px) {
  .hc-widget__card {
    padding: 12px;
  }

  .hc-widget__head {
    align-items: stretch;
    flex-direction: column;
  }

  .hc-widget__title {
    font-size: 19px;
  }

  .hc-widget__table {
    display: block;
  }

  .hc-widget__table thead {
    display: none;
  }

  .hc-widget__table tbody {
    display: block;
  }

  .hc-widget__table tr {
    display: block;
    border: 1px solid #d9e2eb;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: #fff;
  }

  .hc-widget__table td {
    display: flex;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px dashed #dde6ef;
    text-align: left !important;
    min-width: 0;
    padding: 6px 2px;
  }

  .hc-widget__table td:last-child {
    border-bottom: 0;
  }
}
