/* 팝업 오버레이 스타일 */
.popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black-99);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup__frame {
  background: var(--white);
  padding: 20px;
  border: 4px solid var(--black);
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  display: flex;
  flex-direction: column;
}

.popup__title {
  text-align: center;
  margin: 8px;
  font-size: 1.5rem;
}

.popup__subtitle {
  display: flex;
  flex-direction: row;
  align-self: center;
  align-items: center;
  height: auto;
  text-align: center;
  margin: 4px;
}

.popup__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  padding: 8px 0px;
  overflow: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
  width: 100%;
}

.popup__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px;
  margin-bottom: 24px;
}
.popup__frame-button {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.popup__button {
  display: grid;
  align-content: center;
  align-items: center;
  border: 1px solid;
  border-color: var(--gray-light);
  border-radius: 40px;
  justify-content: center;
  position: relative;
  box-shadow: var(--gray-shadow) 2px 6px 3px;
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  cursor: pointer;
}

.popup__button.is-disabled {
  opacity: 0.6;
  filter: grayscale(20%);
  cursor: not-allowed;
}

.popup__button[disabled] {
  opacity: 0.6;
  filter: grayscale(20%);
  cursor: not-allowed;
}

.popup__button--black {
  background-color: var(--black);
}
.popup__button--white {
  background-color: var(--white);
  color: var(--black);
}

.popup__button--gray {
  color: var(--gray);
  border: 1px solid var(--gray);
}

.bulk-result-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.bulk-result__title {
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 10px;
}

.bulk-result__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* ✅ 한 줄에 하나씩 */
  gap: 8px;
}

.bulk-result__item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.bulk-result--visible {
  border-color: #a7d0cd;
  background: #ecfdf5;
}

.bulk-result--error {
  border-color: #f87171;
  background: #fef2f2;
}

.bulk-result__section {
  margin-top: 12px;
}
.bulk-result__section-title {
  margin: 6px 0;
  color: #334155;
}

.bulk-result__codes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-result__code-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 4px;
  justify-content: space-between;
}

.bulk-result__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  width: 60%;
  white-space: nowrap;
  overflow: hidden;
}

.bulk-result__meta {
  color: #64748b;
  white-space: pre-wrap;
}


/* Payment method selection styles */
.popup__payment-method {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.payment-method__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--black);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.payment-method__option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.payment-method__option input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.payment-method__option label {
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.payment-method__option input[type="radio"]:checked + label {
  font-weight: 600;
}

.payment-method__option:has(input[type="radio"]:checked) {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: var(--green);
}

/* Property selection styles */
.popup__property-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.property-selection__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--black);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.property-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.property-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.property-option label {
  cursor: pointer;
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-option label span:first-child {
  font-weight: 500;
}

.property-price {
  font-weight: 600;
  color: var(--green);
  margin-left: auto;
}

.property-option input[type="radio"]:checked + label {
  font-weight: 600;
}

.property-option:has(input[type="radio"]:checked) {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: var(--green);
}

.hidden {
  display: none;
  pointer-events: none;
}
