/* Keep payment choices and the price summary steady as methods are selected. */
.course-payment-section .payment-options-local {
  grid-template-columns: 1fr;
  margin-top: 11px;
}

.course-payment-section .payment-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.course-payment-section .payment-methods-launcher {
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

.course-payment-section .payment-options {
  grid-template-columns: 1fr;
  margin-top: 11px;
}

.course-payment-section .payment-option {
  box-sizing: border-box;
  height: 68px;
  min-height: 68px;
  transform: none;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.course-payment-section .payment-option:hover,
.course-payment-section .payment-option.is-selected {
  transform: none;
}

.course-payment-section .payment-option > span:last-child {
  min-width: 0;
}

.course-payment-section .payment-option strong {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.payment-summary {
  box-sizing: border-box;
  min-height: 96px;
}

.payment-summary > div {
  flex: 1 1 auto;
  min-width: 0;
}

.payment-summary strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.payment-summary small {
  display: -webkit-box;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.payment-submit {
  box-sizing: border-box;
  flex: 0 0 148px;
  width: 148px;
  min-width: 148px;
  min-height: 48px;
  white-space: nowrap;
}

.payment-selection {
  display: grid;
  min-height: 42px;
  place-items: center;
  line-height: 1.5;
  text-wrap: balance;
}

.payment-maintenance-notice {
  display: grid;
  gap: 17px;
  margin: 16px 0 0;
  padding: 19px 22px;
  color: #674751;
  text-align: right;
  background: linear-gradient(125deg, rgba(255, 253, 250, .96), rgba(249, 231, 224, .88));
  border: 1px solid rgba(204, 153, 141, .34);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(116, 75, 76, .1), inset 0 1px 0 rgba(255, 255, 255, .92);
  animation: payment-notice-in .28s ease-out both;
}

.payment-maintenance-notice[hidden] {
  display: none !important;
}

.payment-maintenance-copy {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.payment-maintenance-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fffaf7;
  background: linear-gradient(145deg, #d88791, #a75d7c);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(167, 93, 124, .2);
  font-size: 27px;
}

.payment-maintenance-kicker {
  margin: 0 0 3px !important;
  color: #b67c72 !important;
  font-size: 11px !important;
  font-weight: 800;
}

.payment-maintenance-notice h3 {
  margin: 0 0 6px;
  color: #543640;
  font-size: clamp(19px, 4vw, 23px);
  line-height: 1.3;
}

.payment-maintenance-copy p:last-child {
  margin: 0;
  color: #8f7479;
  font-size: 13px;
  line-height: 1.8;
}

.payment-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.payment-maintenance-telegram,
.payment-maintenance-dismiss {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.payment-maintenance-telegram {
  color: #fffaf7;
  background: linear-gradient(110deg, #dc8992, #a95f80);
  box-shadow: 0 10px 22px rgba(167, 93, 124, .2);
}

.payment-maintenance-dismiss {
  color: #73535c;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(184, 131, 121, .24);
}

@keyframes payment-notice-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .payment-summary {
    gap: 12px;
    padding: 13px;
  }

  .payment-submit {
    flex-basis: 122px;
    width: 122px;
    min-width: 122px;
    font-size: 13px;
  }

  .payment-summary strong {
    font-size: 18px;
  }

  .payment-maintenance-notice {
    padding: 17px 15px;
    border-radius: 18px;
  }

  .payment-maintenance-copy {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .payment-maintenance-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .payment-maintenance-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .course-payment-section .payment-groups {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-payment-section .payment-option,
  .payment-methods-launcher svg,
  .payment-maintenance-notice {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
