/*
 * This file is part of the CouponPro42 Plugin
 *
 * Copyright (C) 2022 Diezon.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

@charset "UTF-8";

/* クーポン一覧----------------------------------------------- */
.coupon-wrap {
  padding-left: 0 !important;
}

/* 注意書きテキスト */
.ec-couponRole > span,
.ec-couponRole__body > span {
  display: block;
  margin-bottom: 16px;
  padding: 10px 12px;
  background-color: #F2F8E5;
  border-left: 3px solid #8FC31F;
  font-size: 14px;
  color: #595757;
  line-height: 1.6;
}

.ec-couponRole--block {
  margin-bottom: 40px;
}

.coupon-wrap-list {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #B4B4B4;
  background: #EFEFEF;
}

.coupon-wrap-list:nth-of-type(n + 2) {
  margin-top: 12px;
}

.coupon-wrap-list-link {
  color: #525263;
  text-decoration: none !important;
  display: block;
  height: 100%;
}

.coupon-wrap-list-name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: block;
  margin-bottom: 4px;
  color: #525263;
}

.coupon-name-area {
  text-align: center;
}

.coupon-name-area .coupon-wrap-list-name {
  position: relative;
  padding-right: 22px;
  display: inline;
}

.coupon-name-area .coupon-wrap-list-name::before {
  position: absolute;
  content: "";
  background: url(/html/upload/save_image/tab1.png);
  width: 15px;
  height: 15px;
  right: 0;
  background-position: center;
  background-size: cover;
  top: 50%;
  transform: translateY(-50%);
}

.coupon-wrap-list-main {
  background: #fff;
  padding: 12px;
}

.coupon-wrap-list-off {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  color: #EA5514;
  font-weight: bold;
}

.coupon-wrap-list-off-strong {
  font-size: 57px;
  line-height: 1.2;
}

.coupon-wrap-list-off-unit {
  font-size: 29px;
  margin-left: 4px;
}

.coupon-wrap-list-off-middle {
  font-size: 43px;
  margin-left: 4px;
}

.coupon-wrap-list-limit {
  text-align: center;
}

.coupon-wrap-list-limit p {
  text-align: center;
  font-size: 12px;
  margin-top: 6px;
  color: #525263;
  position: relative;
  padding-left: 16px;
  line-height: 1;
  display: inline-block;
}

.coupon-wrap-list-limit p::before {
  position: absolute;
  content: "";
  background: url(/html/upload/save_image/clock1.png);
  width: 13px;
  height: 13px;
  left: 0;
  background-position: center;
  background-size: cover;
}

.coupon-wrap-list-done .coupon-wrap-list-limit p::before {
  position: absolute;
  content: "";
  background: url(/html/upload/save_image/clock2.png);
  width: 13px;
  height: 13px;
  left: 0;
  background-position: center;
  background-size: cover;
}

.coupon-wrap-list-sub {
  background: #EFEFEF;
  padding: 10px;
}

.coupon-wrap-list-sub dd {
  line-height: 1.4;
}

.coupon-wrap-list-sub-link {
  color: #525263;
  text-decoration: underline;
}

.coupon-wrap-list-sub-dl dd object {
  position: relative;
  margin-right: 3px;
}

/* .coupon-wrap-list-sub-dl object:before {
  content: "、";
  color: #525263;
  position: absolute;
  right: 0;
  bottom: 0;
  background-position: center;
}
.coupon-wrap-list-sub-dl object:nth-of-type(3):before {
  content: none;
} */
.coupon-wrap-list-sub-dl {
  margin-bottom: 0;
  color: #525263;
}

.coupon-wrap-list-sub-dl:nth-of-type(n + 2) {
  margin-top: 8px;
}

.coupon-wrap-list-sub-dl dt {
  font-size: 12px;
}

.coupon-wrap-list-sub-dl dd {
  font-size: 12px;
}

.coupon-wrap-free {
  color: #EA5514;
  font-size: 47px;
  font-weight: bold;
  text-align: center;
}

.icon-clock {
  content: "\e920";
}

@media screen and (min-width: 1024px) {
  .coupon-wrap {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .coupon-wrap-list {
    width: 32%;
    list-style-type: none;
    margin-right: 2%;
  }

  .coupon-wrap-list:nth-of-type(2) {
    margin-top: 0;
  }

  .coupon-wrap-list:nth-of-type(3) {
    margin-top: 0;
  }

  .coupon-wrap-list:nth-of-type(n + 4) {
    margin-top: 16px;
  }

  .coupon-wrap-list:nth-of-type(3n) {
    margin-right: 0;
  }

  .coupon-wrap-list-main {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .other-tab .coupon-wrap-list-link:hover {
    opacity: 0.6;
    transition: 0.3s;
  }

  .coupon-wrap-list-sub-link:hover {
    color: #EA5514;
    text-decoration: none;
  }
}

.coupon-wrap-list-done .coupon-wrap-list-name,
.coupon-wrap-list-done .coupon-wrap-list-off,
.coupon-wrap-list-done .coupon-wrap-list-sub-dl,
.coupon-wrap-list-done .coupon-wrap-list-limit p {
  color: #999 !important;
}

.coupon-wrap-list-done .coupon-wrap-list-main {
  background: #ddd;
}

.coupon-wrap-list-done .coupon-wrap-list-sub {
  background: #B4B4B4;
}

.coupon-wrap-list-done {
  position: relative;
}

.coupon-wrap-list-done::before {
  position: absolute;
  content: "";
  background: #EA5514;
  top: 0;
  left: 0;
  font-size: 14px;
  border-radius: 8px 0 8px 0;
  color: #fff;
  font-weight: bold;
  z-index: 1;
  width: 86px;
  height: 28px;
}

.coupon-wrap-list-done::after {
  position: absolute;
  content: "利用済み";
  top: 5px;
  left: 17px;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  z-index: 1;
}

.coupon-wrap-list-done {
  background: #B4B4B4;
}

.coupon-wrap-list-done .coupon-wrap-list-sub-link {
  color: #999;
}

/* フロント＞クーポンブロック----------------------------------------------- */
.coupon-wrap-block {
  max-height: 650px;
  overflow-y: scroll;
}

/* ご注文手続き----------------------------------------------- */
.shopping-coupon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.shopping-coupon-item {
  position: relative;
  width: 100%;
}

.shopping-coupon-item label {
  transition: 0.2s linear;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  display: inline-block;
  border: 2px solid #d0d0d0;
  padding: 10px 12px 10px 38px;
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shopping-coupon-item span {
  font-weight: normal;
}

.shopping-coupon-item .radio {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.form-radio-box__label {
  display: block;
}

.form-radio-box__error {
  display: block;
}

.shopping-coupon-discount .price .shopping-coupon-discount-unit {
  font-size: 12px;
  font-weight: bold;
}

.is-error {
  background: #fdf1f0;
  border: 1px solid #cf3f34 !important;
  border-radius: 3px;
}

.shopping-coupon-button {
  background: #8FC31F;
  margin-left: 8px;
  height: 40px;
  min-width: 76px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.shopping-coupon-item label {
  width: 100%;
}

.shopping-coupon-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.shopping-coupon-form-textarea {
  width: 100%;
  flex: 1 1 calc((100% - 24px) / 4);
}

.shopping-coupon-form-textarea input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px !important;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background-color: #fff;
}

.form-radio-box__code input {
  width: 100%;
}

.shopping-coupon-item .error-message {
  color: #de5d50;
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

::placeholder {
  color: #9b9b9b;
}

.shopping-coupon-discount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.shopping-coupon-discount .free {
  color: #de5d50;
  font-weight: bold;
  font-size: 13px;
}

.shopping-coupon-discount .value {
  font-family: Roboto;
  font-weight: bold;
  margin-left: 4px;
  font-size: 14px;
  color: #666;
}

.coupon-name-textarea {
  display: block;
}

.shopping-coupon-item .price {
  margin-left: 6px;
  color: #de5d50;
  font-size: 16px;
  font-weight: bold;
}

.shopping-coupon-item .coupon-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.shopping-coupon-item input[type="radio"]:checked+label {
  background-color: #F2F8E5;
  border-color: #8FC31F;
  box-shadow: 0 2px 8px rgba(143, 195, 31, 0.25);
}

.shopping-coupon-item label:hover {
  border-color: #8FC31F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shopping-coupon-item:nth-of-type(n + 2) {
  margin-top: 8px;
}

@media screen and (min-width: 1024px) {
  .shopping-coupon-item {
    width: calc((100% - 8px) / 2);
  }

  .shopping-coupon-item:nth-of-type(2) {
    margin-top: 0;
  }

  .shopping-coupon-item:nth-of-type(n + 3) {
    margin-top: 8px;
  }
}

/* formリセット */
.shopping-coupon input:not([type="radio"]),
.shopping-coupon button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font: inherit;
  outline: none;
}

.shopping-coupon input[type="radio"] {
  min-width: 16px;
  min-height: 16px;
}

.shopping-coupon input[type="submit"],
.shopping-coupon input[type="button"],
.shopping-coupon label,
.shopping-coupon button,
.shopping-coupon select {
  cursor: pointer;
}

.shopping-coupon select::-ms-expand {
  display: none;
}

/* 商品詳細----------------------------------------------- */
.product-detail-coupon-link {
  text-decoration: none \!important;
  display: block;
  width: 100%;
  height: 100%;
}

.product-detail-coupon-box-in {
  padding: 12px 8px 4px 8px;
}

/* クーポンカード - マイページと同じデザイン（SP/PC共通） */
.product-detail-coupon-box {
  background: #EFEFEF;
  border: 1px solid #C9A063;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
}

/* メインエリア（白背景） */
.product-detail-coupon-main {
  flex: 0 0 57%;
  height: 50%;
  background: #fff;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-detail-free {
  color: #EA5514;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.coupon-box-another-tab .coupon-name {
  position: relative;
  padding-right: 15px;
}

.coupon-box-another-tab .coupon-name::before {
  position: absolute;
  content: "";
  background: url(/html/upload/save_image/tab3.png);
  width: 13px;
  height: 13px;
  right: 0;
  background-position: center;
  background-size: cover;
  top: 50%;
  transform: translateY(-50%);
}

.product-detail-coupon-box:nth-of-type(n + 2) {
  margin-left: 8px;
}

.product-detail-coupon-box .coupon-name {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #525263;
  margin-bottom: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  
  
  height: 2rem;
  
  max-width: 100%;
}

.product-detail-coupon-box .coupon-name span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.product-detail-coupon-box .coupon-price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: #EA5514;
  font-weight: bold;
}

.product-detail-coupon-box .coupon-price .price-left {

  font-size: 26px;
  line-height: 1.2;
}

.product-detail-coupon-box .coupon-price .price-middle {
  font-size: 21px;
  
}

.product-detail-coupon-box .coupon-price .price-right {
  font-size: 21px;
  
}

/* サブエリア（グレー背景） */
.product-detail-coupon__sub {
  flex: 0 0 57%;
  height: 50%;
  background: #EFEFEF;
  padding: 6px 8px;
  overflow: hidden;
}

.product-detail-coupon__sub dl {
  color: #525263;
  font-size: 12px;
  display: flex;
  margin-bottom: 0;
}

.product-detail-coupon__sub dl dt,
.product-detail-coupon__sub dl dd {
  font-weight: normal;
}

.product-detail-coupon__sub dl dt {
  min-width: 30px;
  font-weight: bold;
}

/* SP用：横スクロール */
.product-detail-coupon-scroll {
  overflow-x: scroll;
  width: 100%;
  padding-bottom: 8px;
}

.product-detail-coupon-wrap {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  align-items: stretch;
}

/* スクロールバー調整 */
.scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: #dedede;
  border-radius: 30px;
  margin-left: 10px;
}

.precautionary-text {
  font-size: 12px;
  color: #8d8d8d;
  margin-top: 0;
}

.product-detail-coupon-block {
  border-radius: 5px;
  padding: 0 14px 14px 0;
  margin-bottom: 10px;
}

/* PC用スタイル（1024px以上） - 折り返し対応 */
@media screen and (min-width: 1024px) {
  .product-detail-coupon-box:nth-of-type(n + 2) {
    margin-left: 0;
  }

  .product-detail-coupon-scroll {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .product-detail-coupon-wrap {
    flex-wrap: wrap;
    gap: 8px;
    min-width: calc(150px * 3 + 8px * 2);
  }

  .coupon-box-another-tab .product-detail-coupon-link:hover {
    opacity: 0.6;
    transition: 0.3s;
  }
}

