﻿.price-app,
.sticky-actions {
  --accent: #2f8f86;
  --accent-dark: #256f68;
  --accent-line: #b9d9d5;
  --accent-soft: #eef8f6;
  --text: #222;
  --muted: #666;
  --line: #e2e2e2;
  --soft: #f7f7f7;
  --warning: #f5fbfa;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(20, 40, 30, .08);
}

.price-app,
.price-app * {
  box-sizing: border-box;
}

.price-app {
  color: var(--text);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.65;
}

.price-app img {
  display: block;
  max-width: 100%;
}

.price-app button,
.price-app input,
.price-app a,
.sticky-actions a {
  font: inherit;
}

.price-app {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 88px;
}

.price-hero {
  display: grid;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.price-hero__eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.price-hero h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

.price-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.quick-search {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-search h2,
.short-selector h2,
.result-head h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.quick-search__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-search label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quick-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  font-size: 16px;
}

.quick-search button,
.product-card__cta,
.price-table-toggle,
.sticky-actions a {
  min-height: 46px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.quick-search button,
.product-card__cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.quick-search button {
  width: 100%;
  margin-top: 10px;
}

.quick-search__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.short-selector {
  padding: 18px 0 8px;
}

.short-selector__buttons {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.short-button {
  flex: 0 0 auto;
  min-width: 94px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.short-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
}

.selected-summary span {
  color: var(--text);
}

.selected-summary button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.result-head {
  display: grid;
  gap: 8px;
  padding: 2px 0 12px;
}

.result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-card--large-size {
  border-color: var(--accent-line);
  background: #fff;
}

.product-card__image {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1f3f3, #fff);
  object-fit: cover;
}

.product-card__body {
  min-width: 0;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.product-card__desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.price-box {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--soft);
}

.price-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.price-box strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.chip {
  padding: 3px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
}

.price-table-toggle {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.price-table-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: #fff;
  color: var(--text);
}

.price-table-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price-table-panel[hidden] {
  display: none;
}

.sticky-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.sticky-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 14px;
}

.sticky-actions a:first-child {
  border-color: var(--line);
  background: #fff;
  color: var(--accent-dark);
}

@media (min-width: 760px) {
  .price-app {
    padding-bottom: 40px;
  }

  .price-hero {
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
  }

  .trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-search__fields {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .quick-search button {
    min-width: 180px;
    margin-top: 0;
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    gap: 18px;
    padding: 14px;
  }

  .product-card__image {
    width: 180px;
    height: 136px;
  }

  .product-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-rows: auto auto auto auto;
    column-gap: 18px;
    align-items: center;
  }

  .product-card h3,
  .product-card__desc,
  .price-row,
  .chips {
    grid-column: 1;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .price-row {
    max-width: 420px;
  }

  .product-card__cta {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    width: 100%;
    min-height: 52px;
  }

  .sticky-actions {
    display: none;
  }
}

@media (max-width: 380px) {
  .product-card {
    grid-template-columns: 96px 1fr;
  }

  .product-card__image {
    width: 96px;
    height: 104px;
  }
}

.product-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.notice-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.notice-card__body {
  display: grid;
  gap: 10px;
}

.notice-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 760px) {
  .notice-card {
    padding: 14px;
  }
}

.list_point .price-design-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}
