.ccc-bug-modal-open {
  overflow: hidden;
}

.ccc-bug-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.ccc-bug-modal-backdrop[hidden] {
  display: none;
}

.ccc-bug-modal {
  width: min(800px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color: #24292f;
}

.ccc-bug-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #d8dee4;
}

.ccc-bug-modal-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ccc-bug-modal-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #57606a;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ccc-bug-form {
  padding: 18px 20px;
}

.ccc-bug-form p {
  margin: 0 0 16px;
}

.ccc-bug-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.ccc-bug-form input,
.ccc-bug-form select,
.ccc-bug-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #24292f;
  font: inherit;
}

.ccc-bug-form textarea {
  resize: vertical;
}

.ccc-bug-grid {
  display: grid;
  gap: 16px;
}

.ccc-bug-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.ccc-bug-grid-screen {
  grid-template-columns: 2fr 1fr;
}

.ccc-bug-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #d8dee4;
}

.ccc-bug-cancel,
.ccc-bug-submit,
.ccc-bug-report-shortcode-button {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.ccc-bug-cancel {
  background: #fff;
  color: #57606a;
}

.ccc-bug-submit,
.ccc-bug-report-shortcode-button {
  border-color: #6f4e37;
  background: #6f4e37;
  color: #fff;
}

.ccc-bug-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ccc-bug-status {
  min-height: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ccc-bug-status.is-error {
  color: #b42318;
}

.ccc-bug-status.is-success {
  color: #1f7a1f;
}

.ccc-bug-hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .ccc-bug-modal-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

  .ccc-bug-grid-2,
  .ccc-bug-grid-screen {
    grid-template-columns: 1fr;
  }

  .ccc-bug-actions {
    flex-direction: column-reverse;
  }

  .ccc-bug-actions button {
    width: 100%;
  }
}
