/* ==========================================================================
   詳細商品検索フォーム（フリーパーツ）専用スタイル
   ファイルマネージャーの item/css/ にアップロードして使います。
   ========================================================================== */
/* 商品検索パーツ スタイル設定 */
.fs-custom-search-container.fs-p-productSearch{display:block;width:100%;max-width:900px;margin:0 auto 30px;background:#ffffff;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,0.06);border:1px solid #eaeaea;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;color:#333333;box-sizing:border-box;grid-template-columns:none}
.fs-custom-search-container *,.fs-custom-search-container *::before,.fs-custom-search-container *::after{box-sizing:border-box}
/* トグルスイッチ（アコーディオン） */
.fs-custom-search-toggle-input{display:none}
.fs-custom-search-container .fs-custom-search-toggle-btn{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:linear-gradient(135deg,#ff9b4e 0%,#ff7f24 100%);color:#ffffff;font-weight:700;font-size:16px;cursor:pointer;user-select:none;transition:background 0.3s ease}
.fs-custom-search-toggle-btn:hover{background:linear-gradient(135deg,#ff8b34 0%,#f07014 100%)}
.fs-custom-search-toggle-title{display:flex;align-items:center;gap:8px}
.fs-custom-search-toggle-title svg{width:20px;height:20px;fill:currentColor}
.fs-custom-search-toggle-status{display:flex;align-items:center;gap:6px;font-size:13px;background:rgba(255,255,255,0.2);padding:4px 12px;border-radius:20px;font-weight:500}
.fs-custom-search-toggle-status .fs-icon-arrow{width:14px;height:14px;transition:transform 0.3s ease}
/* 開閉の切り替え */
.fs-custom-search-container .fs-custom-search-body{padding:24px 20px;background:#ffffff;display:block;width:100%;height:auto !important;max-height:none !important;overflow:visible}
#fs_p__ctrlSeachForm:not(:checked) ~ .fs-custom-search-body{display:none}
#fs_p__ctrlSeachForm:not(:checked) ~ .fs-custom-search-toggle-btn .fs-p-productSearch__formClose{display:none}
#fs_p__ctrlSeachForm:not(:checked) ~ .fs-custom-search-toggle-btn .fs-p-productSearch__formOpen{display:inline}
#fs_p__ctrlSeachForm:checked ~ .fs-custom-search-toggle-btn .fs-p-productSearch__formClose{display:inline}
#fs_p__ctrlSeachForm:checked ~ .fs-custom-search-toggle-btn .fs-p-productSearch__formOpen{display:none}
#fs_p__ctrlSeachForm:checked ~ .fs-custom-search-toggle-btn .fs-icon-arrow{transform:rotate(180deg)}
/* フォーム全体の構成 */
.fs-custom-search-container .fs-custom-search-form{display:flex;flex-direction:column;gap:20px;margin:0;padding: 20px 10px;width:100%;max-width:none;grid-template-columns:none}
.fs-custom-search-section{border-bottom:1px solid #f0f0f0;padding-bottom:18px}
.fs-custom-search-section:last-of-type{border-bottom:none;padding-bottom:0}
.fs-custom-search-label{display:block;font-size:14px;font-weight:700;color:#444444;margin-bottom:8px}
/* キーワード & 商品番号の2列グリッド */
.fs-custom-search-grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 640px) {
  .fs-custom-search-container.fs-p-productSearch{border-radius:8px}
  .fs-custom-search-container .fs-custom-search-toggle-btn{gap:10px;padding:14px;font-size:15px}
  .fs-custom-search-toggle-title{min-width:0}
  .fs-custom-search-toggle-status{flex:0 0 auto;white-space:nowrap;padding:4px 9px}
  .fs-custom-search-container .fs-custom-search-body{height:auto !important;max-height:clamp(260px,calc(100dvh - 140px),720px) !important;padding:18px 14px 0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:76px}
  .fs-custom-search-container .fs-custom-search-grid-2col{grid-template-columns:1fr;gap:14px}
  .fs-custom-search-chip-label{max-width:100%;overflow-wrap:anywhere}
  .fs-custom-search-container .fs-custom-search-actions{position:sticky;bottom:0;z-index:10;display:grid;grid-template-columns:minmax(96px,0.85fr) minmax(0,1.4fr);gap:8px;width:calc(100% + 28px);margin:2px -14px 0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,0.98);border-top:1px solid #e6e6e6;box-shadow:0 -6px 16px rgba(0,0,0,0.08)}
  .fs-custom-search-container .fs-custom-search-submit-btn{order:2;width:100%;min-width:0;padding:12px 10px;font-size:14px}
  .fs-custom-search-container .fs-custom-search-reset-btn{order:1;width:100%;min-width:0;padding:11px 8px;font-size:13px}
}
.fs-custom-search-input-wrap{position:relative;display:flex;align-items:center}
.fs-custom-search-input-wrap .fs-input-icon{position:absolute;left:12px;width:18px;height:18px;fill:#999999;pointer-events:none}
.fs-custom-search-container input.fs-custom-search-input{width:100%;height:auto;margin:0;padding:10px 14px 10px 38px;border:1.5px solid #dcdcdc;border-radius:6px;font-size:14px;line-height:1.5;font-weight:400;color:#333333;box-sizing:border-box;transition:all 0.2s ease;background-color:#fafafa}
.fs-custom-search-container input.fs-custom-search-input:focus{outline:none;border-color:#ff8b34;background-color:#ffffff;box-shadow:0 0 0 3px rgba(255,139,52,0.15)}
/* タググループスタイル */
.fs-custom-search-tag-group-title{font-size:13px;font-weight:600;color:#666;margin-top:10px;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.fs-custom-search-tag-group-title::before{content:"";display:inline-block;width:4px;height:14px;background-color:#ff8b34;border-radius:2px}
/* チップ型チェックボックス */
.fs-custom-search-chips{display:flex;flex-wrap:wrap;gap:8px}
.fs-custom-search-chip{display:inline-flex;cursor:pointer;user-select:none;margin:0}
.fs-custom-search-chip input{position:absolute;opacity:0;pointer-events:none}
.fs-custom-search-chip-label{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:#f4f5f7;border:1px solid #e2e4e8;border-radius:20px;font-size:13px;color:#4b5563;font-weight:500;transition:all 0.2s ease}
.fs-custom-search-chip-label:hover{background:#edeef2;border-color:#d1d5db}
/* チップ選択時 */
.fs-custom-search-chip input:checked + .fs-custom-search-chip-label{background:#fff4ed;border-color:#ff8b34;color:#e66a0a;font-weight:700;box-shadow:0 2px 6px rgba(255,139,52,0.15)}
.fs-custom-search-chip input:checked + .fs-custom-search-chip-label::before{content:"\2713";font-size:12px;line-height:1}
/* 価格帯エリア */
.fs-custom-search-price{display:flex;align-items:center;gap:10px}
.fs-custom-search-price-field{display:flex;align-items:center;gap:6px;flex:1 1 0;min-width:0;max-width:190px}
.fs-custom-search-price-unit,.fs-custom-search-price-joint{flex:0 0 auto;font-size:14px;color:#555555}
.fs-custom-search-container input.fs-custom-search-price-input{flex:1 1 auto;width:100%;min-width:0;height:auto;margin:0;padding:10px 12px;border:1.5px solid #dcdcdc;border-radius:6px;font-size:14px;line-height:1.5;font-weight:400;color:#333333;text-align:right;box-sizing:border-box;transition:all 0.2s ease;background-color:#fafafa;-moz-appearance:textfield}
.fs-custom-search-container input.fs-custom-search-price-input::-webkit-outer-spin-button,.fs-custom-search-container input.fs-custom-search-price-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.fs-custom-search-container input.fs-custom-search-price-input:focus{outline:none;border-color:#ff8b34;background-color:#ffffff;box-shadow:0 0 0 3px rgba(255,139,52,0.15)}
/* 在庫状況エリア */
.fs-custom-search-stock-group{margin-top:2px}
.fs-custom-search-stock-group .fs-custom-search-chip-label{padding:8px 16px}
.fs-custom-search-stock-note{margin:8px 0 0;font-size:12px;line-height:1.6;color:#8a8f98}
/* 検索結果側：「売り切れ中のみ」適用中の案内 */
.fs-custom-stock-filter-notice{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 14px;background:#fff4ed;border:1px solid #ffd3b0;border-radius:8px;font-size:13px;line-height:1.6;color:#b45309}
.fs-custom-stock-filter-notice--empty{background:#f4f5f7;border-color:#e2e4e8;color:#4b5563}
/* 並び順エリア */
.fs-custom-search-sort-group{display:flex;flex-wrap:wrap;gap:12px}
.fs-custom-search-radio-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#555555;cursor:pointer}
.fs-custom-search-radio-label input[type="radio"]{accent-color:#ff8b34;width:15px;height:15px;cursor:pointer}
/* ボタンエリア */
.fs-custom-search-actions{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:10px}
.fs-custom-search-submit-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:200px;padding:13px 32px;background:linear-gradient(135deg,#ff8b34 0%,#f06a00 100%);color:#ffffff;border:none;border-radius:30px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(240,106,0,0.28);transition:all 0.25s ease;text-decoration:none}
.fs-custom-search-submit-btn:hover{background:linear-gradient(135deg,#fa7e23 0%,#dc5f00 100%);box-shadow:0 6px 16px rgba(240,106,0,0.36);transform:translateY(-1px)}
.fs-custom-search-submit-btn svg{width:18px;height:18px;fill:#ffffff}
.fs-custom-search-reset-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 20px;background:#ffffff;color:#666666;border:1px solid #d0d0d0;border-radius:30px;font-size:14px;cursor:pointer;transition:all 0.2s ease}
.fs-custom-search-reset-btn:hover{background:#f7f7f7;color:#333333;border-color:#b0b0b0}
