/* Credit Wallet landing page */

.wallet-buycredits-index .footer {
    margin-top: 0;
}

.wallet-buycredits-index .page-main {
  max-width: none;
  padding: 0;
}

.wallet-buycredits-index .columns,
.wallet-buycredits-index .column.main {
  display: block;
  padding: 0;
}

.wallet-buycredits-index .page-title-wrapper {
  display: none;
}

.cp-hero {
  position: relative;
  min-height: calc(100vh - 156px);
  overflow: hidden;
  background: #111;
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.cp-hero::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  z-index: 1;
  background: #111;
}

.cp-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(56px, 7vw, 132px);
  min-height: inherit;
  box-sizing: border-box;
  padding: clamp(72px, 8vw, 138px) clamp(40px, 5vw, 142px);
}

.cp-hero__copy {
  max-width: min(700px, calc(100% - 190px));
  text-align: left;
}

.cp-hero__title {
  margin: 0 0 42px;
  color: #fff;
  font-size: clamp(28px, 2.75vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: left;
}

.cp-hero__sub {
  max-width: 720px;
  margin: 0 0 46px;
  color: #fff;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
}

.cp-hero__faq {
  color: #fff;
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-hero__faq:hover,
.cp-hero__faq:focus {
  color: #fff;
}

.cp-hero__image {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cp-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}

.cp-card {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 386px);
  min-height: 560px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 34px 44px;
  background: #fff;
  color: #050505;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  text-align: center;
}

.cp-card__title {
  color: #050505;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 23px;
}

.cp-card__title-icon {
  display: none;
}

.cp-card__label {
  display: block;
  margin: 26px 0 10px;
  height: 22px;
  overflow: hidden;
  color: #171717;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.2;
}

.cp-card__input-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  height: 62px;
  box-sizing: border-box;
  margin: 0;
  border: 2px solid #006eb8;
  border-radius: 6px;
  background: #f4f4f4;
}

.cp-card__input-wrap.cp-input-wrap--error {
  border-color: #d62727;
}

.cp-card__input-wrap.cp-input-wrap--error .cp-card__currency {
  color: #d62727;
}

/* Prefix currencies ($, £, ¥): symbol before the number */
.cp-card__input-wrap--prefix input.cp-card__input {
  text-align: left;
}

input.cp-card__input {
  flex: 0 0 auto;
  width: 4ch;
  height: 100%;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  background: transparent;
  color: #050505;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 1.65vw, 32px);
  font-weight: 800;
  line-height: 1;
  text-align: right;
  padding: 0;
}

input.cp-card__input:focus {
  box-shadow: none;
  outline: none;
  caret-color: #006eb8;
}

input.cp-card__input.cp-input--error {
  color: #d62727;
}

.cp-card__currency {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: #1f1f1f;
  font-size: clamp(24px, 1.65vw, 32px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.cp-card__error {
  width: 100%;
  height: 40px;
  margin: 10px 0;
  color: #d62727;
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  visibility: hidden;
}

.cp-card__credits-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #050505;
  width: 100%;
  min-height: 80px;
  text-align: center;
}

.cp-card__credits-number {
  color: #050505;
  font-size: clamp(34px, 2.35vw, 44px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.cp-card__credits-unit {
  color: #050505;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 800;
  line-height: 1;
}

.cp-card__edits {
  margin: 12px 0 auto;
  height: 20px;
  overflow: hidden;
  color: #050505;
  line-height: 1.28;
  white-space: nowrap;
}

.cp-card__edits span {
  display: inline-block;
  margin-top: 10px;
  color: #171717;
  font-weight: 400;
}

.cp-card__validity {
  margin: 30px 0 22px;
  color: #171717;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.2;
}

.cp-card__form {
  width: 100%;
  margin: 0;
}

.cp-card__btn {
  display: block;
  width: min(100%, 250px);
  min-height: 58px;
  margin: 0 auto;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  background: #0066cc;
  color: #fff;
  cursor: pointer;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cp-card__btn:hover,
.cp-card__btn:focus {
  background: #005bbb;
}

.cp-card__btn:active {
  transform: translateY(1px);
}

.cp-card__btn:disabled {
  background: #93bce9;
  cursor: not-allowed;
}

@media (max-width: 1199px) {
  .cp-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-right: 48px;
    padding-left: 48px;
  }

  .cp-hero__copy {
    max-width: min(620px, calc(100% - 185px));
  }

  .cp-card {
    min-height: 540px;
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 899px) {
  .cp-hero {
    min-height: 0;
    background: #111;
  }

  .cp-hero::before {
    inset: 0 0 45% 0;
  }

  .cp-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    padding: 48px 20px 130px;
  }

  .cp-hero__copy {
    max-width: none;
    text-align: left;
  }

  .cp-hero__title {
    margin-bottom: 24px;
    font-size: 36px;
  }

  .cp-hero__sub {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .cp-hero__faq {
    font-size: 18px;
  }

  .cp-hero__image {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    opacity: 1;
  }

  .cp-card {
    position: relative;
    top: auto;
    left: auto;
    transform: translateY(6%);
    width: min(100%, 430px);
    min-height: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 479px) {
  .cp-hero__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cp-hero__title {
    font-size: 32px;
  }

  .cp-card {
    min-height: 520px;
    padding: 36px 24px 40px;
    border-radius: 24px;
    transform: translateY(5%);
  }

  .cp-card__title {
    margin-bottom: 48px;
    font-size: 22px;
  }

  .cp-card__input-wrap {
    min-height: 68px;
    margin-bottom: 34px;
  }

  .cp-card__input {
    height: 64px;
    font-size: 28px;
  }

  .cp-card__validity {
    margin-top: 54px;
  }
}
