

/* 共通：金額は赤文字 */
.ff-sample-discount-amount span {
    color: #c00 !important;
    font-weight: 600;
}

/* スマホレイアウト：th を非表示にして、td::before に見出しを出す */
@media (max-width: 768px) {

    /* th は隠す（小計や配送と同じ挙動に） */
    .shop_table_responsive .ff-sample-discount-label {
        display: none !important;
    }

    /* td の左側にラベルを擬似要素で表示 */
    .shop_table_responsive tr.ff-sample-discount td.ff-sample-discount-amount::before {
        content: attr(data-title);
        float: left;
        font-weight: 500 !important;
        font-size: 0.9em;
        color: #555;
        text-transform: none;
        padding-right: .5em;
    }

    /* 金額は右側に */
    .shop_table_responsive tr.ff-sample-discount td.ff-sample-discount-amount {
        text-align: right;
        clear: both;
    }
}

/* ===== サンプル依頼ページ 全体 ===== */
.ff-sample-request {
  max-width: 1040px;
  margin: 0 auto 3rem;
  padding: 1.5rem 1rem 3rem;
}

.ff-sample-request__header {
  margin-bottom: 1.5rem;
}

.ff-sample-request__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ff-sample-request__lead {
  margin: 0 0 0.5rem;
  line-height: 1.7;
  font-size: 0.9em;
}

.ff-sample-request__lead strong {
  font-weight: 700;
}

.ff-sample-request__note {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.ff-sample-request__desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* ===== リスト表示 ===== */
.ff-sample-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ff-sample-item {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.ff-sample-item__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ff-sample-item__thumb {
  flex: 0 0 90px;
}

.ff-sample-item__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* 星レビューが万一出ても消す保険 */
.ff-sample-request .star-rating {
  display: none !important;
}

/* タイトル・価格・カート部分 */
.ff-sample-item__main {
  flex: 1;
  min-width: 0;
}

.ff-sample-item__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.ff-sample-item__title a {
  text-decoration: none;
  color: #333;
}

.ff-sample-item__title a:hover {
  text-decoration: underline;
}


.ff-sample-item__cart {
    float: right;
}

.ff-sample-item__meta {
  margin-bottom: 0.5rem;
  width: 25%;
  float: left;
}

.ff-sample-item__price {
  font-weight: 700;
  color: #333;
}

/* カートフォーム */
.ff-sample-cart-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ff-sample-cart-form__label {
  font-size: 0.9rem;
}

.ff-sample-cart-form input.qty {
  width: 80px;
  max-width: 100px;
  text-align: center;
}

.ff-sample-cart-form__button {
  white-space: nowrap;
}

/* 在庫切れ */
.ff-sample-item__stock-status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #999;
}

/* スマホ向け調整 */
@media (max-width: 768px) {
  .ff-sample-request {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ff-sample-item__inner {
    flex-direction: row;
  }

  .ff-sample-item__thumb {
    flex: 0 0 72px;
  }

  .ff-sample-cart-form__row {
    align-items: flex-end;
  }

  button.button.add_to_cart_button.ff-sample-cart-form__button {
    margin-bottom: 0 !important;
}
}


