/* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,700&display=swap');

.price-table-section section:nth-child(1),
.price-table-section section:nth-child(3) {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.price-table-section h1 {
  font-size: 2.5rem;
}

.price-table-section .container {
  max-width: 850px;
  padding: 0 10px;
  margin: 0 auto;
}

/* TABLE STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.price-table-section .table-wrapper {
  background: var(--white);
  overflow-x: auto;
}

.price-table-section table {
  position: relative;
  text-align: center;
  width: 100%;
}

.price-table-section table thead {
  background: var(--white);
  transition: box-shadow 0.2s;
}

.price-table-section table tr {
  /* display: flex; */
}

.price-table-section table th {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.price-table-section table th,
.price-table-section table td {
  min-width: 150px;
}

.price-table-section table th:nth-child(1) {
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  color: #1484ec;
  font-family: SUIT;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.price-table-section table th:nth-child(1) .svg-wrapper {
  margin-top: 10px;
}

.price-table-section table th:nth-child(1) svg {
  width: 22px;
  height: 22px;
}

.price-table-section table th .heading {
  padding: 1rem;
  color: var(--white);
}

.price-table-section table th:nth-child(2) .heading {
  background: var(--starter);
}

.price-table-section table th:nth-child(3) .heading {
  background: var(--essential);
}

.price-table-section table th:nth-child(4) .heading {
  background: var(--professional);
}

.price-table-section table th .info {
  position: relative;
  padding: 1.5rem 0;
  border-left: 1px solid var(--lightgray);
}

.price-table-section table th .popular {
  position: absolute;
  top: 10px;
  right: 0;
  font-size: 11px;
  background: var(--popular);
  padding: 4px 8px;
  border-radius: 2px;
}

.price-table-section table th .amount {
  font-size: 2rem;
}

.price-table-section table th .amount span {
  display: block;
  transform: translateY(-8px);
}

.price-table-section table th:nth-child(2) .amount {
  color: var(--starter);
}

.price-table-section table th:nth-child(3) .amount {
  color: var(--essential);
}

.price-table-section table th:nth-child(4) .amount {
  color: var(--professional);
}

.price-table-section table th .billing-msg,
.price-table-section table th .amount span {
  font-weight: normal;
  font-size: 0.8rem;
}

.price-table-section table th button {
  display: inline-block;
  border-radius: 20px;
  padding: 8px 20px;
  margin-top: 10px;
  transition: all 0.2s;
}

.price-table-section table th:nth-child(2) button {
  color: var(--starter);
  border: 1px solid var(--starter);
}

.price-table-section table th:nth-child(2) button:hover {
  background: var(--starter);
}

.price-table-section table th:nth-child(3) button {
  color: var(--essential);
  border: 1px solid var(--essential);
}

.price-table-section table th:nth-child(3) button:hover {
  background: var(--essential);
}

.price-table-section table th:nth-child(4) button {
  color: var(--professional);
  border: 1px solid var(--professional);
}

.price-table-section table th:nth-child(4) button:hover {
  background: var(--professional);
}

.price-table-section table th button:hover {
  color: var(--white);
}

.price-table-section table td {
  padding: 10px 0.9rem;
}

.price-table-section table td:not(:first-child) {
  border-left: 1px solid var(--lightgray);
}

.price-table-section table td:first-child {
  font-size: 16px;
  text-align: left;
  padding: 10px;
}

.price-table-section table svg {
  width: 18px;
  height: 18px;
}

.price-table-section table svg.not-included {
  fill: var(--gray);
}

.price-table-section table svg.starter {
  fill: var(--starter);
}

.price-table-section table svg.essential {
  fill: var(--essential);
}

.price-table-section table svg.professional {
  fill: var(--professional);
}

/* BODY CLASSES & MQ
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.price-table-section .sticky-table thead tr,
.price-table-section .sticky2-table thead tr {
  z-index: 1;
}

@media screen and (min-width: 780px) {
  .price-table-section section:nth-child(1),
  .price-table-section section:nth-child(3) {
    padding: 0;
  }

  .price-table-section section:nth-child(1) {
    height: 70vh;
  }

  .price-table-section section:nth-child(3) {
    height: 100vh;
  }

  .price-table-section table th:nth-child(1) {
    padding: 0 20px 0 10px;
  }

  .price-table-section table td {
    padding: 10px 0.9rem;
  }

  .price-table-section .sticky-table table thead {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
  }

  .price-table-section .sticky-table table thead {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.12);
  }

  .price-table-section .sticky2-table table thead {
    position: absolute;
    left: 0;
  }
}

/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.price-table-section .page-footer {
  font-size: 0.85rem;
  padding: 10px;
  text-align: right;
  color: var(--black);
}

.price-table-section .page-footer span {
  color: #e31b23;
}

#price_stickyContentTable thead {
  /* 기본 상태에서의 스타일 */
  position: relative;
  /* 이전 position: fixed를 제거 */
  background-color: #fff;
  /* 기본 높이 (위에서 headerHeight로 변경) */
  height: 71px;
  transition: height 0.2s ease-out;
  /* 높이 전환 효과 추가 */
}

#price_stickyContentTable thead.fixed-top {
  /* fixed-top 클래스가 추가된 상태에서의 스타일 */
  position: fixed;
  top: 120px;
  /* left: calc(50% - 605px); */
  /* 높이가 변경되면서 자연스럽게 움직임 */
  height: 71px;
  /* 적절한 높이 설정 (원하는 높이로 변경 가능) */
  box-shadow: 0 0.25rem 0.25rem rgba(30, 34, 40, 0.04) !important;
}

#price_stickyContentTable thead.fixed-top th:nth-child(1) {
  /* display: flex; */
  width: 40%;
}
#price_stickyContentTable thead.fixed-top th:nth-child(2) {
  /* display: flex; */
  width: 15%;
}
#price_stickyContentTable thead.fixed-top th:nth-child(3) {
  /* display: flex; */
  width: 15%;
}
#price_stickyContentTable thead.fixed-top th:nth-child(4) {
  /* display: flex; */
  width: 15%;
}
#price_stickyContentTable thead.fixed-top th:nth-child(5) {
  /* display: flex; */
  width: 15%;
}

.price_sticky_section {
  background: #def0fe;
}

.price_sticky_section.gradient-active {
  background: linear-gradient(180deg, #def0fe 0%, rgba(245, 251, 255, 0) 100%);
}

@media (max-width: 991px) {
  #price_sticky_section {
    display: none;
  }
}

@media (min-width: 992px) {
  #price_stickyContentTable thead.fixed-top {
    position: fixed;
    top: 120px;
    left: calc(50% - 390px);
    height: 71px;
    box-shadow: 0 0.25rem 0.25rem rgba(30, 34, 40, 0.04) !important;
  }
}

@media (min-width: 1200px) {
  #price_stickyContentTable thead.fixed-top {
    position: fixed;
    top: 120px;
    left: calc(50% - 497px);
    height: 71px;
    box-shadow: 0 0.25rem 0.25rem rgba(30, 34, 40, 0.04) !important;
  }
}

@media (min-width: 1400px) {
  #price_stickyContentTable thead.fixed-top {
    position: fixed;
    top: 120px;
    /* left: calc(50% - 605px); */
    height: 71px;
    box-shadow: 0 0.25rem 0.25rem rgba(30, 34, 40, 0.04) !important;
  }
}

#price_stickyContentTable thead.fixed-top tr {
  display: flex;
}

span.price-table-soon {
  color: #1484ec;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

span.price-table-new {
  color: #f1416c;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.card-title-wrap {
  display: flex;
  align-items: center;
}
