.tma-course-pay-page {
  --tma-pay-accent: #e36a52;
  --tma-pay-ink: #1f2933;
  --tma-pay-muted: rgba(31, 41, 51, 0.65);
  --tma-pay-border: rgba(31, 41, 51, 0.1);
  max-width: none;
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--tma-pay-ink);
  font-family: inherit;
}

body.tma-course-payment-page .breadcrumb-area,
body.tma-course-payment-page .breadcrumb-bg {
  display: none !important;
}

body.tma-course-payment-page .tg-page-area.pt-90 {
  padding-top: 36px !important;
}

body.tma-course-payment-page .tg-page-area > .container {
  max-width: 1280px;
}

body.tma-course-payment-page .entry-header,
body.tma-course-payment-page .page-header,
body.tma-course-payment-page h1.entry-title,
body.tma-course-payment-page .breadcrumb-area {
  display: none !important;
}

.tma-course-pay-card {
  background: #fff;
  border: 1px solid var(--tma-pay-border);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31, 41, 51, 0.08);
  overflow: hidden;
}

.tma-course-pay-header {
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--tma-pay-border);
  background: linear-gradient(180deg, rgba(227, 106, 82, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.tma-course-pay-header h1,
.tma-course-pay-card > h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.tma-course-pay-header p,
.tma-course-pay-panel-subtitle,
.tma-course-pay-secure,
.tma-course-pay-hint {
  margin: 0;
  color: var(--tma-pay-muted);
  line-height: 1.6;
}

.tma-course-pay-alert {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.tma-course-pay-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.15fr);
  gap: 28px;
  padding: 22px 24px 24px;
  align-items: start;
}

.tma-course-pay-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tma-course-pay-summary h2,
.tma-course-pay-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1rem;
}

.tma-course-pay-summary h2::before,
.tma-course-pay-panel-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--tma-pay-accent);
}

.tma-course-pay-summary dl {
  margin: 0;
  background: #f6f4f2;
  border: 1px solid var(--tma-pay-border);
  border-radius: 14px;
  overflow: hidden;
}

.tma-course-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tma-pay-border);
}

.tma-course-pay-row:last-child {
  border-bottom: 0;
}

.tma-course-pay-row dt {
  margin: 0;
  color: var(--tma-pay-muted);
}

.tma-course-pay-row dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.tma-course-pay-row.is-total {
  background: rgba(227, 106, 82, 0.07);
}

.tma-course-pay-row.is-total dd {
  color: #c24a3a;
  font-size: 1.05rem;
}

.tma-course-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tma-course-pay-methods li:nth-child(3) {
  grid-column: 1 / -1;
}

.tma-course-pay-method {
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 1.5px solid var(--tma-pay-border);
  border-radius: 14px;
  background: #fff;
  color: var(--tma-pay-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tma-course-pay-method.is-selected,
.tma-course-pay-method[aria-pressed="true"] {
  border-color: #e7b2a6;
  background: #fbf6f4;
  box-shadow: 0 0 0 1px #e7b2a6;
}

.tma-course-pay-panel {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--tma-pay-border);
  border-radius: 18px;
  background: #faf9f8;
  box-shadow: 0 8px 28px rgba(31, 41, 51, 0.05);
}

.tma-course-pay-mount {
  margin-top: 0;
}

.tma-course-pay-mount.is-active {
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--tma-pay-border);
  border-radius: 14px;
}

.tma-course-pay-mount .mysr-form {
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
}

.tma-course-pay-mount .mysr-form-cardInfo {
  display: flex !important;
  flex-wrap: wrap;
}

.tma-course-pay-mount .mysr-form-cardInfoElement {
  flex: 0 1 auto;
  width: 100%;
}

.tma-course-pay-mount input.mysr-form-cardInfoHalfWidth {
  width: 50% !important;
}

.tma-course-pay-secure {
  margin-top: 14px;
  font-size: 0.8125rem;
  text-align: center;
}

.tma-course-pay-back {
  display: inline-flex;
  margin-top: 12px;
  color: var(--tma-pay-accent);
  font-weight: 700;
}

@media (max-width: 860px) {
  .tma-course-pay-body {
    grid-template-columns: 1fr;
  }

  .tma-course-pay-panel {
    position: static;
  }

  .tma-course-pay-methods {
    grid-template-columns: 1fr;
  }

  .tma-course-pay-methods li:nth-child(3) {
    grid-column: auto;
  }
}

.tma-pay-done {
  width: 100%;
  max-width: 420px;
  margin: 28px auto 0;
  text-align: center;
}

.tma-pay-done-logo {
  display: block;
  margin: 0 auto;
}

.tma-pay-done-mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 18px auto 0;
}

.tma-pay-done-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
}

.tma-pay-done h1 {
  margin: 16px 0 0;
  color: #222;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}

.tma-pay-done-receipt {
  margin: 4px 0 0;
  color: #6d6d6d;
  font-size: 14px;
  line-height: 1.55;
}

.tma-pay-done-card {
  margin-top: 22px;
  padding: 16px 19px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  text-align: start;
}

.tma-pay-done-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e6e6;
}

.tma-pay-done-amount span {
  color: #6d6d6d;
  font-size: 14px;
}

.tma-pay-done-amount strong {
  color: #222;
  font-size: 20px;
  font-weight: 700;
}

.tma-pay-done-course {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.tma-pay-done-thumb {
  display: block;
  width: 52px;
  height: 44px;
  overflow: hidden;
  border-radius: 6px;
  background: #fde5e3;
}

.tma-pay-done-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tma-pay-done-course p {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.tma-pay-done-note {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff9eb;
  text-align: start;
}

.tma-pay-done-note p {
  margin: 0;
  color: #6d4a12;
  font-size: 14px;
  line-height: 1.55;
}

.tma-pay-done-note p:first-child {
  margin-bottom: 4px;
  color: #7b4a06;
  font-size: 12px;
  font-weight: 700;
}

.tma-pay-done .tma-course-pay-secure {
  margin-top: 22px;
  color: #909090;
  font-size: 12px;
}

.tma-course-pay-success {
  width: 100%;
  max-width: 900px;
  margin: 8px auto 0;
}

.tma-course-pay-success-header {
  padding: 28px 24px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(227, 106, 82, 0.08) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tma-pay-border);
}

.tma-course-pay-success-header h1 {
  margin: 0 0 8px;
}

.tma-course-pay-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e36a52;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.tma-course-pay-success-header p:first-of-type {
  margin: 0 0 6px;
  color: #c24a3a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tma-course-pay-success-body {
  padding: 20px 22px 24px;
}

.tma-course-pay-success-body h2 {
  margin: 0 0 12px;
}

.tma-course-pay-platform,
.tma-course-pay-platform:hover,
.tma-course-pay-platform:focus,
.tma-course-pay-platform:active,
.tma-course-pay-platform:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 12px;
  background: #e36a52 !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.tma-course-pay-hosted {
  display: grid;
  grid-template-columns: minmax(0, 500fr) minmax(0, 560fr);
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
}

.tma-course-pay-order {
  padding: 40px;
  background: #fdf8f0;
}

.tma-course-pay-logo {
  display: block;
}

.tma-course-pay-kicker {
  margin: 20px 0 0;
  color: #6d6d6d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-course-pay-amount {
  margin: 0;
  color: #222;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
}

.tma-course-pay-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.tma-course-pay-thumb {
  display: block;
  width: 64px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: #fde5e3;
}

.tma-course-pay-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tma-course-pay-item-title,
.tma-course-pay-item-price {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.tma-course-pay-item-price {
  font-weight: 400;
  text-align: end;
}

.tma-course-pay-lines {
  margin-top: 24px;
}

.tma-course-pay-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e6e6e6;
  color: #6d6d6d;
  font-size: 13px;
  line-height: 1.5;
}

.tma-course-pay-lines strong {
  color: #222;
  font-weight: 400;
}

.tma-course-pay-lines .is-due span,
.tma-course-pay-lines .is-due strong {
  color: #222;
  font-weight: 700;
}

.tma-course-pay-moyasar {
  padding: 40px;
  background: #fff;
}

.tma-pay-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tma-pay-black {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.tma-pay-black.is-open {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.tma-pay-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.tma-pay-icon-stc {
  flex-basis: 42px;
  width: 42px;
  height: 18px;
}

.tma-visa-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tma-visa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.tma-visa-field > span {
  color: #464646;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-visa-input,
.tma-visa-card input {
  width: 100%;
  height: 40px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #222;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.tma-visa-input::placeholder,
.tma-visa-card input::placeholder {
  color: #909090;
}

.tma-visa-card {
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
}

.tma-visa-card input {
  border: 0;
  border-radius: 0;
}

.tma-visa-number {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d5d5d5;
}

.tma-visa-number input {
  flex: 1;
  min-width: 0;
}

.tma-visa-brand {
  flex: 0 0 auto;
  padding-inline-end: 11px;
  color: #b1b1b1;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.tma-visa-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tma-visa-extra input + input {
  border-inline-start: 1px solid #d5d5d5;
}

.tma-visa-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.tma-visa-error[hidden] {
  display: none !important;
}

.tma-visa-pay {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #e86256;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.tma-visa-pay:hover:not(:disabled) {
  background: #cd2e19;
}

.tma-visa-pay:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tma-pay-method-panel {
  margin-top: 12px;
}

.tma-pay-method-panel[hidden] {
  display: none !important;
}

.tma-pay-unavailable {
  margin: 0;
  color: #6d6d6d;
  font-size: 13px;
  text-align: center;
}

.tma-pay-card .mysr-form,
.tma-pay-card .mysr-form-fixedWidth,
.tma-pay-method-panel .mysr-form,
.tma-pay-method-panel .mysr-form-fixedWidth {
  width: 100% !important;
  max-width: none !important;
}

.tma-pay-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.tma-pay-or span {
  height: 1px;
  background: #e6e6e6;
}

.tma-pay-or p {
  margin: 0;
  color: #909090;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.tma-pay-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.tma-pay-field span {
  color: #464646;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-pay-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #222;
  font: inherit;
  font-size: 13px;
}

.tma-pay-field input::placeholder {
  color: #909090;
}

.tma-pay-card {
  margin-top: 4px;
}

.tma-course-pay-hosted .tma-course-pay-mount.is-active {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tma-course-pay-hosted .mysr-form,
.tma-course-pay-hosted .mysr-form-fixedWidth {
  width: 100% !important;
  max-width: none !important;
}

.tma-course-pay-page > .tma-course-pay-alert {
  max-width: 1060px;
  margin: 0 auto 16px;
}

.tma-course-pay-hosted .tma-course-pay-secure {
  margin-top: 16px;
  color: #909090;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.tma-course-pay-hosted .tma-pay-card .mysr-form-button,
.tma-course-pay-hosted .tma-pay-card button.mysr-form-button {
  height: 48px !important;
  border-radius: 6px !important;
  background: #e86256 !important;
  background-color: #e86256 !important;
  border-color: #e86256 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700;
}

.tma-course-pay-hosted .tma-pay-card .mysr-form-button:hover,
.tma-course-pay-hosted .tma-pay-card button.mysr-form-button:hover {
  background: #cd2e19 !important;
  background-color: #cd2e19 !important;
}

@media (max-width: 860px) {
  .tma-course-pay-hosted {
    grid-template-columns: 1fr;
  }

  .tma-course-pay-order,
  .tma-course-pay-moyasar {
    padding: 24px 20px;
  }

  .tma-course-pay-amount {
    font-size: 32px;
  }
}
