.discount-info {
  --block-gap: 24px;
  --blue: #1961e6;
  --li-gap: 6px;
  --border-color: #e4e4e4;

  width: 100%;
  /* margin-top: 56px; */
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
  background: white;
  box-shadow: 6px 6px 0px 0px var(--blue);
  border-radius: 16px;
  padding: 68px 20px 40px 20px;
}

.discount-info .info-flag {
  position: absolute;
  top: -8px;
  width: 257px;
  left: -16px;
}

.discount-info .info-new {
  position: absolute;
  width: 60px;
  top: -24px;
  right: -24px;
}

.discount-info .info-title {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.discount-info .info-title p {
  color: #888;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.discount-info .info-title p a {
  color: #d02025;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-underline-offset: 4px;
  margin-left: 4px;
}

.discount-info .info-title .prompt {
  display: none;
}

.discount-info .info-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: var(--block-gap);
  padding-bottom: var(--block-gap);
  border-bottom: 1px solid var(--border-color);
}

.discount-info .info-bottom .info-block:last-child {
  padding-bottom: 0px;
  border-bottom: none;
}

.discount-info .info-block h3 {
  color: #1b1b1b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.discount-info .info-block h3 a.tip.material-symbols-outlined {
  transform: translateY(-1px) !important;
}

.discount-info .info-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--li-gap);
}

.discount-info .info-block ul li {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #6b6b6b;
  padding-right: var(--li-gap);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  font-weight: 400;
}

.discount-info .info-block ul li .tip {
  transform: translateY(0px) !important;
}

.discount-info .info-block ul li:first-child,
.discount-info .info-block ul li:last-child {
  padding-right: 0px;
  border-right: none;
}

.discount-info .info-block ul li.discount {
  color: var(--blue);
}

.discount-info .info-block p {
  color: #6B6B6B;
  font-size: 14px;
  font-weight: 400;
  line-height: 200%;
  letter-spacing: 0.7px;
}

.discount-info.gray-background {
  box-shadow: 6px 6px 0px 0px #888;
}

.discount-info.red-background {
  box-shadow: 6px 6px 0px 0px #D42C49;
}

.discount-info .info-container {
  position: relative;
  padding-top: 52px;
}

.discount-info .grid-box {
  display: grid;
  grid-template-columns: 1fr;
}

.discount-info.gray-background .info-block.has-bottom,
.discount-info.red-background .info-block.has-bottom,
.discount-info .info-container:not(:last-child) {
  padding-bottom: var(--block-gap);
}

.discount-info .info-container .info-flag {
  left: -36px;
  top: 0px;
}

.discount-info.red-background .info-block,
.discount-info.gray-background .info-block {
  padding-bottom: 0px;
  border-bottom: none;
}

.discount-info.gray-background .info-block.no-top,
.discount-info.red-background .info-block.no-top {
  margin-top: 0px;
}

.discount-info .tag-5 {
  width: 263px;
}

.discount-info .tag-6 {
  width: 209px;
}

.discount-info .tag-7 {
  width: 209px;
}

.discount-info .tag-8 {
  width: 179px;
}

.discount-info .tag-9 {
  width: 208px;
}

.discount-info .tag-10 {
  width: 209px;
}

.discount-info .tag-11 {
  width: 209px;
}

.text-btn {
  display: flex;
  align-items: center;
  color: #D02025;
  text-decoration: none;
  height: 24px;
  margin: auto 0px;
  gap: 8px;
  white-space: nowrap;
}

.delete-arrow::after {
  display: none;
}

.richart-btn-box {
  gap: 16px;
}

.richart-btn-box a {
  margin-right: 0px;
}

.container-x,
.container-x > * {
  position: relative;
  z-index: 0;
}

.container-x .bg-img {
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
  overflow: hidden;
}

.container-x .bg-img .bg {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.container-x .bg-img .bg:last-of-type {
  flex: 1;
}

.container-x .bg-img .circle {
  position: absolute;
  height: auto;
  transform: translateX(-50%);
}

.container-x .bg-img .circle.full {
  width: 100%;
  top: 11.8%;
  left: 106%;
}

.container-x .bg-img .circle.half {
  width: 160%;
  left: 50%;
  bottom: -0.9%;
}

.richart-box.at-top {
  margin-bottom: 80px;
  margin-top: 0px;
}

.seven-discount {
  width: 100%;
  border-radius: 8px 8px 8px 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.seven-discount ~ .remark {
  margin-bottom: 24px !important;
}

.seven-discount thead {
  background: #333;
}

.seven-discount thead th {
  color: #fff !important;
}

.seven-discount thead th:not(:first-child) {
  border-left: 1px solid #DADADA;
}

.seven-discount tbody tr:nth-of-type(even) {
  background: #F5F5F5;
}

.seven-discount th,
.seven-discount td {
  text-align: center !important;
  padding: 8px;
}

.seven-discount td span {
  color: #D02025 !important;
  font-weight: 500 !important;
}

.seven-discount td:first-child {
  white-space: nowrap;
}

.seven-discount td:first-child span {
  color: black !important;
  display: none;
}

.seven-discount td:first-child br {
  display: block;
}

.seven-info,
.seven-info h3 {
  margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
  .discount-info {
    --li-gap: 8px;
  }

  .discount-info .info-title .prompt {
    display: flex;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.8px;
  }

  .discount-info .info-title .prompt .icon {
    width: 24px;
    height: 24px;
    margin-left: 12px;
  }

  .discount-info .info-block {
    gap: 16px;
  }

  .discount-info .info-block ul li {
    font-size: 16px;
  }

  .container-x .bg-img .circle.full {
    width: 80%;
    top: 24%;
    left: 50%;
  }

  .container-x .bg-img .circle.half {
    width: 120%;
    bottom: -1%;
  }

  .seven-discount td:first-child {
    text-align: left !important;
  }

  .seven-discount td:first-child span {
    display: inline;
  }

  .seven-discount td:first-child br {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .discount-info.gray-background {
    box-shadow: 8px 8px 0px 0px #888;
  }

  .discount-info.red-background {
    box-shadow: 8px 8px 0px 0px #D42C49;
  }
  
  .discount-info {
    padding: 24px;
    padding-top: 100px;
    max-width: 900px;
    box-shadow: 8px 8px 0px 0px var(--blue);
  }

  .discount-info .info-flag {
    width: 341px;
    left: -20px;
  }

  .discount-info .info-new {
    width: 85px;
  }

  .discount-info .info-title {
    display: flex;
    padding-left: 320px;
    margin-bottom: 48px;
  }
  
  .discount-info .info-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
  }

  .discount-info .info-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .discount-info .info-block {
    margin-top: 20px;
    padding-bottom: 0px;
    border-bottom: none;
  }

  .discount-info .info-container {
    padding-top: 88px;
  }

  .discount-info .info-container.move-to-top {
    position: absolute;
    width: calc((100% - 48px) / 2);
    left: 50%;
    top: -8px;
  }

  .discount-info .grid-box {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    row-gap: 0px;
  }

  .discount-info .grid-box.top-and-bottom {
    grid-template-rows: auto auto;
  }

  .discount-info .grid-box.top-and-bottom .info-block:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .discount-info .grid-box.top-and-bottom .info-block:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .discount-info .grid-box.top-and-bottom .info-block:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .discount-info .grid-box.need-bottom {
    row-gap: 66px;
  }

  .discount-info .grid-box.need-bottom .need-right {
    padding-right: 24px;
  }
  
  .discount-info .info-container.small-top {
    padding-top: 34px;
    grid-column: 1 / span 2;
  }
  
  .discount-info .info-container .info-flag {
    left: -44px;
  }

  .discount-info .info-container .info-title {
    padding-left: 260px;
    margin-bottom: 56px;
  }

  .richart-box .richart-info {
    flex: 3;
  }
  .richart-box .Richart-img {
    flex: 4;
  }

  .discount-info .info-block p {
    font-size: 16px;
  }
}

@media screen and (min-width: 1400px) {
  .discount-info {
    max-width: 1256px;
  }

  .discount-info .info-top,
  .discount-info .info-bottom {
    gap: 24px;
  }

  .container-x .bg-img .circle.half {
    width: 100%;
  }
}

.modal-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal {
  width: calc(100% - 40px);
  max-width: 680px;
  background: white;
  position: relative;
  border-radius: 20px;
  padding: 56px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}
.modal::before {
  content: "";
  width: 100%;
  height: 24px;
  background-color: #d70d18;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 20px 0 0;
}
.modal .modal-header-box {
  width: 100%;
}
.modal .modal-header-box h4 {
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  line-height: 200%;
  letter-spacing: 0.28px;
}
.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
}
.modal .modal-header h2 {
  color: #1b1b1b;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1.6px;
}
@media screen and (min-width: 768px) {
  .modal .modal-header h2 {
    font-size: 24px;
  }
}
.modal .modal-header .close {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  top: -52px;
  background: white;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
@media screen and (min-width: 768px) {
  .modal .modal-header .close {
    position: static;
    padding: 0px;
  }
}
.modal .modal-content {
  max-height: 45vh;
  overflow: auto;
}
.modal .modal-content ol {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.modal .modal-content ol.cjk-ideographic {
  list-style-type: cjk-ideographic;
  list-style-position: outside;
  padding-left: 36px;
}
.modal .modal-content ol.decimal {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 18px;
}
.modal .modal-content ol.upper-alpha {
  list-style-type: upper-alpha;
  padding-left: 20px;
}
.modal .modal-content ol.none {
  list-style-type: none;
  padding-left: 0px;
}
.modal .modal-content ol.none ol {
  margin-left: 26px;
}
.modal .modal-content ul.disc {
  list-style-type: disc;
  padding-left: 24px;
}
.modal .modal-content h3 {
  color: #d02025;
  font-size: 18px;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 1.44px;
}
.modal .modal-content a,
.modal .modal-content td,
.modal .modal-content th,
.modal .modal-content p,
.modal .modal-content ul li,
.modal .modal-content ol li {
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.7px;
  text-align: left;
  margin-bottom: 0px;
}
.modal .modal-content a .highlight,
.modal .modal-content td .highlight,
.modal .modal-content th .highlight,
.modal .modal-content p .highlight,
.modal .modal-content ul li .highlight,
.modal .modal-content ol li .highlight {
  color: #d02025;
}
.modal .modal-content a.highlight,
.modal .modal-content td.highlight,
.modal .modal-content th.highlight,
.modal .modal-content p.highlight,
.modal .modal-content ul li.highlight,
.modal .modal-content ol li.highlight {
  color: #d02025;
}
.modal .modal-content a.highlight::marker,
.modal .modal-content td.highlight::marker,
.modal .modal-content th.highlight::marker,
.modal .modal-content p.highlight::marker,
.modal .modal-content ul li.highlight::marker,
.modal .modal-content ol li.highlight::marker {
  color: #d02025;
}
.modal .modal-content a.remark,
.modal .modal-content td.remark,
.modal .modal-content th.remark,
.modal .modal-content p.remark,
.modal .modal-content ul li.remark,
.modal .modal-content ol li.remark {
  color: #6b6b6b;
}
.modal .modal-content .friend-table {
  width: 100%;
  border-spacing: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.modal .modal-content .friend-table tr {
  height: 100%;
}
.modal .modal-content .friend-table tr:nth-of-type(1) {
  background: #1b1b1b;
}
.modal .modal-content .friend-table tr:nth-of-type(3) {
  background: #f5f5f5;
}
.modal .modal-content .friend-table tr th {
  color: white;
  padding: 6px 24px;
  text-align: center;
}
.modal .modal-content .friend-table tr th:first-of-type {
  border-right: 1px solid #dadada;
}
.modal .modal-content .friend-table tr td {
  padding: 16px;
  height: 100%;
}
.modal .modal-content .friend-table tr td:last-of-type {
  text-align: center;
}
.modal .modal-content .friend-table tr td span {
  color: #d02025;
  font-weight: 500;
}
.modal .modal-content .friend-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}
.modal .modal-content div.ol {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.modal .modal-content div.ol .num {
  flex: 0 0 25px;
}
.modal .modal-content div.ol .text {
  flex: 1;
}
.red-btn:hover {
  background: #ae171c !important;
}
.close > *,
.open-modal > * {
  pointer-events: none;
}