/* シール背景色選択ドット（ガラポンシールロゴ配色・必ず読み込むためここに定義） */
.bgcolor-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.bgcolor-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, transform 0.15s;
  box-sizing: border-box;
}
.bgcolor-dot:hover {
  border-color: #111;
  transform: scale(1.15);
}
.bgcolor-dot.is-selected {
  border-color: #000;
  border-width: 3px;
  box-shadow: 0 0 0 1px #fff;
}

/* ドットの色（ロゴ配色・フォールバック） */
.bgcolor-dot[data-bg="000000"] { background-color: #000000 !important; }
.bgcolor-dot[data-bg="00a0e9"] { background-color: #00a0e9 !important; }
.bgcolor-dot[data-bg="f39800"] { background-color: #f39800 !important; }
.bgcolor-dot[data-bg="8fc31f"] { background-color: #8fc31f !important; }
.bgcolor-dot[data-bg="e4007f"] { background-color: #e4007f !important; }
.bgcolor-dot[data-bg="ffffff"] { background-color: #ffffff !important; }

/* 「その他の色」ボタン（4×4のミニグリッドをアイコンに） */
.bgcolor-dot--more {
  overflow: hidden;
  padding: 0;
  background-color: #fff !important;
}
.bgcolor-dot__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bgcolor-dot__grid > i {
  display: block;
}

/* カラーパレット（4列×4行）ポップアップ */
.bgcolor-palette {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  max-width: 94vw;
  max-height: 60vh;
  overflow: auto;
  z-index: 50;
}
.bgcolor-palette[hidden] {
  display: none;
}
.bgcolor-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.12s;
}
.bgcolor-swatch:hover {
  transform: scale(1.1);
}
.bgcolor-swatch.is-selected {
  outline: 3px solid #000;
  outline-offset: 1px;
}

/* レイアウト確認：キャプション入力欄＋文字色アイコンを横並び中央寄せ（アイコンは背景色「その他」ドットと同一） */
.caption-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;   /* #capcolor-palette-top（アイコン直下ポップオーバー）の位置基準 */
}
.caption-bar-row .hdr-caption-bar {
  flex: 0 1 30em;       /* 入力欄はグローバル input と同じ 30em 基準・縮小可 */
  min-width: 0;
  margin: 0;
}
.caption-bar-row .hdr-caption-bar__input {
  width: 100%;          /* 入力欄を wrap 幅いっぱいに（右のアイコンと同一行に収める） */
  box-sizing: border-box;
}
.caption-bar-row .bgcolor-dot--more {
  flex: 0 0 auto;
}

/* 背景色と罫線を横並び・塊で中央寄せ・ラベル同士の高さを揃える */
.bgcolor-border-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.bgcolor-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}
.bgcolor-wrap .bgcolor-ttl {
  margin-bottom: 0.25em;
}
.border-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
/* シール背景色と罫線のラベルを同じ高さに（同じ margin で揃える） */
.bgcolor-ttl,
.border-ttl {
  margin: 0.5em 0 0.25em;
  font-size: 0.95rem;
}
.border-wrap .border-ttl {
  margin-bottom: 0.25em;
}
.border-select {
  padding: 0.35em 0.6em;
  font-size: 0.95rem;
  border: 1px solid #666;
  border-radius: 4px;
  min-width: 4.5em;
}

/*
.number{
  margin: 1rem -1em;
}
.number__ttl{
  text-align: left;
  color: var(--main-strong-color);
  margin-left: 1.5em;
  text-indent: -1.5em;
  font-weight: bold;
}
.number__ttl::before{
  content: "▼";
  display: inline;
  margin-right: 0.5em;
}

.number__note{
  text-align: left;
}
.printnolist{
    text-align: center;
}

.printnolist__ttl{

  border: solid thin #ccc;
  background: #ffffff;
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  padding: 0.5rem;
  font-size: 1.2em;
}
.printnolist__ttl__img{
  height: 1em;
  margin: 0 0.5em;
  vertical-align: middle;
}
.printnolist__txt{
  border: solid thin #ccc;
  border-radius: 0 0 1rem 1rem;
  background: #ffffa6;
  margin: 0;
  padding: 0.5rem;
}
.printno{
  font-size: 1.5em;
  font-weight: bold;
}
.printuntil{
  margin: 0;
  font-size: small;
}

*/
/* 番号発行完了：コンビニロゴ帯＋番号ボックス（LINE版 number.php と同じ見た目） */
.printnolist{
  margin: 1rem 0;
  text-align: center;
}
.printnolist__ttl{
  border: solid thin #ccc;
  background: #fff;
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  padding: 0.5rem;
  font-size: 1.2em;
  margin: 0;
}
.printnolist__ttl__img{
  height: 1em;
  margin: 0 0.5em;
  vertical-align: middle;
}
.printnolist__ttl__img--ministop{
  height: 1.8em;
}
.printnolist__txt{
  border: solid thin #ccc;
  border-radius: 0 0 1rem 1rem;
  background: #ffffa6;
  margin: 0;
  padding: 0.5rem;
}
/* ロゴ帯の中では番号ボックス自体の枠・背景は外す（帯側が箱になるため） */
.printnolist .printno{
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
/* 注意書き：赤・左揃え・太字なし */
.number__note{
  text-align: left;
  color: #f00;
  font-weight: normal;
}
