.trade-swiper {
  width: calc(100% - 18px);
  padding: 10px 6px;
}
.trade-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: auto;
  padding: 20px 20px 30px;
  border-radius: 10px;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.trade-swiper .swiper-slide:hover {
  background-color: var(--e-global-color-secondary);
  box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
}
.trade-swiper img {
  width: 140px;
  height: 140px;
  filter: hue-rotate(-45deg);
}
.trade-swiper h3 {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--e-global-color-77a59486);
  text-align: center;
  margin: 0;
  transition: all 0.2s ease-out;
}
.trade-swiper .swiper-slide:hover h3 {
  color: var(--e-global-color-7f29d40);
}

.trade-swiper .swiper-nav {
  background-color: transparent;
  border: none;
  border-radius: 0;
}
.trade-swiper .swiper-button-prev {
  left: 15px;
}
.trade-swiper .swiper-button-next {
  right: 15px;
}
.trade-swiper .swiper-nav i {
  font-size: 30px;
  line-height: 30px;
}

@media (min-width: 768px) {
  .trade-swiper {
    width: calc(100% - 38px);
  }
  .trade-swiper .swiper-nav {
    width: 30px;
    height: 30px;
  }
  .trade-swiper .swiper-button-prev {
    left: -5px;
  }
  .trade-swiper .swiper-button-next {
    right: -5px;
  }
}

@media (min-width: 1200px) {
  .trade-swiper .swiper-button-prev {
    left: -20px;
  }
  .trade-swiper .swiper-button-next {
    right: -20px;
  }
}

/* modal */
.trade-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00000040;
  margin-bottom: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 9999;
}
.trade-modal.active {
  opacity: 1;
  visibility: visible;
}
.trade-modal-container {
  position: relative;
  width: calc(100% - 60px);
  max-width: 1200px;
  max-height: calc(100vh - 60px);
  background-color: #fff;
  border-radius: 10px;
  margin: 0 auto;
  overflow: auto;
}
.trade-modal-banner {
  position: sticky;
  top: 0;
  height: 160px;
  padding: 24px;
  align-content: flex-end;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 100vw 100vh 0 rgb(0 63 83 / 70%);
}
.trade-modal-banner h2 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 26px;
  color: #fff;
}
.trade-modal-banner h2:has(+ h4) {
  margin-bottom: 15px;
}
.trade-modal-banner h4 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.trade-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background-color: transparent;
  padding: 0;
  font-family: Arial, Baskerville, monospace;
  font-size: 28px;
  line-height: 44px;
  color: #fff;
  opacity: .65;
}
.trade-modal-close:hover {
  background-color: transparent;
  opacity: 1;
}
.trade-modal-spacer {
  position: sticky;
  height: 24px;
  background: #fff;
}
.trade-modal-spacer.top {
  top: 160px;
  background: linear-gradient(180deg, #fff 0%, transparent 100%);
}
.trade-modal-spacer.bottom {
  bottom: 0;
  background: linear-gradient(0deg, #fff 0%, transparent 100%);
}
.trade-modal-spacer.bottom:has(+ .trade-modal-button-wrap) {
  bottom: 62px;
}
.trade-modal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  color: var(--e-global-color-text);
}
.trade-modal-content p, .trade-modal-content ul {
  margin-bottom: 0;
}
.trade-modal-content ul li:not(:last-child) {
  margin-bottom: 7px;
}
.trade-modal-content h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--e-global-color-74fecc4d);
}
.trade-modal-button-wrap {
  position: sticky;
  bottom: 0;
  background-color: #fff;
  padding: 0 24px 24px;
  text-align: right;
}
.trade-modal-button-wrap a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--e-global-color-fae5bbd);
  background-color: var(--e-global-color-primary);
  border-radius: 50px;
  padding: 12px 22px;
}
.trade-modal-button-wrap a:hover {
  color: var(--e-global-color-fae5bbd);
}

@media (min-width: 768px) {
  .trade-modal-container {
    width: 75%;
  }
  .trade-modal-banner {
    height: 260px;
  }
  .trade-modal-banner h2 {
    font-size: 32px;
    line-height: 34px;
  }
  .trade-modal-spacer.top {
    top: 260px;
  }
  .trade-modal-content {
    flex-direction: row;
    font-size: 14px;
    line-height: 20px;
  }
  .trade-modal-content > div {
    flex: 0 0 calc(50% - 12px);
  }
  .trade-modal-content ul li:not(:last-child) {
    margin-bottom: 12px;
  }
  .trade-modal-content h3 {
    font-size: 24px;
    line-height: 28px;
  }
}

@media (min-width: 1025px) {
  .trade-modal-container {
    width: 50%;
  }
  .trade-modal-banner {
    padding: 30px;
  }
  .trade-modal-banner h2 {
    font-size: 36px;
    line-height: 38px;
  }
  .trade-modal-spacer {
    height: 30px;
  }
  .trade-modal-spacer.bottom:has(+ .trade-modal-button-wrap) {
    bottom: 68px;
  }
  .trade-modal-content {
    gap: 30px;
    padding: 0 30px;
    font-size: 16px;
    line-height: 24px;
  }
  .trade-modal-content > div {
    flex: 0 0 calc(50% - 15px);
  }
  .trade-modal-content h3 {
    font-size: 26px;
    line-height: 30px;
  }
  .trade-modal-button-wrap {
    padding: 0 30px 30px;
  }
}
