@import url("https://fonts.googleapis.com/css2?family=Metropolis&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 120%;
}

body {
  background: #fff;
  font-family: "Inter", sans-serif;
}

.col {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
}

main {
  width: 30%;
  margin: 5rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main .header {
  font-size: 1.4rem;
  color: #007f61;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  width: 100%;
  text-align: center;
}

main .header span {
  background-color: #fff;
  z-index: 2;
  padding: 0 0.5rem;
}

main .header::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  width: 100%;
  background: #007f61;
  z-index: -1;
}

main > .pair {
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;

  border-radius: 3.615px;
  border: 0.904px solid #c8c8c8;
  color: #000;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  cursor: pointer;
}

.pair .pair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pair .pair-head .pair-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pair .pair-head .pair-info p {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.pair .pair-head .pair-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.pair .pair-head .pair-info h5 {
  font-size: 0.7rem;
  font-weight: 400;
  text-decoration: line-through;
  color: #9f9f9f;
}

.pair .pair-head .pair-info .price > div {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.pair .pair-head .discount p {
  font-size: 1rem;
  font-weight: 600;
  color: #007f61;
  margin-bottom: 0.3rem;
}

.pair .pair-head .discount h4 {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pair .pair-body .row {
  display: flex;
  gap: 0.5rem;
  padding: 3px 0;
}

.pair .pair-body .number {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.pair .pair-body p {
  color: #000;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 400;

  /* text-align: left; */
  /* border: 1px solid red; */
}

.pair .pair-body select {
  border-radius: 3px;
  border: 0.904px solid #d9d9d9;
  background: #fff;
  padding: 1px;
  width: 80px;
  height: 25px;
}

.total {
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total p {
  font-weight: 600;
  font-size: 0.9rem;
  color: #007f61;
}

.total h4 {
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
}

.total span {
  font-weight: 400;
}

.cta {
  width: 100%;
}

.cta button {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #007f61;
  border: none;
  outline: none;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  cursor: pointer;
  position: relative;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.cta button:hover {
  background: #00664f;
}

.cta p {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: italic;
  text-align: right;
}

main > .pair.active {
  background: #f4fbf9;
  overflow: hidden;
}

main > .pair:not(.active) .pair-body {
  display: none;
}

@media screen and (max-width: 1300px) {
  main {
    width: 50%;
  }
}

@media screen and (max-width: 800px) {
  main {
    width: 80%;
  }
}

@media screen and (max-width: 490px) {
  main {
    width: 90%;
  }

  .pair .pair-head .pair-info p {
    font-size: 0.7rem;
  }

  .pair .pair-head .pair-info .price > div {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .pair .pair-head .pair-info h4 {
    font-size: 0.8rem;
  }

  .pair .pair-head .pair-info h5 {
    font-size: 0.6rem;
  }

  .pair .pair-head .discount h4 {
    font-size: 0.8rem;
  }

  .pair .pair-head .discount p {
    font-size: 0.8rem;
  }
}
