/* Futurating /create/: sequential future areas and projects pickers */
.frfp-area-picker,
.frfp-project-picker {
  position: relative;
  z-index: 20;
}

.frfp-area-picker:focus-within,
.frfp-area-picker.is-open,
.frfp-project-picker:focus-within,
.frfp-project-picker.is-open {
  z-index: 50;
}

.frfp-area-picker__control,
.frfp-project-picker__control {
  cursor: text;
}

.frfp-area-picker__control .frfp-area-picker__input,
.frfp-project-picker__control .frfp-project-picker__input {
  width: 100%;
  min-width: 0;
  padding-right: 16px;
}

.frfp-area-picker__input::-webkit-search-cancel-button,
.frfp-area-picker__input::-webkit-search-decoration,
.frfp-area-picker__input::-webkit-search-results-button,
.frfp-area-picker__input::-webkit-search-results-decoration,
.frfp-project-picker__input::-webkit-search-cancel-button,
.frfp-project-picker__input::-webkit-search-decoration,
.frfp-project-picker__input::-webkit-search-results-button,
.frfp-project-picker__input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.frfp-area-picker__input:disabled,
.frfp-project-picker__input:disabled {
  cursor: default;
  color: #888;
  background: #f8f8f8;
}

.frfp-area-picker__results,
.frfp-project-picker__results {
  z-index: 55;
}

.frfp-area-picker__result,
.frfp-project-picker__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.frfp-area-picker__back {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  color: #3f7cdf;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.frfp-area-picker__back:hover,
.frfp-area-picker__back:focus-visible {
  background: #f8f8f8;
  outline: none;
}

.frfp-areas-field > .frfp-chips:not(:empty),
.frfp-projects-field > .frfp-chips:not(:empty) {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .frfp-area-picker__control .frfp-area-picker__input,
  .frfp-project-picker__control .frfp-project-picker__input {
    font-size: 16px;
  }

  .frfp-area-picker__results,
  .frfp-project-picker__results {
    max-height: min(320px, 48vh);
  }
}

/* Moderation states inside the /create/ card */
/* Origin of an idea developed into a postulate: use the editor's neutral notice palette. */
.frfp-develop-source {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--secondary, #f8f8f8);
  color: var(--foreground, #1a1a1a);
}
.frfp-develop-source__icon {
  display: inline-flex;
  flex: 0 0 20px;
  margin-top: 2px;
  color: var(--accent, #3f7cdf);
}
.frfp-develop-source__icon svg { width: 20px; height: 20px; }
.frfp-develop-source__content { display: grid; min-width: 0; gap: 4px; }
.frfp-develop-source__content strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.frfp-develop-source__content a {
  width: fit-content;
  max-width: 100%;
  color: var(--accent, #3f7cdf);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.frfp-develop-source__content > span {
  color: var(--muted-foreground, #667085);
  font-size: 13px;
  line-height: 19px;
}

.frfp-notice--moderation {
  display: block;
  margin: 24px 0 28px;
  padding: 16px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: transparent;
  color: #1a1a1a;
}

.frfp-notice__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.frfp-notice__content > strong {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
}

.frfp-notice__content > span {
  color: #687386;
  font-size: 13px;
  line-height: 1.55;
}

.frfp-notice--moderation-rejected {
  border: 0;
  background: #fdecec;
  color: #8f2d2d;
}

.frfp-notice--moderation-rejected .frfp-notice__content > strong {
  color: #842929;
}

.frfp-notice--moderation-rejected .frfp-notice__content > span {
  color: #9a4343;
}

.frfp-notice__recommendation {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #e5e5e5;
  border-radius: 0;
  background: transparent;
  color: #4f5968;
}

.frfp-notice--moderation-rejected .frfp-notice__recommendation {
  border-top-color: rgba(143, 45, 45, .16);
  color: #8f3a3a;
}

.frfp-notice--moderation-rejected .frfp-notice__recommendation b,
.frfp-notice--moderation-rejected .frfp-notice__recommendation p {
  color: #8f3a3a;
}

.frfp-notice__recommendation b {
  display: block;
  margin-bottom: 4px;
  color: #4f5968;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.frfp-notice__recommendation p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 479px) {
  .frfp-notice--moderation {
    margin: 20px 0 24px;
    padding: 14px;
  }
}
