@use "./global";

#conventional-comment-popup {
  position: absolute;
  background-color: var(--c-background-color);
  border: 1px solid var(--c-border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px var(--c-shadow-color);
  z-index: 100;
  min-width: 300px;
  max-width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  color: var(--c-text-color);
  margin: 0;
}

#conventional-comment-popup ul {
  list-style: none;
  padding: 4px;
  margin: 0;
}

#conventional-comment-popup li {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

#conventional-comment-popup li:hover {
  background-color: var(--c-hover-color);
}

#conventional-comment-popup li.active {
  background-color: var(--c-active-color);
  color: var(--c-active-text-color);
}

#conventional-comment-popup li strong {
  font-weight: 600;
}

.popup-header {
  padding: 8px 8px 0px 8px;
  font-weight: bold;
}

.type-badge {
  cursor: pointer;
  background-color: #a3c1d1;
  color: var(--c-text-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  text-transform: uppercase;
}

.cc-wrapper {
  border: 1px solid var(--c-border-color);
  border-radius: 6px;
  background-color: var(--c-background-color);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  textarea {
    box-sizing: border-box !important;
  }
}

.cc-editor-enhanced {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  margin: 0 !important;
  resize: vertical;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}

#conventional-comment-button-bar {
  padding: 8px;
  border-bottom: 1px solid var(--c-border-color);

  .cc-buttons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .cc-button {
    background-color: var(--c-button-bg-color);
    border: none;
    border-radius: 9999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-button-text-color);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &:hover {
      background-color: var(--c-button-hover-bg-color);
    }

    &.active {
      background-color: var(--c-button-active-bg-color);
      color: var(--c-button-active-text-color);
      font-weight: 600;
    }
  }

  .cc-breadcrumb {
    background-color: var(--c-breadcrumb-bg-color);
    color: var(--c-breadcrumb-text-color);
    &:hover {
      background-color: var(--c-breadcrumb-hover-bg-color);
    }
  }

  .cc-breadcrumb-separator {
    color: var(--c-breadcrumb-separator-color);
    margin: 0 2px;
    font-size: 14px;
  }
}
