#modal-discount.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}

#modal-discount .modal-box {
  background: #fff;
  width: 550px;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  scrollbar-width: thin;
  padding-bottom: 20px;
}

#modal-discount .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modal-discount .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#modal-discount .modal-header h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

#modal-discount .modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.discount-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discount-item {
  display: flex;
  padding: 0;
  background: #fafafa;
  transition: 0.2s ease;
  border: none;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  cursor: auto;
  font-weight: 500;
  align-items: stretch;
}

span.discount-condition {
  color: #9bbe4e;
  font-size: 14px;
}

.discount-image {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 1/1;
}

.discount-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 12px 12px 12px 24px;
}

.discount-info:before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 16px;
  border-width: 1px;
  border-style: dashed;
  border-color: transparent #e1e1e1 #e1e1e1 transparent;
  position: absolute;
  top: -10px;
  left: -9px;
  transform: rotate(45deg);
}

.discount-info:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 16px;
  border-width: 1px;
  border-style: dashed;
  border-color: transparent #e1e1e1 #e1e1e1 transparent;
  position: absolute;
  left: -9px;
  bottom: -10px;
  transform: rotate(-135deg);
}

.discount-content {
  color: #414141;
  font-size: 14px;
}

.discount-info h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 6px 0;
}


.discount-info p {
  margin: 2px 0;
  color: #555;
  font-size: 14px;
}

.discount-condition {
  color: #82a93c;
  cursor: pointer;
}

.discount-info button {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #9bbe4e;
  color: #fff;
  padding: 8px 16px;
  font-weight: 400;
}

.discount-info button:hover {
  background-color: #82a93c;
}

.discount-item.active {
  background: #e6f7ff;
  border-color: #1ba8ff;
}
