html.tsc-lock,
body.tsc-lock {
  overflow: hidden;
}
body.tsc-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body.tsc-lock .cc-window,
body.tsc-lock .cc-banner,
body.tsc-lock #cookieconsent,
body.tsc-lock [aria-label="cookieconsent"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tsc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 12px;
  background: rgba(10, 16, 32, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.22s cubic-bezier(0.2, 0, 0, 1), visibility 0.22s linear;
}
.tsc-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tsc-modal {
  position: relative;
  width: min(720px, 100%);
  margin: auto;
  overflow: visible;
  background: #fff;
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}
.tsc-modal--wide {
  width: min(980px, 100%);
}
.tsc-overlay.is-open .tsc-modal {
  transform: translateY(0) scale(1);
}
.tsc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tsc-close:hover,
.tsc-close:focus-visible {
  background: rgba(0, 0, 0, 0.12);
  outline: none;
}
.tsc-head {
  padding: 28px 56px 4px 28px;
}
.tsc-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a88dc;
  font-weight: 700;
}
.tsc-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}
.tsc-price {
  margin: 0;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.tsc-sandbox {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7e6;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tsc-body {
  padding: 8px 20px 24px;
  min-height: 240px;
}
.tsc-mount {
  min-height: 160px;
}
.tsc-stage {
  position: relative;
  min-height: 140px;
}
.tsc-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 24px 16px 32px;
  color: #475569;
  font-size: 14px;
}
.tsc-wait p {
  margin: 0;
}
.tsc-wait[hidden] {
  display: none;
}
.tsc-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbeafe;
  border-top-color: #2a88dc;
  border-radius: 50%;
  animation: tsc-spin 0.7s linear infinite;
}
.tsc-form {
  margin: 0;
}
.tsc-form:not(.is-visible) {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.tsc-form.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
.tsc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.tsc-section {
  margin: 0;
}
.tsc-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.tsc-section label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}
.tsc-section label span {
  margin-left: 6px;
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
}
.tsc-section input[type="url"],
.tsc-section input[type="email"],
.tsc-section input[type="text"],
.tsc-section input[type="tel"],
.tsc-section select {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tsc-section select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.tsc-section input:focus,
.tsc-section select:focus {
  border-color: #2a88dc;
  box-shadow: 0 0 0 3px rgba(42, 136, 220, 0.16);
}
.tsc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tsc-el {
  min-height: 52px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 45%, #f1f5f9 90%);
  background-size: 220% 100%;
  animation: tsc-shimmer 1.1s ease infinite;
}
.tsc-el.is-ready {
  background: none;
  animation: none;
}
.tsc-el[hidden] {
  min-height: 0;
  background: none;
  animation: none;
}
.tsc-el-pay {
  min-height: 140px;
}
.tsc-el-express {
  margin-bottom: 12px;
  min-height: 48px;
}
.tsc-paybox {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.tsc-summary {
  display: grid;
  gap: 8px;
  margin: 16px 0 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #475569;
}
.tsc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.tsc-row-total {
  color: #0f172a;
  font-size: 16px;
}
.tsc-pay {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #2a88dc;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.tsc-pay:hover,
.tsc-pay:focus-visible {
  background: #1d6fb8;
  outline: none;
}
.tsc-pay:disabled {
  opacity: 0.65;
  cursor: wait;
}
.tsc-secure {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}
.tsc-form-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
  color: #8a1f1f;
  font-size: 13px;
}
.tsc-note,
.tsc-error,
.tsc-success,
.tsc-loading {
  margin: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.tsc-note {
  background: #f3f8ff;
  color: #1a3a5c;
}
.tsc-error {
  background: #fff1f1;
  color: #8a1f1f;
}
.tsc-loading {
  text-align: center;
  color: #334155;
}
.tsc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483001;
  transform: translateX(-50%);
  max-width: min(480px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: #14532d;
  color: #fff;
}
.tsc-account {
  max-width: 720px;
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}
.tsc-invoices {
  padding-left: 18px;
}
.tsc-invoices a {
  margin-left: 8px;
}

@keyframes tsc-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
@keyframes tsc-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 800px) {
  .tsc-head {
    padding: 32px 56px 8px 32px;
  }
  .tsc-body {
    padding: 8px 28px 28px;
  }
  .tsc-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
  }
  .tsc-col-pay {
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 520px) {
  .tsc-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsc-overlay,
  .tsc-modal,
  .tsc-el,
  .tsc-form.is-visible,
  .tsc-spinner {
    transition: none;
    animation: none;
  }
}
