.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 {
  overflow-x: clip;
}

body.tma-course-payment-page .breadcrumb-area,
body.tma-course-payment-page .breadcrumb-bg {
  display: none !important;
}

body.tma-course-payment-page:not(.tma-course-result-page) header.header-style-six {
  display: none !important;
}

body.tma-course-payment-page:not(.tma-course-result-page) .tg-page-area.pt-90 {
  padding-top: 0 !important;
}

body.tma-course-result-page,
body.tma-course-result-page main,
body.tma-course-result-page .tg-page-area {
  background: #f6f5f3;
}

body.tma-course-result-page:has(.tma-fail-page),
body.tma-course-result-page:has(.tma-fail-page) main,
body.tma-course-result-page:has(.tma-fail-page) .tg-page-area {
  background: #f8f8f8;
}

body.tma-course-result-page .tg-page-area.pt-90 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.tma-course-payment-page .tg-page-area > .container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

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,
body.tma-course-payment-page .newsletter-area,
body.tma-course-payment-page footer,
body.tma-course-payment-page .footer-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-pay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-block-end: 32px;
  margin-inline: calc(50% - 50vw);
  padding: 22px 128px;
  background: #fff;
  border-bottom: 1px solid #ededed;
}

.tma-pay-topbar-logo {
  display: block;
  width: 127px;
  height: 36px;
  border: 0;
}

.tma-pay-topbar p,
.tma-pay-secure-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.tma-pay-secure-label img {
  display: block;
  width: 12px;
  height: 14px;
  flex: 0 0 12px;
}

.tma-secure-short {
  display: none;
}

.tma-pay-screen {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-top: 81px;
  background: #f8f8f8;
}

body > .tma-pay-topbar {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100000;
  width: 100% !important;
  height: 81px;
  margin: 0 !important;
}

.tma-pay-screen .tma-pay-checkout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 28px 128px 80px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tma-pay-back {
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.tma-pay-back::before {
  content: "←";
  margin-inline-end: 8px;
}

[dir="rtl"] .tma-pay-back::before {
  content: "→";
}

.tma-pay-back:hover,
.tma-pay-back:focus {
  color: #888;
  text-decoration: none;
}

.tma-checkout-card {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 20px;
  background: #fff;
}

.tma-pay-band {
  padding: 28px 32px;
  background: #fffaf0;
  border-bottom: 1px solid #fff3dc;
}

.tma-pay-band h1 {
  margin: 0;
  color: #222;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.tma-pay-band p,
.tma-pay-panel > p {
  margin: 6px 0 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-pay-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
  gap: 28px;
  align-items: start;
  padding: 28px 32px 32px;
}

.tma-pay-summary,
.tma-pay-block,
.tma-pay-choices,
.tma-pay-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tma-pay-summary {
  gap: 24px;
}

.tma-pay-summary-toggle {
  display: none;
}

.tma-pay-block h2,
.tma-pay-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-pay-block h2 i,
.tma-pay-panel h2 i {
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #e74c39;
}

.tma-pay-panel > p {
  margin: 6px 0 18px;
}

.tma-pay-panel[hidden] {
  display: none !important;
}

.tma-pay-table {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 12px;
}

.tma-pay-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid #ededed;
  font-size: 14px;
  line-height: 1.5;
}

.tma-pay-table div:first-child {
  border-top: 0;
}

.tma-pay-table .is-muted {
  background: #f8f8f8;
}

.tma-pay-table .is-plain {
  background: #fff;
}

.tma-pay-table span {
  color: #888;
  font-weight: 400;
}

.tma-pay-table strong {
  color: #222;
  font-weight: 400;
  text-align: end;
}

.tma-pay-table .is-total {
  background: #fdefed;
  border-top-color: #fadad6;
}

.tma-pay-table .is-total span,
.tma-pay-table .is-total strong {
  color: #222;
  font-weight: 600;
  line-height: 1.4;
}

.tma-pay-table .is-total strong {
  color: #e74c39;
  font-size: 20px;
  font-weight: 700;
}

.tma-pay-emailbox {
  padding: 13px 16px;
  border-radius: 12px;
  background: #f8f8f8;
}

.tma-pay-emailbox p {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.tma-pay-emailbox div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.tma-pay-email-value {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-pay-email-edit {
  border: 0;
  background: transparent;
  color: #e74c39;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.tma-pay-emailbox input[type="email"] {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid #b1b1b1;
  border-radius: 8px;
  padding: 8px 12px;
  color: #222;
  font: inherit;
  font-size: 16px;
}

.tma-pay-emailbox input[hidden] {
  display: none !important;
}

.tma-pay-choice[hidden] {
  display: none !important;
}

.tma-pay-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #b1b1b1;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.tma-pay-choice.is-selected {
  border: 2px solid #ffc658;
  background: #fffaf0;
}

.tma-pay-choice img {
  display: none;
  width: 20px;
  height: 20px;
}

.tma-pay-choice.is-selected img {
  display: block;
}

.tma-pay-radio {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1px solid #b1b1b1;
  border-radius: 10px;
  background: #fff;
}

.tma-pay-choice.is-selected .tma-pay-radio {
  display: none;
}

.tma-pay-choice strong,
.tma-pay-choice small {
  display: block;
}

.tma-pay-choice strong {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-pay-choice small {
  margin-top: 3px;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-pay-choice span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tma-pay-securebox {
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 12px;
}

.tma-pay-panel[data-pay-panel="applepay"] .tma-pay-securebox {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tma-apple-slot {
  position: relative;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
}

.tma-apple-slot:has(.tma-apple-pay[hidden]) {
  height: 0;
}

.tma-apple-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 17px 16px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.tma-apple-pay[hidden] {
  display: none !important;
}

.tma-apple-pay img {
  display: block;
  width: 16.3px;
  height: 20px;
  flex: 0 0 16.3px;
}

.tma-pay-panel[data-pay-panel="applepay"] .tma-pay-method-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
}

.tma-pay-panel[data-pay-panel="applepay"] .mysr-form,
.tma-pay-panel[data-pay-panel="applepay"] .mysr-form-fixedWidth,
.tma-pay-panel[data-pay-panel="applepay"] .mysr-form-applePayButton {
  width: 100% !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
  opacity: 0 !important;
}

.tma-apple-note {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.tma-apple-note[hidden] {
  display: none !important;
}

.tma-stc-slot {
  position: static;
  min-height: 0;
  overflow: visible;
}

.tma-stc-slot.is-otp .tma-pay-method-panel {
  display: none;
}

.tma-pay-panel[data-pay-panel="stcpay"].is-stc-otp > p {
  display: none;
}

.tma-stc-otp {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tma-stc-otp-hint {
  margin: 0;
  color: #6d6d6d;
  font-size: 14px;
  line-height: 1.5;
}

.tma-stc-otp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tma-stc-otp-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #ededed;
  border-radius: 12px;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-align: center;
  direction: ltr;
}

.tma-stc-otp-input:focus {
  border-color: #4f008c;
  outline: none;
}

.tma-stc-otp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: #e74c39;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tma-stc-otp-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.tma-stc-otp-error {
  margin: 0;
  color: #bb2124;
  font-size: 14px;
}

.tma-pay-panel[data-pay-panel="stcpay"] .tma-pay-securebox,
.tma-pay-panel[data-pay-panel="stcpay"] .tma-pay-method-panel {
  position: static;
  overflow: visible;
}

.tma-pay-panel[data-pay-panel="stcpay"] .mysr-form,
.tma-pay-panel[data-pay-panel="stcpay"] .mysr-form-fixedWidth {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.tma-pay-panel[data-pay-panel="stcpay"] .mysr-form-footer {
  display: none !important;
}

body.tma-stc-modal-open,
body.tma-stc-modal-open .tma-course-pay-hosted,
body.tma-stc-modal-open .tma-pay-screen,
body.tma-stc-modal-open .tma-pay-panels,
body.tma-stc-modal-open .tma-stc-slot {
  overflow: visible !important;
}

.tma-stc-unavailable {
  margin: 10px 0 0;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.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: 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: 18px;
  width: 100%;
}

.tma-visa-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.tma-visa-field > span {
  color: #444;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-visa-input,
.tma-visa-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b1b1b1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: #222;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-align: start;
}

.tma-visa-input::placeholder,
.tma-visa-card input::placeholder {
  color: #b1b1b1;
}

.tma-visa-card {
  overflow: hidden;
  border: 1px solid #b1b1b1;
  border-radius: 8px;
  background: #fff;
}

.tma-visa-card input {
  border: 0;
  border-radius: 0;
}

.tma-visa-number {
  display: flex;
  align-items: center;
}

.tma-visa-number input {
  flex: 1;
  min-width: 0;
}

.tma-card-logos {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-inline-end: 14px;
}

.tma-card-logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border: 1px solid #ededed;
  border-radius: 4px;
  background: #fff;
}

.tma-card-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 26px;
  max-height: 14px;
}

.tma-visa-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #b1b1b1;
}

.tma-visa-extra input + input {
  border-inline-start: 1px solid #b1b1b1;
}

.tma-visa-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.tma-visa-error[hidden] {
  display: none !important;
}

.tma-visa-pay {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: #e74c39;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  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: 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  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-secure-long {
    display: none;
  }

  .tma-secure-short {
    display: inline;
  }

  .tma-pay-screen {
    padding-top: 63px;
  }

  .tma-pay-topbar,
  body > .tma-pay-topbar {
    height: 63px;
    padding: 10px 24px;
  }

  .tma-pay-screen .tma-pay-checkout {
    gap: 14px;
    padding: 10px 16px 24px;
  }

  .tma-pay-back {
    color: #444;
  }

  .tma-checkout-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .tma-pay-band {
    padding: 16px;
    border: 1px solid #fff3dc;
    border-radius: 12px;
  }

  .tma-pay-band h1 {
    font-size: 20px;
  }

  .tma-pay-band p {
    display: none;
  }

  .tma-pay-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    padding: 0;
  }

  .tma-pay-order,
  .tma-pay-emailbox,
  .tma-pay-methods,
  .tma-pay-choices,
  .tma-pay-panels {
    box-sizing: border-box;
    width: 100%;
  }

  .tma-pay-summary {
    display: contents;
  }

  .tma-pay-order {
    gap: 0;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 12px;
    background: #fff;
  }

  .tma-pay-order > h2,
  .tma-pay-table .tma-pay-course-row,
  .tma-pay-panel > h2,
  .tma-pay-panel > p {
    display: none;
  }

  .tma-pay-summary-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }

  .tma-pay-summary-course {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  .tma-pay-summary-course strong {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  .tma-pay-summary-course small {
    color: #888;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .tma-pay-summary-price {
    color: #e74c39;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
  }

  .tma-pay-caret {
    display: block;
    width: 12px;
    height: 7px;
    flex: 0 0 12px;
  }

  .tma-pay-order.is-open .tma-pay-caret {
    transform: rotate(180deg);
  }

  .tma-pay-order:not(.is-open) .tma-pay-table {
    display: none;
  }

  .tma-pay-order.is-open .tma-pay-table {
    border: 0;
    border-top: 1px solid #ededed;
    border-radius: 0;
  }

  .tma-pay-order.is-open .tma-pay-table .tma-pay-course-row + div {
    border-top: 0;
  }

  .tma-pay-table .is-muted,
  .tma-pay-table .is-plain {
    background: #fff;
  }

  .tma-pay-table div {
    padding: 12px 16px;
  }

  .tma-pay-table strong {
    font-weight: 600;
  }

  .tma-pay-table .is-total {
    padding: 14px 16px;
  }

  .tma-pay-table .is-total strong {
    font-size: 18px;
    font-weight: 600;
  }

  .tma-pay-emailbox {
    border: 1px solid #ededed;
    background: #fff;
  }

  .tma-pay-methods {
    gap: 14px;
  }

  .tma-pay-methods h2 {
    gap: 8px;
    padding-top: 4px;
  }

  .tma-pay-methods h2 i {
    width: 3px;
    height: 14px;
  }

  .tma-pay-choices {
    gap: 10px;
    margin: 0;
    padding: 14px 14px 6px;
    border: 1px solid #ededed;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #fff;
  }

  .tma-pay-choice {
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #ededed;
    border-radius: 10px;
  }

  .tma-pay-choice.is-selected {
    border: 1px solid #ffc658;
  }

  .tma-pay-choice img,
  .tma-pay-radio {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .tma-pay-choice small {
    margin-top: 2px;
  }

  .tma-pay-panels {
    margin-top: -14px;
    padding: 6px 14px 14px;
    border: 1px solid #ededed;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
  }

  .tma-pay-panels::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 0 6px;
    background: #ededed;
  }

  .tma-pay-securebox {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .tma-pay-panel[data-pay-panel="applepay"] .tma-pay-securebox {
    gap: 12px;
  }

  .tma-visa-form {
    gap: 10px;
  }

  .tma-visa-field {
    gap: 6px;
  }

  .tma-visa-field > span {
    color: #222;
  }

  .tma-visa-input,
  .tma-visa-card input {
    min-height: 0;
    padding: 12px;
  }

  .tma-course-pay-order,
  .tma-course-pay-moyasar {
    padding: 24px 20px;
  }

  .tma-course-pay-amount {
    font-size: 32px;
  }
}

.tma-seat-page {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  background: #f6f5f3;
}

.tma-seat {
  width: min(560px, 100%);
  margin: 24px auto 64px;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
  color: #222;
}

.tma-seat-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  background: #fffaf0;
  border-bottom: 1px solid #fff3dc;
  text-align: center;
}

.tma-seat-band img {
  display: block;
  width: 48px;
  height: 48px;
}

.tma-seat-band h1 {
  margin: 0;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.tma-seat-band p {
  margin: 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-seat-block {
  padding: 24px 32px;
  border-bottom: 1px solid #ededed;
}

.tma-seat-receipt {
  border-bottom: 1px solid #ededed;
}

.tma-seat-block h2 {
  margin: 0 0 14px;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-seat-block ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tma-seat-block li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tma-seat-block li > span {
  color: #e74c39;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-seat-block li > div {
  flex: 1;
  min-width: 0;
}

.tma-seat-sub-mobile,
.tma-seat-phone,
.tma-fail-help-more {
  display: none;
}

.tma-seat-block li p {
  margin: 0;
  color: #444;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-seat-block li strong {
  color: #222;
  font-weight: 600;
}

.tma-seat-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tma-seat-stores a {
  display: block;
  line-height: 0;
}

.tma-seat-stores img {
  display: block;
}

.tma-seat-stores img[width="157"] {
  width: 157px;
  height: 52px;
}

.tma-seat-stores img[width="175"] {
  width: 175px;
  height: 52px;
}

.tma-seat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.tma-seat-row span {
  color: #888;
  font-weight: 400;
}

.tma-seat-row strong {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: end;
}

.tma-seat-row strong.is-paid {
  color: #e74c39;
}

.tma-seat-row.is-contact strong {
  display: flex;
  flex-direction: column;
}

.tma-seat-row.is-contact strong span {
  color: #222;
  font-weight: 600;
}

.tma-seat-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 32px 28px;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-seat-help a,
.tma-seat-help a:hover,
.tma-seat-help a:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e74c39 !important;
  font-weight: 600;
  text-decoration: none;
}

.tma-seat-help img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tma-seat-phone-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tma-seat-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-seat-ask a,
.tma-seat-ask a:hover,
.tma-seat-ask a:focus {
  color: #e74c39 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

@media (max-width: 860px) {
  body.tma-course-result-page:has(.tma-seat-page),
  body.tma-course-result-page:has(.tma-seat-page) main,
  body.tma-course-result-page:has(.tma-seat-page) .tg-page-area,
  .tma-seat-page {
    background: #f8f8f8;
  }

  .tma-seat {
    width: auto;
    margin: 16px 16px 28px;
    border-radius: 14px;
  }

  .tma-seat-band {
    gap: 6px;
    padding: 24px 20px 22px;
    border-bottom: 0;
  }

  .tma-seat-band img {
    margin-bottom: 8px;
  }

  .tma-seat-sub-desktop {
    display: none;
  }

  .tma-seat-sub-mobile {
    display: block;
  }

  .tma-seat-block {
    padding: 20px;
  }

  .tma-seat-block ol {
    gap: 14px;
  }

  .tma-seat-apps {
    display: none;
  }

  .tma-seat-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .tma-seat-phone[data-store="ios"] .is-play,
  .tma-seat-phone[data-store="ios"] .is-ask-ios,
  .tma-seat-phone[data-store="android"] .is-ios,
  .tma-seat-phone[data-store="android"] .is-ask-android,
  .tma-seat-phone[data-store="unknown"] .tma-seat-ask {
    display: none;
  }

  .tma-seat-phone img {
    display: block;
    width: auto;
    height: 44px;
  }

  .tma-seat-receipt {
    padding-bottom: 20px;
    border-bottom: 1px solid #ededed;
  }

  .tma-seat-row {
    margin-top: 0;
  }

  .tma-seat-row + .tma-seat-row {
    margin-top: 9px;
  }

  .tma-seat-help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 16px 20px 20px;
    border-top: 0;
  }

  .tma-seat-help img {
    display: block;
    width: 18px;
    height: 18px;
  }

  .tma-seat-help a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .tma-fail {
    width: auto;
    margin: 16px 16px 28px;
  }

  .tma-fail-band {
    padding: 24px 20px 22px;
  }

  .tma-fail-actions {
    padding: 24px 20px 28px;
  }

  .tma-fail-why {
    padding: 24px 20px 30px;
  }

  .tma-fail-why .tma-fail-help {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
  }

  .tma-fail-help-more {
    display: inline;
  }
}

.tma-fail-page {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  background: #f8f8f8;
}

.tma-fail {
  width: min(560px, 100%);
  margin: 48px auto 96px;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
  color: #222;
}

.tma-fail-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: #f9e5e5;
  border-bottom: 1px solid #f8ced0;
  text-align: center;
}

.tma-fail-band img {
  display: block;
  width: 48px;
  height: 48px;
}

.tma-fail-band h1 {
  margin: 14px 0 0;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.tma-fail-band p {
  margin: 6px 0 0;
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-fail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 32px 28px;
}

.tma-fail-again,
.tma-fail-again:hover,
.tma-fail-again:focus,
.tma-fail-back,
.tma-fail-back:hover,
.tma-fail-back:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
}

.tma-fail-again,
.tma-fail-again:hover,
.tma-fail-again:focus {
  min-height: 56px;
  background: #e74c39 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-fail-again:hover {
  background: #cd2e19 !important;
}

.tma-fail-back,
.tma-fail-back:hover,
.tma-fail-back:focus {
  min-height: 52px;
  border: 1px solid #b1b1b1;
  background: #fff !important;
  color: #222 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-fail-why {
  padding: 24px 32px 30px;
  border-top: 1px solid #ededed;
}

.tma-fail-why h2 {
  margin: 0 0 14px;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.tma-fail-why ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tma-fail-why li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tma-fail-why li img {
  display: block;
  width: 5px;
  height: 5px;
  margin-top: 8px;
}

.tma-fail-why li span,
.tma-fail-why p {
  margin: 0;
  color: #444;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tma-fail-why .tma-fail-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #888;
}

.tma-fail-help a,
.tma-fail-help a:hover,
.tma-fail-help a:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e74c39 !important;
  font-weight: 600;
  text-decoration: none;
}

.tma-fail-help img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

@media (max-width: 860px) {
  .tma-fail {
    width: auto;
    margin: 16px 16px 28px;
  }

  .tma-fail-why .tma-fail-help {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
}

/* Landing page fixes (staging) — checkout frame width, card field focus. */
@media (min-width: 861px) {
  .tma-pay-screen .tma-pay-checkout {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(1200px + 48px);
    margin-inline: auto;
    padding-inline: 24px;
  }
}

.tma-visa-input:focus {
  outline: none;
  border-color: #ffc658;
}

/* Card number, expiry and CVC share one box: it turns yellow while any of them has focus. */
.tma-visa-card:focus-within {
  border-color: #ffc658;
}

.tma-visa-card input:focus {
  outline: none;
}
