.nmi-box {
  .logo-box {
    background-image: unset !important;
  }

  /* Wrapper general */
  .toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #0d2743;
  }

  /* Ocultar checkbox original */
  .toggle-checkbox {
    display: none;
  }

  /* Toggle slider base */
  .toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d0d7e2;
    border-radius: 30px;
    transition: all 0.3s ease;
  }

  /* Circle */
  .toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  }

  /* ACTIVE STATE */
  .toggle-checkbox:checked+.toggle-slider {
    background: #ff6a5b;
  }

  .toggle-checkbox:checked+.toggle-slider::before {
    transform: translateX(24px);
  }

  /* Label */
  .toggle-label {
    font-size: 14px;
    color: #0d2743;
  }

  .nmi-gateway-settings {
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
  }

  .nmi-gateway-settings h2,
  .nmi-gateway-settings h3 {
    font-family: "Inter", sans-serif;
    color: #0d2743;
    font-size: 18px;
    font-weight: 700;
  }

  .nmi-gateway-settings .nmi-form-field {
    margin-bottom: 20px;
  }

  .nmi-gateway-settings label {
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    color: #0d2743;
  }

  .nmi-gateway-settings input[type="text"],
  .nmi-gateway-settings input[type="password"],
  .nmi-gateway-settings textarea,
  .nmi-gateway-settings select {
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    transition: border-color 0.3s ease;
  }

  .nmi-gateway-settings input[type="text"]:focus,
  .nmi-gateway-settings input[type="password"]:focus,
  .nmi-gateway-settings textarea:focus,
  .nmi-gateway-settings select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 1px solid #2271b1;
  }

  .nmi-gateway-settings input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    accent-color: #2271b1;
    border: 1px solid #8c8f94;
    border-radius: 3px;
  }

  .nmi-gateway-settings input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
  }

  .nmi-gateway-settings select[multiple] {
    min-height: 120px;
  }

  .nmi-gateway-settings .button-primary {
    background: #32165d;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .nmi-gateway-settings .button-primary:hover {
    background: #32165d;
    transform: translateY(-1px);
  }

  .nmi-gateway-settings .button-primary:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .nmi-form-field {
    margin-bottom: 15px;
    margin-top: 15px;
  }

  .nmi-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d2743;
    font-size: 14px;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
  }

  .nmi-form-field input {
    width: 100%;
    padding: 0 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family:
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      Oxygen-Sans,
      Ubuntu,
      Cantarell,
      "Helvetica Neue",
      sans-serif;
    background: #fff;
    height: 32px;
    line-height: 2;
  }

  .nmi-form-field input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 1px solid #2271b1;
  }

  .nmi-form-field input.error {
    border-color: #e74c3c;
    background: #fef2f2;
  }

  .nmi-form-field input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
  }

  .nmi-admin-key-link {
    text-align: right;
    margin-bottom: 24px;
  }

  .nmi-admin-key-link a {
    color: #3b82f6;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    transition: color 0.2s ease;
  }

  .nmi-admin-key-link a:hover {
    color: #2563eb;
  }

  .nmi-modal-actions {
    margin-top: 32px;
  }

  .nmi-btn-primary {
    width: 100%;
    background: #ff6a5b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nmi-btn-primary:hover {
    background: #e55a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 91, 0.3);
  }

  .nmi-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  /* Ensure all primary buttons use brand primary color */
  #nmi-disconnect-modal .nmi-btn-primary,
  #nmi-modal .nmi-btn-primary {
    background: #ff6a5b;
  }

  /* Checkout Theme Selector Styles - Toggle Switch */
  .nmi-theme-selector {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nmi-theme-selector .theme-label {
    font-size: 14px;
    font-weight: 600;
    color: #0d2743;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    margin: 0;
    white-space: nowrap;
  }

  .theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Tab Styles */
  .nmi-api-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
  }

  .nmi-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    margin-bottom: -2px;
  }

  .nmi-tab-button:hover {
    color: #0d2743;
    background: #f9fafb;
  }

  .nmi-tab-button.active {
    color: #ff6a5b;
    border-bottom-color: #ff6a5b;
  }

  .nmi-tab-content {
    margin-top: 20px;
    margin-bottom: 1rem;
  }

  .nmi-tab-panel {
    display: none;
  }

  .nmi-tab-panel.active {
    display: block;
  }
}

.peachpay .nmi-box.payment-provider-header {
  gap: 1rem !important;
}

/* Order overview payment method - horizontal card icons */
.woocommerce-order-overview__payment-method.method strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.woocommerce-order-overview__payment-method.method strong img {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  height: 20px;
  width: auto;
}