/* ==========================================================================
   phpTransformer - GetLicense Public UI (Redesigned, Mobile-First, PHP 8.4)
   Slate Neutral Surface | Single Accent (#2563EB) | Cairo + Monospace | RTL/LTR
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --pt-gl-bg: #F1F5F9;
  --pt-gl-surface: #FFFFFF;
  --pt-gl-surface-alt: #F8FAFC;
  --pt-gl-border: #E2E8F0;
  --pt-gl-border-strong: #CBD5E1;

  --pt-gl-heading: #0F172A;
  --pt-gl-text: #1E293B;
  --pt-gl-muted: #64748B;

  --pt-gl-primary: #2563EB;
  --pt-gl-primary-hover: #1D4ED8;
  --pt-gl-primary-soft: #EFF6FF;
  --pt-gl-primary-border: #BFDBFE;

  --pt-gl-success: #059669;
  --pt-gl-success-soft: #ECFDF5;
  --pt-gl-success-border: #A7F3D0;

  --pt-gl-warning: #D97706;
  --pt-gl-warning-soft: #FFFBEB;
  --pt-gl-warning-border: #FDE68A;

  --pt-gl-danger: #DC2626;
  --pt-gl-danger-hover: #B91C1C;
  --pt-gl-danger-soft: #FEF2F2;
  --pt-gl-danger-border: #FECACA;

  --pt-gl-radius-sm: 8px;
  --pt-gl-radius: 12px;
  --pt-gl-radius-lg: 16px;

  --pt-gl-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --pt-gl-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --pt-gl-shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.1), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

.pt-gl-wrapper {
  background-color: var(--pt-gl-bg);
  color: var(--pt-gl-text);
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  padding: 16px;
  border-radius: var(--pt-gl-radius-lg);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: start;
}

.pt-gl-wrapper *,
.pt-gl-wrapper *::before,
.pt-gl-wrapper *::after {
  box-sizing: border-box;
  font-family: inherit;
}

.pt-gl-wrapper a {
  color: var(--pt-gl-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.pt-gl-wrapper a:hover {
  color: var(--pt-gl-primary-hover);
  text-decoration: underline;
}

.pt-gl-hidden {
  display: none !important;
}

.pt-gl-num {
  font-variant-numeric: tabular-nums;
}

.pt-gl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .pt-gl-flip-rtl {
  transform: scaleX(-1);
}

/* ==========================================================================
   Hero Header
   ========================================================================== */
.pt-gl-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.09), transparent 45%),
              var(--pt-gl-surface);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--pt-gl-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pt-gl-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 280px;
}

.pt-gl-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--pt-gl-radius);
  background: var(--pt-gl-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.pt-gl-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--pt-gl-heading);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pt-gl-hero-sub {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--pt-gl-muted);
  max-width: 62ch;
}

.pt-gl-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--pt-gl-radius);
  background: var(--pt-gl-primary-soft);
  border: 1px solid var(--pt-gl-primary-border);
  color: var(--pt-gl-primary-hover);
  flex-shrink: 0;
}

.pt-gl-price-amount {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.pt-gl-price-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-gl-muted);
}

/* ==========================================================================
   About / Info Card
   ========================================================================== */
.pt-gl-info-card {
  background: var(--pt-gl-surface);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius-lg);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--pt-gl-shadow-sm);
}

.pt-gl-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-gl-heading);
  list-style: none;
}

.pt-gl-info-toggle::-webkit-details-marker {
  display: none;
}

.pt-gl-info-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pt-gl-primary);
}

.pt-gl-info-toggle-left span {
  color: var(--pt-gl-heading);
}

.pt-gl-info-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pt-gl-border);
  color: var(--pt-gl-text);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 72ch;
}

/* ==========================================================================
   Cards & Form Layout
   ========================================================================== */
.pt-gl-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pt-gl-card {
  background: var(--pt-gl-surface);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--pt-gl-shadow);
  width: 100%;
}

.pt-gl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--pt-gl-border);
}

.pt-gl-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--pt-gl-heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pt-gl-card-title svg {
  color: var(--pt-gl-primary);
}

.pt-gl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pt-gl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pt-gl-field-full {
  grid-column: 1 / -1;
}

.pt-gl-wrapper label {
  width: auto;
  height: auto;
  float: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.pt-gl-label,
.pt-gl-wrapper label.pt-gl-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pt-gl-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.pt-gl-label svg {
  color: var(--pt-gl-muted);
}

.pt-gl-required {
  color: var(--pt-gl-danger);
  font-weight: 800;
}

.pt-gl-wrapper input[type="text"].pt-gl-input,
.pt-gl-wrapper input[type="email"].pt-gl-input,
.pt-gl-wrapper input[type="tel"].pt-gl-input,
.pt-gl-wrapper select.pt-gl-input,
.pt-gl-wrapper textarea.pt-gl-input {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  background-color: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border-strong);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pt-gl-heading);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pt-gl-wrapper textarea.pt-gl-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.pt-gl-wrapper .pt-gl-input:focus {
  outline: none;
  background-color: var(--pt-gl-surface);
  border-color: var(--pt-gl-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pt-gl-wrapper .pt-gl-input.is-invalid {
  border-color: var(--pt-gl-danger);
  background-color: var(--pt-gl-danger-soft);
}

.pt-gl-wrapper .pt-gl-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #E2E8F0;
}

.pt-gl-field-error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-gl-danger);
}

.pt-gl-field-error.is-visible {
  display: block;
}

/* ==========================================================================
   Radio Plan Cards & Segmented Yes/No Controls
   (High-specificity overrides to neutralize legacy CMS theme label/radio CSS)
   ========================================================================== */
.pt-gl-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.pt-gl-plan-option {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
}

.pt-gl-wrapper input[type="radio"].pt-gl-plan-radio {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.pt-gl-wrapper label.pt-gl-plan-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 132px !important;
  padding: 18px !important;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: var(--pt-gl-radius) !important;
  border: 1.5px solid var(--pt-gl-border) !important;
  background: var(--pt-gl-surface-alt) !important;
  cursor: pointer;
  text-align: start !important;
  line-height: 1.65 !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.pt-gl-wrapper label.pt-gl-plan-card::before,
.pt-gl-wrapper label.pt-gl-plan-card::after {
  content: none !important;
  display: none !important;
}

.pt-gl-wrapper label.pt-gl-plan-card:hover {
  border-color: var(--pt-gl-primary-border) !important;
  background: var(--pt-gl-surface) !important;
}

.pt-gl-wrapper input[type="radio"].pt-gl-plan-radio:checked + label.pt-gl-plan-card {
  border-color: var(--pt-gl-primary) !important;
  background: var(--pt-gl-primary-soft) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.pt-gl-wrapper input[type="radio"].pt-gl-plan-radio:focus-visible + label.pt-gl-plan-card {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.pt-gl-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.pt-gl-plan-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pt-gl-heading);
  line-height: 1.55;
  flex: 1 1 auto;
}

.pt-gl-plan-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--pt-gl-border-strong);
  background: var(--pt-gl-surface);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  transition: border-color 0.18s ease, border-width 0.18s ease;
}

.pt-gl-wrapper input[type="radio"].pt-gl-plan-radio:checked + label.pt-gl-plan-card .pt-gl-plan-dot {
  border-color: var(--pt-gl-primary);
  border-width: 6px;
}

.pt-gl-plan-desc {
  margin: 0 !important;
  font-size: 13.5px;
  color: var(--pt-gl-muted);
  line-height: 1.65;
}

.pt-gl-wrapper label.pt-gl-checkbox-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 46px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: var(--pt-gl-radius) !important;
  border: 1px solid var(--pt-gl-border) !important;
  background: var(--pt-gl-surface-alt) !important;
  cursor: pointer;
  line-height: 1.6 !important;
  text-align: start !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.pt-gl-wrapper label.pt-gl-checkbox-card::before,
.pt-gl-wrapper label.pt-gl-checkbox-card::after {
  content: none !important;
  display: none !important;
}

.pt-gl-wrapper label.pt-gl-checkbox-card:hover {
  border-color: var(--pt-gl-primary-border) !important;
  background: var(--pt-gl-surface) !important;
}

.pt-gl-wrapper label.pt-gl-checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: var(--pt-gl-primary) !important;
  background: var(--pt-gl-primary-soft) !important;
}

.pt-gl-wrapper label.pt-gl-checkbox-card input[type="checkbox"] {
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 3px 0 0 0 !important;
  padding: 0 !important;
  accent-color: var(--pt-gl-primary);
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.pt-gl-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pt-gl-wrapper .pt-gl-segmented {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  background: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border-strong);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  flex-shrink: 0;
}

.pt-gl-wrapper .pt-gl-segmented input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.pt-gl-wrapper .pt-gl-segmented label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 72px !important;
  height: 38px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 7px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  color: var(--pt-gl-muted) !important;
  background: transparent !important;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pt-gl-wrapper .pt-gl-segmented label::before,
.pt-gl-wrapper .pt-gl-segmented label::after {
  content: none !important;
  display: none !important;
}

.pt-gl-wrapper .pt-gl-segmented label:hover {
  color: var(--pt-gl-heading) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

.pt-gl-wrapper .pt-gl-segmented input[type="radio"]:checked + label {
  background: var(--pt-gl-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.pt-gl-wrapper .pt-gl-segmented input[type="radio"]:focus-visible + label {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.pt-gl-toggle-input {
  flex: 1 1 240px;
  min-width: 0;
}

/* ==========================================================================
   Searchable Country Combobox
   ========================================================================== */
.pt-gl-combo-wrap {
  position: relative;
}

.pt-gl-combo-box {
  position: relative;
  display: flex;
  align-items: center;
}

.pt-gl-combo-icon {
  position: absolute;
  inset-inline-start: 13px;
  color: var(--pt-gl-muted);
  pointer-events: none;
  display: inline-flex;
}

.pt-gl-combo-input {
  width: 100%;
  min-height: 46px;
  padding-block: 10px;
  padding-inline-start: 40px;
  padding-inline-end: 38px;
  background-color: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border-strong);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pt-gl-heading);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pt-gl-combo-input:focus {
  outline: none;
  background-color: var(--pt-gl-surface);
  border-color: var(--pt-gl-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pt-gl-combo-clear {
  position: absolute;
  inset-inline-end: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--pt-gl-muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pt-gl-combo-clear.is-visible {
  display: inline-flex;
}

.pt-gl-combo-clear:hover {
  background: var(--pt-gl-border);
  color: var(--pt-gl-heading);
}

.pt-gl-combo-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  background: var(--pt-gl-surface);
  border: 1px solid var(--pt-gl-border-strong);
  border-radius: 12px;
  box-shadow: var(--pt-gl-shadow-md);
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
  display: none;
  padding: 6px;
}

.pt-gl-combo-menu.is-open {
  display: block;
}

.pt-gl-combo-item {
  width: 100%;
  text-align: start;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--pt-gl-text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pt-gl-combo-item:hover,
.pt-gl-combo-item.is-active {
  background: var(--pt-gl-primary-soft);
  color: var(--pt-gl-primary-hover);
}

.pt-gl-combo-empty {
  padding: 12px;
  text-align: center;
  color: var(--pt-gl-muted);
  font-size: 14px;
}

/* ==========================================================================
   CAPTCHA Box
   ========================================================================== */
.pt-gl-captcha-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius);
}

.pt-gl-captcha-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-gl-captcha-img {
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--pt-gl-border-strong);
  background: #FFFFFF;
}

.pt-gl-captcha-input-wrap {
  flex: 1 1 200px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pt-gl-btn,
.pt-gl-wrapper button.pt-gl-btn,
.pt-gl-wrapper a.pt-gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pt-gl-btn:active {
  transform: scale(0.98);
}

.pt-gl-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.pt-gl-btn-sm {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13.5px;
  border-radius: 8px;
}

.pt-gl-btn-primary {
  background: var(--pt-gl-primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.pt-gl-btn-primary:hover {
  background: var(--pt-gl-primary-hover);
  text-decoration: none !important;
}

.pt-gl-btn-secondary {
  background: var(--pt-gl-surface);
  color: var(--pt-gl-text) !important;
  border-color: var(--pt-gl-border-strong);
}

.pt-gl-btn-secondary:hover {
  background: var(--pt-gl-surface-alt);
  border-color: var(--pt-gl-primary-border);
  color: var(--pt-gl-primary-hover) !important;
  text-decoration: none !important;
}

.pt-gl-btn-danger-solid {
  background: var(--pt-gl-danger);
  color: #FFFFFF !important;
}

.pt-gl-btn-danger-solid:hover {
  background: var(--pt-gl-danger-hover);
}

.pt-gl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

/* ==========================================================================
   Alerts, Order Summary & Payment Methods
   ========================================================================== */
.pt-gl-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--pt-gl-radius);
  border: 1px solid var(--pt-gl-border);
  margin-bottom: 16px;
}

.pt-gl-alert-success {
  background: var(--pt-gl-success-soft);
  border-color: var(--pt-gl-success-border);
  color: #065F46;
}

.pt-gl-alert-danger {
  background: var(--pt-gl-danger-soft);
  border-color: var(--pt-gl-danger-border);
  color: #991B1B;
}

.pt-gl-alert-warning {
  background: var(--pt-gl-warning-soft);
  border-color: var(--pt-gl-warning-border);
  color: #92400E;
}

.pt-gl-alert-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.pt-gl-alert-body {
  flex: 1 1 auto;
  min-width: 0;
}

.pt-gl-alert-text {
  font-weight: 600;
  line-height: 1.65;
}

.pt-gl-alert-actions {
  margin-top: 12px;
}

.pt-gl-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pt-gl-coupon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pt-gl-coupon-row .pt-gl-input {
  flex: 1 1 200px;
}

.pt-gl-coupon-status {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 22px;
}

.pt-gl-coupon-status.is-success {
  color: var(--pt-gl-success);
}

.pt-gl-coupon-status.is-error {
  color: var(--pt-gl-danger);
}

.pt-gl-totals {
  background: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-gl-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--pt-gl-text);
}

.pt-gl-total-row.is-net {
  padding-top: 10px;
  border-top: 1px solid var(--pt-gl-border-strong);
  font-size: 18px;
  font-weight: 800;
  color: var(--pt-gl-heading);
}

.pt-gl-payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pt-gl-payment-card {
  background: var(--pt-gl-surface-alt);
  border: 1px solid var(--pt-gl-border);
  border-radius: var(--pt-gl-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-gl-payment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pt-gl-heading);
}

.pt-gl-payment-head svg {
  color: var(--pt-gl-primary);
}

.pt-gl-payment-body {
  font-size: 14.5px;
  color: var(--pt-gl-text);
  line-height: 1.75;
}

.pt-gl-bank-box {
  margin: 10px 0;
  padding: 12px 14px;
  background: var(--pt-gl-surface);
  border: 1px solid var(--pt-gl-border-strong);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--pt-gl-heading);
}

.pt-gl-2co-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-gl-payment-logos {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 6px;
}

/* ==========================================================================
   Partner Transactions Table
   ========================================================================== */
.pt-gl-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--pt-gl-radius);
  border: 1px solid var(--pt-gl-border);
}

.pt-gl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pt-gl-surface);
  font-size: 14.5px;
}

.pt-gl-table th,
.pt-gl-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pt-gl-border);
  text-align: start;
}

.pt-gl-table th {
  background: var(--pt-gl-surface-alt);
  font-weight: 700;
  color: var(--pt-gl-heading);
}

.pt-gl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.pt-gl-badge-success {
  background: var(--pt-gl-success-soft);
  color: var(--pt-gl-success);
  border: 1px solid var(--pt-gl-success-border);
}

.pt-gl-badge-warning {
  background: var(--pt-gl-warning-soft);
  color: var(--pt-gl-warning);
  border: 1px solid var(--pt-gl-warning-border);
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.pt-gl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 900;
}

.pt-gl-modal-overlay.is-open {
  display: flex;
}

.pt-gl-modal-window {
  background: var(--pt-gl-surface);
  border-radius: var(--pt-gl-radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--pt-gl-shadow-md);
  border: 1px solid var(--pt-gl-border);
  overflow: hidden;
}

.pt-gl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pt-gl-border);
}

.pt-gl-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-gl-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pt-gl-modal-icon.is-danger {
  background: var(--pt-gl-danger-soft);
  color: var(--pt-gl-danger);
}

.pt-gl-modal-icon.is-info {
  background: var(--pt-gl-primary-soft);
  color: var(--pt-gl-primary);
}

.pt-gl-modal-icon.is-success {
  background: var(--pt-gl-success-soft);
  color: var(--pt-gl-success);
}

.pt-gl-modal-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--pt-gl-heading);
}

.pt-gl-modal-close {
  border: none;
  background: transparent;
  color: var(--pt-gl-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pt-gl-modal-close:hover {
  background: var(--pt-gl-surface-alt);
  color: var(--pt-gl-heading);
}

.pt-gl-modal-body {
  padding: 18px 20px;
}

.pt-gl-modal-msg {
  margin: 0;
  color: var(--pt-gl-text);
  font-size: 15px;
  line-height: 1.65;
}

.pt-gl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: var(--pt-gl-surface-alt);
  border-top: 1px solid var(--pt-gl-border);
}

.pt-gl-toast-container {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 950;
}

.pt-gl-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--pt-gl-heading);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--pt-gl-shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pt-gl-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pt-gl-toast-error {
  background: var(--pt-gl-danger);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 720px) {
  .pt-gl-wrapper {
    padding: 24px;
  }

  .pt-gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-gl-summary-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .pt-gl-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pt-gl-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pt-gl-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pt-gl-border);
}

.pt-gl-page-info {
  font-size: 13.5px;
  color: var(--pt-gl-muted);
}

.pt-gl-page-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pt-gl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--pt-gl-border-strong);
  background: var(--pt-gl-surface);
  color: var(--pt-gl-text) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pt-gl-page-btn:hover:not(.is-disabled):not(.is-active) {
  background: var(--pt-gl-primary-soft);
  border-color: var(--pt-gl-primary-border);
  color: var(--pt-gl-primary-hover) !important;
}

.pt-gl-page-btn.is-active {
  background: var(--pt-gl-primary);
  border-color: var(--pt-gl-primary);
  color: #FFFFFF !important;
}

.pt-gl-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pt-gl-page-ellipsis {
  padding: 0 4px;
  color: var(--pt-gl-muted);
  font-weight: 700;
}
