/* Payment overlay and modal styles */
.tg-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.tg-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tg-spin 0.8s linear infinite;
}

@keyframes tg-spin {
  to {
    transform: rotate(360deg);
  }
}

.tg-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tg-modal-header .cancel {
  color: #1976d2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 50px;
}

.tg-modal-header .title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
  text-align: center;
}

.tg-modal-body {
  padding: 24px 20px;
}

.tg-modal-centered {
  padding: 40px 24px;
  text-align: center;
}

.tg-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.visa-logo {
  font-weight: 700;
  color: #1434cb;
  font-size: 18px;
}

.tg-modal-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 12px;
}

.tg-modal-body p {
  color: #666;
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.tg-info-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.tg-info-box .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.tg-info-box .row:last-child {
  margin-bottom: 0;
}

.tg-info-box .label {
  color: #666;
  font-weight: 500;
}

.tg-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tg-input:focus {
  outline: none;
  border-color: #1976d2;
}

.tg-input.error {
  border-color: #d32f2f;
  background: #fff5f5;
}

.tg-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tg-btn-primary {
  background: #1976d2;
  color: #fff;
}

.tg-btn-primary:hover {
  background: #1565c0;
}

.tg-btn-primary:disabled {
  background: #90caf9;
  cursor: not-allowed;
}

.tg-btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.tg-btn-secondary:hover {
  background: #e0e0e0;
}

.tg-link {
  display: block;
  text-align: center;
  color: #1976d2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.tg-link:hover {
  text-decoration: underline;
}

.tg-error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #d32f2f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-error-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Push notification screen styles */
.tg-push-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.tg-mc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-mc-circles {
  display: flex;
  position: relative;
  width: 36px;
  height: 24px;
}

.tg-mc-circles .c1,
.tg-mc-circles .c2 {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
}

.tg-mc-circles .c1 {
  background: #eb001b;
  left: 0;
}

.tg-mc-circles .c2 {
  background: #f79e1b;
  right: 0;
}

.tg-mc-text {
  font-weight: 700;
  font-size: 14px;
  color: #000;
}

.tg-mc-sub {
  font-size: 11px;
  color: #666;
  margin-top: -2px;
}

.tg-push-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

.tg-visa-block .sub {
  font-size: 11px;
  color: #666;
}

.tg-visa-block .main {
  font-size: 18px;
  font-weight: 700;
  color: #1434cb;
  margin-top: -2px;
}

.tg-timer-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.tg-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tg-timer-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 4;
}

.tg-timer-prog {
  fill: none;
  stroke: #1976d2;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.tg-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #1a1a2e;
}

.tg-time-box {
  background: #f5f5f5;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  display: inline-block;
}

.tg-cancel-link {
  margin-top: 12px;
}

.tg-cancel-link a {
  color: #d32f2f;
  text-decoration: none;
  font-size: 14px;
}

.tg-cancel-link a:hover {
  text-decoration: underline;
}

/* Card input fields styling */
.card-input-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.card-input-group h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 16px;
}

.card-field {
  margin-bottom: 16px;
}

.card-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.card-field input,
.card-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.card-field input:focus,
.card-field select:focus {
  outline: none;
  border-color: #1976d2;
}

.card-row {
  display: flex;
  gap: 12px;
}

.card-row .card-field {
  flex: 1;
}

.card-row .card-field.small {
  flex: 0 0 80px;
}
