/* Word Combiner tool only */

.page--combine {
  background-color: #f4f5f6;
}

.page--combine .combiner-parent-container {
  width: min(calc(100% - 2rem), 88rem);
  padding-bottom: 3rem;
  margin: 0 auto;
}

.page--combine .combiner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page--combine .combiner-text-container {
  min-width: 0;
}

.page--combine .combiner-box {
  height: 160px;
}

/* Row of clear/count/copy controls beneath each input list. */
.page--combine .combiner-below-text-container {
  justify-content: space-between;
  align-items: center;
}

.page--combine .combiner-clabel {
  font-size: 0.7rem;
}

.page--combine .combiner-cBtn,
.page--combine #combiner-clearBtn-A,
.page--combine #combiner-clearBtn-B,
.page--combine #combiner-clearBtn-C {
  padding: 0.25rem;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 4px;
}

.page--combine #combiner-copyBtn-A,
.page--combine #combiner-copyBtn-B,
.page--combine #combiner-copyBtn-C {
  display: none;
}

.page--combine .combiner-outer-separator,
.page--combine .combiner-outer-merge {
  width: min(100%, 36rem);
  margin: auto;
}

.page--combine .combiner-inner-seperator {
  margin-top: 2rem;
}

.page--combine .combiner-inner-merge {
  margin-top: 2rem;
}

.page--combine .combiner-separator-selector,
.page--combine .combiner-merge-selector,
.page--combine .combiner-custom-separator-input {
  display: flex;
  justify-content: center;
}

.page--combine .combiner-separator-header,
.page--combine .combiner-merge-header {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
}

.page--combine #combiner-custom-separator-container {
  display: none;
}

.page--combine #combiner-custom-separator {
  width: 10%;
  height: auto;
  margin: auto 8px;
}

.page--combine #combiner-separator,
.page--combine #combiner-merge-action {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.page--combine #combiner-separator option,
.page--combine #combiner-merge-action option {
  text-align: center;
}

.page--combine .combiner-merge-section {
  display: flex;
  justify-content: center;
  margin: 0.5rem 1rem 1rem;
}

.page--combine #combiner-merge-button {
  width: min(80%, 36rem);
}

.page--combine .combiner-result-section {
  margin: 0.5rem;
}

.page--combine .combiner-result-box {
  display: flex;
  justify-content: center;
}

.page--combine #combiner-result_data {
  width: 80%;
}

.page--combine .combine-result-count {
  display: flex;
  justify-content: flex-end;
  width: 90%;
  font-size: 0.8rem;
}

.page--combine .combiner-result-button {
  display: flex;
  justify-content: space-between;
  width: 80%;
  gap: 0.75rem;
  margin: 0.5rem auto;
}

.page--combine #combiner-Copy,
.page--combine #combiner-Download {
  width: 45%;
}

@media (max-width: 48rem) {
  .page--combine .combiner-container {
    grid-template-columns: 1fr;
  }

  .page--combine #combiner-separator,
  .page--combine #combiner-merge-action {
    width: 100%;
  }

  .page--combine .combiner-separator-header,
  .page--combine .combiner-merge-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page--combine .combiner-result-button,
  .page--combine #combiner-result_data,
  .page--combine .combine-result-count,
  .page--combine #combiner-merge-button {
    width: 100%;
  }

  .page--combine #combiner-Copy,
  .page--combine #combiner-Download {
    width: 48%;
  }

  .page--combine .combiner-inner-merge {
    margin-top: 1rem;
  }

  .page--combine #combiner-copyBtn-A,
  .page--combine #combiner-copyBtn-B,
  .page--combine #combiner-copyBtn-C {
    display: flex;
  }
}
