.easy-upgrade-hidden {
  display: none !important;
}

.pricing-modal,
.easy-upgrade-instalment-pricing {
  --gray-border: #d9d9d9;
  --default-text-color: #000000;
}

.pricing-modal {
  font-size: 16px;
  color: var(--default-text-color);
  font-family: var(--font-body-family);
}

.pricing-modal .modal {
  text-align: left;
}

.easy-upgrade-instalment-pricing {
  margin: 8px 0;
}

.easy-upgrade-instalment-pricing .instalment-pricing-label {
  font-family: var(--font-body-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: normal;
  color: var(--default-text-color);
}

.easy-upgrade-instalment-pricing .instalment-pricing-button,
.financing__details .instalment-pricing-button {
  font-family: var(--font-body-family);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  color: var(--color-link-dynamic-label);
  border: none;
  background: none;
  padding: 0;
  outline: inherit;

  &:hover,
  &:focus,
  &:focus-within {
    color: var(--color-tertiary-dynamic-hover) !important;
  }

  p {
    display: inline-block;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 0.1rem;
    transition: text-decoration-thickness ease 0.1s;

    &:hover,
    &:focus {
      text-decoration: underline !important;
      text-decoration-thickness: 0.1rem !important;
    }
  }
}

.pricing-modal.visible {
  .modal {
    opacity: 1;
    transition-delay: 0s;
    visibility: visible !important;
    display: block !important;
  }
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pricing-modal h2,
.pricing-modal .pricing-modal-heading,
.pricing-modal .pricing-modal-subheading {
  font-family: var(--font-body-family);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 36px;
}

.pricing-modal h2 {
  margin-bottom: 16px;
}

.pricing-modal-subheading {
  padding-bottom: 24px;
}

.pricing-modal-description {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-body-family);
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 16px;
  }
  ul {
    padding-bottom: 32px;
  }
  li,
  p {
    font-family: var(--font-body-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: var(--default-text-color);
    line-height: 20px;
  }
  p {
    margin-bottom: 16px;
  }
  li::marker {
    font-size: 14px;
  }
}

.pricing-modal-calculator {
  margin-top: 3rem;
}

.pricing-modal-disclaimer {
  border-top: 1px solid var(--gray-border);
  margin-top: 32px;
  padding-top: 12px;
}

.pricing-modal li {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.pricing-modal-disclaimer p {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  color: rgba(var(--color-foreground), 0.75);
}

.pricing-modal ul {
  padding-bottom: 32px;
  padding-left: 24px;
}

.pricing-modal-tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--gray-border);
  column-gap: 32px;
  justify-content: space-around;
}
.pricing-modal-tab-button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 16px 0;
  outline: inherit;
  font-family: var(--font-body-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  color: rgba(var(--color-link), 0.6);
  line-height: 20px;
  flex: 1;
  position: relative;
  bottom: -2px;
}

.pricing-modal-tab-button.capitalize {
  text-transform: capitalize;
}

.pricing-modal-tab-button.active {
  color: var(--color-primary-bt-bg);
  border-bottom: 2px solid var(--color-primary-bt-bg);
}
.pricing-modal-tab-button.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.pricing-modal-tab-content {
  display: none;
  font-family: var(--font-body-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--default-text-color);
  line-height: normal;
  overflow-x: auto;
}
.pricing-modal-tab-content.active {
  display: block;
}

.pricing-modal-actions {
  display: flex;
  row-gap: 14px;
  padding: 48px 0;
}

.pricing-modal .pricing-modal-link {
  font-family: var(--font-body-family);
  display: flex;
  align-items: center;
  align-self: center;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-link-dynamic-label);
  font-size: 14px;
  font-style: normal;
  line-height: 28px;
}

.modal-close-button {
  align-self: flex-end;
  background-color: transparent;
  margin-inline-end: var(--modal-close-button-offset-inline-start);
}

.pricing-modal-plan-logo {
  margin-bottom: 12px;

  img {
    height: 35px;
    width: auto;
  }
}

@media screen and (min-width: 1024px) {
  .pricing-modal-actions {
    flex-direction: row;
    column-gap: 32px;
  }
  .pricing-modal-plan-logo {
    img {
      height: 45px;
    }
  }
}

.sticky-atc-bar easy-upgrade-instalment-pricing,
.sticky-atc-bar #footer_monthly_price easy-upgrade-instalment-pricing {
  text-align: left;

  .instalment-pricing-label {
    font-family: var(--font-body-family);
    font-style: normal;
    font-weight: 500;
    color: var(--default-text-color);
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;

    .nmp-test-mode__conditional-text {
      display: inline;
      margin: 0;
      font-size: inherit;
      line-height: inherit;
      font-weight: inherit;
      color: inherit;
    }

    @media screen and (min-width: 768px) {
      color: #595959;
    }
    @media screen and (min-width: 1024px) {
      font-size: 16px;
      line-height: 20px;
    }
  }
}

.nmp-test-mode__label {
  font-family: var(--font-body-family);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--default-text-color);
  line-height: 20px;
  letter-spacing: 0.36px;
  margin-bottom: 12px;
}

.nmp-test-mode__label.nmp-test-mode__label--total {
  padding-top: 32px;
}

.nmp-test-mode__plan-options {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
}

.nmp-test-mode__plan-option {
  font-family: var(--font-body-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: var(--default-text-color);
  line-height: 20px;
  width: 100%;
}

.nmp-test-mode__plan-option select {
  font-family: var(--font-body-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: var(--default-text-color);
  line-height: 20px;
  margin-top: 8px;
  height: 50px;
  width: 100%;
}

.nmp-test-mode__plan-option .nmp-test-mode__plan-payment {
  border-radius: 4px;
  border: 1.2px solid var(--color-gray-3, #d9d9d9);
  background: var(--color-gray-4, #f2f2f2);
  display: flex;
  align-items: center;
  padding: 16px;
  margin-top: 8px;
  height: 50px;
  width: 100%;
}

.nmp-test-mode__conditional-text {
  font-size: 12px;
  line-height: 14px;
  margin: 8px 0;
  display: block;
  color: rgba(var(--color-foreground), 0.75);
  font-weight: 400;
}

/**
 * Monthly Instalment styles
 */

.instalment-container .select-custom,
.easy-upgrade-container .select-custom {
  width: 100%;
  display: none;
}

.pricing-modal-instalment {
  width: 100%;
  font-family: var(--font-body-family);
  border-collapse: collapse;
  overflow-x: auto;
}

.pricing-modal-instalment thead th,
.pricing-modal-instalment tbody td {
  padding: 18px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-gray-3, #d9d9d9);
  vertical-align: middle;
  white-space: nowrap;
}

.pricing-modal-instalment thead th {
  border-bottom: 0;
}

.pricing-modal-instalment thead th {
  background-color: var(--color-gray-4, #f5f5f7);
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  text-align: right;
  letter-spacing: 0;
}

.pricing-modal-instalment thead th.bank {
  text-align: left;
  padding-left: 20px;
}

.pricing-modal-instalment tbody td {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02rem;
  text-align: right;
}

.pricing-modal-instalment tbody td .label {
  display: none;
  font-weight: 400;
}

.pricing-modal-instalment tbody td.bank {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 32px 16px;
  text-align: left;
}

.pricing-modal-instalment tbody td:not(.bank) {
  padding: 32px 14px;
}

.instalment-offer-logo .bank-logo,
.pricing-modal-instalment .bank-logo {
  max-height: 32px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.pricing-modal-instalment .bank-terms {
  font-family: var(--font-body-family);
  color: var(--color-link-dynamic-label);
  font-weight: 600;
  font-size: 14px;
}

.pricing-modal-instalment .monthly-payment.strong {
  font-weight: 600;
}

.instalment-offer-wrapper,
.financing__details {
  font-family: var(--font-body-family);
  border: 1px solid var(--color-gray-3, #d9d9d9);
  border-radius: 0.8rem;
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3.2rem;
}

.instalment-offer {
  color: var(--default-text-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 2.8rem;
  letter-spacing: 0;
}

.instalment-apr {
  line-height: 20px;
  margin-top: 1rem;
}

.instalment-actions {
  margin-top: 1.6rem;
}

.instalment-no-offers {
  text-align: center;
  font-family: var(--font-body-family);
  font-size: 2.4rem;
  font-weight: 500;
  padding: 20px 0;
  border-bottom: 1px solid #d9d9d9;
}

.financing__details .instalment-offer {
  font-size: 18px;
}

.cto-configurable__option-label-from-price .instalment-pricing-label,
.cto-configurable__option-label-from-price .instalment-pricing-button {
  font-size: inherit;
  font-weight: inherit;
  pointer-events: none;
  color: inherit;
}

.cto-configurable__option-label-from-price .instalment-pricing-button i {
  display: none;
}

.cto-configurable__option-label-from-price .easy-upgrade-instalment-pricing {
  margin: 0;
}

.cto-header .nmp-test-mode__conditional-text,
.cto-configurable__option-label-from-price .nmp-test-mode__conditional-text {
  display: none;
}

/* Mobile View */
@media (max-width: 1068px) {
  .pricing-modal-tab-content {
    overflow-x: inherit;
  }
  .instalment-container .select-custom,
  .easy-upgrade-container .select-custom {
    display: block;
  }
  .instalment-container .pricing-modal-tab-buttons,
  .easy-upgrade-container .pricing-modal-tab-buttons,
  .pricing-modal-instalment thead {
    display: none;
  }

  .pricing-modal-instalment {
    width: 100%;
    border-collapse: collapse;
  }

  .pricing-modal-instalment-row {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0.2rem;
    align-items: start;
    border-bottom: 1px solid #d9d9d9;
    padding: 25px 0;
  }

  .pricing-modal-instalment tbody td:not(.bank) {
    display: block;
    font-weight: 500;
    min-height: initial;
    padding: 0;
    border: 0;
    text-align: left;
    letter-spacing: normal;
    font-size: 14px;
  }

  .pricing-modal-instalment tbody td.bank {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 1 / 2;
    grid-row: 1 / span 6;
    gap: 6px;
    padding: 0;
    border-bottom: 0;
    min-height: 100%;
  }

  .pricing-modal-instalment-row .bank-terms {
    font-size: 14px;
    color: #0066cc;
  }

  .pricing-modal-instalment tbody td .label {
    display: inline-block;
  }

  .pricing-modal-instalment tbody td .value {
    font-weight: 600;
  }

  .pricing-modal-instalment thead th,
  .pricing-modal-instalment tbody td {
    white-space: initial;
  }
}

@media screen and (min-width: 1024px) {
  .nmp-test-mode__plan-options {
    flex-direction: row;
    column-gap: 42px;
    row-gap: auto;
  }
  .nmp-test-mode__plan-option {
    width: 50%;
  }
}

/* WCAG 2.3.3: Animation from Interactions */
@media (prefers-reduced-motion: reduce) {
  .modal {
    animation: none !important;
    transition: none !important;
  }
}
