:root {
  --wallet-bottom-gnb-height: calc(69px + env(safe-area-inset-bottom, 0px));
}

#content {
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.footer-content.is-gnb-no-scroll-inset {
  padding-bottom: calc(30px + var(--wallet-bottom-gnb-height)) !important;
}

#content .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bottom-gnb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: 100%;
  height: var(--wallet-bottom-gnb-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: #fff;
  z-index: 50;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.bottom-gnb-wrap.is-gnb-hidden {
  transform: translateX(-50%) translateY(100%);
  pointer-events: none;
}

.bottom-gnb-wrap .bottom-gnb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #151515;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.icon-gnb-home-off {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-home-off.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-search-off {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-search-off.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-graph-off {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-graph-off.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-event-off {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-event-off.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-home-on {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-home-on.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-search-on {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-search-on.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-graph-on {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-graph-on.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-gnb-event-on {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/wallet/icon/icon-gnb-event-on.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-rank-up {
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(../../images/wallet/icon/icon-rank-up.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-rank-down {
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(../../images/wallet/icon/icon-rank-down.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-rank-dash {
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(../../images/wallet/icon/icon-rank-dash.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.card-img-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 47px;
  margin-right: 12px;
}

.card-img-wrap img {
  width: auto;
  height: 100%;
}

.main-item {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.main-item .img-wrap {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-right: 12px;
}

.main-item .img-wrap img {
  width: 100%;
  height: inherit;
}

/* 프레스 배경 컨텐츠 */

.main-list.press-list {
  gap: 0;
  margin-top: 8px;
  padding: 0 10px;
}

.main-list.press-list .main-item {
  padding: 8px 6px;
  border-radius: 16px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.main-list.press-list .main-item .main-item-inner {
  display: flex;
  align-items: center;
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease;
}

.main-list.press-list .main-item.is-pressed .main-item-inner {
  transform: scale(0.96);
}

.main-list.press-list .main-item.is-pressed {
  background-color: #F6F6F9;
}

.bottom-btn {
  width: 100%;
  height: 56px;
  background: #396ff4;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
}

.reward-btn {
  flex: 0 0 auto;
  height: 28px;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 8px;
  color: #1439E1;
  font-weight: 500;
  font-size: 13px;
  line-height: 28px;
  letter-spacing: -0.02em;
  background-color: #EEF5FF;
}

.list-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.list-text-wrap p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.list-text-wrap .main-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #454545;
}

.list-text-wrap .sub-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  white-space: normal;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #454545;
}

.no-result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 230px;
  padding: 40px 0;
}

.no-result-wrap .warning-text {
  color: #151515;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.footer-content {
  padding: 30px 20px;
  background: #F6F6F9;
  max-width: 700px;
  margin: auto auto 0 auto;
}

.footer-content .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-content .logo-wrap .logo-img {
  width: 120px;
}

.footer-content .logo-wrap button {
  color: #454545;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #454545;
}

.footer-content .footer-note-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
}

.footer-content .footer-note-list li {
  position: relative;
  padding-left: 12px;
  color: #6C6C6C;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em; 
}

.footer-content .footer-note-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #D1D1D5;
  border-radius: 50%;
}

.modal-footer .btn.btn-confirm {
  border: none;
  color: #fff;
  background-color: #396FF4;
}

.empty-list.alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 28px 0;
}

.empty-list .empty-text {
  color: #151515;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
}

.empty-list.alert::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  background: url(../../images/common/icon-warning-gray.svg) 0 0 / cover no-repeat;
}
.modal-toast {
  width: max-content;
  padding: 0 20px;
  bottom: 100px;
}

@media (max-width: 320px) {
  .main-item .detail-btn {
    display: none;
  }
}