/* ==================================================
   Kimon Product Selector
   ショートコード [kimon_product_selector] 専用
================================================== */

.kps-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.kps-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  grid-template-rows: auto auto auto;
  column-gap: 28px;
  row-gap: 8px;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 22px 24px 22px 28px;
  background: linear-gradient(135deg, #fffdf8 0%, #ffffff 55%, #f1f7f5 100%);
  border: 1px solid #ddd7c8;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 54, 58, 0.07), 0 2px 5px rgba(31, 54, 58, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kps-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #b7954b 0%, #d2bd7b 48%, #315d58 100%);
}

.kps-card:hover {
  transform: translateY(-2px);
  border-color: #c8b98f;
  box-shadow: 0 13px 30px rgba(31, 54, 58, 0.11), 0 3px 8px rgba(31, 54, 58, 0.05);
}

.kps-card h3 {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: #20383d !important;
  background: transparent !important;
  border: 0 !important;
  font-size: clamp(18px, 1.7vw, 21px) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.025em;
}

.kps-card h3::before,
.kps-card h3::after {
  display: none !important;
}

.kps-card p.kps-desc {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  max-width: 680px;
  margin: 0 !important;
  color: #5f6a6d !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.01em;
}

.kps-period-row {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 !important;
}

.kps-period-btn {
  width: 100%;
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 8px !important;
  color: #455457 !important;
  background: #f4f4ef !important;
  border: 1px solid #d8dad4 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kps-period-btn:hover {
  color: #315d58 !important;
  background: #edf3f1 !important;
  border-color: #9bb7b1 !important;
  transform: translateY(-1px);
}

.kps-period-btn.is-active,
.kps-period-btn.is-active:hover {
  color: #fff !important;
  background: #315d58 !important;
  border-color: #315d58 !important;
  box-shadow: 0 3px 9px rgba(49, 93, 88, 0.2) !important;
}

.kps-price {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 4px !important;
  color: #9b7937 !important;
  font-family: Arial, sans-serif;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: right;
}

.kps-price small {
  color: #697476 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.kps-card form {
  grid-column: 2;
  grid-row: 3;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.kps-buy-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #315d58 0%, #244945 100%) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 13px rgba(36, 73, 69, 0.2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kps-buy-btn:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #3b6e67 0%, #29524d 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(36, 73, 69, 0.27) !important;
}

.kps-buy-btn:focus-visible,
.kps-period-btn:focus-visible {
  outline: 3px solid rgba(183, 149, 75, 0.35);
  outline-offset: 2px;
}

@media screen and (max-width: 700px) {
  .kps-wrap {
    gap: 14px;
    margin: 20px 0;
  }

  .kps-card {
    display: block;
    padding: 19px 16px 16px 20px;
    border-radius: 12px;
  }

  .kps-card h3 {
    margin-bottom: 6px !important;
    font-size: 18px !important;
  }

  .kps-card p.kps-desc {
    margin-bottom: 15px !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  .kps-period-row {
    margin-bottom: 10px !important;
  }

  .kps-price {
    margin-bottom: 10px !important;
    font-size: 20px !important;
  }
}
