.sirmax-popup.hidden {
  display: none;
}

.sirmax-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.sirmax-popup .sirmax-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.sirmax-popup .sirmax-popup-content {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: sirmaxPopIn 140ms ease-out;
}

@keyframes sirmaxPopIn {
  from {
    transform: translateY(8px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sirmax-popup .sirmax-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
}

.sirmax-popup .sirmax-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.sirmax-popup .sirmax-popup-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #111;
  background: #f3f4f6;
}

.sirmax-popup .sirmax-popup-close:hover {
  background: #e9ebef;
}

.sirmax-popup.sirmax-popup-locked .sirmax-popup-close {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sirmax-popup .sirmax-popup-close.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sirmax-popup .sirmax-popup-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.sirmax-popup .sirmax-popup-empty {
  padding: 14px;
  border: 1px dashed #d6dae1;
  border-radius: 12px;
  color: #4b5563;
  background: #fafbfc;
}

.sirmax-popup .sirmax-license-card {
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.sirmax-popup .sirmax-license-card:hover {
  border-color: #cfd6e6;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.sirmax-popup .sirmax-license-card-main {
  display: grid;
  gap: 6px;
}

.sirmax-popup .sirmax-license-card-name {
  font-weight: 800;
  font-size: 14px;
}

.sirmax-popup .sirmax-license-card-price {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
}

.sirmax-popup .sirmax-license-select {
  appearance: none;
  border: none;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.sirmax-popup .sirmax-license-select:hover {
  background: #0b1220;
}

.sirmax-popup .hidden {
  display: none;
}

.sirmax-popup .sirmax-payment-step {
  display: grid;
  gap: 12px;
}

.sirmax-popup .sirmax-payment-summary {
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  padding: 12px;
  background: #fafbff;
  font-size: 14px;
  line-height: 1.5;
}

.sirmax-popup .sirmax-payment-methods {
  display: flex;
  gap: 8px;
}

.sirmax-popup .sirmax-payment-method {
  border: 1px solid #d8deea;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.sirmax-popup .sirmax-payment-method.active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.sirmax-popup .sirmax-payment-panel {
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.sirmax-popup .sirmax-payment-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.sirmax-popup .sirmax-payment-input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.sirmax-popup .sirmax-payment-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.sirmax-popup .sirmax-pay-btn {
  appearance: none;
  border: none;
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.sirmax-popup .sirmax-pay-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.sirmax-popup .sirmax-payment-note {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.sirmax-popup .sirmax-payment-feedback {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.sirmax-popup .sirmax-payment-feedback.is-success {
  color: #15803d;
}

.sirmax-popup .sirmax-payment-feedback.is-error {
  color: #b91c1c;
}

.sirmax-popup .sirmax-payment-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  width: fit-content;
}

.sirmax-popup .sirmax-payment-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  animation: sirmaxCheckoutSpin 0.75s linear infinite;
}

@keyframes sirmaxCheckoutSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

