.checkout-payment {
  display: grid;
  gap: 1rem;

  &__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 2rem;
    align-items: start;

    @media (max-width: 760px) {
      grid-template-columns: 1fr;
    }
  }

  &__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  &__action-btn {
    width: 100%;
    flex: 1 1 290px;
    max-width: 290px;
    display: block;
  }
}

.payment-methods {
  min-width: 0;

  &__title {
    margin: 0 0 1.75rem;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
  }

  &__list {
    display: grid;
    gap: 1.1rem;
  }
}

.payment-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 300px;
  justify-self: start;
  padding: 0.35rem 0;
  color: #666666;
  cursor: pointer;
  transition: color 0.2s ease;

  &:hover {
    color: #4f4f4f;
  }

  &.is-selected {
    color: var(--tenant-primary, #6376f3);
  }

  &__radio {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--tenant-primary, #6376f3);
    cursor: pointer;
  }

  &__label {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  &__chevron {
    color: #9f9f9f;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  &.is-selected &__chevron,
  &:hover &__chevron {
    opacity: 1;
    transform: translateX(0);
  }
}

.telepagos-logo {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0a69d8 0 78%, #f6a11a 78% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.payment-panel {
  min-width: 0;
  &__card {
    width: 100%;
    max-width: 290px;
    min-height: 269px;
    padding: 1.5rem 1.75rem;
    border-radius: 5px;
    background: #ffffff;
    color: #666666;
    box-shadow: 0 0 0 1px #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  &__title {
    max-width: 18rem;
    margin: 0;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }

  &__divider {
    width: 100%;
    max-width: 220px;
    height: 1px;
    margin: 1.2rem 0 1.45rem;
    background: #dddddd;
  }

  &__account {
    width: 100%;
    display: grid;
    gap: 0.75rem;
    color: #7a7a7a;
    font-size: 12px;
  }

  &__eyebrow {
    margin: 0;
    color: #838383;
    font-size: 12px;
    font-weight: 325;
    letter-spacing: 0.06em;
  }
}

.payment-detail {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
  font-size: 12px;

  &--copy {
    grid-template-columns: auto auto auto;
  }

  &__label {
    color: #8a8a8a;
    font-weight: 325;
  }

  &__value {
    color: #5e5e5e;
    font-weight: 500;
  }

  &__feedback {
    display: block;
    margin-top: -0.25rem;
    color: var(--tenant-primary, #6376f3);
    font-size: 0.78rem;
    font-weight: 700;
  }
}

.qr-code {
  position: relative;
  width: min(170px, 100%);
  aspect-ratio: 1;
  border: 8px solid #ffffff;
  background-color: #ffffff;
  background-image:
    linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.95) 0 14%,
      transparent 14% 28%,
      rgba(17, 17, 17, 0.95) 28% 42%,
      transparent 42% 56%,
      rgba(17, 17, 17, 0.95) 56% 70%,
      transparent 70% 84%,
      rgba(17, 17, 17, 0.95) 84% 100%
    ),
    linear-gradient(
      rgba(17, 17, 17, 0.95) 0 14%,
      transparent 14% 28%,
      rgba(17, 17, 17, 0.95) 28% 42%,
      transparent 42% 56%,
      rgba(17, 17, 17, 0.95) 56% 70%,
      transparent 70% 84%,
      rgba(17, 17, 17, 0.95) 84% 100%
    );
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  display: flex;
  justify-content: center;
  align-items: center;

  qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

    ::ng-deep canvas,
    ::ng-deep img {
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100%;
      max-height: 100%;
    }
  }
}

.qr-code__finder {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 5px solid #111111;
  background: #ffffff;
  box-shadow: inset 0 0 0 8px #ffffff, inset 0 0 0 14px #111111;

  &--tl {
    top: 10px;
    left: 10px;
  }

  &--tr {
    top: 10px;
    right: 10px;
  }

  &--bl {
    bottom: 10px;
    left: 10px;
  }
}

.store-badges {
  width: 100%;
  max-width: 210px;
  display: grid;
  gap: 0.8rem;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.85rem;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);

  i {
    font-size: 1.35rem;
  }

  &__text {
    display: grid;
    text-align: left;
    line-height: 1.1;

    small {
      font-size: 0.62rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      opacity: 0.8;
    }

    strong {
      font-size: 1rem;
      font-weight: 700;
    }
  }
}

