/**
 * Form Page Admin Styles
 * @package ReasonableSpreadPlugin
 */

:root {
  --gap-size: 1rem;
}

.reasonable-section {
  background: #fff;
  padding: 1.25rem;
  border: 0.15rem solid #ccc;
  border-radius: 0.3rem;
  margin-bottom: var(--gap-size);
}

.reasonable-flex-row {
  display: flex;
  gap: var(--gap-size);
  flex-wrap: wrap;
  align-items: flex-start;
}

.reasonable-flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-size);
}

.inner-container {
  flex-grow: 1;
  flex-shrink: 1;
}

.reasonable-template-buttons {
  display: flex;
  gap: var(--gap-size);
  flex-wrap: wrap;
  margin-top: var(--gap-size);
}

.reasonable-shortcode-box {
  background: #f5f5f5;
  padding: 1rem;
  border-left: 0.25rem solid #0073aa;
  margin: var(--gap-size) 0;
}

.reasonable-preview-box {
  border: 2px dashed #ccc;
  padding: 1.25rem;
  margin-top: var(--gap-size);
  background: #fafbfc;
  flex-grow: 1;
}

@media (max-width: 900px) {
  .reasonable-flex-row {
    flex-direction: column;
    gap: var(--gap-size);
    align-items: stretch;
  }
  .reasonable-flex-row > div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
  }
  .reasonable-preview-box {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

.separate-line {
  border-bottom: 0.15rem solid #e2e2e2;
  margin: 0.1rem 0;
}
