.demo_payment_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 16px 128px;
}

h2.demo_payment_title {
  margin-top: 0;
  margin-bottom: 48px;
  font-size: 36px;
  line-height: 40px;
  color: #616161;
  text-align: center;
}

.demo_payment_switch {
  display: flex;
  color: #616161;
  font-size: 18px;
  cursor: pointer;
}

.demo_payment_switch > div:first-child {
  border-bottom: 3px solid #616161;
  cursor: default;
}

.demo_payment_switch > div:last-child {
  padding-left: 32px;
  opacity: 0.5;
  border-bottom: 3px solid rgba(255, 255, 255, 0.5);
}

.demo_payment_switch > div > a {
  color: #616161;
}

.demo_payment_switch > div > a:hover {
  color: #616161;
}

.demo_payment_content {
  display: flex;
  max-width: 900px;
  margin-top: 32px;
  border-width: 1px;
  border-radius: 12px;
  border-color: hsla(var(--md-hue), 15%, 14%, 1);
  box-shadow: 10px 10px 13px -5px rgba(0, 35, 31, 0.4);

  @media (max-width: 768px) {
    width: 100%;
    flex-direction: column;
  }
}

.demo_payment_block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 48px;

  @media (max-width: 768px) {
    padding: 48px 20px 20px 20px;
  }
}

.demo_payment_block > img {
  display: inline-block;
  margin-bottom: 32px;
  max-width: 256px;
  align-self: center;
}

.demo_payment_block.demo_payment_block-right {
  position: relative;
}

.demo_payment_item {
  display: flex;
  justify-content: space-between;
  width: 256px;
}

.demo_payment_item_price {
  min-width: 84px;
}

.demo_payment_total {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.demo_payment_button {
  width: 100%;
  background-color: #00000052 !important;
  border: none !important;
}

.demo_payment_tooltip {
  position: absolute;
  left: 55px;
  bottom: -85px;
  font-size: 14px;
  line-height: 19px;

  @media (max-width: 768px) {
    left: 25px;
    bottom: -95px;
    max-width: 280px;
  }
}

.demo_payment_tooltip img {
  float: left;
  margin-top: -50px;
}

.demo_payment_tooltip span {
  color: #616161;
  text-align: left;
  display: block;
  margin-left: 40px;
  width: 200px;
}

.card-number {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.card-number__icon {
  --size: 14px;
  position: relative;
  margin-left: 5px;
  width: var(--size);
  height: var(--size);
  cursor: pointer;
  transition: opacity 0.3s;
}

.card-number__icon:hover {
  opacity: 0.6;
}

.card-number__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-number__tooltip {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.card-number__tooltip span {
  font-size: 10px;
}

.card-number__icon.active .card-number__tooltip {
  opacity: 1;
  visibility: visible;
}

.md-table-centered .md-typeset__scrollwrap {
  display: flex;
}

.md-table-centered .md-typeset__table {
  margin: 0 auto;
}

.md-table-centered table {
  overflow-y: hidden;
  overflow-x: auto;
}
