:root {
  --black: rgba(0, 0, 0, 1);
  --yellow: rgba(228, 140, 29, 1);
  --font-14px: 1.4rem;
  --font-16px: 1.6rem;
  --font-17px: 1.7rem;
  --font-18px: 1.8rem;
  --font-18_5px: 1.85rem;
  --font-20px: 2rem;
  --font-24px: 2.4rem;
  --font-32px: 3.2rem;
  --font-36px: 3.6rem;
  --spacing: 0.25rem;
  --color-table-dark: #ebebeb;
  --color-table-light: #f6f6f6;
}

.petster-card * {
  font-family: RSU;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

.petster-card body {
  overflow-x: hidden;
}

.petster-card table,
.petster-card tr,
.petster-card td {
  border: solid;
  border-color: white;
}

.petster-card table {
  margin-top: 1rem;
  margin-bottom: 1rem;
  height: auto !important;
  /* display: block; */
  /* overflow: auto; */
}

/* .petster-card table tbody {
  display: table;
  min-width: 60rem;
} */

.petster-card td > p {
  margin: 0;
}

.petster-card td {
  padding: 0.5rem;
}

.petster-card tr:first-child td {
  padding: 1rem;
}

.petster-card tbody tr:nth-of-type(2n) {
  background-color: var(--color-table-light);
}

.petster-card tbody tr:nth-of-type(2n + 1) {
  background-color: var(--color-table-dark);
}

.petster-card thead,
.petster-card tbody tr:first-child {
  background-color: rgba(110, 99, 172, 1);
  color: rgba(255, 255, 255, 1);
}

.petster-card ul > li {
  margin: 1.5px 0;
}

.petster-card .new-line {
  display: block;
}

/* Animal Image */
.animal {
  position: relative;
}

.animal.snake::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -33px;
  width: 140px;
  aspect-ratio: 1 / 1;
  background: url(/aeon/aeon-petster-card/image/snake.png) no-repeat center;
  background-size: contain;
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 10;
}

.animal.cat::before {
  content: "";
  position: absolute;
  top: -38px;
  right: 30px;
  width: 105px;
  aspect-ratio: 1 / 1;
  background: url(/aeon/aeon-petster-card/image/cat.png) no-repeat center;
  background-size: contain;
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 10;
}

.animal.dog::before {
  content: "";
  position: absolute;
  bottom: 38px;
  left: -60px;
  width: 120px;
  aspect-ratio: 1 / 1;
  background: url(/aeon/aeon-petster-card/image/dog.png) no-repeat center;
  background-size: contain;
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 10;
}

.animal.bird::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -44px;
  width: 110px;
  aspect-ratio: 1 / 1;
  background: url(/aeon/aeon-petster-card/image/mb-bird.png) no-repeat center;
  background-size: contain;
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 10;
}
/* End Animal Image */

/* Slide */
.slide-wrap {
  padding-top: 0 !important;
}

.text-on-slide .text-header a {
  font-size: var(--font-20px) !important;
  font-weight: 400 !important;
}

.text-on-slide a.view-all {
  display: none;
}
/* End slide */

.content {
  overflow: hidden;
}

.content .section {
  margin-top: 2rem;
  padding: 0 0.2rem;
}

.space-section {
  margin-top: 5rem !important;
}

.section h1.title {
  position: relative;
  font-size: var(--font-32px);
  font-weight: 500;
  color: rgba(116, 97, 207, 1);
  /* text-shadow: 0px 2px 2px #00000054; */
  margin-top: 1.5rem;
  text-align: center;
}

.section h2.title {
  font-size: var(--font-32px);
  font-weight: 500;
  color: rgba(33, 37, 41, 0.9);
  /* text-shadow: 0px 2px 2px #00000054; */
  margin-top: 1.5rem;
  text-align: center;
}

.section h2.title span {
  font-weight: 500;
}

.section h3.caption {
  font-size: var(--font-16px);
  font-weight: 400;
  /* text-shadow: unset; */
}

.section .caption {
  font-size: var(--font-18px);
  /* text-shadow: 0px 2px 2px #00000054; */
}

.items-box {
  padding: 10px 16px 8px;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
}

.items-box .item-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.items-box .item-title h3 {
  font-size: var(--font-18_5px);
  font-weight: 500;
  margin: 0;
  align-content: center;
}

.items-box .item-title .chevron-icon {
  align-content: center;
  transition: transform 0.3s ease;
  transform-origin: 50%;
}

.items-box .item-detail {
  display: none;
  border-top: 2px solid rgba(110, 99, 172, 1);
  padding-top: 2rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
}

.items-box .item-detail > * {
  font-size: var(--font-16px);
  font-weight: 400;
}

.items-box .item-detail table {
  justify-self: center;
  display: table;
  overflow: hidden;
}

.items-box .item-detail table tbody {
  display: table-row-group;
  min-width: unset;
}

.items-box .item-detail table,
.items-box .item-detail tr,
.items-box .item-detail td {
  border: 1px solid;
  border-color: var(--black);
}

.items-box.active .item-title {
  padding-bottom: 1rem;
}

.items-box.active .item-title .chevron-icon {
  transform: rotate(180deg);
}

.items-box.active .item-detail {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.items-box.closing .item-detail {
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease-in, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animate */

/* Banner */
.banner-section {
  /* display: flex;
  padding: 43px 0;
  justify-content: center;
  background: conic-gradient(
    from -70.33deg at 50% 50%,
    #d1d3d4 -41.04deg,
    #fae3de 37.08deg,
    #dbd8eb 128.08deg,
    #ac9cca 218.08deg,
    #d1d3d4 318.96deg,
    #fae3de 397.08deg
  ); */
  padding: 0 !important;
  text-align: center;
}

.banner-section img {
  /* width: 30%; */
  width: 100%;
}

.banner-section img#banner-pc {
  display: none;
}

.banner-section img#banner-mb {
  display: block;
}

/* Menu */
.menu-section {
  display: flex;
  justify-content: center;
  padding: 1rem 2rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.menu-section .menu-items {
  width: 100%;
  display: flex;
  justify-content: center;
}

.menu-section .menu-items a {
  color: var(--black);
  font-size: var(--font-16px);
  white-space: nowrap;
  padding: 0.5rem;
}

.menu-section .menu-items a.active,
.menu-section .menu-items a:hover {
  color: var(--yellow);
}

.menu-section .apply-btn button {
  display: none;
  cursor: pointer;
  background: conic-gradient(
    from 43.42deg at 50% 50%,
    rgba(228, 140, 29, 0.85) 0deg,
    #ffb94b 181.73deg,
    rgba(228, 140, 29, 0.85) 360deg
  );
  color: rgba(255, 255, 255, 1);
  border: 0px;
  border-radius: 5px;
  width: 95.45px;
  height: 33px;
  font-size: var(--font-20px);
  font-weight: 500;
}

.mb-apply-btn {
  position: fixed;
  z-index: 50;
  bottom: calc(var(--spacing) * 5);
  right: calc(var(--spacing) * 5);
}

.mb-apply-btn button {
  cursor: pointer;
  background: conic-gradient(
    from 43.42deg at 50% 50%,
    rgba(228, 140, 29, 0.85) 0deg,
    #fba824 181.73deg,
    rgba(228, 140, 29, 0.85) 360deg
  );
  color: rgba(255, 255, 255, 1);
  border: 0px;
  border-radius: calc(infinity * 1px);
  width: calc(var(--spacing) * 20);
  height: calc(var(--spacing) * 20);
}

#return-to-top {
  display: none !important;
}

/* Card */
.card-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-section img {
  width: 90%;
}

.card-section .title::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  background: #7461cf;
}

.card-section .title::after {
  content: "";
  display: block;
  height: 4px;
  width: 20%;
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  background: #ffa822;
}

/* Benefit */
.benefit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-section .caption {
  color: rgba(78, 77, 77, 1);
}

/* Benefit Box */
.grid-section {
  display: flex;
  justify-content: center;
  padding: 0 3rem !important;
}

.benefit-box-section {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
}

.benefit-box-section .benefit-box {
  cursor: pointer;
  padding: 2rem;
  margin: 4rem 1rem;
  text-align: center;
  border: 1px solid rgba(237, 237, 237, 1);
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  height: fit-content;
  word-break: break-word;
}

.benefit-box-section .benefit-box:hover {
  border-color: rgba(116, 97, 207, 1);
}

.animal:last-child .benefit-box {
  margin-bottom: 0;
}

.card-section .title {
  margin-top: 2.5rem !important;
}

.benefit-box-section .benefit-box img {
  width: 50%;
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.4));
}

.termandcon-bg,
.faq-bg {
  background: linear-gradient(180deg, #ffffff 0%, #fae3de 44.71%, #ac9cca 100%);
  padding-bottom: 3rem !important;
}

.termandcon-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 0 !important;
}

.section.termandcon-section .caption {
  font-size: var(--font-16px);
}

/* Manual */
.manual-section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.manual-section .btn-manual {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: white;
  border: none;
  border-radius: 7px;
  background: rgba(110, 99, 172, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 25rem;
  margin: 1rem 0;
}

.manual-section .btn-manual img {
  width: 25px;
}

.manual-section .btn-manual .btn-text {
  font-size: var(--font-20px);
  font-weight: 500;
  margin-left: 1rem;
}

/* Document */
.document-section h3.title {
  font-size: var(--font-24px);
  font-weight: 500;
  /* text-shadow: unset; */
  color: rgba(228, 140, 29, 1);
}

.document-section .detail {
  font-size: var(--font-16px);
}

.document-section .detail h3 {
  font-size: var(--font-20px);
  font-weight: 500;
}

.document-section .detail table tbody tr td:first-child {
  width: 55% !important;
}

.document-section .detail table tbody tr td:not(:first-child) {
  width: 15% !important;
}

/* Fee */
.fee-section .detail {
  font-size: var(--font-16px);
}

.fee-section .detail h3 {
  font-size: var(--font-20px);
  font-weight: 500;
}

.fee-section h3.title {
  font-size: var(--font-24px);
  font-weight: 500;
  /* text-shadow: unset; */
  color: rgba(251, 160, 45, 1);
}

.fee-section .detail table tr:first-child {
  font-size: var(--font-17px);
  font-weight: 500;
}

.fee-section .detail table tbody {
  min-width: unset;
  width: 100%;
}

.fee-section .detail tr:not(:first-child) {
  background: var(--color-table-light);
}

.fee-section .detail tr:has(> td[colspan]):not(:first-child) {
  background: var(--color-table-dark);
}

.fee-section .detail tr:has(> td[colspan]):not(:first-child) td {
  font-weight: 500;
}

@media (width >= 23rem) {
  /* ~375px */
  .animal.dog::before {
    left: -51px;
  }
}

/* Large Mobile */
@media (width >= 24rem) {
  /* ~384px */
  .animal.dog::before {
    bottom: 35px;
    left: -60px;
    width: 135px;
  }

  .animal.bird::before {
    top: -10px;
    right: -48px;
    width: 125px;
  }
}

/* Phablet */
@media (width >= 30rem) {
  /* ~480px */
  .card-section img {
    width: 30%;
  }

  .animal.snake::before {
    right: -34px;
  }

  .animal.dog::before {
    bottom: 35px;
    left: -70px;
    width: 170px;
  }

  .animal.bird::before {
    top: -10px;
    right: -50px;
    width: 130px;
  }
}

/* Tablet Small */
@media (width >= 36rem) {
  /* ~576px */
  .animal.snake::before {
    right: -35px;
  }

  .animal.cat::before {
    top: -32px;
    width: 85px;
  }

  .animal.dog::before {
    bottom: 25px;
    left: -60px;
    width: 170px;
  }

  .animal.bird::before {
    top: -25px;
    right: -55px;
    width: 140px;
  }
}

/* Tablet */
@media (width >= 48rem) {
  /* ~768px */
  .petster-card .new-line {
    display: inline-block;
  }

  .animal.snake::before {
    top: -55px;
    right: -27px;
  }

  .animal.cat::before {
    top: -50px;
  }

  .animal.dog::before {
    bottom: 18px;
    left: -65px;
    width: 120px;
  }

  .animal.bird::before {
    background: url(/aeon/aeon-petster-card/image/bird.png) no-repeat center;
    background-size: contain;
    width: 108px;
    right: -76px;
    bottom: -85px;
  }

  .text-on-slide .text-header a {
    font-size: var(--font-24px) !important;
  }

  .text-on-slide a.view-all {
    display: block;
  }

  .content .section {
    padding: 0 3rem;
  }

  .section h1.title {
    font-size: var(--font-36px);
  }

  .banner-section img#banner-pc {
    display: block;
  }

  .banner-section img#banner-mb {
    display: none;
  }

  /* Menu */
  .menu-section {
    justify-content: space-between;
  }

  .menu-section .menu-items {
    display: block;
    align-content: center;
  }

  .menu-section .menu-items a {
    font-size: var(--font-20px);
  }

  .menu-section .apply-btn button {
    display: block;
  }

  .mb-apply-btn {
    display: none;
  }

  /* Card */
  .card-section img {
    width: 25%;
  }

  /* Benefit Box */
  .benefit-box-section {
    grid-template-columns: repeat(3, 1fr);
    max-width: 90%;
  }

  .benefit-box-section .benefit-box {
    margin: 2rem;
    height: 80%;
  }

  .animal:last-child .benefit-box {
    margin-bottom: 2rem;
  }

  /* Manual */
  .manual-section {
    flex-direction: row;
  }

  .manual-section .btn-manual {
    margin: 0;
  }
}

/* Laptop */
@media (width >= 64rem) {
  /* ~1024px */
  .animal.snake::before {
    right: -27px;
  }

  .animal.cat::before {
    top: -45px;
  }

  .animal.dog::before {
    bottom: 20px;
    left: -75px;
    width: 150px;
  }

  .animal.bird::before {
    bottom: -95px;
  }

  .card-section img {
    width: 30%;
  }
}

@media (width >= 70rem) {
  /* ~1120px */
  .animal.snake::before {
    right: -28px;
  }

  .animal.bird::before {
    right: -77px;
    bottom: -88px;
  }
}

/* Large Desktop */
@media (width >= 80rem) {
  /* ~1280px */
  .animal.snake::before {
    right: -24px;
  }

  .animal.cat::before {
    top: -55px;
    width: 100px;
  }

  .animal.dog::before {
    left: -88px;
    width: 180px;
    bottom: 28px;
  }

  .animal.bird::before {
    right: -95px;
    bottom: -120px;
    width: 135px;
  }
}
