@import "@material-design-icons/font/outlined.css";

.nova-post-widget {
  --color-accent: #da291c;
  --color-info: #007cba;
  --color-warning: #ff9800;

  --outline-color: #da291c5f;
  --outline-width: 1px;

  font-size: 1rem;
  font-weight: 400;

  &__container {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.5em 1em;
  }

  * {
    outline-width: var(--outline-width);
    outline-color: var(--outline-color);
  }

  &__error-message {
    color: var(--color-accent);
  }

  &__error-block {
    --notice-background: #fff5e6;
    --notice-border: #ffdca6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--notice-background);
    border: 1px solid var(--notice-border);
  }

  &__error-icon {
    display: flex;
    align-items: center;
    padding-top: 1px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--color-warning);
  }

  &__error-text {
    flex: 1;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: #000000;
    white-space: pre-wrap;
  }

  &__division-selection-wrapper {
    display: flex;
    align-items: start;
    gap: 8px;
  }

  &__division-wrapper {
    flex: 1;
  }

  &__map-button {
    width: 3em;
    height: 3em;
    border-radius: 8px;
    background: #f2f2f5;
    border: 1px solid #cbd5e1;
    display: flex;
    font-size: 1rem;

    .material-icons-outlined {
      margin: auto;
      color: #475569;
    }

    &.--active {
      background: #2eba77;
      border-color: #2cb171;

      .material-icons-outlined {
        color: white;
      }
    }
  }

  &__map-wrapper {
    margin-top: 1em;
    opacity: 0;
    max-height: 0;
    transition:
      opacity 0.5s ease-in-out,
      max-height 0.5s ease-in-out;
    &.--active {
      opacity: 1;
      max-height: 500px;
    }
  }
}
