/* ==========================================================================
   customize.css
   エアコン有料オプション／カートのオプション枠／設置環境の設問（接頭辞 cz-）
   読込: app/template/default/default_frame.twig
   ========================================================================== */

/* --------------------------------------------------------------------------
   商品詳細: オプション・補償について（.cz-opt）
   Product/detail.twig の form1 内
   -------------------------------------------------------------------------- */
.cz-opt {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  text-align: left;
}
.cz-opt__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}
.cz-opt__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}
.cz-opt__group {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dotted #ddd;
}
.cz-opt__note + .cz-opt__group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.cz-opt__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}
.cz-opt__item {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 4px 0;
  font-weight: normal;
  line-height: 1.5;
  cursor: pointer;
}
.cz-opt__item input {
  flex: 0 0 auto;
  width: auto;
  margin: 5px 8px 0 0;
}
.cz-opt__item span {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   購入手続き: 設置環境について（.cz-env）
   Shopping/index.twig の「お問い合わせ」の上
   -------------------------------------------------------------------------- */
.cz-env__note {
  margin: 10px 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}
.cz-env__unknown {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}
.cz-env__group {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.cz-env__group.is-disabled {
  background: #f3f3f3;
  color: #999;
}
.cz-env__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}
.cz-env__item {
  display: inline-flex;
  align-items: center;
  margin: 0 24px 0 0;
  padding: 4px 0;
  font-weight: normal;
  line-height: 1.5;
  cursor: pointer;
}
.cz-env__item input {
  flex: 0 0 auto;
  width: auto;
  margin: 0 8px 0 0;
}
.cz-env__group.is-disabled .cz-env__item {
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   カート: エアコンのオプション（.cz-cartopt）
   Cart/index.twig の明細テーブルの直後。見た目は商品詳細の .cz-opt に合わせる
   -------------------------------------------------------------------------- */
.cz-cartopt {
  width: 80%;
  margin: 16px 10% 0;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  text-align: left;
}
.cz-cartopt.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.cz-cartopt__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}
.cz-cartopt__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}
.cz-cartopt__group {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dotted #ddd;
}
.cz-cartopt__note + .cz-cartopt__group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.cz-cartopt__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}
.cz-cartopt__item {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 4px 0;
  font-weight: normal;
  line-height: 1.5;
  cursor: pointer;
}
.cz-cartopt__item input {
  flex: 0 0 auto;
  width: auto;
  margin: 5px 8px 0 0;
}
.cz-cartopt__item span {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
.cz-cartopt__actions {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px dotted #ddd;
  text-align: right;
}
.cz-cartopt .cz-cartopt__submit {
  display: inline-block;
  width: auto;
  min-width: 200px;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   SP（767px 以下）
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  .cz-opt {
    padding: 12px;
  }
  .cz-opt__item {
    padding: 8px 0;
  }
  .cz-cartopt {
    width: 100%;
    margin: 16px 0 0;
    padding: 12px;
  }
  .cz-cartopt__item {
    padding: 8px 0;
  }
  .cz-cartopt__actions {
    text-align: center;
  }
  .cz-cartopt .cz-cartopt__submit {
    display: block;
    width: 100%;
  }
  .cz-env__unknown,
  .cz-env__group {
    padding: 10px 12px;
  }
  .cz-env__item {
    margin-right: 20px;
    padding: 8px 0;
  }
}

/* カート画面: オプション数量がエアコン台数と合っていないときの注記 */
.cz-cartopt__warn {
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid #e0b000;
    border-radius: 4px;
    background: #fff8e6;
    color: #7a5a00;
    font-size: 13px;
}
