/* order.css */

.order-form-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 3. 右側プレビューエリア（sidebar を踏襲） */
.order-preview-side {
  width: 380px;
  flex-shrink: 0;
  background: #eeeeee;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 80px;
  height: fit-content;
  box-sizing: border-box;
}

.order-preview-side textarea {
  width: 100% !important; /* 横幅いっぱい */
  height: 400px !important; /* 縦幅を大きく確保（テンプレが全部見えるように） */
  margin-bottom: 15px; /* ボタンとの隙間 */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace; /* 等幅フォント */
  font-size: 0.85rem;
  box-sizing: border-box; /* パディングを含めて100%に */
  background-color: white; /* 入力欄と差別化するために白地に */
  resize: vertical; /* ユーザーが縦幅だけ調整できるように */
}

/* 4. 細かいUIの「成長チェック風」調整 */
.form-group-block h3 {
  color: #e91e63; /* マゼンタピンク */
  font-size: 0.95rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* 納期エリア全体の縦並びを管理 */
.stack-item {
  flex-direction: column; /* 中身を縦に積む */
  align-items: flex-start !important; /* 左寄せ */
  padding: 8px 0;
}

/* ラベルと入力欄だけを横に並べる */
.input-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* 横幅いっぱい使って両端に寄せる */
  margin-bottom: 5px; /* 警告文との隙間 */
}

/* 警告文のスタイル調整 */
.warning-text {
  color: #e91e63;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1.4;
  background-color: rgba(
    233,
    30,
    99,
    0.05
  ); /* ほんのり背景色をつけて注意を引く */
  padding: 5px 10px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
