/* stylelint-disable kikan/bem -- This plain CSS file uses BEM elements at the root level. */

.sell-area {
  width: 100%;
  position: relative;
  margin: 0 0 56px;
  padding: 56px max(5%, calc((100% - 1020px) / 2));
  background: #fff;
  z-index: 1;
  color: #333;
}

.sell-area__title {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0054a7;
  text-align: center;
}

.sell-area__status {
  margin: 0;
  padding: 32px 16px;
  border: 1px solid #d4d9df;
  border-radius: 6px;
  color: #6f7b87;
  text-align: center;
}

.sell-area__status--error {
  color: #c62828;
}

.sell-area__table {
  margin-bottom: 40px;
  border: 1px solid #d4d9df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.sell-area__table-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 50px;
  border-bottom: 1px solid #dfe3e7;
}

.sell-area__table-row:last-child {
  border-bottom: 0;
}

.sell-area__table-label,
.sell-area__prefectures {
  display: flex;
  align-items: center;
}

.sell-area__table-label {
  justify-content: center;
  padding: 12px 16px;
  background: #f4f4f4;
  font-weight: 700;
}

.sell-area__prefectures {
  flex-wrap: wrap;
  padding: 10px 20px;
  gap: 6px 18px;
}

.sell-area__link,
.sell-area__location {
  color: #075eb9;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .sell-area__link:hover,
  .sell-area__location:hover {
    text-decoration: underline;
  }
}

.sell-area__accordions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sell-area__accordion {
  border: 1px solid #d4d9df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.sell-area__summary {
  display: grid;
  align-items: center;
  min-height: 58px;
  padding: 14px 20px;
  background: #f7f8f9;
  font-size: 1rem;
  font-weight: 700;
  color: #0054a7;
  cursor: pointer;
  grid-template-columns: auto 1fr auto;
  list-style: none;
  gap: 10px;
}

.sell-area__summary::-webkit-details-marker {
  display: none;
}

.sell-area__summary:focus-visible {
  outline: 3px solid rgb(0 84 167 / 35%);
  outline-offset: -3px;
}

.sell-area__accordion[open] .sell-area__summary {
  background: #edf4ff;
}

.sell-area__pin {
  font-size: 21px;
  color: #6f7b87;
}

.sell-area__accordion[open] .sell-area__pin {
  color: #075eb9;
}

.sell-area__chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #718092;
  border-bottom: 1.5px solid #718092;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sell-area__accordion[open] .sell-area__chevron {
  transform: rotate(225deg);
}

.sell-area__locations {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  border-top: 1px solid #dfe3e7;
  line-height: 1.7;
  gap: 2px 0;
}

.sell-area__location {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.sell-area__location:not(:last-child)::after {
  display: inline-block;
  margin: 0 8px;
  color: #a4adb7;
  content: '|';
}

@media (max-width: 768px) {
  .sell-area {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .sell-area__title {
    margin-bottom: 18px;
    font-size: 1.3rem;
  }

  .sell-area__table {
    margin-bottom: 28px;
  }

  .sell-area__table-row {
    grid-template-columns: 72px 1fr;
    min-height: 44px;
  }

  .sell-area__table-label {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .sell-area__prefectures {
    padding: 9px 12px;
    font-size: 0.78rem;
    gap: 4px 12px;
  }

  .sell-area__accordions {
    gap: 14px;
  }

  .sell-area__summary {
    min-height: 50px;
    padding: 12px;
    font-size: 0.85rem;
    gap: 7px;
  }

  .sell-area__pin {
    font-size: 18px;
  }

  .sell-area__locations {
    padding: 14px 12px;
  }

  .sell-area__location {
    font-size: 0.75rem;
  }

  .sell-area__location:not(:last-child)::after {
    margin: 0 5px;
  }
}
